I have a simple parent-child  page demo at
   
   http://lombok.demon.co.uk/tapestry5Demo/test/parentwindow


The parent page displays number 1,2,..., n.
The child page is a pop up to change n.
The entered n from the pop up is returned to the parent page and the parent 
page is redisplay with the new n.

It works in firefox, but not in IE. 

Shing 




--- On Thu, 29/10/09, cordenier christophe <christophe.corden...@gmail.com> 
wrote:

> From: cordenier christophe <christophe.corden...@gmail.com>
> Subject: Re: T5 : Pop up with grid
> To: "Tapestry users" <users@tapestry.apache.org>
> Date: Thursday, 29 October, 2009, 10:13 PM
> 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
> >>
> >>
> >
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to