File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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.