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

Submitting and empty alloy:selectThumbRating causes the value to be set to false (thumbs down) on Tomcat 7 (Liferay 6.2 and Pluto 2.0)

    Details

      Description

      This issue also affects other components such as alloy:selectStarRating.

      Steps to reproduce:

      1. Deploy the Alloy Showcase to Liferay 6.2.
      2. Navigate to the alloy:selectThumbRating General example.
      3. Click the Submit button.

      If the bug still exists, false will appear in the model value and the thumbs down icon will be selected.

      If the bug is fixed, no value will appear in the model value and no thumb icon will be selected.

      This bug is due to the fact that Tomcat 7 coerces EL values to 0 or false where possible.

      Tomcat 8 and other app servers do not coerce EL values to 0.

      Workaround

      To workaround this issue start Tomcat 7 with the -Dorg.apache.el.parser.COERCE_TO_ZERO=false property.

      Potential Fix

      A potential fix for this issue would be to add a ServletContextListener to the Alloy and JSF Showcases which calls System.setProperty("org.apache.el.parser.COERCE_TO_ZERO", "false").

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: