Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » No validation of JSF tag attributes?
No validation of JSF tag attributes? [message #728472] Fri, 23 September 2011 10:31
mike is currently offline mikeFriend
Messages: 1
Registered: September 2011
Junior Member
Hi, hoping someone can help.

I'm using Eclipse Indigo Java EE to develop a JSF2 based application. We're in the process of converting from one taglib library (Myfaces Trinidad) to another (Primefaces), which involves a fairly laborious process of editing each .xhtml file and converting each JSF component from one form to another.

Unfortunately, we're not seeing any validation of tag attributes so it's making it really difficult to see when we've incorrectly converted a page.

To provide an example:

  <p:inputTextarea id="comments"
    cols="75" rows="6" maxlength="60000">

The primefaces tag for inputTextarea expects an attribute maxLength (uppercase 'L') - in the above example I would expect eclipse to highlight the incorrect attribute name, but it doesn't. Note that the lack of validation applies to all the tag libraries we're using, not just primefaces.

Interestingly, it does highlight incorrect attribute names for custom components that we have developed. Hence, it would seem this type of validation is there, but for some reason, not being applied to the standard tag libraries that we're using.

Does anyone know how to fix this?

Previous Topic:java stack is not updated when debugging jsf (on glassfish3)
Next Topic:newbie
Goto Forum:

Current Time: Mon Nov 19 21:31:16 GMT 2018

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

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

Back to the top