-
Type:
New Feature
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: liferay-faces-3.0.2-legacy-ga3, liferay-faces-3.0.2-ga3, liferay-faces-3.1.2-ga3
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests, Liferay Faces Util
-
Labels:None
Problem Background:
The ICEfaces ace:textEntry component only suppors the "onblur" event when used with ace:ajax. In the case of required="true", the JSF PROCESS_VALIDATIONS phase will add a UIInput.REQUIRED_MESSAGE_ID FacesMessage when the user tabs-out of the field.
This issue describes a new feature that provides a way for components to handle validation for required fields with "onchange" behavior rather than "onblur" behavior. By specifying the following in the WEB-INF/faces-config.xml descriptor of a portlet, the FacesMessages will be removed which approximates the behavior of the "onchange" event:
<partial-view-context-factory>com.liferay.faces.util.context.PartialViewContextFactoryOnChangeImpl</partial-view-context-factory>