Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.0-alpha
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      browser independent javascript

      Description

      Here's the proposal for MyFaces 2.0 extensions to the JSR 314 AJAX API:

      proposed API (all additional attribute are optional, so spec conformant requests are still supportet):
      jsf.ajax.request(this, event, {execute: (componentIds), render: (componentIds), myfaces:

      {pps: (true/false), queuesize: (int), errorlevel: (warning/error/fatal)}

      )

      And here is what the additional attributes are meant to do:
      pps:
      If set to true, the PPS (partial page submit) feature becomes active. Only the elements numbered in attribute execute will become submitted.

      queuesize:
      The desired size of the request queue. For most applications it makes sense to set this to 1. Default is unlimited.

      errorlevel:
      Will bring up an alert box displaying Javascript errors. This is very helpful for debugging purposes. Possible level values are: warning, error, fatal, none. default is 'none'.

        Activity

        Hide
        Ganesh Jung added a comment -

        myfaces:queuesize, myfaces:errorlovel and myfaces:pps now functional

        Show
        Ganesh Jung added a comment - myfaces:queuesize, myfaces:errorlovel and myfaces:pps now functional
        Hide
        Ganesh Jung added a comment -

        Extension attribute submit changed to pps:

        Extension attribute submit was meant to contain the componentIds that must be submitted and processed on the server in phase 2-4.

        It became clear now, that the componentIds submitted with execute are the ones that must be processed on the server side in phase 2-4. Still, all form input must be submitted according to the spec. Extension attribute pps setting to true means to submit only the components named in the execute attribute thus making the AJAX call a lot faster.

        Show
        Ganesh Jung added a comment - Extension attribute submit changed to pps: Extension attribute submit was meant to contain the componentIds that must be submitted and processed on the server in phase 2-4. It became clear now, that the componentIds submitted with execute are the ones that must be processed on the server side in phase 2-4. Still, all form input must be submitted according to the spec. Extension attribute pps setting to true means to submit only the components named in the execute attribute thus making the AJAX call a lot faster.
        Hide
        Ganesh Jung added a comment -

        Reduced the extensions to "submit", "queuesize" and "errorlevel". Removed "disable", "loadingbar", "execbefore" and "execafter", because they are covered by the event listeners.

        Show
        Ganesh Jung added a comment - Reduced the extensions to "submit", "queuesize" and "errorlevel". Removed "disable", "loadingbar", "execbefore" and "execafter", because they are covered by the event listeners.

          People

          • Assignee:
            Ganesh Jung
            Reporter:
            Ganesh Jung
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 48h
              48h
              Remaining:
              Remaining Estimate - 48h
              48h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development