Hi all,

It doesn't look like the CONFIG mode passes through render parameters on the 
ActionResponse, is this true? Because I am setting them when validation fails 
on portlet preferences and it's refreshing the page back to the same mode, but 
not sending through the error message I want to render when it does so.

try {
        prefs.store();
        response.setPortletMode(PortletMode.VIEW);
} catch (ValidatorException e) {
        response.setRenderParameter("errorMessage", e.getMessage() + ":" + 
e.getFailedKeys());
        log.error(e);
} catch (IOException e) {
        response.setRenderParameter("errorMessage", 
Messages.getString("error.form.save.error"));
        log.error(e);
} catch (PortletModeException e) {
        e.printStackTrace();
}


in JSP:
<c:if test="${not empty errorMessage}">
        <p class="portlet-msg-error">${errorMessage}</p>
</c:if>


It works fine when using the normal EDIT mode though...

cheers,
Steve
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to