maximumSeverity « IceFaces « JSF Q&A





1. facesContext.maximumSeverity not found    icefaces.org

Hello, Migrating from myfaces to icefaces, the following code gives me problem : #{!empty facesContext.maximumSeverity} The stacktrace is : javax.faces.el.EvaluationException: /layout/incl/smsform.xhtml @25,67 rendered="#{!empty facesContext.maximumSeverity}": Exception getting value of property maximumSeverity of base of type : com.icesoft.faces.context.BridgeFacesContext at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60) at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075) at com.icesoft.faces.component.ext.HtmlPanelGroup.isRendered(HtmlPanelGroup.java:259) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:508) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:528) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) at ...

2. facesContext.maximumSeverity value will not be resetted    icefaces.org

Hi, it seems that the value of the BridgeFacesContext#maxSeverity member not will be resetted in this case: 1. Input Form with validation (e.g. required="true") 2. Submit Form without value 3. The FacesMessage Validation Error occurs, #{facesContext.maximumSeverity} gives the correct value "ERROR" 4. Enter a value and submit the Form again 5. The Validation Error disappears, but maximumSeverity still have the value ...