And Render Request of course. So you can also re-render the page and use the RenderSupport to add your Javascript.
When the user click on the link, try to update the a state in your page (keep it via @Persist or Activation/Passivation), and during re-render, add your javascript call in SetupRender. And Ajax update is maybe cleaner... Excuse me for my previous confusing answers. Regards, Christope. 2009/10/29 cordenier christophe <christophe.corden...@gmail.com> > Sorry i have said something wrong, RenderSupport is not available in > Action Request, only in Ajax Action Request. > > 2009/10/29 vos <sovireak.moe...@gmail.com> > >> >> Hi Christophe, >> Thanks for your answer. >> I tried to code with the renderSupport as you told me. >> >> here is the javascript for my pop up >> >> <script type="text/javascript"> >> function choisir(choix){ >> >> >> >> window.opener.document.forms["add_search_form"].elements["departure"].value=choix; >> >> self.close(); >> } >> </script> >> >> >> and the .java : >> >> @Environmental >> private RenderSupport renderSupport; >> >> @OnEvent(value = "action", component = "selectAddressPoi") >> public void onSelectEvent(Integer id) { >> System.out.println(id); >> String name = this.sgPoiManager.getSgPoiById(id).getName(); >> this.renderSupport.addScript("choisir(" + name + ");"); >> } >> >> I got this exception when i clicked on my button : >> >> No object of type org.apache.tapestry5.RenderSupport is available from the >> Environment. Available types are >> org.apache.tapestry5.services.ComponentEventResultProcessor. >> >> what is the problem with the renderSupport ? >> >> Thanks by advance >> >> >> -- >> View this message in context: >> http://www.nabble.com/T5-%3A-Pop-up-with-grid-tp26112459p26113362.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >