Package javax.faces.event

Examples of javax.faces.event.PreDestroyViewMapEvent


        fireAndAssert("16", new PostRestoreStateEvent(component));
    }

    @Test
    public void testObservePreDestroyViewMap() {
        fireAndAssert("17", new PreDestroyViewMapEvent(uiViewRoot));
    }
View Full Code Here


        fireAndAssert("17", new PreDestroyViewMapEvent(uiViewRoot));
    }

    @Test
    public void testObservePreDestroySpecificViewMap() {
        fireAndAssert("17a", new PreDestroyViewMapEvent(uiViewRoot));
    }
View Full Code Here

      PostConstructViewMapEvent viewMapEvent = (PostConstructViewMapEvent) event;
      UIViewRoot viewRoot = (UIViewRoot) viewMapEvent.getComponent();
      viewRoot.getViewMap().put(ViewScope.VIEW_SCOPE_CALLBACKS,new HashMap<String, Runnable>());
    } else if (event instanceof PreDestroyViewMapEvent)
    {
      PreDestroyViewMapEvent viewMapEvent = (PreDestroyViewMapEvent) event;
      UIViewRoot viewRoot = (UIViewRoot) viewMapEvent.getComponent();
      Map<String, Runnable> callbacks = (Map<String, Runnable>) viewRoot.getViewMap().get(ViewScope.VIEW_SCOPE_CALLBACKS);
      if (callbacks != null)
      {
        for (Runnable c : callbacks.values())
        {
View Full Code Here

TOP

Related Classes of javax.faces.event.PreDestroyViewMapEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.