mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
. RSS 2.0 example template
. Mimetype support fixed in TemplateContentServlet . Textbox made larger for creating/editing inline plain text content git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2017 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -143,6 +143,13 @@ public class TemplateContentServlet extends HttpServlet
|
||||
templateRef = new NodeRef(storeRef, t.nextToken());
|
||||
}
|
||||
|
||||
String mimetype = MIMETYPE_HTML;
|
||||
if (req.getParameter(ARG_MIMETYPE) != null)
|
||||
{
|
||||
mimetype = req.getParameter(ARG_MIMETYPE);
|
||||
}
|
||||
res.setContentType(mimetype);
|
||||
|
||||
// get the services we need to retrieve the content
|
||||
WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
|
||||
ServiceRegistry serviceRegistry = (ServiceRegistry)context.getBean(ServiceRegistry.SERVICE_REGISTRY);
|
||||
|
@@ -138,7 +138,7 @@
|
||||
<%-- Inline editor --%>
|
||||
<tr>
|
||||
<td width="100%" valign="top" height="100%">
|
||||
<h:inputTextarea id="textArea" rows="20" cols="80" value="#{CheckinCheckoutBean.editorOutput}" />
|
||||
<h:inputTextarea id="textArea" rows="24" cols="112" value="#{CheckinCheckoutBean.editorOutput}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@@ -111,7 +111,7 @@
|
||||
|
||||
<a:errors message="#{msg.error_wizard}" styleClass="errorMessage" />
|
||||
|
||||
<h:inputTextarea id="textArea" rows="20" cols="80" value="#{CreateContentWizard.content}" />
|
||||
<h:inputTextarea id="textArea" rows="24" cols="112" value="#{CreateContentWizard.content}" />
|
||||
|
||||
</td>
|
||||
|
||||
|
Reference in New Issue
Block a user