This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes HtmlSelectOneMenu  throws NotSerializableException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "HtmlSelectOneMenu  throws NotSerializableException" Watch "HtmlSelectOneMenu  throws NotSerializableException" New topic
Author

HtmlSelectOneMenu throws NotSerializableException

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Hi I'm getting thr following exception..
java.io.NotSerializableException: org.apache.myfaces.component.html.ext.HtmlSelectOneMenu.
The class in which i have this select one menu items is implementing serializable.But still I see this in the logs..Any help?



Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

Just because you declare a class to be serializable doesn't truly make it serializable. To be really serializable, not only does the class itself have to be serializable, so do all members of the class. So if you include a non-serializable object such as HtmlSelectOneMenu in your class, the class will compile with java.io.Serializable implemented, but the serialization process itself will fail.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HtmlSelectOneMenu throws NotSerializableException
 
Similar Threads
Posting to bump up my count...
Text box value is not being completely filled with request attribute
WA #1.....word association
media player applet
The x900 effect ?