Bug 427769 - Support messages on FormPage
Summary: Support messages on FormPage
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Greg Amerson CLA
QA Contact:
URL: http://www.eclipse.org/forums/index.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 03:31 EST by Andreas Weise CLA
Modified: 2021-11-19 09:21 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Weise CLA 2014-02-10 03:31:08 EST
A warning/error message must be visible to the user in a SapphireFormEditor where the context of the error message is the entire editor (and not on a specific property editor).
Comment 1 Greg Amerson CLA 2014-02-18 00:45:40 EST
Could this be done by modify SapphireEditorFormPage and mimicking the refreshPageHeaderXXX methods and add a new one called refreshPageHeaderMessage()

The question would be where to get the message from?  Should it come from the user's model like some more of validation?  Like this.part.getLocalModelElement().validation().message();  However, validation services can't be attached 

If we keep this everything in the UI portion and avoid the model side, how should the API look?
Comment 2 Konstantin Komissarchik CLA 2014-02-18 12:41:37 EST
One approach would be to use an EL for the header message. This would be more flexible than wiring it only for validation. If EL returns a Status object (as opposed to a plain string), one could incorporate the severity into the presentation. 

${ SomeProperty.Validation }
${ MyCustomValidationFunction() }
${ SomeCondition ? "Some arbitrary message : null }
Comment 3 Konstantin Komissarchik CLA 2014-07-08 23:34:22 EDT
Greg, do you think you will be able to work on this for v9?
Comment 4 Greg Amerson CLA 2014-07-08 23:51:05 EDT
What is target release date for 9?
Comment 5 Konstantin Komissarchik CLA 2014-07-08 23:53:45 EDT
No specific release date yet. It would be good to aim approx for September, but that's fairly arbitrary.