Hi, Thiago 

----- Original Message ----- 
From: "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Wednesday, December 09, 2009 2:09 AM
Subject: Re: Best practice for initializing page to default context


> Em Tue, 08 Dec 2009 15:49:15 -0200, Kalle Korhonen  
> <kalle.o.korho...@gmail.com> escreveu:
> 
>> DH's approach looks interesting, but maybe a bit involving with field
>> names encoded to the url. Thiago, I know it's the recommended approach
>> but I'm just saying it doesn't strike me as the ideal approach.
> 
> The ideal solution always depends on the specific problem and, of course,  
> depends on the taste of the developer. :)
> 
>> That sounds like "I don't understand and don't want to hear about it"
> 
> Please read what I wrote, not what you think I was thinking. ;)
> 
>> - why bother responding if that's the case? Now I'm not sure if it's
>> worth my time to write more details or sample code to describe what I
>> mean if you are not interested in explaining or exploring how to do it
>> better.
> 
> I answered that, AFAIK, Tapestry always use onPassivate() when rendering  
> an URL for a given page. You said that it wasn't always the case. I wanted  
> to explore your problem, but I couldn't understand your description of it.
> 

What Kalle and I concern is the onActivate must come first before onPassivate, 
so if page A links to page B, A must set the context of B first, right?
If B has multiple param,  I can't think of a good way in general onActivate 
way. And of course we can use createPageLink method with context, but the 
problem of onActivate is that params must be in strict order. We must be 
careful on the order and make sure everything goes well.

Too hard for me.

> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da  
> Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
>

Reply via email to