You could use the @Meta annotation to put meta data on each page, identifying which associated profile page to use (assuming that such a link is statically defined). If that becomes cumbersome, you could define your own annotation, and contribute a component class transform worker to set the meta data from your annotation.
MetaData is available from the component model: page.getComponentResources().getComponentModel().getMeta(). On Sat, Jan 23, 2010 at 11:02 AM, Everton Agner <everton_ag...@yahoo.com.br> wrote: > Hi, > > Let's assume that: > > - The user's Login info is stored on Session; > - Every user have many profiles; > - Plenty of pages works on one specific Profile for the user; > - The current user profile is always stored on Session also; > - I have a page of Profile selection that shows all of the user's profiles > and let him choose which one he wants to work with; > - So, every page that needs the user's current profile looks on the > @SessionState data... and if it doesn't exists yet, redirects to the Profile > Selection Page; > > Now is the goal i need to get to it... When these pages redirect to the > Profile Selection Page, they need to pass information about which page the > Profile Selection Page needs to redirect automatically when the user select > which profile he wants to. > > For my first approach, I thought about passing one String by the page > activation context about the page path (like "user/profile/foo/bar"). It > works, but i didn't like the URL result. > > I want to know which would be the best approach to get to my goal... > > I though about @InjectPage my Profile Selection Page and have in it one > @Persist("flash") field like "redirectTo", so it's value is alive when the > page is rendered, and cleared after that... Would that be ok? > > Thanks, > > Everton > > > > > ____________________________________________________________________________________ > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org