Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Component/s: Ajax/JavaScript
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      907
    • Status Whiteboard:
      Hide

      size_medium importance_large

      Show
      size_medium importance_large

      Description

      The current JavaScript Ajax API should be improved to have a simplified version
      that allows to "just" render (several) components, via GET.

      A use case would be:
      -You have a client side callback that get's invoked (e.g. when a
      Bayeux/WebSocket notification arrives). Inside the callback you are simply only
      interested in (re)rendering some components.

      Today it would look like:

      webSocket.onmessage = function(evt)
      {
      // work with evt.data.....
      jsf.ajax.request('jsfForm:dummyBtn',null,

      {render:'listComp'}

      );
      };

        Activity

        Hide
        mwessendorf added a comment -

        Perhaps we could have something like:

        /**

        • Issues an Http.GET request to render a set of components.
        • @param varargs that specify a list of components to re-render
          */
          jsf.ajax.renderRequest(varargs);
        Show
        mwessendorf added a comment - Perhaps we could have something like: /** Issues an Http.GET request to render a set of components. @param varargs that specify a list of components to re-render */ jsf.ajax.renderRequest(varargs);
        Hide
        werpu added a comment -

        I think this falls into a similar category like the ajaxed fileuploads, you have
        to have a mechanism which allows a switchable transport layer.

        We have the basics in myfaces already implemented, due to prototyping the ajax
        fileupload for jsf 2.2, but a GET is missing on our side as well, but can be
        easily added without too much effort.

        Show
        werpu added a comment - I think this falls into a similar category like the ajaxed fileuploads, you have to have a mechanism which allows a switchable transport layer. We have the basics in myfaces already implemented, due to prototyping the ajax fileupload for jsf 2.2, but a GET is missing on our side as well, but can be easily added without too much effort.
        Hide
        mwessendorf added a comment -

        For cases like this, another limitation is not only the POST. Also the fact that
        'source' is needed..

        jsf.ajax.request(source,null,

        {render.... }

        );

        the event can be NULL, but source (currently) not.

        Therefore we may need a new function, e.g. renderRequest() - as said before

        Show
        mwessendorf added a comment - For cases like this, another limitation is not only the POST. Also the fact that 'source' is needed.. jsf.ajax.request(source,null, {render.... } ); the event can be NULL, but source (currently) not. Therefore we may need a new function, e.g. renderRequest() - as said before
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        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.
        Hide
        Manfred Riem added a comment -

        Setting priority to Critical

        Show
        Manfred Riem added a comment - Setting priority to Critical

          People

          • Assignee:
            Unassigned
            Reporter:
            mwessendorf
          • Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: