Le 28 sept. 06 à 13:56, Sanjay Goel a écrit :

I want to know how to package a custom taglib with jahia. Lets say my custom template needs a custom taglib and some custom java classes. How to package them separately from jahia.
there is a lot of methodologies to package a customlib, including tlds, java class, and jsps)inside or outside the JahiaCode, with pros and cons, too long to discuss here.

But you must follow at minima these points:
1.you need to declare a specific TLD with a distinct shortname, with the description of each tags and the packaged path of the java code's relative 2.this tld(s) must be deployed from the source location by your specific compile/building/deploy process inside the WEB-INF of the Jahia webapp 3.you must declare inside your jsp(s) your intention to use tags of the taglib by a declaration like this:
<%@ taglib uri="jahiaHtmlLib" prefix="jahiaHtml" %>
4. you need to restart your tomcat

as starting point, i suggest you to create inside the webapp/WEB-INF/ etc/taglibs your tld, and create you code inside a folder in the org.jahia.taglibs, this way as you hotdeploy using maven, you dont need to write any specific goal nor ant task, even this approach have serious drawback on a long-time.

With regards to the groupListContainer, I want to display only those groups whose name start with client_. I checked out that groupList tag has a criteria attribute, but giving groupname=client_* in that doesn't work. The query attribute doesn't work too.


Sanjay, please try to test your criteria inside the administration gui (group search) to double-check if your ldap is ok(if needed you can activate debug in the log4j.xml. if this fail too, try to check with a external ldap client with similar critrerium, otherwise there is a a bug in the grouplistContainer, you will be very kind to enter a jira with a maximum of information (trace, etc).

regards joe

Reply via email to