javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1098

f:ajax exeucte always sends all the fields of the wrapping form

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Ajax/JavaScript
    • Labels:
      None

      Description

      f:ajax doesn't obey the 'execute' attribute but always sends all the fields in a form. Mojarra does, however, only process the listed fields as supposed. However, excess fields shouldn't be sent because it increases request size.

      Recplicate with:

      <h:form id="form1">
      <h:commandButton>
      <h:inputText id="field1" />
      <h:inputText id="field1x" />
      <f:ajax execute="field1" />
      </h:commandButton>
      </h:form>

      On button click, both fields are sent (but only field1 would be processed).

      See for further info: http://stackoverflow.com/questions/3889894/jsf-2-0-why-does-fajax-send-all-the-form-fields-and-not-only-those-marked-with

      See: http://java.net/jira/browse/JAVASERVERFACES-1908

        Activity

        rogerk created issue -
        Hide
        Darious3 added a comment -

        PrimeFaces has recently implemented this, would be great to have this in the spec.

        Show
        Darious3 added a comment - PrimeFaces has recently implemented this, would be great to have this in the spec.
        Hide
        kithouna added a comment -

        Must have feature for JSF 2.3. This really shouldn't be that hard, should it?

        Show
        kithouna added a comment - Must have feature for JSF 2.3. This really shouldn't be that hard, should it?
        Hide
        arjan tijms added a comment -

        An implementation duplicate: JAVASERVERFACES-1841

        Show
        arjan tijms added a comment - An implementation duplicate: JAVASERVERFACES-1841
        Ed Burns made changes -
        Field Original Value New Value
        Fix Version/s 2.3 [ 16372 ]
        Fix Version/s 2.2 [ 10403 ]
        Ed Burns made changes -
        Assignee rogerk [ rogerk ]
        Hide
        Ed Burns added a comment -

        Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
        Ed Burns made changes -
        Priority Major [ 3 ] Trivial [ 5 ]
        Fix Version/s 2.3 [ 16372 ]
        Ed Burns made changes -
        Priority Trivial [ 5 ] Major [ 3 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            rogerk
          • Votes:
            11 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: