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

        Hide
        Arturo Zambrano added a comment -

        r48131: 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

        Testing notes: please test combinations of required=true and required=false with a preloaded value and without it, in conjunction with the clear and reset functionality of ace:pushButton

        Show
        Arturo Zambrano added a comment - r48131: 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 Testing notes: please test combinations of required=true and required=false with a preloaded value and without it, in conjunction with the clear and reset functionality of ace:pushButton
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r48138. Tomcat 8, FF 43, Chrome 48, IE 11, 10, 9, 8.
        New test application /ICE-10972.jsf added to:
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/radioButtons

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r48138. Tomcat 8, FF 43, Chrome 48, IE 11, 10, 9, 8. New test application / ICE-10972 .jsf added to: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/radioButtons

          People

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

            Dates

            • Created:
              Updated:
              Resolved: