velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Bean Introspection
Date Fri, 25 Aug 2006 21:12:38 GMT
Currently there are two ways you can do this:

http://jakarta.apache.org/velocity/docs/api/org/apache/velocity/app/FieldMethodizer.html

http://wiki.apache.org/jakarta-velocity/PublicFieldUberspect

On 8/25/06, Gyanesh M Khanolkar <gyanesh@thoughtcircle.com> wrote:
> Hi,
>
>
>
> I have read in many forums for requests to read public fields ALSO incase
> the getters are missing. But it seems we are still going by the JavaBean
> specification which allows us to access the property ONLY via a getter
> variable.
>
>
>
> Preferably we would want to avoid the painful getters as it bloats up our
> already existing code.
>
>
>
> Would it be possible for you to reconsider this approach where
> $UserObj.FirstName will check with the getters : getFirstName() /
> getfirstName() and if both were not found, then it accesses the public
> variable FirstName.
>
>
>
> Introduction of this feature would be of great help as it helps us to reduce
> writing additional code which is often of no use.
>
>
>
> Regards
>
> Gyanesh
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message