There are two methods you can use to add messages to the messaging UI from a form handler:
Add a servlet bean exception with a message to the form handler by invoking the
addFormException()
method on the form handler. The message property on the added exception will be displayed by the UICreate a user message bean (
atg.web.messaging.UserMessage
) directly and add it to the messaging slot using theMessageTools
addMessage()
method
The messaging UI will also display unhandled exceptions from the form handlers and server-side business logic.