voyent
EL-required-expression and partialSubmit  XML
Forum Index -> Components
Author Message
nickarls

Joined: 14/Nov/2006 00:00:00
Messages: 282
Offline


Not sure if it's a general ICEFaces issue or a Seam/Facelets issue but I've noticed that when I have a EL-based required-expression and partialSubmit on a field, I get a

Code:
 java.lang.ClassCastException: com.icesoft.faces.el.PartialSubmitValueBinding cannot be cast to java.io.Serializable
 	at javax.faces.component.StateHolderSaver.<init>(StateHolderSaver.java:52)
 	at javax.faces.component.UIComponentBase.saveAttachedState(UIComponentBase.java:1362)
 	at javax.faces.component.UIComponentBase.saveBindingsState(UIComponentBase.java:1450)
 	at javax.faces.component.UIComponentBase.saveState(UIComponentBase.java:1241)
 	at javax.faces.component.UIOutput.saveState(UIOutput.java:203)
 	at javax.faces.component.UIInput.saveState(UIInput.java:1211)
 	at javax.faces.component.html.HtmlSelectOneListbox.saveState(HtmlSelectOneListbox.java:822)
 	at com.icesoft.faces.component.ext.HtmlSelectOneListbox.saveState(HtmlSelectOneListbox.java:537)
 


Anyone have any ideas/insights?
priyanka

Joined: 29/Apr/2008 00:00:00
Messages: 35
Offline


Expression Language is not supported for partialSubmit
nickarls

Joined: 14/Nov/2006 00:00:00
Messages: 282
Offline


priyanka wrote:
Expression Language is not supported for partialSubmit 


Ouch. Thanks for the info.

Any workarounds? Having two identical fields with one required="true" and the EL (and EL negated) in rendered sounds a bit like overkill.
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1393
Offline


Actually it is supported (which version of ICEfaces are you using?) One thing you might try is to use @BypassInterceptors annotation above your getters and setters for the property that resolves to the boolean for partialSubmit. This bypasses all the transaction, container-managed states, etc. If that doesn't work, please post back here so we can take a further look.
c_inconnu

Joined: 17/Apr/2007 00:00:00
Messages: 52
Offline


Hi,
I just hit this bug (???). I used 1.7.0 and 1.7.1 and it worked but not with 1.7.2 anymore... so why ?
Thanks
jguglielmin

Joined: 20/Jul/2007 00:00:00
Messages: 181
Offline


This issue is being tracked in ICE-3884
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team