Hi Julian,
It is usual to use saveState to persist non-managed beans across requests. Note that the value is persisted only (a) across JSPs which have the requisite saveState tag (the value is dropped on the firsts page which doesn't specify the save) and (b) when redirect is not used.
I am submitting back to the same view id (no navigation) which contains the t:saveState tag and the bean is serializable so there must be some other problem. I'll post here once I find the solution.
Roger
-----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Roger Keays Sent: Friday, May 19, 2006 5:28 AM To: users@myfaces.apache.org Subject: using saveState on non-managed bean? Hi all, I'm trying to use t:saveState to make a bean available across several requests. Unfortunately it doesn't seem to work (I get a bean is null error after submitting the form) and AFAICT this is because saveState restores the bean by doing some magic with ValueBindings, and not directly manipulating the scope. I am guessing that it is not working for me since my bean is not a JSF managed bean. Can anybody tell me whether or not this is right? My understanding of ValueBindings isn't 100%, but I can't see where else it could be breaking. Thanks in advance, Roger -- ---------------------------------------- Ninth Avenue Software p: +61 7 3137 1351 (UTC +10) f: +61 7 3102 9141 w: http://www.ninthavenue.com.au e: [EMAIL PROTECTED] ----------------------------------------
-- ---------------------------------------- Ninth Avenue Software p: +61 7 3137 1351 (UTC +10) f: +61 7 3102 9141 w: http://www.ninthavenue.com.au e: [EMAIL PROTECTED] ----------------------------------------