[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to