[opencms-dev] (6b3) Multilanguage and new template problem
Jorge Gonzalez
informatico at hotelparadisepark.com
Fri May 13 14:18:20 CEST 2005
Hi list:
I've created a new test template (see below) in my modules/templates folder.
After making a new page, i can edit the page in 3 languages (en, es, de)
BUT the de language was deleted from my config files. If i enter content in
'es', i get the exception:
----
java.lang.NullPointerException
at org.opencms.xml.CmsXmlUtils.createXpath(CmsXmlUtils.java:138)
at org.opencms.xml.A_CmsXmlDocument.hasValue(A_CmsXmlDocument.java:338)
at
org.opencms.workplace.editors.CmsDefaultPageEditor.performSaveContent(CmsDef
aultPageEditor.java:536)
at
org.opencms.workplace.editors.CmsDefaultPageEditor.actionSave(CmsDefaultPage
Editor.java:257)
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.msdhtml.edit
or_jsp._jspService(editor_jsp.java:87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
----
This is the "test" template
-----
<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><cms:property name="title" escapeHtml="true" /></title>
<meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=<cms:property
name="content-encoding" default="ISO-8859-1" />">
<link type="text/css" rel="stylesheet"
href="<cms:link>../resources/mystyle.css</cms:link>">
</head>
<body>
<h2>My first template head</h2>
<!-- Main pagebody starts here -->
<cms:include element= "body"/>
<!--Main pagebody ends here -->
<h2>My first template foot</h2>
</body>
</html>
------
More information about the opencms-dev
mailing list