myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <simon.kitch...@rhe.co.nz>
Subject Re: Problem With <t:updateActionListener> and Facelets
Date Wed, 20 Dec 2006 19:53:25 GMT
Jeff Bischoff wrote:
> Madhav Bhargava wrote:
>  > That is correct. It is a problem that i caused by property resolver. It
>  > internally uses the Introspector to get all the properties and their
>  > accessor methods and any other methods.
>  >
>  > In a special case like - "sOmeBean" this will cause a problem because of
>  > decaptilization.
> 
> Is this really a "problem"? While nothing in the specs prohibits a 
> property named "sOmeBean", it clearly violates the conventions 
> established in the JavaBeans specification [1], section 8.8. As long as 
> you follow the guidelines in this document, the Introspector should have 
> no trouble handling your property names.
> 
> I should mention "qType" also violates that same convention. :)
> 
> [1] http://java.sun.com/products/javabeans/docs/spec.html

And for really tricky cases, you can always write a BeanInfo class to 
explicitly declare the properties available on a class.

Cheers,  Simon

Mime
View raw message