[jboss-user] [JBoss Tools (users)] - Validate (Eclipse Seam Validator) problem
Kragoth
do-not-reply at jboss.com
Thu Aug 21 22:45:14 EDT 2008
I've noticed a small problem with the Seam Validator in the jboss Tools plugin.
The problem occurs if you have an attribute on a class where the second letter of the attribute is a capital letter.
eg.
| private GekkoMoney aRP;
|
Now according to java standards the getter for this property would be.
| public GekkoMoney getARP() {
| return aRP;
| }
|
Thus you would expect to reference the property in your xhtml EL expressions like this.
| #{item.debitControlChange.ARP}
|
The above el expression works but, the Seam Validator gives me this error when validating the expressions on the page.
"ARP" cannot be resolved.
It would seem that the EL resovler used when the page is running in the web app looks for the method getARP() which it finds. But the seam validator is looking for the property ARP which of course it doesn't find.
Shouldn't the validation use the same technique to test if an EL expression is valid or not? It is rather annoying for the validation to say the expression is wrong when it is not wrong.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171932#4171932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171932
More information about the jboss-user
mailing list