Foren
ui:composition template in portlet
Oliver P., geändert vor 9 Jahren.
ui:composition template in portlet
New Member Beiträge: 14 Beitrittsdatum: 18.09.14 Neueste Beiträge
Hi,
I try to convert a JSF primefaces application to a portlet. The application constructs the ui with templates:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
template="/templates/masterLayout.xhtml">
<ui:define name="content">
...
masterLayout.xhtml defines a ui:insert name="content".
This content is exchanged if the user clicks on a p:menuitem like this:
<p:menuitem value="..." ajax="false"url="/views/anotherview.xhtml" />
This allows a menu on the left side which exchanges the content on the right side. Probably the problem is the url attribute of p:menitem which leads on its activation to the leaving of the portal.
Has somebody done something like this already or is it a limitation in the jsf portlet bridge?
Regards
Oliver
I try to convert a JSF primefaces application to a portlet. The application constructs the ui with templates:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
template="/templates/masterLayout.xhtml">
<ui:define name="content">
...
masterLayout.xhtml defines a ui:insert name="content".
This content is exchanged if the user clicks on a p:menuitem like this:
<p:menuitem value="..." ajax="false"url="/views/anotherview.xhtml" />
This allows a menu on the left side which exchanges the content on the right side. Probably the problem is the url attribute of p:menitem which leads on its activation to the leaving of the portal.
Has somebody done something like this already or is it a limitation in the jsf portlet bridge?
Regards
Oliver
Neil Griffin, geändert vor 9 Jahren.
RE: ui:composition template in portlet
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Oliver,
The url attribute of p:menuItem is probably a simple passthrough to the href attribute of a an html anchor tag. In a case like that, Liferay Faces Bridge does not have an opportunity to encode the URL.
According to the VDLDocs for p:menuItem, there is an outcome attribute that might be a better choice. Perhaps it will invoke implicit navigation when there is no outcome from a matching navigation-rule. So I recommend trying that instead of the url attribute.
Kind Regards,
Neil
The url attribute of p:menuItem is probably a simple passthrough to the href attribute of a an html anchor tag. In a case like that, Liferay Faces Bridge does not have an opportunity to encode the URL.
According to the VDLDocs for p:menuItem, there is an outcome attribute that might be a better choice. Perhaps it will invoke implicit navigation when there is no outcome from a matching navigation-rule. So I recommend trying that instead of the url attribute.
Kind Regards,
Neil
Oliver P., geändert vor 9 Jahren.
RE: ui:composition template in portlet
New Member Beiträge: 14 Beitrittsdatum: 18.09.14 Neueste Beiträge
Hi Neil,
with implicit navigation it works
Is the usage of primefaces extensions supported by the liferay bridge?
Regards
Oliver
with implicit navigation it works
Is the usage of primefaces extensions supported by the liferay bridge?
Regards
Oliver
Neil Griffin, geändert vor 9 Jahren.
RE: ui:composition template in portlet
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Oliver,
Due to Liferay's partnership with PrimeTek Informatics, Liferay EE customers can use PrimeFaces features that are covered by PrimeFaces Elite/Pro. I could be wrong, but I don't think that includes PrimeFaces extensions.
If you have time to try PrimeFaces extensions, then we would be happy to hear your feedback.
Kind Regards,
Neil
Due to Liferay's partnership with PrimeTek Informatics, Liferay EE customers can use PrimeFaces features that are covered by PrimeFaces Elite/Pro. I could be wrong, but I don't think that includes PrimeFaces extensions.
If you have time to try PrimeFaces extensions, then we would be happy to hear your feedback.
Kind Regards,
Neil
Oliver P., geändert vor 9 Jahren.
RE: ui:composition template in portlet
New Member Beiträge: 14 Beitrittsdatum: 18.09.14 Neueste Beiträge
Hi,
I tried to convert a JSF application to a portlet which uses pe:masterDetail. It seems that this does nocht work correctly. But I haven't spent many time to investigate it.
Kind Regards,
OIiver
I tried to convert a JSF application to a portlet which uses pe:masterDetail. It seems that this does nocht work correctly. But I haven't spent many time to investigate it.
Kind Regards,
OIiver