| Author |
Message |
![[Post New]](/rsf/templates/default/images/icon_minipost_new.gif) 20/01/2009 12:31:38
|
dhorwitz
Request-scope Wrangler
Joined: 29/08/2006 17:06:05
Messages: 54
Location: UCT
Offline
|
Hi Guys,
I have a case where I have I need to to create a a helper thats accessed from another RSF tool (for purposes of keeping tool dependencies clean). A perfect case for widgets but I need it for sakai 2.
Now there are good examples and docs of using Non-RSF helpers from RSF tools and non RSF tools that use RSF helpers, but there seems to be no RSF-RSF examples.
What I have done:
1)Created a tool that registers in the category "sakai.helper"
2) Followed the examples for invoking a helper at: http://confluence.sakaiproject.org/confluence/display/BOOT/Using+Helper+Tools+from+RSF
Now when I try to access the link to the helper I get an error that the template can't be resolved. If I change the reported viewParamaters to SimpleView parameters it works, otherwise it seems to be trying to resolve the stub template in the target directory.
I assume I'm missing something that needs to be done in registering the helper tool properly?
|
|
|
 |
![[Post New]](/rsf/templates/default/images/icon_minipost_new.gif) 22/01/2009 00:20:44
|
antranig
Request-scope Wrangler
Joined: 03/04/2006 13:29:55
Messages: 643
Offline
|
What is the exact name of the template that it says can't be resolved? There are quite a few examples of RSF-to-RSF helpers, I think for a start we had one in blogwow, but there is certainly one in the framework samples, for example sakai-entitybroker-test at https://source.sakaiproject.org/contrib/caret/entitybroker-test/trunk shows an example of an RSF app calling an RSF helper defined in a different tool, it uses the EntityBroker to expose the URLs which I recommend, that is it is what we called a "new-style" or AHAH-based helper.
I don't think there are any instances of an RSF tool invoking an "old-style helper" which is itself also written in RSF but this is probably not really advisable anyway. Even if you require to set up an "old-style helper" for some reason, I think it would be better to use the same views via the EB to also expose the function as a new-style helper and make this the preferred and advertised route, especially for new client code, which an RSF client would generally necessarily be...
|
|
|
 |
![[Post New]](/rsf/templates/default/images/icon_minipost_new.gif) 23/02/2009 23:29:37
|
jimeng
Request-scope Wrangler
Joined: 11/07/2006 17:41:40
Messages: 84
Offline
|
Now there are good examples and docs of using Non-RSF helpers from RSF tools and non RSF tools that use RSF helpers, but there seems to be no RSF-RSF examples.
Can you provide a URL for documentation of non-RSF tools that use RSF helpers? I would appreciate that, David.
Jim
|
|
|
 |
|
|