This content has been marked as final.
Show 4 replies
-
1. Re: Button pressed -> Javascript -> EJB3 -> Facelets (reRend
sergeysmirnov Sep 13, 2007 12:17 PM (in response to rcherchi)Just use a4j:jsFunction
-
2. Re: Button pressed -> Javascript -> EJB3 -> Facelets (reRend
rcherchi Sep 14, 2007 10:12 AM (in response to rcherchi)Thanks Sergey,
I guess I'm close to the point...
When I get the Javascript Callback, I call the a4j:jsFunction implemented like this at the moment :<a4j:jsFunction name="me" reRender="myResults" oncomplete="justForTesting()" /> <a4j:repeat value="#{myResults}" var="res"> <div>....</div> </a4j:repeat>
On the application side, I have the following attribute initialized and outjected have the remote method gets executed:
@Out List myResults;
Do you know why the result list doesn't rerender yet ?
NB:
* The JS function justForTesting() got called succesfully.
* My result list appears the next time I reload the page.
I guess only the rerendering is wrong at this time.
I also changed theui:repeat
toa4j:repeat
but I don't know if it's necessary.
I red this documentation to help me out http://labs.jboss.com/jbossajax4jsf/docs/devguide/en/html/AjaxComponentsLibrary.html#jsFunction and I don't really understand what this mean :rerender Id['s] (in format of call UIComponent.findComponent()) of components
Thanks again. -
3. Re: Button pressed -> Javascript -> EJB3 -> Facelets (reRend
rcherchi Sep 14, 2007 11:07 AM (in response to rcherchi)Solved :)
<h:form id="my-result-list"> <a4j:jsFunction name="refreshResultList" reRender="result-list" /> <ui:repeat value="#{myResults}" var="poi"> <div>...</div> </ui:repeat> </h:form>
Please, let me know if there is a nicer way to do it.
Regards -
4. Re: Button pressed -> Javascript -> EJB3 -> Facelets (reRend
sergeysmirnov Sep 14, 2007 11:29 AM (in response to rcherchi)<h:form> <a4j:jsFunction name="refreshResultList" reRender="resultLst" /> </h:form> <ui:repeat id="resultLst" value="#{myResults}" var="poi"> <div>...</div> </ui:repeat>