ICEfaces
  1. ICEfaces
  2. ICE-10972

required Attribute not functioning with ace:radioButtons component

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: EE-4.1.0.RC1, EE-4.1.0.GA, 4.2.BETA, 4.2
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Tomcat 8, all browsers, ICEfaces 4 trunk r47946, Also an issue with 4.1 release and can be reproduced in the showcase public demo.
    • Assignee Priority:
      P2

      Description

      When submitting a form where ace:radioButtons required=true and no button is selected, the required attribute message does not appear. This is not an issue with the same scenario when using ace:checkboxButtons. Screen shots of each component provided for comparison after following these steps.
      To reproduce
      1.) Use the showcase public demo, navigate to ace:radioButtons > Required Styling.
      2.) When the page first loads there are no radioButtons selected and the panel is styled with the red border.
      3.) Press the Submit Button. The "value is required" message is expected but is not shown.

      Screenshot 1.PNG - ace:radioButtons form submitted with no value selected
      Screenshot 2.PNG - ace:checkButtons form submitted with no value selected
      1. 1.PNG
        14 kB
      2. 2.PNG
        15 kB

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #48131 Tue Feb 23 15:33:01 MST 2016 art.zambrano ICE-10972 introduced new hidden field to submit an empty string when required=true and no radio buttons are selected, in order to trigger the required validation response
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/radiobuttons/RadioButtonsRenderer.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/radiobutton/radiobutton.js

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Liana Munroe
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: