Hi All... I'm finding using portlet modes in jsf at the very least cumbersome... Is this really how it is? Should I just forget about portlet modes and use jsf navigation rules to compensate?

I'm doing stuff like this: If you hit the edit icon you are taken to the edit jsp correctly (so far so good) via override to doEdit and calling nonFacesRequest

However, when I want to switch back to view mode, I'm having to override processAction where i can switch the mode, however, i can't see any of the parameters and attributes changed in portlet request by my bean action listeners... So... i either use a session attribute or do the switch blindly...

Worse, switching modes doesn't change the VIEW_ID (expected) but i seem to only be able to change that back in doView now (since i changed mode back to view) by checking if i was looking at my "edit" view page... Still is too late to validate if i really wanted to go there...

Is this really how it is done? Anyone else using portlet modes?

Thanks in advance!

Reply via email to