@Override public StaticXmlWidget buildWidget(String elementName, Map<String, String> attributes, StaticXmlMetawidget metawidget) { // Faces lookups String facesLookup = attributes.get(FACES_LOOKUP); if (facesLookup != null && !"".equals(facesLookup)) { HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems(select, facesLookup, attributes); return select; } // Lookups String lookup = attributes.get(LOOKUP); if (lookup != null && !"".equals(lookup)) { HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems(select, CollectionUtils.fromString(lookup), CollectionUtils.fromString(attributes.get(LOOKUP_LABELS))); return select; } return super.buildWidget(elementName, attributes, metawidget); }
@Override public StaticXmlWidget buildWidget(String elementName, Map<String, String> attributes, StaticXmlMetawidget metawidget) { // Faces lookups String facesLookup = attributes.get(FACES_LOOKUP); if (facesLookup != null && !"".equals(facesLookup)) { HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems(select, facesLookup, attributes); return select; } // Lookups String lookup = attributes.get(LOOKUP); if (lookup != null && !"".equals(lookup)) { HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems(select, CollectionUtils.fromString(lookup), CollectionUtils.fromString(attributes.get(LOOKUP_LABELS))); return select; } return super.buildWidget(elementName, attributes, metawidget); }
HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems( select, facesLookup, attributes ); return select; HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems( select, CollectionUtils.fromString( lookup ), CollectionUtils.fromString( attributes.get( LOOKUP_LABELS ) ), attributes );
HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems( select, facesLookup, attributes ); return select;
HtmlSelectOneMenu select = new HtmlSelectOneMenu(); addSelectItems(select, facesLookup, attributes); return select;
HtmlSelectOneMenu select = new HtmlSelectOneMenu(); String selectId = dataTable.getAttribute("id") + "Select"; select.putAttribute("id", selectId);
HtmlSelectOneMenu select = new HtmlSelectOneMenu(); String selectId = dataTable.getAttribute("id") + "Select"; select.putAttribute("id", selectId);