10-18-2011 04:25 AM
<defaults>
<region-chrome>vanilla</region-chrome>
<!– Set up our sample login and logout pages –>
<page-type>
<id>login</id>
<page-instance-id>sample/login</page-instance-id>
</page-type>
<page-type>
<id>logout</id>
<page-instance-id>sample/logout</page-instance-id>
</page-type>
<!– User factory for Alfresco 3.2 –>
<!–
<user-factory>webframework.factory.user.alfresco32</user-factory>
–>
<!– User factory for Alfresco 3.3 –>
<!–
<user-factory>webframework.factory.user.alfresco</user-factory>
–>
</defaults>
<div class="standard-region-chrome">
<@regionInclude/>
</div>
<%@ page import="org.springframework.extensions.surf.*" %>
<%@ page import="org.springframework.extensions.surf.types.*"%>
<%@ page import="org.springframework.extensions.surf.render.*" %>
<%@ page buffer="0kb" contentType="text/html;charset=UTF-8" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="surf" uri="http://www.springframework.org/tags/surf" %>
<%
RequestContext context = (RequestContext) request.getAttribute(RenderContextRequest.ATTRIB_RENDER_CONTEXT);
// get the component
String componentId = (String) context.getValue(WebFrameworkConstants.RENDER_DATA_COMPONENT_ID);
if (componentId != null) {
System.out.println("componentId = " + componentId);
System.out.println("context.getObjectService() = " + context.getObjectService());
System.out.println("context.getObjectService().getComponent(componentId) = " + context.getObjectService().getComponent(componentId));
Component component = context.getObjectService().getComponent(componentId);
String title = null;
if (component != null && component.getTitle() != null)
{
title = component.getTitle();
}
if (title != null)
{
%>
<h2><%=title%></h2>
<%
}
}
%>
<surf:componentInclude/>
10-18-2011 05:35 AM
10-18-2011 07:26 AM
10-19-2011 05:21 AM
<?xml version='1.0' encoding='UTF-8'?>
<chrome>
<title>Vanilla Chrome</title>
<processor mode="view">
<id>webtemplate</id>
<uri>chrome/vanilla/chrome.ftl</uri>
</processor>
</chrome>
<div id="${htmlid}">
<@regionInclude/>
</div>
…and the id of the div is often used by components for a unique identification prefix. 10-20-2011 08:52 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.