Examples of HtmlPanelGroup


Examples of javax.faces.component.html.HtmlPanelGroup

            label.getChildren().clear();
    }
   
    protected void addRequiredMark(HtmlOutputLabel label)
    {
        HtmlPanelGroup span = new HtmlPanelGroup();
        span.setStyleClass("required");
        HtmlOutputText text = new HtmlOutputText();
        text.setValue("*");
        span.getChildren().add(text);
        label.getChildren().add(span);
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

{
  if (!(component instanceof HtmlPanelGroup))
  {
    throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlPanelGroup");
  }
  HtmlPanelGroup comp = (HtmlPanelGroup)component;

  super.setProperties(component);

  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_layout != null)
  {
    comp.setValueExpression("layout", _layout);
  }
}
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

        boolean span = false;

        // will be SPAN or DIV, depending on the layout attribute value
        String layoutElement = HTML.SPAN_ELEM;

        HtmlPanelGroup panelGroup = (HtmlPanelGroup) component;

        // if layout is 'block', render DIV instead SPAN
        String layout = panelGroup.getLayout();
        if (layout != null && layout.equals(LAYOUT_BLOCK_VALUE))
        {
            layoutElement = HTML.DIV_ELEM;
        }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

    public void setUp() throws Exception
    {
        super.setUp();

        panelGroup = new HtmlPanelGroup();

        HtmlOutputText panelChildOutputText = new HtmlOutputText();
        panelChildOutputText.setValue(PANEL_CHILD_TEXT);
        panelGroup.getChildren().add(panelChildOutputText);
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

        Collection<String> value = new ArrayList<String>();
        value.add("value#1");
        value.add("value#2");
        uidata.setValue(value);
        // header facet
        UIComponent headerFacet = new HtmlPanelGroup();
        uidata.setHeader(headerFacet);
        // footer facet
        UIComponent footerFacet = new HtmlPanelGroup();
        uidata.setFooter(footerFacet);
        // first child
        UIComponent child1 = new UIColumn();
        // facet of first child
        UIComponent facetOfChild1 = new HtmlPanelGroup();
        child1.getFacets().put("someFacet", facetOfChild1);
        // child of first child
        UIOutput childOfChild1 = new UIOutput();
        child1.getChildren().add(childOfChild1);
        uidata.getChildren().add(child1);
        // second child (should not be processed --> != UIColumn)
        UIComponent child2 = new HtmlPanelGroup();
        uidata.getChildren().add(child2);
        VisitCallback callback = null;
       
        IMocksControl control = EasyMock.createControl();
        VisitContext visitContextMock = control.createMock(VisitContext.class);
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

    public void setUp() throws Exception
    {
        super.setUp();

        panelGroup = new HtmlPanelGroup();

        HtmlOutputText panelChildOutputText = new HtmlOutputText();
        panelChildOutputText.setValue(PANEL_CHILD_TEXT);
        panelGroup.getChildren().add(panelChildOutputText);
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

        Collection<String> value = new ArrayList<String>();
        value.add("value#1");
        value.add("value#2");
        uidata.setValue(value);
        // header facet
        UIComponent headerFacet = new HtmlPanelGroup();
        headerFacet.setId("headerFacet");
        uidata.setHeader(headerFacet);
        // footer facet
        UIComponent footerFacet = new HtmlPanelGroup();
        footerFacet.setId("footerFacet");
        uidata.setFooter(footerFacet);
        // first child
        UIComponent child1 = new UIColumn();
        // facet of first child
        UIComponent facetOfChild1 = new HtmlPanelGroup();
        child1.getFacets().put("someFacet", facetOfChild1);
        // child of first child
        UIOutput childOfChild1 = new UIOutput();
        childOfChild1.setId("childOfColumn");
        child1.getChildren().add(childOfChild1);
        uidata.getChildren().add(child1);
        // second child (should not be processed --> != UIColumn)
        UIComponent child2 = new HtmlPanelGroup();
        uidata.getChildren().add(child2);
        VisitCallback callback = null;
       
        IMocksControl control = EasyMock.createControl();
        VisitContext visitContextMock = control.createMock(VisitContext.class);
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

   
    public HtmlPanelGroup getPanel1()
    {
        if (panel1 == null)
        {
            panel1 = new HtmlPanelGroup();
        }
        return panel1;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

           
            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            panel3 = new HtmlPanelGroup();
            Map<String, Object> attributes = new HashMap<String, Object>();
            attributes.put("src", "/staticPageBinding3_1.xhtml");
            UIComponent component = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/facelets",
                "include", attributes);
View Full Code Here

Examples of javax.faces.component.html.HtmlPanelGroup

           
            ViewDeclarationLanguage vdl = facesContext.getApplication().
                getViewHandler().getViewDeclarationLanguage(
                    facesContext, facesContext.getViewRoot().getViewId());
           
            panel4 = new HtmlPanelGroup();

            Map<String, Object> attributes = new HashMap<String, Object>();
            UIComponent cc = vdl.createComponent(facesContext,
                "http://java.sun.com/jsf/composite/testComposite",
                "dynComp_1", attributes);
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.