Re: Iterate over containerList with JSTL

Serge Huber <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
The actual method on the SiteBean is :

SiteBean.getAllContainerLists(String containerListName)

If you cannot access it using JSTL (It's been a while since I've used 
JSTL), you might want to try the Struts taglibs, or even call the method 
from scriplet java code if all else fails.

Please note that this method does come with a performance cost since it 
loads a *lot* of content.

Regards,
   Serge Huber.

At 19:03 12.07.2004, you wrote:

>According to the draft version of the template developer documentation I 
>tried to use the JSTL expression
>
>- ${currentSite.allContainerLists[partnerContainer]}
>
>but I get an error:
>An error occurred while evaluating custom action attribute "items" with 
>value "${currentSite.allContainerLists[partnerContainer]}": Unable to find 
>a value for "allContainerLists" in object of class 
>"org.jahia.data.beans.SiteBean" using operator "." (null)
>
>It looks like it has not been implemented according to the proposal. I 
>would like to iterate over a container list and display the fields of the 
>containers by simplay using the JSTL tags <c:forEach> and <c:out>. Is it 
>already possible?
>
>Greetings,
>Benjamin Papez

- -- --- -----=[ serge.huber at jahia dot com ]=---- --- -- -
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.