<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Christoph,<br>
<br>
<span id="result_box" class="" lang="en"><span class="hps">Thanks</span><span
class="">, it works</span> <span class="hps">... but</span> <span
class="hps">the</span> <span class="hps">code is</span> <span
class="hps">identical to the</span> <span class="hps">standard
event</span> <span class="hps">formatter<br>
<br>
</span></span>Il 23/10/2011 14.00, Christoph Fröhlich ha scritto:
<blockquote
cite="mid:87F686CB-02D9-4C72-9E83-95384DE7E537@folge2.de"
type="cite">Hi Roberto,
<div><br>
</div>
<div>sounds to me that your formatter does not check correctly for
the existence of the nested date element.</div>
<div><br>
</div>
<div>Have a look at the log wether there is a NullPointer showing
up, while you are dragging your content.</div>
<div><br>
</div>
<div>If so, double check your formatter whether you are checking
properly for the existence of the date element before you try to
access it.</div>
<div><br>
</div>
<div>For example, having a nested content Teaserimage with another
nested content Image you would do your check as follows</div>
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom:
0px; margin-left: 0px; font: normal normal normal 11px/normal
Monaco; "><span style="color: #009292"><</span><span
style="color: #4b9191">c:if</span> <span style="color:
#961f8d">test</span>="${value.Teaserimage.exists &&
value.Teaserimage.value.Image.exists}"<span style="color:
#009292">></span></div>
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom:
0px; margin-left: 0px; font: normal normal normal 11px/normal
Monaco; "><span style="color: #009292"><br>
</span></div>
<div>btw, "not empty" does not help here. ${not empty
value.Teaserimage} would itself lead to the NullPointer when no
nested content Teaserimage exists.</div>
<div><br>
</div>
<div>hth</div>
<div>Regards</div>
<div>Christoph</div>
<div><br>
</div>
<div>
<div>
<div>Am 21.10.2011 um 10:50 schrieb roberto luceri:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Hi all,<br>
<br>
I'm developing a site using OpenCms 8.0.2<br>
I've a structured content (that we'll call A). It includes
a nested content (that we'll call N) containing a Date
field.<br>
If I try to insert a new content of type A in a page with
Drag & Drop it doesn't work.<br>
But if I move up the Date field of nested structured
content N in the main structured content A the drag
&drop works fine.<br>
<br>
After this I think that it could be a problem with Date
field in nested content.<br>
<br>
Does someone has encountered the same problem?<br>
<br>
I made the tests using the following browsers:<br>
Firefox version 7.01,Crhome,Safari 5.1.1, IE version 9.0.
on<br>
Win 7<br>
Tomcat 6.0.32<br>
<br>
Thanks.<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 moz-do-not-send="true"
href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>