ICEfaces
  1. ICEfaces
  2. ICE-6327

Ajax support for commandButton and commandLink with f:param

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0.1
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      ICEfaces 2.0
    • Workaround Description:
      use f:setPropertyActionListener rather than f:param

      Description


      <f:param> can be added to both commandLink and commandButton, for instance in "basic":


              <h:commandButton id="button1" value="Show/Hide"
                               actionListener="#{basic.toggle}">
              </h:commandButton>
              <h:commandButton id="button1param" value="Show/Hide"
                               actionListener="#{basic.toggle}">
                  <f:param name="commandparam" value="buttonparam" />
              </h:commandButton>
              <h:commandLink id="link1param" value="Show/Hide"
                               actionListener="#{basic.toggle}">
                  <f:param name="commandparam" value="linkparam" />
              </h:commandLink>

      This should still yield Ajax interaction, but a full page refresh is observed with the commandLink and commandButton with f:param.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23730 Wed Jan 05 09:35:24 MST 2011 mircea.toma ICE-6327 Fixed algorithm for determining which elements have their AJAX submission disabled so that it works even when the form element itself is passed in as submitting element. Introduced isAjaxDisabled private function to better capture and isolate the used algorithm. Removed redundant code that triggers the native browser form submission in application.js, used just the approach found in fullSubmit function.
        Files Changed
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/core/src/main/javascript/submit.js
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/core/src/main/javascript/application.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23729 Wed Jan 05 09:29:37 MST 2011 mircea.toma ICE-6327 Fixed algorithm for determining which elements have their AJAX submission disabled so that it works even when the form element itself is passed in as submitting element. Introduced isAjaxDisabled private function to better capture and isolate the used algorithm. Removed redundant code that triggers the native browser form submission in application.js, used just the approach found in fullSubmit function.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/javascript/application.js
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/javascript/submit.js

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ted Goddard
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: