How to send error message from Extension to Edit Content UI

Hi,

I am doing Extension to implement IPSRequestPreProcessor.

How do we pass error messages to be passed back to the user in the Content Editor (Edit Content) page to be displayed at the top as “red” error messages (I guess it uses ‘headercell’ CSS tag) ?

Thanks

Hi,

Just asking again… What is the method of passing error message from an extension back to the Content Editor UI (in the pre-processor extension)?

Thanks,
Rajesh

You can’t return that type of message using a pre-processor extension, those will cause an exception to be returned to the client. I think what you want is a field validation extension (IPSFieldValidator.) When you add this to a field, you set the message that appears at the top of the content editor ui. Inside the extension, you need to return a Boolean to indicate whether it passed or not (described in the interface’s javadoc.)