Thanks for this.

I was under the impression that the property was stored in the session, and thus available to all pages. I was wrong. It is indeed stored in the session, but available only to the page for which this property has been defined. Good to know. The per-page scheme is in fact a "Tapestry illusion", as HLS would say. See http://www.nabble.com/How-are-the-Page-objects-held-on-the-server-t600951.html#a1607289

Indeed, what I need is an ASO (as you proposed) or set my property directly while still in page A before activating page B (as Michael suggested).

/Martin

Hugo Palma wrote:
Everything is working as it should. When you persist a page property that
means that when you return to that page the property value will still be
there. It doesn't mean that the property will be available to other pages. I
think that what you are looking for is an ASO.

Hope this helps

Cheers

Hugo

On 24/01/06, Martin Carel <[EMAIL PROTECTED]> wrote:
Hi all!

I have this in my page A's spec:

<property name="myProp" persist="session"/>

I want to retrieve this property (myProp is a String object) in page B.

I assumed that all was needed was to specify this in my page B's spec:
<property name="myProp" persist="session"/>

and then retrieve the property's value as usual from my page B's HTML
template:
<span jwcid="@Insert" value="ognl:myProp"/>

But it does not work. I got an empty string on page B where I should see
a string for this property's value.

If I create a parsing error in my page B's HTML template (a trick that I
use in order to get the Tapestry's exception page), I see that my
session-persisted property "myProp" is indeed in the HttpSession with
the correct value, set from page A, so I feel I'm really close to get
what I want.

Any hints is appreciated.

/Martin


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





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

Reply via email to