[opencms-dev] "New" element option (in editable collector) works on formatter but not on page element
ap SOMVANSHI
apsomvanshi7 at gmail.com
Mon Feb 11 17:53:46 CET 2013
2013/2/11, Arturo Martín Lladó <arturo.martin.llado at gmail.com>:
> Sorry, guys.
>
> I forgot to say I'm using OpenCms 8.5.0. Also, when I say "page" I
> mean template.
>
> Regards,
>
> Arturo Martin Llado.
>
> 2013/2/11 Arturo Martín Lladó <arturo.martin.llado at gmail.com>:
>> Hi, folks.
>>
>> I'm experiencing a really wierd behaviour of the "New" option placed
>> on the first item of an editable collector.
>>
>> This code below:
>>
>> <cms:contentload
>> collector="allInFolderDateReleasedDesc"
>>
>> param="${dirContenido}|documentoDeInteres"
>> preload="true">
>> <cms:contentinfo var="info" />
>> <c:if test="${info.resultSize >
>> 0}">
>> <ul>
>> <cms:contentload
>> editable="true">
>> <li>
>> <a
>> href="<cms:link><cms:contentshow
>> element="Archivo" /></cms:link>" title="<cms:contentshow
>> element="Nombre" />">
>>
>> <cms:contentshow element="Nombre" />
>> </a>
>> </li>
>> </cms:contentload>
>> </ul>
>> </c:if>
>> </cms:contentload>
>>
>>
>>
>> works fine on a formatter and on a page element, but when I try to add
>> a new element from the collector loaded on the "page" element, I get
>> this error:
>>
>> javax.servlet.jsp.JspException: javax.servlet.ServletException:
>> org.opencms.gwt.CmsRpcException:
>> java.lang.StringIndexOutOfBoundsException: String index out of range:
>> -1
>> Reason: org.opencms.gwt.CmsRpcException:
>> java.lang.StringIndexOutOfBoundsException: String index out of range:
>> -1
>> Reason: java.lang.StringIndexOutOfBoundsException: String index out of
>> range: -1
>> Reason: String index out of range: -1
>>
>> Both other "edit" and "delete" options work fine. I only get this
>> error when I'm trying to add a new element. I don't understand why it
>> works fine on a formatter element but it does not on a page element.
>>
>> Am I missing something?
>>
>> Is this a bug?
>>
>> Thank you in advance, guys.
>>
>> Regards,
>>
>> Arturo Martin Llado.
> _______________________________________________
> 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
>
>
>
>
More information about the opencms-dev
mailing list