/** * Called to get the ua.compatible value * * @param originalPage the decorated sitemesh page * @return the ua.compatible value */ public String getXUACompatible(Page originalPage) { String xUaCompatible = originalPage.getProperty(META_X_UA_COMPATIBLE); if (xUaCompatible == null) { xUaCompatible = "IE=Edge"; } return xUaCompatible; }
public static String getProperty(String name, IRequestCycle cycle) { return getPage(cycle).getProperty(name); }
@Override public void run() { includeTopNavigation(out, httpServletRequest, page.getProperty("page.section"), getWebFragmentContext("atl.header")); } });
private Decorator getByProperty(HttpServletRequest request, Page p, String name) { if (p.isPropertySet(name)) { return getNamedDecorator(request, p.getProperty(name)); } return null; } }
public int doEndTag() { try { Page page = getPage(); String propertyValue = page.getProperty(propertyName); if (propertyValue == null || propertyValue.trim().length() == 0) propertyValue = defaultValue; if (propertyValue != null) { Writer out = getOut(); if (writeEntireProperty) { out.write(" "); out.write(propertyName.substring(propertyName.lastIndexOf('.') + 1)); out.write("=\""); out.write(propertyValue); out.write("\""); } else { out.write(propertyValue); } } } catch (Exception e) { trace(e); } return EVAL_PAGE; }
String htmlClass = page.getProperty("class"); String bodyClass = page.getProperty("body.class"); if (bodyClass != null) { velocityParams.put("bodyClass", bodyClass);
public void process(Tag tag) { String id = tag.getAttributeValue("id", true); if (!page.isPropertySet("_sitemesh.removefrompage." + id)) { currentBuffer().append(page.getProperty(id)); } } });
public String getValue() { String propertyName = getProperty(); String propertyValue = getSiteMeshPage().getProperty(propertyName); if (Tapestry.isBlank(propertyValue)) { propertyValue = getDefault(); } return propertyValue; } }