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

Setting required="true" for h:inputFile, bridge:inputFile, or alloy:inputFile has no effect

    Details

      Description

      Setting required="true" for h:inputFile and bridge:inputFile has no effect in a portlet environment.

      Setting required="true" for alloy:inputFile has no effect in both a portlet and webapp environment.

      Steps to reproduce:

      1. Create a portlet with this view:
        <alloy:form enctype="multipart/form-data">
                <h:inputFile id="h_inputFile" required="true" requiredMessage="Value is required." />
                <alloy:message for="h_inputFile" />
                <alloy:inputFile id="alloy_inputFile" required="true" requiredMessage="Value is required." />
                <alloy:message for="alloy_inputFile" />
                <bridge:inputFile id="bridge_inputFile" required="true" requiredMessage="Value is required." />
                <alloy:message for="bridge_inputFile" />
            <alloy:commandButton ajax="false" styleClass="run-test-button" value="Run Test" />
        </alloy:form>
        
      1. Click the Run Test button.

      If the bug still exists, no "Value is required." messages will appear.

      If the bug is fixed, three "Value is required." messages will appear.

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann (Inactive)
              Reporter:
              kyle.stiemann Kyle Stiemann (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                alloy-2.0.1
                bridge-impl-2.1.0
                bridge-impl-3.1.0
                bridge-impl-4.1.0
                showcase-3.0.1
                alloy-3.0.1