public void setConverter( String value ) { putAttribute( "converter", value ); } }
public String getValue() { return getAttribute( "value" ); }
controllerName = StringUtils.decapitalize(controllerName); HtmlOutcomeTargetLink link = new HtmlOutcomeTargetLink(); String outcome = getTargetDir(); if (!outcome.isEmpty() && !outcome.startsWith("/")) link.putAttribute("outcome", outcome + "/" + controllerName + "/view"); link.putAttribute("rendered", StaticFacesUtils.wrapExpression("!empty " + StaticFacesUtils.unwrapExpression(link.getValue()))); param.putAttribute( "value", StaticFacesUtils.wrapExpression(StaticFacesUtils.unwrapExpression(link.getValue()) + StringUtils.SEPARATOR_DOT_CHAR + reverseKey)); link.getChildren().add(param);
HtmlOutcomeTargetLink outcomeTargetLink = new HtmlOutcomeTargetLink(); String outcome = targetDir.isEmpty() || targetDir.startsWith("/") ? targetDir : "/" + targetDir; outcomeTargetLink.putAttribute("outcome", outcome + "/" + resource.getName() + "/search"); outcomeTargetLink.setValue(StringUtils.uncamelCase(resource.getName()));
HtmlOutcomeTargetLink link = new HtmlOutcomeTargetLink(); String outcome = getTargetDir(); if (!outcome.isEmpty() && !outcome.startsWith("/")) link.putAttribute("outcome", outcome + "/" + controllerName + "/view"); StaticFacesUtils.wrapExpression(dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + primaryKeyName)); link.getChildren().add(param); link.getChildren().add(column.getChildren().remove(1)); if (columnAttributes.containsKey(FACES_LOOKUP) && columnAttributes.containsKey(REVERSE_PRIMARY_KEY)) StaticHtmlMetawidget output = (StaticHtmlMetawidget) link.getChildren().get(1); String displayExpression = dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize(columnAttributes.get(NAME)); StaticHtmlMetawidget output = (StaticHtmlMetawidget) link.getChildren().get(1); output.setValue(StaticFacesUtils.wrapExpression(valueExpression));
controllerName = StringUtils.decapitalize(controllerName); HtmlOutcomeTargetLink link = new HtmlOutcomeTargetLink(); link.putAttribute("outcome", getTargetDir() + "/" + controllerName + "/view"); param.putAttribute( "value", StaticFacesUtils.wrapExpression(StaticFacesUtils.unwrapExpression(link.getValue()) + StringUtils.SEPARATOR_DOT_CHAR + reverseKey)); link.getChildren().add(param);
HtmlOutcomeTargetLink outcomeTargetLink = new HtmlOutcomeTargetLink(); outcomeTargetLink.putAttribute("outcome", targetDir + "/" + resource.getName() + "/search"); outcomeTargetLink.setValue(StringUtils.uncamelCase(resource.getName()));
HtmlOutcomeTargetLink link = new HtmlOutcomeTargetLink(); link.putAttribute("outcome", getTargetDir() + "/" + controllerName + "/view"); StaticFacesUtils.wrapExpression(dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + primaryKeyName)); link.getChildren().add(param); link.getChildren().add(column.getChildren().remove(1)); if(columnAttributes.containsKey(FACES_LOOKUP) && columnAttributes.containsKey(REVERSE_PRIMARY_KEY)) StaticHtmlMetawidget output = (StaticHtmlMetawidget) link.getChildren().get(1); String displayExpression = "forgeview:display(" + dataTable.getAttribute("var") + StringUtils.SEPARATOR_DOT_CHAR + StringUtils.decapitalize(columnAttributes.get(NAME)); StaticHtmlMetawidget output = (StaticHtmlMetawidget) link.getChildren().get(1); output.setValue(StaticFacesUtils.wrapExpression(valueExpression));
public void setValue( String value ) { putAttribute( "value", value ); }