<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>Re: [opencms-dev] The element "body" is not for template "xx"</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=002140812-30072008><FONT face=Arial
color=#0000ff size=2>Hi</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=002140812-30072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=002140812-30072008><FONT face=Arial
color=#0000ff size=2>In fact, I could, but it happens that the error message is
shown even when trying to set the default values (Extended HTML Import / Default
HTML Values) so I don't even need to provide content before the error
appears...</FONT></SPAN></DIV>
<DIV><SPAN class=002140812-30072008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=002140812-30072008><FONT face=Arial color=#0000ff
size=2>Regarding the content of the template, I can just copy / paste the
example one to make it fail...</FONT></SPAN></DIV>
<DIV><SPAN class=002140812-30072008><FONT face=Arial color=#0000ff
size=2> </DIV>
<DIV dir=ltr align=left><BR>Olivier</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><B><SPAN lang=fr><FONT face=Verdana color=#400040 size=1>Olivier
CHIROUZE<BR></FONT></SPAN></B><SPAN lang=fr><I><FONT face=Verdana color=#000000
size=1>I&0 Infrastructure</FONT></I></SPAN> <BR><SPAN lang=fr><B><FONT
face=Verdana color=#0000ff size=1>Volvo Information Technology</FONT></B></SPAN>
</P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Carl Alex Friis
Nielsen<BR><B>Sent:</B> 30 July 2008 12:58<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> SV: [opencms-dev] The element "body" is not for
template "xx"<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText99320 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Could you post a
short example of the content you try to apply the template to
?</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Fra:</B> opencms-dev-bounces@opencms.org på vegne
af Chirouze Olivier<BR><B>Sendt:</B> on 30-07-2008 10:33<BR><B>Til:</B> The
OpenCms mailing list<BR><B>Emne:</B> Re: [opencms-dev] The element "body" is
not for template "xx"<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>I had to debug OpenCms (again) and so far, here's what I have
found:<BR><BR>When trying to "validate" my element value (body or text1), the
list of "elements" in my template is always empty. It seems this list is
updated when we save the file, I guess, since OpenCms tries to get the list of
elements directly from the database (the parsing is not done at that
step).<BR><BR>So... OpenCms coders/experts, could you please help me: why is
there not a single element registered in database for my template jsp file,
even if I just copy/paste the content of the example template??<BR><BR>I also
tried to export my module, hoping that was the pb. No change.<BR><BR>Do I have
to set an export point? I would'nt see why,
but...<BR><BR>Thanks<BR><BR>Olivier<BR><BR>> -----Original
Message-----<BR>> From: Chirouze Olivier<BR>> Sent: 30 July 2008
09:22<BR>> To: 'The OpenCms mailing list'<BR>> Subject: RE:
[opencms-dev] The element "body" is not for template "xx"<BR>><BR>> No
more luck.<BR>><BR>> I just copied / pasted the content of "simple JSP
template"<BR>> from Alakcon documentation to my template. That doesn't
work<BR>> either, with "body" or "text1".<BR>><BR>> Did anything
change in 7.0.5?<BR>><BR>> Thanks<BR>><BR>>
Olivier<BR>><BR>> Olivier CHIROUZE<BR>> I&0
Infrastructure<BR>> Volvo Information
Technology<BR>> <BR>><BR>> > -----Original
Message-----<BR>> > From: opencms-dev-bounces@opencms.org<BR>> >
[<A
href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</A>]
On Behalf Of Isaac<BR>> R. Higgins<BR>> > Sent: 29 July 2008
17:38<BR>> > To: The OpenCms mailing list<BR>> > Subject: RE:
[opencms-dev] The element "body" is not for<BR>> template "xx"<BR>>
><BR>> ><BR>> > try "text1"<BR>> ><BR>> >
-----Original Message-----<BR>> > From: opencms-dev-bounces@opencms.org
on behalf of Chirouze Olivier<BR>> > Sent: Tue 7/29/2008 11:25
AM<BR>> > To: The OpenCms mailing list<BR>> > Subject:
[opencms-dev] The element "body" is not for template "xx"<BR>>
> <BR>> > Hi list,<BR>> ><BR>> > It seems I'm not
the first to ask, but I'd like someone in<BR>> > the list to be the
first to answer ;-)<BR>> ><BR>> > <A
href="http://www.opencms-forum.de/opencms-forum/viewthread;jsessioni">http://www.opencms-forum.de/opencms-forum/viewthread;jsessioni</A><BR>>
> d=850A87B21AE682373B27EAB41F694A69?thread=1072<BR>> > <A
href="http://www.opencms-forum.de/opencms-forum/viewthread;jsessioni">http://www.opencms-forum.de/opencms-forum/viewthread;jsessioni</A><BR>>
> d=2164A8FCCA0565FC64667714BE00FEA8?thread=1175<BR>> ><BR>> >
I created a simple template jsp file and am trying to import<BR>> > html
files with the extended html import as suggested here.<BR>> ><BR>>
> However I can't manage to have it work, keep getting this<BR>> >
error : The element "body" is not for template "xx".<BR>> ><BR>> >
Importing the same files with default template (template two)<BR>> >
works. Creating a new "file with free text" based on my<BR>> > template
also works.<BR>> ><BR>> > My template is very simple, here's how
it looks like (I tried<BR>> > with and without the <cms:include
element="body"<BR>> > editable="true"/> but that didn't change a
thing).<BR>> ><BR>> > Thanks for your help!!<BR>> ><BR>>
> Olivier<BR>> ><BR>> > <%@ page session="false"
%><BR>> > <%@ taglib prefix="cms" uri="<A
href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</A>"
%><BR>> ><BR>> > <cms:template element="head"><BR>>
><BR>> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0<BR>> >
Transitional//EN"<BR>> > "<A
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</A>"><BR>>
> <html xmlns="<A
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"><BR>>
> <head><BR>> > <meta http-equiv="Content-Type"
content="text/html;<BR>> > charset=iso-8859-1" /><BR>> >
<title><cms:property name="title" escapeHtml="true"
/></title><BR>> ><BR>> ><BR>> > <meta
HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;<BR>> >
CHARSET=<cms:property name="content-encoding"<BR>> >
default="ISO-8859-1" />"><BR>> ><BR>> ><BR>> >
<body><BR>> ><BR>> > <!-- Main page body starts here
--><BR>> > </cms:template><BR>> ><BR>> > <div
class="container"><BR>> ><BR>> > <div
class="header"><div class="logo"></div></div><BR>>
><BR>> > <div class="main"><BR>> >
<div class="left"><BR>> > <BR>> >
<BR>> >
</div><BR>> > <BR>> >
<div class="page"><BR>> >
<BR>> > <cms:template
element="body"><BR>> ><BR>> >
<cms:include element="body" editable="true"/><BR>> ><BR>> >
</cms:template><BR>> > </div><BR>>
><BR>> > <BR>> ><BR>> >
<BR>> > <div
class="clear"></div><BR>> > </div><BR>> ><BR>>
> </div><BR>> ><BR>> > <cms:template
element="foot"><BR>> > <!-- Main page body ends here
--><BR>> ><BR>> > </body><BR>> >
</html><BR>> > </cms:template><BR>> ><BR>> >
Olivier CHIROUZE<BR>> > I&0 Infrastructure<BR>>
> <BR>> > Volvo Information
Technology <BR>>
> <BR>>
> 402 avenue Charles de Gaulle *
phone: +33<BR>>
(0)4.72.96.89.39 <BR>> > API: VNX 0A0
0 02
6 telecopy:
+33(0)4.72.96.76.80<BR>> > 69635 Vénissieux Cedex -
France *<BR>> >
olivier.chirouze@volvo.com<BR>> > <<A
href="mailto:olivier.chirouze@external.renault-trucks.com">mailto:olivier.chirouze@external.renault-trucks.com</A>><BR>>
><BR>> ><BR>> ><BR>>
><BR><BR>_______________________________________________<BR>This mail is
sent to you from the opencms-dev mailing list<BR>To change your list options,
or to unsubscribe from the list, please visit<BR><A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>