GitHub user PhantomYdn opened a pull request:
https://github.com/apache/wicket/pull/74
Support of getting and setting properties customly in PropertyResolver
There is no way to customize getting of properties from the object. All
possible ways to gain properties are hardcoded in PropertyResolver.
But, for example, there is set of NoSQL document DBs which have some class
"Document" to work with DB. And to get some property of that document you
should call something like this: 'doc.getProperty("myPropertyName")'.
This pull request enables possibility to specify custom GetAndSet for your
type of object. Please take a look to PropertyResolverTest
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/PhantomYdn/wicket custom-properties
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/wicket/pull/74.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #74
----
commit 72073ee2cffcff4664792621540f3c08ad77aa9e
Author: Ilia Naryzhny <[email protected]>
Date: 2014-06-20T16:04:03Z
Non working draft of custom properties support in PropertyResolver
commit 5443eb2ddd16ecf03af0b8cd35490d35679942d8
Author: Ilia Naryzhny <[email protected]>
Date: 2014-06-22T06:44:23Z
Support of custom GetAndSeters for PropertyResolver
Test custom GetAndSetters for PropertyResolver
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---