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

          People

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

            Dates

            • Created:
              Updated: