This issue also affects other components such as alloy:selectStarRating.
Steps to reproduce:
- Deploy the Alloy Showcase to Liferay 6.2.
- Navigate to the alloy:selectThumbRating General example.
- 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.
To workaround this issue start Tomcat 7 with the -Dorg.apache.el.parser.COERCE_TO_ZERO=false property.
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").