• Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: Lifecycle
    • Labels:


      In JSF 2.0 a PreRenderViewEvent was added that is published just before a view is rendered, but there's no corresponding event published just after rendering a view.

      There are several alternatives for this, but none of them is really perfect. A per-view PhaseListener can be used, but it fires relatively early and sticks around after a post-back which may be undesirable. A global PhaseListener that picks up a delegating listener in request scope is another option that does work, but is not as intuitively clear (we use this approach in OmniFaces' CallbackPhaseListener).

      I therefor propose to add a PostRenderViewEvent that is published right after a view is rendered.

      Among the use cases for such an event is doing per request clean-ups; for instance a view scoped backing bean where a value is set such that for one particular request an item is rendered with some emphasis and then after the first post-back rendered normally again.

        Issue Links


          arjan tijms created issue -
          arjan tijms made changes -
          Field Original Value New Value
          Attachment i_spec_1135-draft.patch [ 51188 ]
          Ed Burns made changes -
          Assignee Ed Burns [ edburns ]
          Ed Burns made changes -
          Priority Major [ 3 ] Trivial [ 5 ]
          Manfred Riem made changes -
          Priority Trivial [ 5 ] Major [ 3 ]
          arjan tijms made changes -
          Attachment changebundle.txt [ 54370 ]
          Attachment [ 54371 ]
          arjan tijms made changes -
          Assignee Manfred Riem [ mriem ]
          Manfred Riem made changes -
          Link This issue is blocked by JAVASERVERFACES-3747 [ JAVASERVERFACES-3747 ]
          Manfred Riem made changes -
          Assignee Manfred Riem [ mriem ] arjan tijms [ arjan_t ]
          arjan tijms made changes -
          Assignee arjan tijms [ arjan_t ] Manfred Riem [ mriem ]
          Manfred Riem made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.3 [ 16372 ]
          Resolution Fixed [ 1 ]


            • Assignee:
              Manfred Riem
              arjan tijms
            • Votes:
              5 Vote for this issue
              4 Start watching this issue


              • Created: