Hi,
i want to display my custom error message in webtop(eg: custom import failed). can anybody give suggessions for me where to display the error message and how to do it?
thanks in advance.
You can use the MessageService add message method like
MessageService.addMessage(this,"MSG_IMPORT_POA_SUCCESS", new Object[]{strFileNameReq});
If it is a custom component you can add a label field on the JSP
Create a method to populate and/reset the field
In the catch block call the method passing the appropriate String message from the exception
Regards,
Niranjan
Hi Niranjan,
Thanks for ur reply. I go for the second method. but i am using dialogcontainer so if i press the ok button the dialogcontainer is getting disappered without displaying the error message. do u have any other suggestion for this issue. thanks.
You can use a boolean and the error message variables set in the session in the catch block of the component
Retrieve the values in the container onCommitChanges and if there is an error prevent from commiting
The navigation should remain on the same page and display the message
When the error is rectified in the component reset these values
Niranjan as i am new to wdk customization i cant understand what you are saying and struggling to implement it. it vil be very much useful if u send me the sample code. Thanks in advance.