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
>
>

Reply via email to