[opencms-dev] OpenCms Survey module error.
Olli Aro
olli_aro at yahoo.co.uk
Fri May 4 09:30:20 CEST 2007
Hi Celio,
The default view utilizes <%@ taglib prefix="c"
uri="http://java.sun.com/jstl/core" %> for testing some conditions. It looks
like your Tomcat / OpenCms installation has some kind of problem with the
use of this taglib.
Anyway, I would like to highlight that the way we build templates in OpenCms
does differ a little from the traditional way to develop templates.
Therefore you might want to create your own view for the survey content type
and configure properties:
<property>
<name>template-elements</name>
<value
type="shared"><![CDATA[/system/modules/com.clicksandlinks.opencms.survey/pag
es/survey_empty.jsp]]></value>
</property>
and
<property>
<name>template-elements</name>
<value
type="shared"><![CDATA[/system/modules/com.clicksandlinks.opencms.survey/pag
es/survey_result_empty.jsp]]></value>
</property>
The above does not mean that you must write the views from scratch, but you
can use views:
/system/modules/com.clicksandlinks.opencms.survey/pages/detail_survey.jsp
/system/modules/com.clicksandlinks.opencms.survey/pages/detail_survey_result
.jsp
As samples and just add the header and footer includes like traditional
OpenCms content types normally have.
Regards,
Olli
P.S. The above applies to our RSS page content type as well, in case someone
has had similar problem with that.
_____
From: Celio Faria Jr [mailto:celiofariajr at gmail.com]
Sent: 04 May 2007 04:07
To: solutions at clicksandlinks.com
Subject: OpenCms Survey module error.
Hi,
first of all, great job! A survey module is an incredibly thing to OpenCms.
Kudos!
Now to the problem: I installed the module and created a survey (Survey Form
structured content type) with only two checkboxes. When I try to click it,
the following error shows:
"/WEB-INF/jsp/offline/system/modules/com.clicksandlinks.opencms.survey/pages
/survey_empty.jsp(4,0) According to TLD or attribute directive in tag file,
attribute test does not accept any expressions".
The controlcode of the survey file is:
<?xml version="1.0" encoding="UTF-8"?>
<Surveys xmlns:xsi=" <http://www.w3.org/2001/XMLSchema-instance>
http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="opencms://system/modules/com.clicksandlinks.o
pencms.survey/schemas/survey.xsd">
<Survey language="en">
<FormText name="FormText0">
<links/>
<content><![CDATA[Testando]]></content>
</FormText>
<InputField>
<FieldType><![CDATA[checkbox]]></FieldType>
<FieldLabel><![CDATA[L1]]></FieldLabel>
<FieldMandatory>false</FieldMandatory>
<FieldDefault><![CDATA[00]]></FieldDefault>
</InputField>
<InputField>
<FieldType><![CDATA[checkbox]]></FieldType>
<FieldLabel><![CDATA[L2]]></FieldLabel>
<FieldMandatory>false</FieldMandatory>
<FieldDefault><![CDATA[00]]></FieldDefault>
</InputField>
<FormConfirmation name="FormConfirmation0">
<links/>
<content><![CDATA[teste confirmado]]></content>
</FormConfirmation>
<PublishResults>false</PublishResults>
</Survey>
</Surveys>
Any clues?
TIA,
Celio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070504/6fb1c0f3/attachment.htm>
More information about the opencms-dev
mailing list