Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes XML namespace problem in JSF 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "XML namespace problem in JSF 2.0" Watch "XML namespace problem in JSF 2.0" New topic
Author

XML namespace problem in JSF 2.0

Jhon Ortiz
Greenhorn

Joined: May 28, 2009
Posts: 16
Hi all!

I'm following CoreServlets.com JSF 2.0 (http://goo.gl/D3qwj), now I'm located at ui:repeat and Handling Variable-Length Data (http://goo.gl/SdKrk). in the example: http://www.apps.jsf2.com/looping/composite-component.jsf I have a problem with a XML namespace: xmlns:utils="http://java.sun.com/jsf/composite/util" in Eclipse. This is warning message in the editor:

NLS missing message: CANNOT_FIND_FACELET_TAGLIB in: org.eclipse.jst.jsf.core.validation.internal.facelet.messages

I have checked JSTL JSF implementations, and they are included in the project: http://goo.gl/WGT8F

I have tried: replace libraries, copy and paste the entire example, reload the project, restart Eclipse, etc., but the problem persists.

Can you give me some orientation about this issue?

Note: I'm using JBoss Tools 3.

Thanks in advance.

Regards,
John Ortiz
Jhon Ortiz
Greenhorn

Joined: May 28, 2009
Posts: 16
Someone can help me with this issue? Thanks in advance.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

I found a whole forum thread consisting of people asking each other what http://java.sun.com/jsf/composite/util is and where to find it.

After a lot of digging around, I've come to the conclusion that it isn't actually a standard Java tag library, it is the user-defined tag library that was given a Sun URI. Which in my opinion was a very bad idea, since, as you can see, it confuses people.

Assuming that this is the case, the "tag library" in question is your composite control definition and therefore one of the following is probably causing the error:

1. You forgot to include this file in your project.
2. You put it in the wrong place in your project.
3. You mis-spelled the name of the component file.
4. You spelled the name correctly, but didn't get all of the uppercase/lowercase letters correct. This is most commonly a Windows problem, since the Windows filesystem is case-agnostic, but Java is not.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jhon Ortiz
Greenhorn

Joined: May 28, 2009
Posts: 16
Thanks a lot for your help Tim Halloway,

By default the configuration project searchs for that files or composite components, in WebContent/resources. I have moved that files from a sub-folder (resources) to the root folder, now everything is working.

Thanks again for your support.

Regards,
John Ortiz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML namespace problem in JSF 2.0