ICEfaces
  1. ICEfaces
  2. ICE-6015

Require a standard way to determine if a lifecycle is a push triggered lifecycle.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2.0

      Description

      Problem: Require a standard way to determine if a lifecycle is a push triggered lifecycle.

      - Both in 1.8 and 2.0 there has always been a need for a framework hook that would allow a developer to know if a particular request was the result
      of a push or some user generated request.

      - In 2.0 users request can be distinguished from push request by using an input hidden on a page form and then looking for this parameter name in the
      requestParamaterMap. This is a bit clumsy and would instead prefer to see that the form at the bottom of the page that is responsible for generating the push to have a param marking the push request as a push. Users could check when needed if this parameter was in the requestParameterMap.

      - Application developers could then write a page level phase listener to look for the push parameter and do any push related work before the render
      response phase is called.

      - In most cases the action event that generated the push request could kick off any application scoped model update. But in most application, session
      scoped data would also have to be updated which would have to be deferred to the lifecycle generated by a given push request.

      - There is an existing submit parameter called 'ice.submit.type' that might be adapted to provide the necessary information that a push request is being processed. Reference for the existing 'ice.submit.type' parameter: http://jira.icefaces.org/browse/ICE-5832?focusedCommentId=29786&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_29786

        Activity

        Hide
        Ken Fyten added a comment -

        Please review this req.

        Show
        Ken Fyten added a comment - Please review this req.
        Hide
        Ted Goddard added a comment -

        ice.submit.type should be sufficient to identify JSF lifecycles not triggered by user events.

        Show
        Ted Goddard added a comment - ice.submit.type should be sufficient to identify JSF lifecycles not triggered by user events.
        Hide
        Ken Fyten added a comment -

        ice.push

        Show
        Ken Fyten added a comment - ice.push
        Hide
        Mircea Toma added a comment -

        Added ice.submit.type=ice.push parameter to the requests used for retrieving the asynchronous updates.

        Show
        Mircea Toma added a comment - Added ice.submit.type=ice.push parameter to the requests used for retrieving the asynchronous updates.
        Hide
        Mark Collette added a comment -

        In ICE-570, now using this functionality to detect when a lifecycle is for a server push, so can propagate certain faces messages.

        Show
        Mark Collette added a comment - In ICE-570, now using this functionality to detect when a lifecycle is for a server push, so can propagate certain faces messages.
        Hide
        Mark Collette added a comment -
        Show
        Mark Collette added a comment - ICE-5750 .

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: