This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "facelets and custom tags" Watch "facelets and custom tags" New topic

facelets and custom tags

Ismael skabandri

Joined: Sep 10, 2009
Posts: 2
I'm using custom tags in a facelets/jsf project, and can't figure out how to get eclipse to recognize my custom tags. For example if I type <h: then control space the jsf tags show up with code complete. I've got my custom tag working and defined in the custum-taglib.xml, but can't figure out this last step.

meine jsf page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns=""

<ui:composition template="template.xhtml">
<ui:define name="faceletHeader">
<ui:define name="faceletContent">
<div id="menue">
value="Datei" menuItem1_Value="masterDetails_01" menuItem1_bean="#{dataTableScrollerBean}" menuItem1_action="gruss"
menuItem2_Value="masterDetails_02" menuItem2_bean="#{dataTableScrollerBean}" menuItem2_action="gruss2"
menuItem3_Value="abmelden" menuItem3_bean="#{dataTableScrollerBean}" menuItem3_action="logout" />


<h:form id="form04">

<myTag:myBaum />


my custom.taglib.xml :

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" "facelet-taglib_1_0.dtd">
I agree. Here's the link:
subject: facelets and custom tags
It's not a secret anymore!