aspose file tools*
The moose likes JSF and the fly likes <t:saveSate> initialize null attributes to 0 for int or '' for string. how i stop it. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "<t:saveSate> initialize null attributes to 0 for int or Watch "<t:saveSate> initialize null attributes to 0 for int or New topic
Author

<t:saveSate> initialize null attributes to 0 for int or '' for string. how i stop it.

Rajibul islam
Greenhorn

Joined: Jan 06, 2009
Posts: 3
Hi,

Before I used Tomcat 5.5. now I moved Tomcat 6 and add richfaces in my application. but now problem is if any attribute is null, it become 0 for integer and '' for string. I found it happens at RESTORE_VIEW phase.

Any one help me how I protect that initialization. I want null attribute value become null not 0 or '';

Thanks in advance,
Rajib
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crossposted: http://forums.sun.com/thread.jspa?messageID=10596308#10596308
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <t:saveSate> initialize null attributes to 0 for int or '' for string. how i stop it.
 
Similar Threads
Array Problems
Servlet "freezes" up without parameters
jboss, datasource naming and lookup error
Unable to understand the setAttribute in java
Getting the mail group from LDAP