Re: T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
Oh nevermind, it works now.. stupid browser still caching the old page. thx a lot! ronaldlee wrote: > > Thx Angelo. This seems to make sense, but I cannot make it to work.. will > try more. > > Ronald > > > Angelo Chen wrote: >> >> hi ronaldlee, >> >> you can pass the user name from the Us

Re: T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
Thx Angelo. This seems to make sense, but I cannot make it to work.. will try more. Ronald Angelo Chen wrote: > > hi ronaldlee, > > you can pass the user name from the UserProfile page to the layout > component, something like this: > > public class Layout { > @parameter > private String

Re: T5: passing values between layout component and page

2007-11-02 Thread Marcus
Hi Ronald, You can declare same ASO(ApplicationStateObject) in both java classes, passing any values between any components. Basic.java and UserProfile.java ... @ApplicationState private Visit _visit; ... getters and setters Basic.tml ... ${visit.username} Marcus -

Re: T5: passing values between layout component and page

2007-11-02 Thread Angelo Chen
hi ronaldlee, you can pass the user name from the UserProfile page to the layout component, something like this: public class Layout { @parameter private String userName; // getter/setter here } in UserProfile.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> not tested code

T5: passing values between layout component and page

2007-11-02 Thread ronaldlee
Hi, I am building a page using layout component so that the layout can be shared among other pages. The question I have is that I want my layout component (lets say "/layout/Basic.tml) to have access to page params/variables. A simple example would be that I have a UserProfile page which uses a