ICEfaces
  1. ICEfaces
  2. ICE-6950

detect custom update processing

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1-Beta, 3.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces, 3rd party component with custom update
    • Affects:
      Compatibility/Configuration

      Description

      A variety of components handle the partial response <update> in a specific way, for instance autocomplete has a custom onsuccess handler that decodes JSON from the response (rather than markup as is typical in an <update>).

      It would be possible for such components to flag these requests in a common way, such as by adding a request parameter. DOMPartialViewContext could then detect this parameter and avoid subtree DOM output and diff.

        Activity

        Hide
        Ted Goddard added a comment -

        The JavaScript that invokes custom update processing should set a request parameter org.icefaces.customUpdate=true. When this is detected by DOMPartialViewContext, the DOM diff would not run for that subtree.

        Show
        Ted Goddard added a comment - The JavaScript that invokes custom update processing should set a request parameter org.icefaces.customUpdate=true. When this is detected by DOMPartialViewContext, the DOM diff would not run for that subtree.
        Hide
        Ted Goddard added a comment -

        Assigning to Ken to dispatch for grimlock implementation.

        Show
        Ted Goddard added a comment - Assigning to Ken to dispatch for grimlock implementation.
        Hide
        Jack Van Ooststroom added a comment -

        I introduced a new POST request parameter named "ice.customUpdate" which can be used identify a custom update. This is handled by the DOMPartialViewContext. The "org.icefaces.subtreeDiff" context parameter can still be used for application wide configuration. However "ice.customUpdate" can be used on a per component base.

        Marking this one as FIXED.

        Show
        Jack Van Ooststroom added a comment - I introduced a new POST request parameter named "ice.customUpdate" which can be used identify a custom update. This is handled by the DOMPartialViewContext. The "org.icefaces.subtreeDiff" context parameter can still be used for application wide configuration. However "ice.customUpdate" can be used on a per component base. Marking this one as FIXED.
        Hide
        Ted Goddard added a comment -

        Prototype is checked in for non-markup responses (ice.customUpdate) but not tested. Further instructions or a test case are required from the component team.

        Show
        Ted Goddard added a comment - Prototype is checked in for non-markup responses (ice.customUpdate) but not tested. Further instructions or a test case are required from the component team.
        Hide
        Nils Lundquist added a comment -

        Custom updating for specified clientIds added in revision 24145.

        Show
        Nils Lundquist added a comment - Custom updating for specified clientIds added in revision 24145.
        Hide
        Ted Goddard added a comment -

        DOM updates in customer POC look reasonable.

        Show
        Ted Goddard added a comment - DOM updates in customer POC look reasonable.

          People

          • Assignee:
            Ken Fyten
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: