FormPage messages [message #1174694] |
Thu, 07 November 2013 04:01  |
Eclipse User |
|
|
|
Hey everyone,
I have a use-case where I want to display a warning/error message to the user in a SapphireFormEditor where the context of the error message is the entire editor. Here is the background, to "fully" run one of our sapphire-based editors it requires special project metadata, but it is very common for imported projects or new projects to sometimes not have this metadata. Currently we only display this for the user as a problem marker in the problems view, but many times they wont see that and they will open our editor anyways. In these cases we would like to display a 'warning' or 'error' on the whole editor context.
An analog for this situation is the m2e pom.xml editor. In that editor, if the pom.xml has an overall configuration problem so the editor won't function fully so they display a warning message at the top to alert the user to this issue. (see screenshots)
I'm wondering if this type of feature would be good to bake into sapphire. I know the SapphireFormEditor doesn't prevent the use of 'getPage().getManagedForm().getMessageManager().addMessage(...)' so it can be done manually by adopters, but before coding for this API I wanted to check to see if this was of interest to other Sapphire adopters or sapphire team as a feature request (also I can volunteer some time from someone on my team here at Liferay to work on such a feature).
Thanks.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03176 seconds