ICEfaces
  1. ICEfaces
  2. ICE-7102

<f:ajax disabled="true"> doesn't work on commandButtons within tables

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: EE-2.0.0.GA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mojarra 2.1.2

      Description

      <f:ajax disabled="true"/> doesn't disable Ajax on commandButtons within tables. Example:

                     <ice:dataTable id="dataTable" var="var" value="#{myBean.list}">
      <ice:column id="column1">
      <h:outputText value="#{var}"/>
      </ice:column>
      <ice:column id="actionColumn">
      <h:commandButton id="tableButton" action="#{myBean.submit}" value="Do it">
      <f:ajax disabled="true"/>
      </h:commandButton>
      </ice:column>
      </ice:dataTable>

      Assumption: The hidden field holding the clientIds of the components with ajax disabled is missing the row number in the clientId for the commandButton:
      <input type="hidden" value=" myForm:dataTable:tableButton " id="myForm:ajaxDisabled" disabled="true" style="">

      The actual clientId of the command buttons are myForm:dataTable:0:tableButton and so on.

        Issue Links

          Activity

          Hide
          Adrian Gygax added a comment -

          Attached example application to reproduce the bug

          Show
          Adrian Gygax added a comment - Attached example application to reproduce the bug
          Hide
          Ted Goddard added a comment -

          Do you have a workaround for this?

          Show
          Ted Goddard added a comment - Do you have a workaround for this?
          Hide
          Adrian Gygax added a comment -

          I don't have a general workaround for this bug. We just implemented our specific use case in a different way so this bug is no priority issue for us.

          Show
          Adrian Gygax added a comment - I don't have a general workaround for this bug. We just implemented our specific use case in a different way so this bug is no priority issue for us.

            People

            • Assignee:
              Unassigned
              Reporter:
              Adrian Gygax
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: