webtier@glassfish.java.net

Re: [webtier] Managed bean as ValueChangeListener

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Thu, 16 Jul 2009 12:43:28 -0700

On 7/16/09 12:01 PM, lincolnbaxter_at_gmail.com wrote:
> When i load the page i get this:
>
> java.io.NotSerializableException: javax.faces.component.UIData

...

This is probably not your problem, though as Lincoln points out, you
should make your class serializable.

>
> Also, component.addValueChangeListener(new ValueChangeListener() {...}) is not working, it says it cannot instantiate the class.
> [Message sent by forum member 'gabox01' (gabox01)]

This is your problem. It means you've got an exception getting thrown
in your class initializer. What is that exception, and what line is it?
  If you answer those questions, you'll probably answer your problem -
check the logs to see.

Jim