Description
For example, we have page class; page shows "select" component on corresponsing page :
public class FooPage {
...
// now let's define Property "organizations"
@Property
private List<Organization> organizations;
// we create method for getting SelectModel class for "select" component
public SelectModel getOrganizations() {
... blablabla
}
...
}
And on page:
...
<t:select t:id="organization" model="getOrganizations" value="user.organization" encoder="getValueEncoder()"/>
...
Ok. What's happen now? The behaivour of this situation is not defined. Tapestry can invoke "SelectModel getOrganizations()" or "List<Organization> getOrganizations()" in arbitrary order (it is clear why).
It would be good, if Plastic throws an exception, when it redefines getter which already exists.
Attachments
Issue Links
- relates to
-
TAP5-2268 @Property may generate a method that conflicts with an existing one, without error, and with unpredictable results
- Closed