public String getValue() { return getAttribute( "value" ); }
public void setConverter( String value ) { putAttribute( "converter", value ); } }
columnContents.putAttribute( "value", StaticFacesUtils.wrapExpression( dataTable.getAttribute( "var" ) ) ); } else { String valueExpression = dataTable.getAttribute( "var" ) + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize( columnAttributes.get( NAME ) ); columnContents.putAttribute( "value", StaticFacesUtils.wrapExpression( valueExpression ) ); column.getChildren().add( 0, headerFacet ); dataTable.getChildren().add( column );
if ( dataTable.getChildren().size() == mMaximumColumnsInDataTable ) { break; if ( !dataTable.getChildren().isEmpty() || !onlyRequired ) { break;
HtmlDataTable dataTable = new HtmlDataTable(); String dataTableVar = "_item"; dataTable.putAttribute( "var", dataTableVar );
List<StaticWidget> columns = dataTable.getChildren(); HtmlColumn column = (HtmlColumn) columns.get(columns.size() - 1); param.putAttribute( "value", StaticFacesUtils.wrapExpression(dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + primaryKeyName)); link.getChildren().add(param); String displayExpression = dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize(columnAttributes.get(NAME)); String valueExpression = dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + tableAttributes.get(PARAMETERIZED_TYPE_PATH) + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize(columnAttributes.get(NAME));
List<StaticWidget> columns = dataTable.getChildren(); HtmlColumn column = (HtmlColumn) columns.get(columns.size() - 1); param.putAttribute( "value", StaticFacesUtils.wrapExpression(dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + primaryKeyName)); link.getChildren().add(param); String displayExpression = "forgeview:display(" + dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize(columnAttributes.get(NAME)) + ")"; String valueExpression = dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + tableAttributes.get(PARAMETERIZED_TYPE_PATH) + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize(columnAttributes.get(NAME));
public void setValue( String value ) { putAttribute( "value", value ); }
if (dataTable.getChildren().isEmpty()) String removeExpression = COLLECTION_VAR + ".remove(" + dataTable.getAttribute("var") + ")"; removeLink.putAttribute("action", StaticFacesUtils.wrapExpression(removeExpression)); column.putAttribute("footerClass", "remove-column"); column.getChildren().add(removeLink); dataTable.getChildren().add(column);
if (dataTable.getChildren().isEmpty()) String removeExpression = COLLECTION_VAR + ".remove(" + dataTable.getAttribute("var") + ")"; removeLink.putAttribute("action", StaticFacesUtils.wrapExpression(removeExpression)); column.putAttribute("footerClass", "remove-column"); column.getChildren().add(removeLink); dataTable.getChildren().add(column);