If an error happens, you need to configure the render parameters in the
processAction for the next render (hence doView) method, such as:
| resp.setParameter("error", "My Error Message");
|
Then in doView you can do:
| String error = req.getParameter("error");
| if (error != null)
| {
| displayError(error);
| }
| else
| {
| // Normal treatment
| }
|
Of course the down side of this way to do is that the error message will happen
on every render of the portlet until the user clicks on one link of the portlet
that will change the render parameters.
If you want to void that then you should store the error message in the
PortletSession and remove it from the session during the render.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061649#4061649
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061649
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user