final Element element = new XmlElementBuilder("section", document) .addAttribute("xml:id", "command-index-" + safeName.toLowerCase().replace(' ', '-')) .addChild(
.addAttribute("id", categoryId.toString()) .addAttribute("name", categoryName) .addAttribute(LABEL_CODE, categoryLabelCode).build()); .addAttribute("id", idPrefix.concat(itemId.toString())) .addAttribute(LABEL_CODE, itemLabelCode) .addAttribute( MESSAGE_CODE, StringUtils.isNotBlank(globalMessageCode) ? globalMessageCode : "") .addAttribute(URL, StringUtils.isNotBlank(link) ? link : "") .addAttribute(HIDDEN, Boolean.toString(hide)) .addAttribute("roles", StringUtils.isNotBlank(roles) ? roles : "").build();
.addAttribute("xmlns:c", "http://java.sun.com/jsp/jstl/core") .addAttribute("xmlns:fn", "http://java.sun.com/jsp/jstl/functions") .addAttribute("xmlns:spring", "http://www.springframework.org/tags") .addAttribute("xmlns:jsp", "http://java.sun.com/JSP/Page") .addAttribute("xmlns:form", "http://www.springframework.org/tags/form") .addAttribute("version", "2.0") .addChild( new XmlElementBuilder("jsp:directive.page", document) .addAttribute("contentType", "text/html;charset=UTF-8").build()) .addChild( new XmlElementBuilder("jsp:output", document) .addAttribute("omit-xml-declaration", "yes") .build()).build()); .addAttribute("class", "panel panel-default").build(); document).addAttribute("class", "panel-heading").build(); .addAttribute("class", "panel-title") .addChild( new XmlElementBuilder("spring:message", document) .addAttribute( "code", "label_report_" + controllerPath + "_" + reportName)
.addAttribute("pattern", "/forgotpassword/**") .addAttribute("access", "permitAll").build(), firstInterceptUrl); .addAttribute("pattern", "/signup/**") .addAttribute("access", "permitAll").build(), firstInterceptUrl); .addAttribute("pattern", "/") .addAttribute("access", "isAuthenticated()").build(), firstInterceptUrl); .addAttribute("id", "databaseAuthenticationProvider") .addAttribute("class", authenticationProviderClass) .addChild( new XmlElementBuilder("beans:property", webConfigDoc) .addAttribute("name", "adminUser") .addAttribute("value", "admin").build()) .addChild( new XmlElementBuilder("beans:property", webConfigDoc) "authentication-provider", webConfigDoc).addAttribute("ref", "databaseAuthenticationProvider").build();
.addAttribute("id", "messageDigestPasswordEncoder") .addAttribute( "class", "org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder") .addChild( new XmlElementBuilder("beans:constructor-arg", webConfigDoc).addAttribute("value", "sha-256") .build()).build();
.addAttribute("xmlns:form", "urn:jsptagdir:/WEB-INF/tags/form") .addAttribute("xmlns:field", "urn:jsptagdir:/WEB-INF/tags/form/fields") .addAttribute("xmlns:jsp", "http://java.sun.com/JSP/Page") .addAttribute("version", "2.0") .addChild( new XmlElementBuilder("jsp:directive.page", document).addAttribute("contentType", "text/html;charset=UTF-8").build()) .addChild( new XmlElementBuilder("jsp:output", document) .addAttribute("omit-xml-declaration", "yes").build()).build()); .addAttribute( "id", XmlUtils.convertId("fu:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute("modelAttribute", entityName).build();
.addAttribute("xmlns:form", "urn:jsptagdir:/WEB-INF/tags/form") .addAttribute("xmlns:field", "urn:jsptagdir:/WEB-INF/tags/form/fields") .addAttribute("xmlns:jsp", "http://java.sun.com/JSP/Page") .addAttribute("xmlns:c", "http://java.sun.com/jsp/jstl/core") .addAttribute("xmlns:spring", .addChild( new XmlElementBuilder("jsp:directive.page", document).addAttribute("contentType", "text/html;charset=UTF-8").build()) .addChild( new XmlElementBuilder("jsp:output", document) .addAttribute("omit-xml-declaration", "yes").build()).build()); .addAttribute( "id", XmlUtils.convertId("fc:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute("modelAttribute", entityName) .addAttribute("path", controllerPath) .addAttribute("render", "${empty dependencies}").build(); .addAttribute( "id",
logout.getParentNode().appendChild( new XmlElementBuilder("a", footerJspxDoc) .addAttribute( "href", "/".concat(contextPath).concat(
.addAttribute("xmlns:page", "urn:jsptagdir:/WEB-INF/tags/form") .addAttribute("xmlns:field", "urn:jsptagdir:/WEB-INF/tags/form/fields") .addAttribute("xmlns:jsp", "http://java.sun.com/JSP/Page") .addAttribute("version", "2.0") .addChild( new XmlElementBuilder("jsp:directive.page", document).addAttribute("contentType", "text/html;charset=UTF-8").build()) .addChild( new XmlElementBuilder("jsp:output", document) .addAttribute("omit-xml-declaration", "yes").build()).build()); .addAttribute( "id", XmlUtils.convertId("ps:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute("object", "${" + entityName.toLowerCase() + "}") .addAttribute("path", controllerPath).build(); if (!webScaffoldAnnotationValues.isCreate()) { pageShow.setAttribute("create", "false"); final Element fieldDisplay = new XmlElementBuilder("field:display", document) .addAttribute( "id",
if (rootElement == null) { final Element rootMenu = new XmlElementBuilder("menu:menu", document).addAttribute("id", "_menu").build(); rootMenu.setAttribute("z", XmlRoundTripUtils.calculateUniqueKeyFor(rootMenu)); "menu:category", document).addAttribute("id", "c_" + lcMenuCategoryName).build()); category.setAttribute("z", if (menuItem == null) { menuItem = new XmlElementBuilder("menu:item", document) .addAttribute( "id", idPrefix + lcMenuCategoryName + "_" + menuItemId.getSymbolName().toLowerCase()) .addAttribute("messageCode", globalMessageCode) .addAttribute("url", link).build(); menuItem.setAttribute("z", XmlRoundTripUtils.calculateUniqueKeyFor(menuItem));
jasperReport.insertBefore( new XmlElementBuilder("field", jrxml) .addAttribute( "name", fieldMetadata.getFieldName() .getSymbolName()) .addAttribute( "class", fieldMetadata.getFieldType() staticText .appendChild(new XmlElementBuilder("reportElement", jrxml) .addAttribute("x", String.valueOf(xPos)) .addAttribute("y", yPos) .addAttribute("width", sTextW) .addAttribute("height", textHeight).build()); staticText.appendChild(new XmlElementBuilder("textElement", jrxml) .build()); .build(); textField.appendChild(new XmlElementBuilder("reportElement", jrxml) .addAttribute("x", String.valueOf(xPos)) .addAttribute("y", yPos).addAttribute("width", fTextW) .addAttribute("height", textHeight).build()); textField.appendChild(new XmlElementBuilder("textElement", jrxml) .build()); textField.appendChild(new XmlElementBuilder("textFieldExpression", jrxml) .addAttribute(
document.getDocumentElement()); final Element view = new XmlElementBuilder( "mvc:view-controller", document).addAttribute("path", prefixedUrl).build(); if (sibling != null) {
.addAttribute("xmlns:form", "urn:jsptagdir:/WEB-INF/tags/form") .addAttribute("xmlns:field", "urn:jsptagdir:/WEB-INF/tags/form/fields") .addAttribute("xmlns:jsp", "http://java.sun.com/JSP/Page") .addAttribute("version", "2.0") .addChild( new XmlElementBuilder("jsp:directive.page", document).addAttribute("contentType", "text/html;charset=UTF-8").build()) .addChild( new XmlElementBuilder("jsp:output", document) .addAttribute("omit-xml-declaration", "yes").build()).build()); .addAttribute( "id", XmlUtils.convertId("ff:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute("path", controllerPath) .addAttribute( "finderName", finderMetadataDetails fieldElement = new XmlElementBuilder("field:select", document) .addAttribute("required", "true") .addAttribute(
.addAttribute("xmlns:page", "urn:jsptagdir:/WEB-INF/tags/form") .addAttribute("xmlns:table", "urn:jsptagdir:/WEB-INF/tags/form/fields") .addAttribute("xmlns:jsp", "http://java.sun.com/JSP/Page") .addAttribute("version", "2.0") .addChild( new XmlElementBuilder("jsp:directive.page", document) .addAttribute("contentType", "text/html;charset=UTF-8").build()) .addChild( new XmlElementBuilder("jsp:output", document) .addAttribute("omit-xml-declaration", "yes") .build()).build(); document.appendChild(div); .addAttribute( "id", XmlUtils.convertId("l:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute( "data", "${" final Element columnElement = new XmlElementBuilder( "table:column", document) .addAttribute( "id", XmlUtils.convertId("c:"
"//span[@id='language']", footer.getDocumentElement()); span.appendChild(new XmlElementBuilder("util:language", footer) .addAttribute("locale", i18n.getLocale().getLanguage()) .addAttribute("label", i18n.getLanguage()).build()); fileManager.createOrUpdateTextFileIfRequired(footerFileLocation, XmlUtils.nodeToString(footer), false);
&& typeMetadataHolder.isEnumType()) { fieldElement = new XmlElementBuilder("field:select", document) .addAttribute( "items", "${" + typeMetadataHolder.getPlural() .toLowerCase() + "}") .addAttribute("path", getPathForType(fieldType)) .build(); fieldElement = new XmlElementBuilder("field:simple", document) .addAttribute("messageCode", "entity_reference_not_managed") .addAttribute( "messageCodeAttribute", new JavaSymbolName(fieldType fieldElement = new XmlElementBuilder("field:select", document) .addAttribute( "items", "${" + referenceTypeMetadata.getPlural() .toLowerCase() + "}") .addAttribute( "itemValue", typePersistenceMetadataHolder