Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagHandler


  public void testFaceletsTag() throws Exception {
    FaceletContext ctx = new MockFaceletContext(facesContext);
    Map<String, Object> attributes = facesContext.getViewRoot().getAttributes();
   
    Object ajaxBean = new Object();
    TagHandler ajaxTag = setupTagHandler("ajaxAliveBean", ajaxBean, true);
   
    ajaxTag.apply(ctx , null);
    assertSame(ajaxBean, attributes.get(AjaxPhaseListener.AJAX_BEAN_PREFIX + "ajaxAliveBean"));

    Object bean = new Object();
    TagHandler tag = setupTagHandler("thatBean", bean, false);
   
    tag.apply(ctx, null);
    assertSame(bean, attributes.get(AjaxPhaseListener.VIEW_BEAN_PREFIX + "thatBean"));
  }
View Full Code Here


    public void testFaceletsTag() throws Exception {
        FaceletContext ctx = new MockFaceletContext(facesContext);
        Map<String, Object> attributes = facesContext.getViewRoot().getAttributes();
        Object ajaxBean = new Object();
        TagHandler ajaxTag = setupTagHandler("ajaxAliveBean", ajaxBean, true);

        ajaxTag.apply(ctx, null);
        assertSame(ajaxBean, attributes.get(AjaxPhaseListener.AJAX_BEAN_PREFIX + "ajaxAliveBean"));

        Object bean = new Object();
        TagHandler tag = setupTagHandler("thatBean", bean, false);

        tag.apply(ctx, null);
        assertSame(bean, attributes.get(AjaxPhaseListener.VIEW_BEAN_PREFIX + "thatBean"));
    }
View Full Code Here

TOP

Related Classes of com.sun.facelets.tag.TagHandler

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.