public void setConverter( String value ) { putAttribute( "converter", value ); } }
public String getValue() { return getAttribute( "value" ); }
HtmlCommandLink removeLink = new HtmlCommandLink(); removeLink.putAttribute("styleClass", "remove-button"); String removeExpression = COLLECTION_VAR + ".remove(" + dataTable.getAttribute("var") + ")"; removeLink.putAttribute("action", StaticFacesUtils.wrapExpression(removeExpression)); HtmlCommandLink addLink = new HtmlCommandLink(); addLink.putAttribute("styleClass", "add-button"); String addExpression = COLLECTION_VAR + ".add(" + controllerName + "Bean.added)"; addLink.putAttribute("action", StaticFacesUtils.wrapExpression(addExpression)); (StaticUIMetawidget) metawidget); addLink.getChildren().add(setPropertyActionListener); + StringUtils.SEPARATOR_DOT_CHAR + attributes.get(NAME) + StringUtils.SEPARATOR_DOT_CHAR + "Add"; addLink.putAttribute("id", StringUtils.camelCase(id, StringUtils.SEPARATOR_DOT_CHAR));
String childExpression = unwrappedExpression.substring(lastIndexOf + 1); HtmlCommandLink commandLink = new HtmlCommandLink(); commandLink.setValue("Create New " + StringUtils.uncamelCase(childExpression)); commandLink.putAttribute( "action", StaticFacesUtils.wrapExpression(parentExpression + ".new" + StringUtils.capitalize(childExpression))); commandLink.putAttribute("rendered", StaticFacesUtils.wrapExpression("empty " + unwrappedExpression));
HtmlCommandLink addLink = new HtmlCommandLink(); addLink.putAttribute("styleClass", "add-button"); String addExpression = COLLECTION_VAR + ".add(" + requestScopedValue + ")"; addLink.putAttribute("action", StaticFacesUtils.wrapExpression(addExpression)); addLink.putAttribute("onclick", "if (document.getElementById(document.forms[0].id+':" + selectId + "').selectedIndex < 1) { alert('Must select a " + StringUtils.uncamelCase(simpleComponentType) + "'); return false; }"); addLink.putAttribute("id", dataTable.getAttribute("id") + "Add"); panelGrid.getChildren().add(addLink);
HtmlCommandLink removeLink = new HtmlCommandLink(); removeLink.putAttribute("styleClass", "remove-button"); String removeExpression = COLLECTION_VAR + ".remove(" + dataTable.getAttribute("var") + ")"; removeLink.putAttribute("action", StaticFacesUtils.wrapExpression(removeExpression)); HtmlCommandLink addLink = new HtmlCommandLink(); addLink.putAttribute("styleClass", "add-button"); String addExpression = COLLECTION_VAR + ".add(" + controllerName + "Bean.added)"; addLink.putAttribute("action", StaticFacesUtils.wrapExpression(addExpression)); (StaticUIMetawidget) metawidget); addLink.getChildren().add(setPropertyActionListener); + StringUtils.SEPARATOR_DOT_CHAR + attributes.get(NAME) + StringUtils.SEPARATOR_DOT_CHAR + "Add"; addLink.putAttribute("id", StringUtils.camelCase(id, StringUtils.SEPARATOR_DOT_CHAR));
String childExpression = unwrappedExpression.substring(lastIndexOf + 1); HtmlCommandLink commandLink = new HtmlCommandLink(); commandLink.setValue("Create New " + StringUtils.uncamelCase(childExpression)); commandLink.putAttribute( "action", StaticFacesUtils.wrapExpression(parentExpression + ".new" + StringUtils.capitalize(childExpression))); commandLink.putAttribute("rendered", StaticFacesUtils.wrapExpression("empty " + unwrappedExpression));
HtmlCommandLink addLink = new HtmlCommandLink(); addLink.putAttribute("styleClass", "add-button"); String addExpression = COLLECTION_VAR + ".add(" + requestScopedValue + ")"; addLink.putAttribute("action", StaticFacesUtils.wrapExpression(addExpression)); addLink.putAttribute("onclick", "if (document.getElementById(document.forms[0].id+':" + selectId + "').selectedIndex < 1) { alert('Must select a " + StringUtils.uncamelCase(simpleComponentType) + "'); return false; }"); addLink.putAttribute("id", dataTable.getAttribute("id") + "Add"); panelGrid.getChildren().add(addLink);
public void setValue( String value ) { putAttribute( "value", value ); }