Hi All,
I am doing customization on WDK in which if there is any error due to any default component/custom component/Workflow I need to show default message saying "Please contact System Administrator".
Have anybody done this before?
If I could understand your requirement well, you need a custom message to be shown in case an exception occurs in your behavior class? In your component class you can call a Java Script function which will show the alert. Call: setClientEvent( "onError", arg ); onError is the Java Script function. Also you need to register the client even handler in the JSP: registerClientEventHandler(null, "onError", null); Thanks, Abhishek
Thanks Abhi,
Do you mean to say that I need to customize every component?
My requirement is for all webtop in any operation id user see any error, it should display custom error.
If that is the case you may create your custom component to show the error message. Call this component whenever exception occurs in any of the other component. In the error component's onInit call setClientEvent.
You may consider customizing the existing error component, I am not sure if that will fit with your requirements. The first option you may anyway go ahead with.