Fórumok
Change portlet windowstate by JSF / Icefaces navigation rule
Benjamin Becker, módosítva 13 év-val korábban
Change portlet windowstate by JSF / Icefaces navigation rule
New Member Bejegyzések: 22 Csatlakozás dátuma: 2010.03.11. Legújabb bejegyzések
Hello Liferay developers,
I have a question. Can I change the window state of a portlet by using a navigation rule. If it is possible please discribe me how this mechanism con be used.
Or have anyone another solution.
Regards Benjamin
I have a question. Can I change the window state of a portlet by using a navigation rule. If it is possible please discribe me how this mechanism con be used.
Or have anyone another solution.
Regards Benjamin
Fulvio Di Marco, módosítva 13 év-val korábban
RE: Change portlet windowstate by JSF / Icefaces navigation rule
New Member Bejegyzések: 4 Csatlakozás dátuma: 2010.04.27. Legújabb bejegyzések
Here's an example on how I control window states from JSF navigation rules
public String openSearchForm() {
PortletResponse portletResponse = JSFUtils.getPortletResponse();
ActionResponse actionResponse = (ActionResponse) portletResponse;
try {
actionResponse.setWindowState(WindowState.NORMAL);
} catch (WindowStateException e) {
logger.error(e.getMessage());
}
return "searchForm";
}
<navigation-rule>
<from-view-id>/pages/results.xhtml</from-view-id>
<navigation-case>
<from-outcome>searchForm</from-outcome>
<to-view-id>/pages/view.xhtml</to-view-id>
</navigation-case>
</navigation-rule>