[opencms-dev] Problem ADE drag & drop.Bug?

roberto luceri roberto.luceri at lucanasistemi.com
Mon Oct 24 10:13:45 CEST 2011


Hi Christoph,

Thanks, it works ... but the code is identical to the standard event 
formatter

Il 23/10/2011 14.00, Christoph Fröhlich ha scritto:
> Hi Roberto,
>
> sounds to me that your formatter does not check correctly for the 
> existence of the nested date element.
>
> Have a look at the log wether there is a NullPointer showing up, while 
> you are dragging your content.
>
> If so, double check your formatter whether you are checking properly 
> for the existence of the date element before you try to access it.
>
> For example, having a nested content Teaserimage with another nested 
> content Image you would do your check as follows
> <c:if test="${value.Teaserimage.exists && 
> value.Teaserimage.value.Image.exists}">
>
> btw, "not empty" does not help here. ${not empty value.Teaserimage} 
> would itself lead to the NullPointer when no nested content 
> Teaserimage exists.
>
> hth
> Regards
> Christoph
>
> Am 21.10.2011 um 10:50 schrieb roberto luceri:
>
>> Hi all,
>>
>> I'm developing a site using OpenCms 8.0.2
>> I've a structured content (that we'll call A). It includes a nested 
>> content (that we'll call N) containing a Date field.
>> If I try to insert a new content of type A in a page with Drag & Drop 
>> it doesn't work.
>> But if I move up the Date field of nested structured content N in the 
>> main structured content A the drag &drop works fine.
>>
>> After this I think that it could be a problem with Date field in 
>> nested content.
>>
>> Does someone has encountered the same problem?
>>
>> I made the tests using the following browsers:
>> Firefox version 7.01,Crhome,Safari 5.1.1, IE version 9.0. on
>> Win 7
>> Tomcat 6.0.32
>>
>> Thanks.
>> _______________________________________________
>> 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
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111024/bd1c8524/attachment.htm>


More information about the opencms-dev mailing list