[forge-issues] [JBoss JIRA] (FORGE-856) JSF scaffold from entity error with private get method

Vineet Reynolds (JIRA) jira-events at lists.jboss.org
Thu Jul 4 10:48:22 EDT 2013


     [ https://issues.jboss.org/browse/FORGE-856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vineet Reynolds closed FORGE-856.
---------------------------------

    Fix Version/s: 1.3.3.Final
                       (was: 1.x Future)
       Resolution: Done


Pushed uptream: https://github.com/forge/core/commit/02a04ff4e8e8aa8788eef2c19a7f618606bd48d7

Only public methods are considered for identifying getters and setters to build up metadata about metawidget properties. This makes sense since non-public members would impose constraints on the kind of code that would be generated to access properties if such properties exist (for e.g. EL expressions in this case).

Moreover, if metawidget properties were to be treated as the equivalent of JavaBean properties, then public getters/setters are required, going by Section 8.3.1 of the JavaBeans specification.
                
> JSF scaffold from entity error with private get method
> ------------------------------------------------------
>
>                 Key: FORGE-856
>                 URL: https://issues.jboss.org/browse/FORGE-856
>             Project: Forge
>          Issue Type: Bug
>          Components: Scaffold
>    Affects Versions: 1.2.3.Final
>            Reporter: Jason Porter
>            Assignee: Vineet Reynolds
>             Fix For: 1.3.3.Final
>
>
> Not sure if this is a bug in Forge or MetaWidget, but if you have a private method named get<whatever else> when the page is generated it thinks that's a getter and adds it to the page and the EL, which of course blows up.
> You can see that in TicketMonster (up until commit 2b80ca6) in the SectionAllocation entity.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list