Announcement Announcement Module
Collapse
No announcement yet.
How to customize the PropertyAccessStrategy ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to customize the PropertyAccessStrategy ?

    Hi,

    I'd like that my formModels use BufferedCollectionValueModel for Set-based properties of the formModel. I understand I have to supply my own PropertyAccessStrategy to be able to do this. The problem is that I don't see how to do this.

    aVKe
    Last edited by avke; Apr 6th, 2006, 03:44 AM.

  • #2
    The only way to do this right now is to extend AbstractFormModel and use this constructor from the derived class:

    Code:
    AbstractFormModel(MutablePropertyAccessStrategy propertyAccessStrategy, boolean buffered)
    Or, if you don't want to create a whole new access strategy, you can probably just override createValueModel to test for you special types and handle them and direct the rest to super.createValueModel.

    HTH,
    Larry.

    Comment

    Working...
    X