Ok,

I had already seen this wiki page. An implemented a subclass o MyFacesGenericPortlet that implements these methods.

But it has some limitations.

First: I can't call an managed bean action when the mode is changed.
Second: The rules in navigation rules are not followed.
Third: It don't reset faces navigation state. So when I enter in edit mode, make some faces navigation, and go back to view mode everything work well. But when I maximize the portlet the last edit page I were before changing to view mode is displayed and not the view page I were.

I would like some suggestions on how to implement these requisites

Thanks


Dave Brondsema wrote:

Patrick Dalla Bernardina wrote:
How can I call an managed bean action when portlet mode (EDIT,VIEW) is
changed and process the navigation rules to discover the page to be
rendered?

You can use http://wiki.apache.org/myfaces/UsingPortletModes as a
starting point.

To invoke a managed bean action, something like this will work I think:

ValueBinding binding =
FacesContext.getCurrentInstance().getApplication().createValueBinding("#{myBean.someAction}");
Object methodResult = binding.getValue(FacesContext.getCurrentInstance());



Reply via email to