Here is the controlcode:<br><br><span style="font-family: courier new,monospace;"><?xml version="1.0" encoding="UTF-8"?></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><pages xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:noNamespaceSchemaLocation="<a href="http://www.opencms.org/dtd/6.0/xmlpage.xsd">http://www.opencms.org/dtd/6.0/xmlpage.xsd</a>"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â <page language="en"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Â Â Â <element name="lcontent"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â Â Â <links/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Â Â Â Â Â <content/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â </element></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Â Â Â <element name="mcontent"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â Â Â <links/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Â Â Â Â Â <content/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â </element></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Â Â Â <element name="rcontent"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â Â Â <links /></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">Â Â Â Â Â <content /></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â </element></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Â </page></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></pages></span><br style="font-family: courier new,monospace;"><br><br><br><br>On 29 March 2011 17:48, Mario Jäger <<a href="mailto:m.jaeger@alkacon.com">m.jaeger@alkacon.com</a>> wrote:<br>
><br>> Hi Yves,<br>><br>> Please, show me the control code of your "page with free text". The<br>> structure is important for me, not the content of the elements. Shall<br>> mean, that you can remove the content of the elements, of course.<br>
><br>> Kind Regards,<br>> Mario.<br>><br>> Am 29.03.2011 16:45, schrieb Yves Glodt:<br>> > Hi Mario,<br>> ><br>> > in fact the element exists in the page, so yes, I wonder why isEmpty<br>
> > returns "true".<br>
> ><br>> > And I also wonder why the 2 other calls return false... :-)<br>> ><br>> > Is there another way to check whether an element exists in a page?<br>> ><br>> > The example here does also not work as I expect:<br>
> > <a href="http://opencms-wiki.org/EL_functions_provided_by_OpenCMS_taglib#XML_content">http://opencms-wiki.org/EL_functions_provided_by_OpenCMS_taglib#XML_content</a><br>> ><br>> > Maybe I expect something impossible. As said, my page is a simple "page<br>
> > with free text"<br>> ><br>> ><br>> > On 29 March 2011 16:13, Mario Jäger <<a href="mailto:m.jaeger@alkacon.com">m.jaeger@alkacon.com</a><br>> > <mailto:<a href="mailto:m.jaeger@alkacon.com">m.jaeger@alkacon.com</a>>> wrote:<br>
> ><br>> > Â Â Hi Yves,<br>> ><br>> > Â Â I assume, that you are wondering over the (second) return value "true",<br>> > Â Â because the element does not exist in your xml content. With the three<br>
> > Â Â function calls you use, methods in<br>> > Â Â org.opencms.jsp.util.CmsJspContentAccessValueWrapper.java are used. The<br>> > Â Â second call uses the method getIsEmpty() in that class. And that method<br>
> > Â Â also returns true for non existing values. The description for that<br>> > Â Â method says: Returns true in case the value is empty, that is either<br>> > Â Â null or an empty String.<br>> ><br>
> > Â Â Kind Regards,<br>> > Â Â Mario.<br>> ><br>> > Â Â Am 29.03.2011 14:58, schrieb Yves Glodt:<br>> > Â Â Â > Hello,<br>> > Â Â Â ><br>> > Â Â Â > I try to check if an element exists in a "page with free text",<br>
> > Â Â and if<br>> > Â Â Â > yes, include it.<br>> > Â Â Â ><br>> > Â Â Â > The check I do like this (in a c:if), but these 3 calls return<br>> > Â Â "false,<br>> > Â Â Â > true, false" (in order of appearance)<br>
> > Â Â Â ><br>> > Â Â ${cms:vfs(pageContext).xml[cms:vfs(pageContext).context.uri].hasValue['rcontent']}<br>> > Â Â Â ><br>> > Â Â ${cms:vfs(pageContext).xml[cms:vfs(pageContext).context.uri].value['rcontent'].isEmpty}<br>
> > Â Â Â ><br>> > Â Â ${cms:vfs(pageContext).xml[cms:vfs(pageContext).context.uri].value['rcontent'].exists}<br>> > Â Â Â ><br>> > Â Â Â > What is wrong about this?<br>> > Â Â Â ><br>
> > Â Â Â > Best regards,<br>> > Â Â Â > Yves<br>> > Â Â Â ><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,<br>> > Â Â please visit<br>> > Â Â Â > <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
> ><br>> ><br>> >   --<br>> >   -------------------<br>> >   Mario Jäger<br>> ><br>> >   Visit OpenCms Days 2011 Conference and Expo<br>> >   May 9 to May 10 2011 in Cologne, Germany<br>
> > Â Â <a href="http://www.opencms-days.org">http://www.opencms-days.org</a><br>> ><br>> > Â Â Alkacon Software GmbH Â - The OpenCms Experts<br>> > Â Â <a href="http://www.alkacon.com">http://www.alkacon.com</a> - <a href="http://www.opencms.org">http://www.opencms.org</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>><br>><br>> --<br>> -------------------<br>> Mario Jäger<br>><br>> Visit OpenCms Days 2011 Conference and Expo<br>
> May 9 to May 10 2011 in Cologne, Germany<br>> <a href="http://www.opencms-days.org">http://www.opencms-days.org</a><br>><br>> Alkacon Software GmbH Â - The OpenCms Experts<br>> <a href="http://www.alkacon.com">http://www.alkacon.com</a> - <a href="http://www.opencms.org">http://www.opencms.org</a><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>