Examples of UIInputSelect


Examples of net.sf.jwan.jsf.form.ui.UIInputSelect

 
  public void encodeBegin(FacesContext context, UIComponent component) throws IOException
  {
    String label = (String)component.getAttributes().get("label");
   
    UIInputSelect uiInputSelect = (UIInputSelect)component;
    List<?> lDm = (List<?>)component.getAttributes().get("value");
    DataModel dm = new ListDataModel(lDm);
    uiInputSelect.setValue(dm);
   
    logger.debug("uiInputSelect()="+uiInputSelect.getRowCount());
   
    ResponseWriter writer = context.getResponseWriter();
    writer.startElement("li", component);
    writer.write(label);
    writer.startElement("span", component);
View Full Code Here

Examples of net.sf.jwan.jsf.form.ui.UIInputSelect

    writer.write("\n");
  }
 
  public void encodeChildren(FacesContext context, UIComponent component) throws IOException
 
    UIInputSelect uiInputSelect = (UIInputSelect)component;
   
    if(component.getChildCount()==0){return;}
   
    for(UIComponent uiChild : uiInputSelect.getChildren())
    {
      logger.debug(uiChild.getClass().getName());
      if(uiChild instanceof UISelectItems)
      {
        for(int index=0;index<uiInputSelect.getRowCount();index++)
        {
          uiInputSelect.setRowIndex(index);
          uiChild.encodeAll(context);
        }
      }
      else{uiChild.encodeAll(context);}
    }
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.