It is possible in 1.2. Just ensure the field is public. And it should work.

Frank Silbermann wrote:
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?




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to