Re: [T4.1]Returning a list to a page

2007-08-09 Thread Lutz Hühnken
to return a value to the invoking > >>>>>> page. > >>>>>> Page A calls page B - > >>>>>> in Page B I select a list of item from a longer list > >>>>>> when I press OK on page B, the browser returns to page A where the > >>>>>> list > >>>>>> is > >>>>>&g

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Martino Piccinato
s OK on page B, the browser returns to page A where the > >>>>>> list > >>>>>> is > >>>>>> set according to the selection made. > >>>>>> I can set the returning page but cant find a way to set there the > >>>&

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Paolo Scopa
er list >>>>>> when I press OK on page B, the browser returns to page A where the >>>>>> list >>>>>> is >>>>>> set according to the selection made. >>>>>> I can set the returning page but cant find a way to set

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Ulrich Stärk
Where's the problem to do the same thing with the name of the calling page? Store the name in a string property of page B before activating it... Uli Paolo Scopa schrieb: No prob. As i said to uli, i might call B from different pages, not only A. Maybe i should use a common interface for those

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Paolo Scopa
gt;>>> I can set the returning page but cant find a way to set there the value >>>> to >>>> return. >>>> >>>> I tried different ways but cant find a solution. >>>> Any help ? >>>> >>>> Paolo >>>> >>>> >>>> >>> ---

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Patrick Klein
Hello Paolo, mea culpa, you are correct abot that :) replace IPage with the A's class (implementing IPage) and cast the result of cycle.getPage(...) accordingly Regards, Patrick > Thanks Patrick, > this helps, except that the IPage does not expose the setList method, so i > don't think it wou

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Paolo Scopa
ue >> to >> return. >> >> I tried different ways but cant find a solution. >> Any help ? >> >> Paolo >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands,

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Paolo Scopa
gt; > > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-T4.1-Returning-a-list

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Patrick Klein
Hello Paolo, page a should hold an (persist) abstract getter and setter for the list, page b hold a persist abstract getter and setter for the name of the calling page which is set when page b is accessed and maybe reset if needed in the button's listener. When you are done with compiling your lis

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Ulrich Stärk
You'll have a property for the list in page A and an abstract setter for this property. So now in page B just inject page A using the @InjectPage annotation, call the setter for this list and return the page object in your listener method. Or use the PropertyUtils.write(pageObject, "propertyName"

[T4.1]Returning a list to a page

2007-08-09 Thread Paolo Scopa
but cant find a way to set there the value to return. I tried different ways but cant find a solution. Any help ? Paolo -- View this message in context: http://www.nabble.com/-T4.1-Returning-a-list-to-a-page-tf4242051.html#a12070675 Sent from the Tapestry - User mailing list archive at Nabble.com