Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » XHTML Editor and JSF Custom Component and Namespace resolution problem
XHTML Editor and JSF Custom Component and Namespace resolution problem [message #620451] Wed, 06 January 2010 14:27 Go to next message
Mauro Monti is currently offline Mauro MontiFriend
Messages: 2
Registered: January 2010
Junior Member
Hi everybody,

I have a problem developing custom jsf component, particulary with the resolution of the namespace of my custom components library in design time.

I have 2 projects.

A java project (CustomComponent) with this structure:
+ src/
+ component clases, renderers, etc.
+ META-INF [dir]
+ facelet
+ custom-component.taglib.xml
+ faces-config.xml
+ custom-component.tld

A web project to test my library.
+ src/
+ META-INF (empty)
+ lib
+ web.xml
+ faces-config.xml
+ home.xhtml

So, in the web project i have defined the dependencies (ComponentShowcase have a reference to CustomComponent project). When i edit the home.xhtml file, and add the namespace (defined in the custom-component.taglib.xml)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns=""
<ui:insert name="title">Default title</ui:insert>

The editor validate the namespace and show: "Can't find facelet tag library for uri"
The only solution that i have found for this problem is copying the custom-component.taglib.xml and custom-component.tld to the META-INF directory of the web project. With these files in the META-INF directory, can i reference my custom tags in the xhtml editor.

So ... my question is:
if it's possible avoid to copy those files to the web project and make a reference to the java project, to make the editor found the tag library (my idea is make a jar to distribute my components) ?

Thanks in advance!.
Re: XHTML Editor and JSF Custom Component and Namespace resolution problem [message #621228 is a reply to message #620451] Fri, 19 February 2010 22:05 Go to previous message
Raghu Srinivasan is currently offline Raghu SrinivasanFriend
Messages: 265
Registered: July 2009
Senior Member
I have launched a bug to track this issue:

Please note that we will address it the upcoming WTP Helios release as part of support for JSF 2.0.

Raghu Srinivasan,
Project Lead - JSF
Previous Topic:XHTML Editor and JSF Custom Component and Namespace resolution problem
Next Topic:Exception when using the JSF Facelets Tools Incubator
Goto Forum:

Current Time: Mon Oct 05 17:14:09 GMT 2015

Powered by FUDForum. Page generated in 0.01619 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software