-
1. Re: InfoBar MODE links does not work in EDIT mode after action.
kenfinni Mar 18, 2013 3:59 PM (in response to mbasovni)Have you tried using the way to navigate between portlet modes in JSF described here: https://docs.jboss.org/author/display/PBR/Switching+Portlet+Modes
-
2. Re: InfoBar MODE links does not work in EDIT mode after action.
mbasovni Mar 18, 2013 6:12 PM (in response to kenfinni)I tried it now. This way to navigate works only one-way for me:
view mode => edit mode
but not:
edit mode => view mode
The only way that works uses link generated by <
pbr:renderURL ...
Any idea?
-
3. Re: InfoBar MODE links does not work in EDIT mode after action.
kenfinni Mar 20, 2013 2:55 PM (in response to mbasovni)Does it generate any errors?
Or it just refreshes the edit mode page again?
-
4. Re: InfoBar MODE links does not work in EDIT mode after action.
mbasovni Mar 20, 2013 7:26 PM (in response to kenfinni)It just refreshes the edit mode page again.
-
5. Re: InfoBar MODE links does not work in EDIT mode after action.
kenfinni Oct 7, 2013 2:41 PM (in response to mbasovni)Martin,
I just added some tests to Portlet Bridge for navigation between modes, and it appears to work fine.
When on the edit page, something like the below enabled me to go back to the view page:
{code}
<h:commandButton id="homePageButton" action="main?javax.portlet.faces.PortletMode=view" value="Home" />
{code}
If you are performing an Action on the edit page and know you want to return to view on completion, you can return that String from the action method of the bean and it will do it without needing to click the link.
Ken