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 06:31
mike is currently offline mike
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"
    value="#{customerBean.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?

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


Current Time: Wed Jul 30 07:26:41 EDT 2014

Powered by FUDForum. Page generated in 0.01499 seconds