MyFaces Core
  1. MyFaces Core
  2. MYFACES-3379

PostAddToViewEvent should be propagated to UIViewRoot


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.10, 2.1.4
    • Component/s: JSR-314
    • Labels:


      Doing some tests about PostAddToViewEvent, I notice this event is not called for UIViewRoot after the view is built.

      The solution is do it manually on buildView() method after the view is populated.

      There is another bug in 2.1.x branch related to markInitialState call. In MYFACES-3367, it was used "javax.faces.IS_BUILDING_INITIAL_STATE" to detect if the view is build by first time, but in 2.1.x it is used to indicate if we call markInitialState or not. We need another different flag for that purpose, so I change it to "org.apache.myfaces.MARK_INITIAL_STATE" and fix "javax.faces.IS_BUILDING_INITIAL_STATE" to set and remove it like in 2.0.x branch.


        Leonardo Uribe created issue -
        Leonardo Uribe made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.10 [ 12317870 ]
        Fix Version/s 2.1.4 [ 12317868 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        15m 18s 1 Leonardo Uribe 27/Oct/11 16:35
        Resolved Resolved Closed Closed
        19d 8h 46m 1 Leonardo Uribe 16/Nov/11 01:22


          • Assignee:
            Leonardo Uribe
            Leonardo Uribe
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: