Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.0-m04
    • Fix Version/s: None
    • Component/s: ajax
    • Labels:
      None
    • Environment:

      glassfish 3.1.2

      Description

      Attach f:ajax to a button and set the execute to "@none". However, the whole form is sent to server. Server of course tries to evaluate and execute the whole form.

      The problem code is jsf.js
      line 1851: var viewState = jsf.getViewState(form);

      The viewstate is essentially the whole form in www/url-form-encoded format.
      Late at line 1949: the viewState is passed as queryStringg

      line 1949:ajaxEngine.queryString = viewState;

      -jason

        Activity

        Hide
        rogerk added a comment -
        Show
        rogerk added a comment - Filed as spec issue: http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1128
        Hide
        rogerk added a comment -

        This is a spec issue because currently the spec states that the getViewState function should be called to get the state of the form (during the request process).

        Show
        rogerk added a comment - This is a spec issue because currently the spec states that the getViewState function should be called to get the state of the form (during the request process).
        Hide
        jasonzhang2002gmailcom added a comment -

        Actually, this is my fault.
        Although client sends the whole form to server, but server only processes those specified in execute attributes. Query parameters not in executes are ignored by server.
        So server and client are correct.

        In my first trial, server executes the whole form. It is separate isssue. I will report it as another issue.

        -jason

        Show
        jasonzhang2002gmailcom added a comment - Actually, this is my fault. Although client sends the whole form to server, but server only processes those specified in execute attributes. Query parameters not in executes are ignored by server. So server and client are correct. In my first trial, server executes the whole form. It is separate isssue. I will report it as another issue. -jason

          People

          • Assignee:
            rogerk
            Reporter:
            jasonzhang2002gmailcom
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: