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
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
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
-
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
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