ICEfaces
  1. ICEfaces
  2. ICE-9791

icecore:singleSubmit - Not applied to h:commandButton

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P01
    • Fix Version/s: EE-3.3.0.GA_P02
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P2
    • Salesforce Case Reference:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Nest the following f:ajax tag into the h:commandButton:

      <f:ajax execute="@this" render="@all" />
      Show
      Nest the following f:ajax tag into the h:commandButton: <f:ajax execute="@this" render="@all" />

      Description

      When the icecore:singleSubmit tag is used on a form, it isn't getting applied to the h:commandButtons. It does get applied to an h:inputText (and likely other inputs). Clicking on the commandButton causes the standard render=@all execute=@all update.

        Activity

        Hide
        Arran Mccullough added a comment -

        Attach test case that shows the issue. Note: the icefaces.jar, icefaces-ace.jar, and icefaces-compat.jar files need to be added into the war to run.

        Steps:

        • Load welcomeICEfaces.jsf
        • Clicking on singleSubmit button, required message is shown.
        • CLicking on ajax button, expected message is shown.
        • Reviewing the a dev console should show the differences in the rendering.
        Show
        Arran Mccullough added a comment - Attach test case that shows the issue. Note: the icefaces.jar, icefaces-ace.jar, and icefaces-compat.jar files need to be added into the war to run. Steps: Load welcomeICEfaces.jsf Clicking on singleSubmit button, required message is shown. CLicking on ajax button, expected message is shown. Reviewing the a dev console should show the differences in the rendering.
        Hide
        Ken Fyten added a comment - - edited

        According to the SingleSubmit JIRA topic, command components should be supported by singleSubmit:

        Command components usually have javax.faces.component.UICommand as a superclass. Examples of command components are: h:commandButon, h:commandLink and ice:pushButton. With a command component, when singleSubmit="true", triggering an action on this component will submit and execute this component only. This is equivalent to having <f:ajax execute="@this" render="@all"> set inside the standard h: components. When singleSubmit="false", triggering an action on this component will submit and execute the full form that this component is contained within.

        http://www.icesoft.org/wiki/display/ICE/Single+Submit

        Show
        Ken Fyten added a comment - - edited According to the SingleSubmit JIRA topic, command components should be supported by singleSubmit: Command components usually have javax.faces.component.UICommand as a superclass. Examples of command components are: h:commandButon, h:commandLink and ice:pushButton. With a command component, when singleSubmit="true", triggering an action on this component will submit and execute this component only. This is equivalent to having <f:ajax execute="@this" render="@all"> set inside the standard h: components. When singleSubmit="false", triggering an action on this component will submit and execute the full form that this component is contained within. http://www.icesoft.org/wiki/display/ICE/Single+Submit
        Hide
        Mircea Toma added a comment -

        Modified ice.enableSingleSubmit to capture 'click' events fired by input[submit|button|image] and button elements.

        Show
        Mircea Toma added a comment - Modified ice.enableSingleSubmit to capture 'click' events fired by input [submit|button|image] and button elements.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: