Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1525

Provide a way to provide a way for components to handle validation for required fields with "onchange" behavior rather than "onblur" behavior

    Details

      Description

      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>
      

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                liferay-faces-3.0.2-legacy-ga3
                liferay-faces-3.0.2-ga3
                liferay-faces-3.1.2-ga3