Examples of TagHandler


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

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

Examples of javax.faces.view.facelets.TagHandler

       
        @Override
        public TagHandler createTagHandler(String ns, String localName,
                TagConfig tag) throws FacesException
        {
            TagHandler tagHandler = super.createTagHandler(ns, localName, tag);
           
            if (tagHandler == null && _compositeLibraryName != null && containsNamespace(ns))
            {
                ResourceHandler resourceHandler =
                    FacesContext.getCurrentInstance().getApplication().getResourceHandler();
View Full Code Here

Examples of javax.faces.view.facelets.TagHandler

    }


    public TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException {

        TagHandler result = super.createTagHandler(ns, localName, tag);

        if (result == null) {
            ComponentConfig componentConfig =
                  new ComponentConfigWrapper(tag, CompositeComponentImpl.TYPE, null);
            result = new CompositeComponentTagHandler(
View Full Code Here

Examples of javax.faces.view.facelets.TagHandler

    }


    public TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException {

        TagHandler result = super.createTagHandler(ns, localName, tag);

        if (result == null) {
            ComponentConfig componentConfig =
                  new ComponentConfigWrapper(tag, CompositeComponentImpl.TYPE, null);
            result = new CompositeComponentTagHandler(
View Full Code Here

Examples of javax.faces.view.facelets.TagHandler

       
        @Override
        public TagHandler createTagHandler(String ns, String localName,
                TagConfig tag) throws FacesException
        {
            TagHandler tagHandler = super.createTagHandler(ns, localName, tag);
           
            if (tagHandler == null && _compositeLibraryName != null && containsNamespace(ns))
            {
                ResourceHandler resourceHandler =
                    FacesContext.getCurrentInstance().getApplication().getResourceHandler();
View Full Code Here

Examples of javax.faces.view.facelets.TagHandler

       
        @Override
        public TagHandler createTagHandler(String ns, String localName,
                TagConfig tag) throws FacesException
        {
            TagHandler tagHandler = super.createTagHandler(ns, localName, tag);
           
            if (tagHandler == null && _compositeLibraryName != null && containsNamespace(ns))
            {
                for (String defaultSuffix : _defaultSuffixesArray)
                {
View Full Code Here

Examples of javax.faces.view.facelets.TagHandler

       
        @Override
        public TagHandler createTagHandler(String ns, String localName,
                TagConfig tag) throws FacesException
        {
            TagHandler tagHandler = super.createTagHandler(ns, localName, tag);
           
            if (tagHandler == null && _compositeLibraryName != null && containsNamespace(ns))
            {
                String resourceName = localName + ".xhtml";
                // MYFACES-3308 If a composite component exists, it requires to
View Full Code Here

Examples of javax.faces.view.facelets.TagHandler

       
        @Override
        public TagHandler createTagHandler(String ns, String localName,
                TagConfig tag) throws FacesException
        {
            TagHandler tagHandler = super.createTagHandler(ns, localName, tag);
           
            if (tagHandler == null && _compositeLibraryName != null && containsNamespace(ns))
            {
                for (String defaultSuffix : _defaultSuffixesArray)
                {
View Full Code Here

Examples of javax.faces.view.facelets.TagHandler

    }


    public TagHandler createTagHandler(String ns, String localName, TagConfig tag) throws FacesException {

        TagHandler result = super.createTagHandler(ns, localName, tag);

        if (result == null) {
            ComponentConfig componentConfig =
                  new ComponentConfigWrapper(tag, CompositeComponentImpl.TYPE, null);
            result = new CompositeComponentTagHandler(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.