<gs <at> smm.de> writes:

> Searching for the right place to get my component-property stored for the
> current user (application-wide without creating a session (at this moment I
> think it is impossible doing so with Tapestry :( )) , I was checking  the
> ExternalLink component.

If you don't use sessions, how can you tell which user it is?

> component A:
> 
> <property name="myProperty" initial-value="ognl:getPage().getXxxx()"/>
> and an  <at> Insert-tag with value="ognl:myProperty"
> 
> component B:
> an  <at> Insert-tag with value="ognl:getPage().getXxxx()"
> 
> In the addess-field of the browser I change the service-parameter manually
> to the new value of 2 and press return.
> 
> Component A displays the value 1, component B displays the value 2.

This is normal. the initial-value is used only after the component
is loaded and before it is returned to the pool (along with the
page containing it). It is NOT used just before it is rendered.
In your case as the page is probably staying there, myProperty
will remain as 1 even though xxxx has been set to 2.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to