Re: Page activation context question

2008-03-23 Thread Howard Lewis Ship
Does it means I can't pass more than one > > parameter? > > > > > > > Another approach I tried is it create another Java Bean > > (wrapper > > > > object) > > > > > > > and > > > > > > > simple

Re: Page activation context question

2008-03-23 Thread Yura Tkachenko
tion context. In that > case > > > my > > > > > > onActivate and onPassivate were: > > > > > > > > > > > > void onActivate(Pa

Re: Page activation context question

2008-03-23 Thread Howard Lewis Ship
appedData); > > > > > setWrapper(wrappedData); > > > > > } > > > > > > > > > > PageWrapper onPassivate() { > > > > > System.out.println("Page is passivated."); > >

Re: Page activation context question

2008-03-23 Thread Yura Tkachenko
return getWrapper(); > > > > } > > > > > > > > As the result I got exception. From URL I understood that Typestry > > > during > > > > passing parameter via activation context is converting it to get > > > request. &

Re: Page activation context question

2008-03-23 Thread Bill Holloway
Your onActivate method can also take varargs, as in void onActivate (String... args) { _firstObj = restoreFirstObj(args[0]); if (args[1] != null) _secondObj = restoreSecondObj(args[1]); ... } String[] onPassivate () { List args = new ArrayList(); args.add (_firstObj.toStr

Re: Page activation context question

2008-03-23 Thread Anton Litvinenko
my case for wrapped object URL was: > > > > > > http://localhost:8080/t5first/second/com.packtpub.t5first.utils.PageWrapper%40307efc > > > After looking to that URL I realized that T5 just call toString of > > passed > > > object :-) > > > S

Re: Page activation context question

2008-03-22 Thread Yura Tkachenko
just call toString of > passed > > object :-) > > So my additional questions: > > 1) Why not allow to user pass his own objects (POJO)? > > 2) Why not pass data via HTTP POST? Because as far as I know HTTP (at > > least > > some browsers and

Re: Page activation context question

2008-03-22 Thread SergeEby
POST? Because as far as I know HTTP (at > least > some browsers and http servers) has some limitations to the length of > URLs. > Besides sooner or later some smart users will pass string with a few > Kbytes > and the page will get wrong data

Page activation context question

2008-03-22 Thread Yura Tkachenko
Hi All, I've been reading chapter about "Page Activation Context" here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html. And I have a question: can I pass using activation context more than one parameter? For example in help we have an example: void onActivate(long productI

Page activation context question

2008-03-22 Thread Yura Tkachenko
Hi All, I've been reading chapter about "Page Activation Context" here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html. And I have a question: can I pass using activation context more than one parameter? For example in help we have an example: void onActivate(long productI