on 09-25-2008 12:03 PM
Hi everybody,
how can i use two different MessageArea. Until now all my error messages from the MessageManager
appear in the first MessageArea. I need two MessageArea because i have different positions
for my error messages.
IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();
messageMgr.reportContextAttributeMessage(
wdContext.nodeVD().currentVDElement(),
wdContext.nodeVD().getNodeInfo().getAttribute( wdContext.currentVDElement().TARGET_PATH ),
IMessageVD.IS_FILE_ERROR,
new Object[] { wdContext.currentVDElement().TARGET_PATH },
true
);
regards,
Seed
Edited by: seed_mopo on Sep 25, 2008 1:04 PM
Hi ,
Try the following approach and see if it works.
create two context value attribute of type boolean and bind the enable property of both the message area to both the context.
in the wdDoInit method set one message area enable property as true,for other keep it false.
Now depending on the error message nature enble the respective Message Area and disable the other one.Before reporting the exception.
make sure that both message areas should not be enable at the same time.
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seed,
You can have any number of 'MessageArea' elements defined in your view but WD Framework will display messages in First available MessageArea. So, if you use 2 message areas, it is not possible to use them simultaneously.
You must set 'Enabled' property of one message area to 'False' to display messages in Second message area. You can define 2 attributes of type Boolean in your context, bind them to 'Enabled' property of message areas and then use them to switch on and off message areas as per requirement.
I tried this approach and this works.
Hope this helps.
Vishwas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.