This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes Eclipse editors for Facelets xhtml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Eclipse editors for Facelets xhtml?" Watch "Eclipse editors for Facelets xhtml?" New topic
Author

Eclipse editors for Facelets xhtml?

iain coghill
Greenhorn

Joined: Apr 19, 2009
Posts: 11
What editors are people using to edit .xhtml Facelets files in Eclipse?

In the past I have always used xmlbuddy for all xml stuff but it keeps flagging errors - it does not like the jsf namespace declarations. e.g.

results in the errors

Error - Attribute "xmlns:ui" must be declared for element type "html".
Error - Attribute "xmlns:h" must be declared for element type "html".


Is there a better editor or some way to configure xmlbuddy to handle this?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16022
    
  20

I've just been using the XML editor that's part of Eclipse Ganymede. The original version of that one had a serious problem, however - reformatting the XML caused it to drop quotes and display false error messages. A recent update has repaired that.

The editor is supposed to be able to do tag/attribute hinting based on the DTD/schemas indicated. I haven't had much success with that, lately.


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

Joined: Mar 23, 2005
Posts: 17

I am having this same problem with Facelets and Ganymede - in my case it also objects to the ui:component tags inside the body tag too.

Is there any way to turn off the excessive zeal of the xml parser?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse editors for Facelets xhtml?