You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Ivan Lazarte (JIRA)" <de...@velocity.apache.org> on 2008/04/25 02:59:55 UTC

[jira] Updated: (VELOCITY-592) Valid getter format not recognized by Engine when attempting to retrieve value.

     [ https://issues.apache.org/jira/browse/VELOCITY-592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Lazarte updated VELOCITY-592:
----------------------------------

    Description: 
I was using an class I had created in Eclipse to be parsed into a template Velocity.
In eclipse I generated getters and setters for my properties, one of which was a boolean variable named "isDateImportNeeded"

The corresponding getter generated was named "isDateImportNeeded", however Velocity was unable to retrieve this value in the template because it can only use getters of the form "getIsDateImportNeeded"

Both are valid JavaBeans specification names, so ideally Velocity would support both versions.

Thanks!

  was:
I was using an object created with beans automatically to be parsed by Velocity.
The tool (Eclipse) I was using had generated getters and setters for me.
A boolean variable "isDateImportNeeded" was generated a getter a setter.

The getter generated was named "isDateImportNeeded" while Velocity can only use "getIsDateImportNeeded"
Both are valid JavaBeans specification names, so ideally Velocity would support both versions.

Thanks!


> Valid getter format not recognized by Engine when attempting to retrieve value.
> -------------------------------------------------------------------------------
>
>                 Key: VELOCITY-592
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-592
>             Project: Velocity
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: Windows XP SP2, Java 1.6.0_05
>            Reporter: Ivan Lazarte
>
> I was using an class I had created in Eclipse to be parsed into a template Velocity.
> In eclipse I generated getters and setters for my properties, one of which was a boolean variable named "isDateImportNeeded"
> The corresponding getter generated was named "isDateImportNeeded", however Velocity was unable to retrieve this value in the template because it can only use getters of the form "getIsDateImportNeeded"
> Both are valid JavaBeans specification names, so ideally Velocity would support both versions.
> Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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