Reputation: 1481
I changed the context param javax.faces.STATE_SAVING_METHOD
from server
to client
in my JSF application but now I get:
java.io.NotSerializableException: javax.faces.component.html.HtmlInputHidden
This breaks the view rendering.
As HtmlInputHidden
is from a third party jar, I can't implement it myself.
Is there any way to solve such problem?
Upvotes: 1
Views: 447
Reputation: 1481
Solved with transient
keyword in HtmlInputHidden
declaration:
private transient HtmlInputHidden htmlInputHidden;
As @millimoose said, saveSate()
method controls the state; not the serialization.
Upvotes: 1