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

        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
        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.

          People

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

            Dates

            • Created:
              Updated: