Package javax.faces.component.html

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


    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

        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

   
    public UIPanel getPanel()
    {
        if (panel == null)
        {
            panel = new HtmlPanelGroup();
            if (FacesContext.getCurrentInstance().isPostback())
            {
                // Just try to mess the binding. In theory this does
                // not have effect, because the binding with children
                // or facets should be restored fully.
View Full Code Here

        if (!context.isPostback())
        {

            UIComponent originalComponent = getChildren().remove(0);

            HtmlPanelGroup panelGroup = new HtmlPanelGroup();
            panelGroup
                    .setStyle("border: 1px dashed blue; padding: 5px; margin: 5px");
            getChildren().add(panelGroup);

            // Move original HtmlInputText inside new HtmlPanelGroup

            panelGroup.getChildren().add(originalComponent);
        }
        else
        {
            // If the algorithm do a refresh, the inputText is added again, but since it is inside
            // the HtmlPanelGroup, it is not affected by the c:if add/delete algorithm. We need to
View Full Code Here

    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

        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

        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

    column.setValueExpression("filterValue", (ValueExpression) Utils.resolveExpression("#{inmobleForm.filterValues[" + idColumna + "]}"))
   
   
    // 2.-construim el <h:panelGroup> -- Facet header
    // ----------------------------------------------
    HtmlPanelGroup panelGroup = new HtmlPanelGroup();
    panelGroup.setTransient(true);
 
    HtmlOutputText otPanelGroup = buildOutputText(
              "sfc_" + idColumna.toString(),
              (ValueExpression) Utils.resolveExpression(nomColumna.toString()));
   
    panelGroup.getChildren().add(otPanelGroup);
   
   
   

    // 1- en funcio del tipus de control UI (ICHK,ITXT,...) de la caracterisitca
    // cal construir un control UI o una altre
 
      TipusControl enumControl = TipusControl.valueOf(tipusControl);
     
    switch (enumControl) {
     
      case ITXT:  // ITXT
       
        ValueExpression v4;
        HtmlInputText itPanelGroup;
         
        // 1- en funcio del tipus de COLUMNA (VARCHAR,INTEGER,...) cal construir un FilterField o una altre
        // amb operador numerics, o fins i tot de cadenes
        // aixo a partir de la taula caracteristiques
         
            TipusColumna enumColumna = TipusColumna.valueOf(tipusColumna);
           
            switch (enumColumna) {
         
            // SI ES INTEGER HEM D'AFEGIR ELS BUTONS DELS OPERADORS (<=, =,...) 
            case INT:  // TIPUS COLUMNA BD INTEGER
             
             
              HtmlPanelGroup butoneraNum = butoneraNumerica (
                  idColumna,
                  "#{inmobleForm.columnesOperacions[" + idColumna + "]}",
                  "#{inmobleForm.filterValues[" + idColumna + "]}",
                  nomColumna,
                  null,
View Full Code Here

        valueOutput.setValueExpression("value",
            createValueExpression("#{dataItem.value}", String.class));
        valueColumn.getChildren().add(valueOutput);

        // Finally add the datatable to <h:panelGroup binding="#{myBean.actionDataTableGroup}">.
        actionDataTableGroup = new HtmlPanelGroup();
        actionDataTableGroup.getChildren().add(actionDataTable);
    }
View Full Code Here

TOP

Related Classes of javax.faces.component.html.HtmlPanelGroup

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.