掲示板

ui:composition template in portlet

thumbnail
9年前 に Oliver P. によって更新されました。

ui:composition template in portlet

New Member 投稿: 14 参加年月日: 14/09/18 最新の投稿
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
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: ui:composition template in portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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
thumbnail
9年前 に Oliver P. によって更新されました。

RE: ui:composition template in portlet

New Member 投稿: 14 参加年月日: 14/09/18 最新の投稿
Hi Neil,

with implicit navigation it works emoticon
Is the usage of primefaces extensions supported by the liferay bridge?

Regards
Oliver
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: ui:composition template in portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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
thumbnail
9年前 に Oliver P. によって更新されました。

RE: ui:composition template in portlet

New Member 投稿: 14 参加年月日: 14/09/18 最新の投稿
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