Forums de discussion

[Primefaces] Making a permissionUrl

antoine caron, modifié il y a 11 années.

[Primefaces] Making a permissionUrl

New Member Envoyer: 1 Date d'inscription: 08/06/12 Publications récentes
Hello,

I work for IT&L@bs (Orange Business Services France).
During the preparation of training courses that includes all the basic content that is required to understand and work with Primefaces in portlet environment, we found a bug in creation of permissionUrl during a Resource Phase.

Component: liferay-faces-portal
Method getPermissionsURL(FacesContext, UIComponent) in PermissionsURLRenderer class should use

ExternalContext externalContext = liferayFacesContext.getExternalContext();
MimeResponse mimeResponse = (MimeResponse) externalContext.getResponse();
PortletURL portletURL = mimeResponse.createRenderURL();


instead of

L115 : RenderResponse renderResponse = liferayFacesContext.getPortletRenderResponse();
L117 : PortletURL portletURL = renderResponse.createRenderURL();


Best Regards,
Antoine Caron
thumbnail
Neil Griffin, modifié il y a 11 années.

RE: [Primefaces] Making a permissionUrl

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Fixed, thank you! FACES-1283