[opencms-dev] nullpointer exception while usingcontentloadonempty folder
David García González
david.garciag at fundacionctic.org
Fri Apr 7 10:11:56 CEST 2006
Hi list!
When I am using the contentload tag and I don't have any structured content to show, how could I show the button to add a new one? It doesn't appear.
Thanks!
***********************************************************************
David García González
Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: david.garciag at fundacionctic.org
Tfno: +34 984 29 12 12
-Parque Científico y Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org
***********************************************************************
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] En nombre de David García González
Enviado el: martes, 21 de febrero de 2006 17:28
Para: The OpenCms mailing list
Asunto: RE: [opencms-dev] nullpointer exception while usingcontentloadonempty folder
Hi list,
Try with this:
<cms:contentload collector="allInFolder" param="/|article">
<cms:contentinfo var="infoCollector" />
<c:if test="${infoCollector.resultSize le 0}">
<p>La lista está vacía</p>
</c:if>
<c:if test="${infoCollector.resultSize gt 0}">
<p><cms:contentshow element="Title" /></p>
</c:if>
</cms:contentload>
Thanks to Toni!
***********************************************************************
David García González
Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: david.garciag at fundacionctic.org
Tfno: +34 984 29 12 12
-Parque Científico y Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org
***********************************************************************
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] En nombre de Jonathan Woods
Enviado el: martes, 21 de febrero de 2006 17:19
Para: rene.machel at unitb.de; 'The OpenCms mailing list'
Asunto: RE: [opencms-dev] nullpointer exception while using contentloadonempty folder
Rene -
The contentcheck tag is meant to help you here. Documentation at
/alkacon-documentation/documentation_taglib/docu_tag_contentcheck.html (if
you've installed the Alkacon documentation module).
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of René Machel
Sent: 21 February 2006 16:15
To: opencms-dev at opencms.org
Subject: [opencms-dev] nullpointer exception while using contentload onempty
folder
hi list,
how can i check if there is xmlContent in my current folder without OpenCms
throwing a nullpointer exception if there is nothing to load (no teaser in
that folder) ?
my contentload jsp file looks like this:
<cms:contentload collector="allInFolderDateReleasedDesc"
param="${opencms.folder}teaser_${number}|teaser" editable="true">
do somethin
</cms:contentload>
thx in advance
rené
_______________________________________________
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/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/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/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list