Instead of persisting the id in the component, why not keep the id in
the page's context and pass it to the component as a @Parameter?

If you store stuff in the session then your component needs to be
smart about what to do when the @Persist'd object is null after a
session timeout.

On Mon, May 5, 2008 at 2:19 PM, DavidWei <[EMAIL PROTECTED]> wrote:
>
> I have two pages, list and edit pages. Each page contains one or more
> components. From list page, I use an actionlink to pass the item id as Long
> to edit page, which I have a setter to set this id in the component which I
> like to use (in which I persist this passed id).
>
> Everything is working well if you keep working between those two pages, but
> I found one problem which is the id value will be null if I refresh the edit
> page after like 10 min. the T5 will throw exception as follows:
> org.springframework.transaction.UnexpectedRollbackException: Transaction
> rolled back because it has been marked as rollback-only
>
> To me it seems that the id value passed from list page has got lost/cleaned
> up.
>
> I have tried some alternatives, but no of them is working.
>
> Any help will be appreciated!
>
>
> David
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-pass-value-between-components-in-different-pages-tp17070690p17070690.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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

Reply via email to