Package javax.faces.view.facelets

Examples of javax.faces.view.facelets.CompositeFaceletHandler


        }
        if (h.length == 1)
        {
            return h[0];
        }
        return new CompositeFaceletHandler(h);
    }
View Full Code Here


        FaceletHandler[] fh = new FaceletHandler[this.children.size()];
        for (int i = 0; i < fh.length; i++) {
            fh[i] = ((CompilationUnit) this.children.get(i))
                    .createFaceletHandler();
        }
        return new CompositeFaceletHandler(fh);
    }
View Full Code Here

        FaceletHandler[] fh = new FaceletHandler[this.children.size()];
        for (int i = 0; i < fh.length; i++) {
            fh[i] = ((CompilationUnit) this.children.get(i))
                    .createFaceletHandler();
        }
        return new CompositeFaceletHandler(fh);
    }
View Full Code Here

        }
        if (h.length == 1)
        {
            return h[0];
        }
        return new CompositeFaceletHandler(h);
    }
View Full Code Here

    verify(this.decoratedComponent1).apply(this.ctx, this.parent, TEMPLATE);
  }

  @Test
  public void shouldDecorateMultipleComponent() throws Exception {
    CompositeFaceletHandler nextHandler = new CompositeFaceletHandler(new FaceletHandler[] { this.component1,
        this.component2 });
    given(this.tagConfig.getNextHandler()).willReturn(nextHandler);
    createDecorateAllHandlerAndApply();
    verify(this.decoratedComponent1).apply(this.ctx, this.parent, TEMPLATE);
    verify(this.decoratedComponent2).apply(this.ctx, this.parent, TEMPLATE);
View Full Code Here

  @Test
  public void shouldPreserveUnknown() throws Exception {
    FaceletHandler unknown1 = mockFaceletHandler("unknown1", Type.OTHER);
    FaceletHandler unknown2 = mockFaceletHandler("unknown2", Type.OTHER);
    CompositeFaceletHandler nextHandler = new CompositeFaceletHandler(new FaceletHandler[] { unknown1,
        this.component1, unknown2 });
    given(this.tagConfig.getNextHandler()).willReturn(nextHandler);
    createDecorateAllHandlerAndApply();
    InOrder inOrder = inOrder(unknown1, this.decoratedComponent1, unknown2);
    inOrder.verify(unknown1).apply(this.ctx, this.parent);
View Full Code Here

    FaceletHandler global1 = mockFaceletHandler("global1", Type.VARIABLE_DECLARATION);
    FaceletHandler global2 = mockFaceletHandler("global2", Type.VARIABLE_DECLARATION);
    FaceletHandler local1 = mockFaceletHandler("local1", Type.VARIABLE_DECLARATION);
    FaceletHandler local2 = mockFaceletHandler("local2", Type.VARIABLE_DECLARATION);
    FaceletHandler local3 = mockFaceletHandler("local3", Type.VARIABLE_DECLARATION);
    FaceletHandler nextHandler = new CompositeFaceletHandler(new FaceletHandler[] { global1, global2,
        this.component1, local1, local2, this.component2, local3 });
    given(this.tagConfig.getNextHandler()).willReturn(nextHandler);
    createDecorateAllHandlerAndApply();
    assertThat(this.variableDeclarationHandlers1.getValue(),
        is(equalTo(Arrays.asList(global1, global2, local1, local2))));
View Full Code Here

        FaceletHandler[] fh = new FaceletHandler[this.children.size()];
        for (int i = 0; i < fh.length; i++) {
            fh[i] = ((CompilationUnit) this.children.get(i))
                    .createFaceletHandler();
        }
        return new CompositeFaceletHandler(fh);
    }
View Full Code Here

        FaceletHandler[] fh = new FaceletHandler[this.children.size()];
        for (int i = 0; i < fh.length; i++) {
            fh[i] = ((CompilationUnit) this.children.get(i))
                    .createFaceletHandler();
        }
        return new CompositeFaceletHandler(fh);
    }
View Full Code Here

TOP

Related Classes of javax.faces.view.facelets.CompositeFaceletHandler

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.