ICEfaces
  1. ICEfaces
  2. ICE-11073

ace:selectMenu - Selection not shown when component is disabled/readonly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P03
    • Fix Version/s: EE-3.3.0.GA_P04
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      After making a selection for the selectMenu(or if selection is made on render) and then disabling/setting readonly the menu, the selection is not shown. Changing the component to be enabled/readable shows the selection again.

      This is the same issue as descibed in ICE-10048 but with a different component.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows this issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • Click the read only checkbox button. The selection of the menu is no longer shown.
        • Click the read only checkbox again, the selection is shown again.
        Show
        Arran Mccullough added a comment - Attached test case that shows this issue. Steps: Load welcomeICEfaces.jsf Click the read only checkbox button. The selection of the menu is no longer shown. Click the read only checkbox again, the selection is shown again.
        Hide
        Ken Fyten added a comment -

        Arran reports that IF4 trunk doesn't have this issue.

        Show
        Ken Fyten added a comment - Arran reports that IF4 trunk doesn't have this issue.
        Hide
        Arturo Zambrano added a comment -

        r48954: fix to initialize ace:selectMenu instance in the client without setting up interaction listeners when readonly=true and/or disabled=true, in order to be able display the component value

        Show
        Arturo Zambrano added a comment - r48954: fix to initialize ace:selectMenu instance in the client without setting up interaction listeners when readonly=true and/or disabled=true, in order to be able display the component value
        Hide
        Carmen Cristurean added a comment - - edited

        Tested EE-3.3.0-maintenance r. 48954 with attached test case (IE11, Chrome51, FF41); the original issue can no longer be reproduced, however when selection is changed, setting the component to "disabled" will change the selection to the initial "C" value.

        Test case has been checked in here: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/ICE-11073

        Show
        Carmen Cristurean added a comment - - edited Tested EE-3.3.0-maintenance r. 48954 with attached test case (IE11, Chrome51, FF41); the original issue can no longer be reproduced, however when selection is changed, setting the component to "disabled" will change the selection to the initial "C" value. Test case has been checked in here: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/ICE-11073
        Hide
        Arturo Zambrano added a comment -

        r45214: added <ace:ajax /> to ace:selectMenu component to update its value in the server after making a selection

        When toggling the readonly or disabled states, the whole component markup has to be updated in the client. So, if the user makes a selection and the server is not notified of the new value, it will re-render the component with the value the component has in the server. If the component is using ajax, then this is not an issue.

        Show
        Arturo Zambrano added a comment - r45214: added <ace:ajax /> to ace:selectMenu component to update its value in the server after making a selection When toggling the readonly or disabled states, the whole component markup has to be updated in the client. So, if the user makes a selection and the server is not notified of the new value, it will re-render the component with the value the component has in the server. If the component is using ajax, then this is not an issue.
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces EE-3.3.0 maintenance branch r49014. Tomcat 8.

        Show
        Liana Munroe added a comment - Verified ICEfaces EE-3.3.0 maintenance branch r49014. Tomcat 8.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: