View Poll Results: Do you use spring to handle your events?
- 5. You may not vote on this poll
I don't have events.
Mar 16th, 2006, 02:16 AM
JMS is J(2)EE only, it's for asynchronish messaging.
Andy: Could you describe some use cases of the event framework?
One of the things I have problems with in spring-richclient is the following use case:
- There are several check boxes in the form
- When checkbox a is clicked every other fields/checkboxes become read-only (nothing goes empty)
a is to set the record to "inactive"
- When checkbox b is clicked the fields become disabled + empty.
b is to make disable some fields when they don't apply
Currently I 've done the read-only/disabled state in a refreshMetaData() method, using the ValueModel (not the Value Object directly as the form hasn't been comitted to it yet) ... which is casting hell.
The empty-ing I cannot do in the refresh-metadata, as it's a one time thing the user can overrule later, so I do that in a regular Swing event listener.
Any pointers on how to improve this solution?