File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes facelets and custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "facelets and custom tags" Watch "facelets and custom tags" New topic

facelets and custom tags

J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
I�m using custom tags in a facelets/myFaces project, and can�t figure out how to get eclipse to recognize my custom tags. For example if I type <t: then control space the tomahawk tags show up with code complete. I�ve got my custom tag working and defined in the namespace, but can�t figure out this last step.

my jspx page


[ February 01, 2007: Message edited by: J Haley ]
Daniel Rhoades
Ranch Hand

Joined: Jun 30, 2004
Posts: 186
You probably need to create a normal TLD in additional to the Facelets taglib file, IDE's aren't that facelets friendly!

Drinking more tea is the key...
J Haley
Ranch Hand

Joined: Jul 22, 2004
Posts: 66
No luck. I tried creating a tld file and put it in my WEB-INF directory. Below my tag-class is empty. I did this because this is how jsf-ui.tld is set up. I also without luck, I tried putting my tag class here. I must be missing something.

I agree. Here's the link:
subject: facelets and custom tags
It's not a secret anymore!