Facelets and custom tag
[Logo]
Forums for ICEfaces and ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Facelets and custom tag  XML
Forum Index -> General Help Go to Page: Previous  1, 2
Author Message
Adamax

Joined: 19/09/2007 00:00:00
Messages: 27
Offline


AFAIK the authorize tag doesn't work with icefaces. Use renderedOnUserRole and enabledOnUserRole attributes instead.
michelle2

Joined: 14/11/2007 00:00:00
Messages: 449
Offline


Tld's are not needed for facelet tags, tld's are only needed if you are doing custom ICE FACES components not simple facelet ones.

You just need a facelet tag descriptor file in web-inf, like this

<?xml version="1.0"?>
<!DOCTYPE facelet-taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
"facelet-taglib_1_0.dtd">
<facelet-taglib>
<namespace>http:/www.mcv.com/jsf</namespace>
<tag>
<tag-name>myFaceLetTag</tag-name>
<source>myFaceLetTag.xhtml</source>
</tag>

</facelet-taglib>

And a facelet lib entry in web-inf, see my previous post for detailed instructions. We found that concatanations of facelet libraries in web.xml don't work very well beyound 2. try to keep all your custom tags in one taglib if you can. Namespace is very important.

If you are ever going to do icefaces custom tags than best to put your tld
s in the icefaces meta-inf.
[Email]
 
Forum Index -> General Help Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7ice © JForum Team