-
1. Re: How to reRender a component via a Javascript function???
harut Mar 11, 2010 9:35 AM (in response to peterlen)Hi, You can use a4j:jsFunction component, and do reRender in it... -
2. Re: How to reRender a component via a Javascript function???
peterlen Mar 11, 2010 9:52 AM (in response to harut)Harut,
Thanks for the response. The jsFunction won't help in this scenario, however. The jsFunction essentially behaves just like the commandButton does and the reason that I have to use SEAM remoting instead of the a4j commandButton is that the data that I need to send back will not be able to be sent down via an actionparam. So while the jsFunction can have a reRender, it is basically the same problem that I have as to why I can't use the reRender with the commandButton and thus need to find a way to call a reRender from my seam remoting callback function.
As I am writing this, I am wondering if it is possible to define a jsFunction which will act as a seam remoting callback function. The test will be to see if you can pass the seam remoting response object to the jsFunction (acting as the callback function) via the jsFunction's actionparam. If that will work, then I guess using a jsFunction could be the answer. If not, then I am back to having to figure out a way to do a rerender from a generic javascript function.
Thanks - Peter
-
3. Re: How to reRender a component via a Javascript function???
peterlen Mar 11, 2010 10:26 AM (in response to peterlen)After looking at the jsFunction, I found that I could use it easier than I anticipated (my previous reply). I simply declared:
<a:jsFunction name=
"rerenderDataTree" reRender="ftree" limitToList="true" />
and then I have my seam remoting callback function call the rerenderDataTree function. This should work great.
Thanks - Peter
-
4. Re: How to reRender a component via a Javascript function???
harut Mar 12, 2010 1:20 AM (in response to peterlen)Hi Peter,
I ment exactly the same way you mentioned in your last reply. Glad to hear that it works fine for your functionality
Regards, Harut.