In Wicket 1.2, if an object has a public variable named “property” but no getProperty() / setProperty() methods, can we use the string “property” in constructing a PropertyModel?

 

It seems that we could do this in Wicket 1.1, which used OGNL -- as OGNL mentions using a variable name if the getters/setters are absent.  However, the JavaDoc for PropertyResolver in Wicket 1.2 does not mention finding aptly named instance variables.  Is this an oversight in the documentation, or is this one of the infrequently used OGNL options that was sacrificed for efficiency?

 

Reply via email to