7 Replies Latest reply on May 24, 2012 7:35 PM by Sudipto Desmukh

    Command Button not disabled properly

      I am using a commandButton and its partial trigger is set to a table. The reason being that I need to update the label with the number of rows selected in table. And if no rows is selected, it should be disabled. So for the startup I have set the "disabled" attribute to true.
      Now I am facing this problem. The button is disabled. But when I hover the mouse over it, I can see it being highlighted and it seems enabled and I can click it when the mouse is over it. Otherwise its disabled. Why is it behaving like this?
        • 1. Re: Command Button not disabled properly
          Timo Hahn
          Please tell us your jdeversion!

          Can you post the code for the button?
          Any skin applied in your application?

          • 2. Re: Command Button not disabled properly
            JDev version =

            No skins applied.

            <af:panelStretchLayout topHeight="30" id="psl1" styleClass="AFStretchWidth">
            <f:facet name="top">
            <af:panelGroupLayout layout="horizontal" id="pgl1">
            <af:commandButton text="MyButton"
            partialTriggers="pc1:t1" disabled="true"
            <f:facet name="center">
            <af:panelCollection id="pc1" styleClass="AFStretchWidth"
            featuresOff="statusBar wrap freeze formatMenu detachMenuItem">
            <af:table value="#{pageFlowScope.MyBean.tableData}"
            var="row" rowBandingInterval="0" id="t1"
            summary="My table"
            rowSelection="multiple" contentDelivery="lazy"
            <af:column sortable="true"
            headerText="First Column"
            rowHeader="unstyled" id="c1">
            <af:outputText value="Some Text" id="ot1"/>
            <af:column sortable="true"

            headerText="Second Column"
            <af:outputText value="Some Other Text" id="ot2"/>

            • 3. Re: Command Button not disabled properly
              Timo Hahn
              Just tested it in (can check at home later today) and can't reproduce this behavior.
              Your version really is
              Is this a version fro Fusion Applications?

              • 4. Re: Command Button not disabled properly
                Yes the version is
                • 5. Re: Command Button not disabled properly
                  Navaneetha Krishnan Nataraj
                  FYI, I am able to see this behavior in JDeveloper but NOT in JDeveloper 11.1.2

                  • 6. Re: Command Button not disabled properly
                    Don Kleppinger
                    I'm testing an upgrade from to and see the same issue. CommandButton's that are disabled appear to be enabled when you hover over. Clicking shows it disabled again and does nothing.

                    I was able to fix it by adding this to my Skin
                    /* Fix for jdev that is showing disabled buttons as enabled when you hover over them. */
                    background-color: #E5E5E0 !important;
                    background-image: none !important;
                    border-color: #B9B9B4 !important;
                    color: #737373 !important;

                    Edited by: Don Kleppinger on May 24, 2012 1:35 PM
                    • 7. Re: Command Button not disabled properly
                      Sudipto Desmukh
                      Its a regression and has been reported in the ADF EMG Jira Page http://java.net/jira/browse/ADFEMG-23 (Not sure how it becomes a SR/Bug from there though)
                      See last post by Jan -
                      An other layout issue that appeared in and did not exist in is the hover and click buttons highlight on disabled buttons.
                      When you hover or click on disabled icons the layout changes as if it was enabled (both in IE and Firefox).
                      There looks to be a workaround .. see if it works.
                      1 person found this helpful