On Tue, Oct 7, 2008 at 7:11 PM, Thiago H. de Paula Figueiredo < [EMAIL PROTECTED]> wrote:
> Em Tue, 07 Oct 2008 18:23:05 -0300, John Jimmy Dondapati < > [EMAIL PROTECTED]> escreveu: > > Here are the options with T5 (from what we could dig up) : >> 2. Pass on the Request object between the Pages using >> >> Page1.java >> Object onSubmitFromForm() >> { >> nextPage.setRequestObject(this.requestObject()); >> return nextPage; >> } >> > > In this case, you wouldn't use the page activation context, as you're > filling the page properties yourself. As Tapestry uses redirect-after-post > by default (and not using it can lead to several problems), you would need > to @Persist("flash") the property in all pages. The single giant ASO would > be a better fit instead of this. > thanks for correction. But the single giant ASO would not be scalable for us as there will tens of thousands of concurrent users. > > > It looks like I cannot pass my custom Classes (requestObjects) this way. >> Are only the built-in datatype classes allowed for OnActivate() and >> OnPassivate() e.g. String or Long ? >> > > You can use String[] and List as well. > Cool. didnt know that. > > > We dont know if any of these would work for us coz we are looking at min >> 10k concurrent users for this form wizard when it goes up. Are we missing >> some other approach. Please advise. Thanks! >> > > Could you use the middle ground solution of storing a temporary object in a > database at each page, reloading it at each page and only storing the object > in the right table in the end of the wizard? You trade database > communication and processing for per-user memory consumption. > We thought about this too. But we have messaging (Webspher MQ) in the middle and accessing the data zone for every page is gonna be really messy. I guess, we cant have it all our way. > > In any case, huge forms are always a pain and I try to avoid them as much > as I can. > Yes, its a real big pain. But I hear that JSF with SWF ( Spring Web Flow ) addresses all these concerns somehow. I wish Tapestry would also come up with some components to make the wizard flow easier. This is the only major concern for us in deciding whether or not to use tapestry in the production. I guess we will have to wait for a while. Any ideas on how Tapestry is compared to SWF (in regard to managing the state)? > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > Consultor, desenvolvedor e instrutor em Java > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, John