What I meant by getting a new bean was that the values entered on the
last screen are not being saved. It behaves like a simple request bean
with no saveState tag on the page. I'm using client side state saving.
I'm actually not trying to save the whole bean. The bean contains a list
of objects that are displayed in a table. That is the only object I'd
like to remain upon each request. I thought it was as simple as using
the tag on the page. Is there something I need to do in the code to have
the request scoped bean get the values from the saved List?

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC


-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 3:04 PM
To: MyFaces Discussion
Subject: Re: Error in log file when using t:saveState

I don't think the error you're seeing is related to t:saveState.
t:saveState doesn't render anything -- it's just a marker that tells JSF
to serialize additional objects into the component tree.

Not sure what you mean by "getting a new bean", but yes, serialization
of x returns a new object y with all of the same instance variables
set.   x != y nor is y's constructor ever invoked.   Also, if your
bean hasn't overridden Object's equals() method, then x.equals(y) is
false.

On 7/31/06, Frank Russo <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to use t:saveState to save a bean class. I may have 
> something in MyFaces configured wrong. It seems that I'm getting a new

> bean for each request. I was trying to troubleshoot, when I saw this
in my log file:
>
> 2006-07-31 08:12:01,876 WARN
> org.apache.myfaces.renderkit.html.util.DefaultAddResource
> - MyFaces special javascript could not be retrieved from request-map.
> Can anyone point out why this may have occurred, and what may be 
> missing from my configuration? Here is a dump of the myfaces specific 
> elements from my web.xml:
>
>
>     <filter>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>
>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-
class>
>         <init-param>
>             <param-name>maxFileSize</param-name>
>             <param-value>20m</param-value>
>             <description>Set the size limit for uploaded files.
>                 Format: 10 - 10 bytes
>                 10k - 10 KB
>                 10m - 10 MB
>                 1g - 1 GB
>             </description>
>         </init-param>
>     </filter>
>     <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <url-pattern>/faces/*</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>
> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>     </filter-mapping>
> Thanks...
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC



Reply via email to