List Info

Thread: Error in log file when using t:saveState




Error in log file when using t:saveState
user name
2006-07-31 12:22:05
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:

 &nbsp;  <filter>
   ; &nbsp; &nbsp; <filter-name>MyFacesExtensionsFilter&lt;/filter-name>
&nbsp; &nbsp;   ;  <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class&gt;
 &nbsp;   ; &nbsp; <init-param>
&nbsp; &nbsp;   ; &nbsp; &nbsp;  <param-name>maxFileSize<;/param-name>
 ; &nbsp; &nbsp; &nbsp; &nbsp;   <param-value>20m</param-value>
  ; &nbsp; &nbsp; &nbsp; &nbsp;  <description>Set the size limit for uploaded files.
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  Format: 10 - 10 bytes
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  10k - 10 KB
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   10m - 10 MB
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   1g - 1 GB
 &nbsp;   ; &nbsp; &nbsp; &nbsp; </description>
  ; &nbsp; &nbsp;  </init-param>
&nbsp;   </filter>
 ; &nbsp; <filter-mapping>;
 &nbsp; &nbsp; &nbsp;  <filter-name>MyFacesExtensionsFilter&lt;/filter-name>
&nbsp; &nbsp;   ;  <url-pattern>/faces/*</url-pattern>
   ; </filter-mapping&gt;
 &nbsp;  <filter-mapping>;
 &nbsp; &nbsp; &nbsp;  <filter-name>MyFacesExtensionsFilter&lt;/filter-name>
&nbsp; &nbsp;   ;  <url-pattern>/faces/myFacesExtensionResource/*&lt;/url-pattern>
&nbsp; &nbsp; </filter-mapping&gt;
Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC

Error in log file when using t:saveState
user name
2006-07-31 19:03:43
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 <frank.russofxall.com> 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&g
t;
>
>
<filter-class>org.apache.myfaces.webapp.filter.Extensi
onsFilter</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&g
t;
>         <url-pattern>/faces/*</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>        
<filter-name>MyFacesExtensionsFilter</filter-name&g
t;
>
>
<url-pattern>/faces/myFacesExtensionResource/*</url
-pattern>
>     </filter-mapping>
> Thanks...
>
>
> Frank Russo
> Senior Developer
> FX Alliance, LLC
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )