Examples of HtmlSelectBooleanCheckbox


Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox


    @Override
    protected UIComponent createComponentToTest()
    {
        return new HtmlSelectBooleanCheckbox();
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox

  {
       
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
   
    final HtmlSelectBooleanCheckbox checkbox = (HtmlSelectBooleanCheckbox) application.createComponent(HtmlSelectBooleanCheckbox.COMPONENT_TYPE);

    checkbox.setId("checkbox_" + displayValue)
    checkbox.setTransient(true);
   
   
    //////////////checkbox.setOnclick("alert('hola')");  funciona
    checkbox.setValueExpression("value", bindingValue);
    /*afegirAjax(
        checkbox,
        "click",
        renderList,
View Full Code Here

Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox

  HtmlSelectBooleanCheckbox cbx;

  public HtmlSelectBooleanCheckbox getContextMenuEnabled() {
    if (cbx == null) {
      cbx = new HtmlSelectBooleanCheckbox();
      cbx.setId("cbxcontextmenu");
      cbx.setSelected(false);
    }
    return cbx;
  }
View Full Code Here

Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox

    }
   
    HtmlSelectBooleanCheckbox cbx;
    public HtmlSelectBooleanCheckbox getContextMenuEnabled(){
      if(cbx == null){
        cbx = new HtmlSelectBooleanCheckbox();
        cbx.setId("cbxcontextmenu");
        cbx.setSelected(false);
      }
      return cbx;
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox

        Assert.assertEquals("/my/image.png", img1.getUrl());
       
        HtmlCommandButton input1 = (HtmlCommandButton) form.findComponent("input1");
        Assert.assertNotNull(input1);
       
        HtmlSelectBooleanCheckbox input2 = (HtmlSelectBooleanCheckbox) form.findComponent("input2");
        Assert.assertNotNull(input2);
       
        HtmlInputText input3 = (HtmlInputText) form.findComponent("input3");
        Assert.assertNotNull(input3);
View Full Code Here

Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox

  headerTable.setColumns(3);
  headerTable.setStyleClass("sectionHeader");
  headerTable.setSummary(msgBroker.retrieveMessage("catalog.general.designOnly"));
  headerTable.setOnclick(sbOnclick.toString());
 
  HtmlSelectBooleanCheckbox checkBox = new HtmlSelectBooleanCheckbox();
  checkBox.setId(sCheckboxId);
  checkBox.setSelected(getOpen());
  checkBox.setStyle("display:none;");
  headerTable.getChildren().add(checkBox);
 
  HtmlGraphicImage img = new HtmlGraphicImage();
  img.setId(sImgId);
  setGraphicUrl(img);
View Full Code Here

Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox

    HtmlPanelGrid headerTable = new HtmlPanelGrid();
    headerTable.setColumns(2);
    headerTable.setStyleClass("optionalSectionHeader");
    headerTable.setSummary(msgBroker.retrieveMessage("catalog.general.designOnly"));
   
    HtmlSelectBooleanCheckbox checkBox = new HtmlSelectBooleanCheckbox();
    checkBox.setId(sCheckboxId);
    checkBox.setSelected(getOpen());
    checkBox.setOnclick(sbOnclick.toString());
    headerTable.getChildren().add(checkBox);
   
    HtmlOutputLabel caption = new HtmlOutputLabel();
    // even label has to have unique id (for GlassFish)
    caption.setId(sCheckboxId+"label");
    caption.setFor(sCheckboxId);
    caption.setValue(sCaption);
    caption.setStyleClass("sectionCaption");
    headerTable.getChildren().add(caption);
    panel.getChildren().add(headerTable);   
   
  } else {
   
    HtmlPanelGrid headerTable = new HtmlPanelGrid();
    headerTable.setColumns(3);
    headerTable.setStyleClass("mandatorySectionHeader");
    headerTable.setSummary(msgBroker.retrieveMessage("catalog.general.designOnly"));
    headerTable.setOnclick(sbOnclick.toString());
   
    HtmlSelectBooleanCheckbox checkBox = new HtmlSelectBooleanCheckbox();
    checkBox.setId(sCheckboxId);
    checkBox.setSelected(getOpen());
    //checkBox.setOnclick(sbOnclick.toString());
    checkBox.setStyle("display:none;");
    headerTable.getChildren().add(checkBox);
   
    HtmlGraphicImage img = new HtmlGraphicImage();
    img.setId(sImgId);
    setGraphicUrl(img);
View Full Code Here

Examples of javax.faces.component.html.HtmlSelectBooleanCheckbox

    // make the checkbox
    String sKey = code.getKey();
    String sFKey = sKey.replace('.','_');
    sFKey = sKey.replace(':','_');
    String sId  = sIdPfx+"-"+sFKey;
    HtmlSelectBooleanCheckbox checkBox = new HtmlSelectBooleanCheckbox();
    checkBox.setId(sId);
    checkBox.setDisabled(!getEditable());
    checkBox.setSelected(valuesMap.containsKey(sKey));
    checkBox.setOnchange(getOnChange());
    checkBox.setOnclick(getOnClick());
    panel.getChildren().add(checkBox);
   
    // make the label
    String sLabel = sKey;
    String sResKey = code.getResourceKey();
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.