Re: Taglib Documentation
"Sanjay Goel" <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Joe, The group I am searching for in groupListContainer is created in the jahia db itself. I tried searching it using the administration gui but it doesn't work there too. I am attaching the screenshots. I have created a group client_edu and I tried searching for group name client_ and client_*. Please let me know what I am doing wrong. Thanks Sanjay On 9/28/06, dominique (joe) pillot <[email protected]> wrote: > > > 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 > > -- Sanjay Goel http://sanjaygoel.blogspot.com
jahiagroup1.jpg
(image/jpeg, 46.8 KB) - not displayed
jahiagroup2.jpg
(image/jpeg, 41.2 KB) - not displayed