Showing results for 
Search instead for 
Did you mean: 

Message Area problems

Former Member
0 Kudos

I have a view with a tree on the left, a details view on the top right, and a reference table on the bottom right. As you can guess, there are many cases where I need to display info or error messages to the user and would like to have the messages appear below the particular view that caused the problem. I also use modal dialogs on this page and would like to use messages on it as well (and have the messages appear on the dialogs themselves).

Due to the logic the MessageManager uses to determine where to display messages, I can't control the enabled/visible properties of my MessageAreas at runtime because they only actually display messages if they are bound to read-only context attributes.

How can I use multiple MessageAreas on one screen?


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


Well i guess you have 3 viewsets if i am not wrong.Even if it is 2 viewsets its fine. Say one contains the Tree element in the left View and the right hand side contain 2 other views say table and form.

Define explicit message areas on each of the views.

Well before that the thing you will have to do is create a boolean context attribute in the view context and have the read-only property of that attribute to true.

Then bind this attribute to the enabled property of the explicit message areas defined in the views. When you want to display messages in the Left view enable the message area at runtime.

When you want to display messages in the Table View enable that message area and disable the remaining message areas. Do this as per your requirement.

This is the only way you can do it. We are doing it for multiple popups and it works.The maximum popups we have in our scenario is upto 3 levels. So i guess for any level of popups we should be able to display the messages in that respective window in this way.

let me know if that helps you.



Former Member
0 Kudos

Thanks for the answer. This worked great. It just threw me off that you have to use read-only context attributes to control the message areas, when in fact you are modifying their values at runtime.

Thanks again,


Former Member
0 Kudos

The read-only property of a context attribute means that this attribute may not be changed by the client.

See Javadoc for IWDAttribute:


public boolean isReadOnly()

Checks whether this attribute is read only <b>for clients</b>.

Note: if an attribute is read-only for clients, it might or might not be writable for applications. Normally all attributes are writable for applications, but if a context attribute is mapped to a model class property and if that model class property is read-only or if the attribute is calculated and no setter is declared, then the attribute is read-only for applications, too.


read only state of attribute


Answers (0)