MasterDetailsBlock - any way to veto details page switch? [message #448237] |
Wed, 19 April 2006 13:17 |
Eclipse User |
|
|
|
Originally posted by: mmcsweeny.3esi.com
Hi,
I am using a MasterDetailsBlock in Eclipse 3.1.2. As it stands, there does
not appear to be any way for a given details page to veto a switch to
another page. For example, I may not be able to commit the current details
page due to validation errors in its fields.
I considered throwing an unchecked exception from within the commit() method
that the outer container would trap and handle appropriately, but that
strategy interferes with the operation of the page cache in the DetailsPart.
And it is an ugly solution ;-)
Another option is to write my own version of MasterDetailsBlock with a
slightly different life-cycle, but that seems like overkill. I would need
to make my own versions of the various interfaces related to
MasterDetailsBlock (e.g. IDetailsPage, IDetailsPageProvider, IManagedForm,
etc) to accomodate a change to the signature of the commit() method.
Can anyone suggest a best practice for dealing with this situation?
Thanks,
Mark
|
|
|
Powered by
FUDForum. Page generated in 0.02879 seconds