Foros de discusión
RE: Links in JSF portlet
Jitender Dhiman, modificado hace 11 años.
Links in JSF portlet
Junior Member Mensajes: 29 Fecha de incorporación: 21/09/12 Mensajes recientes
Hi, I am new to liferay ..
I want to create link of other page in my JSF portlet.
I am using :
<portlet:renderURL var="kpage">
<portlet:param name="hm" value="/kpage.xhtml" />
</portlet:renderURL>
<h:outputLink value="#{kpage}">s</h:outputLink>
But it does not works..
both pages are in views folder.
I want to create link of other page in my JSF portlet.
I am using :
<portlet:renderURL var="kpage">
<portlet:param name="hm" value="/kpage.xhtml" />
</portlet:renderURL>
<h:outputLink value="#{kpage}">s</h:outputLink>
But it does not works..
both pages are in views folder.
Neil Griffin, modificado hace 11 años.
RE: Links in JSF portlet
Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Do you want to simply navigate to a different JSF view in the same portlet? If so then you can do something like this:
The usage of portlet:renderURL would be more appropriate for re-rendering the current portal page.
<h:commandbutton action="/kpage.xhtml" value="Click Me" />
The usage of portlet:renderURL would be more appropriate for re-rendering the current portal page.
Jitender Dhiman, modificado hace 11 años.
RE: Links in JSF portlet
Junior Member Mensajes: 29 Fecha de incorporación: 21/09/12 Mensajes recientes
Thanks Neil.
but for commandlink we have to use form also..
Can we make links without creating form...?
but for commandlink we have to use form also..
Can we make links without creating form...?
Neil Griffin, modificado hace 11 años.
RE: Links in JSF portlet
Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
The h:commandButton and h:commandLink component tags must be surrounded by h:form in order to work. This is because the JSF lifecycle has to be executed in order to execute the NavigationHandler which transitions to the next viewId.