Foren

Using JSP with PortletFaces Bridge / IceFaces 2.0

PortletFaces Community Member, geändert vor 13 Jahren.

Using JSP with PortletFaces Bridge / IceFaces 2.0

Regular Member Beiträge: 199 Beitrittsdatum: 03.04.12 Neueste Beiträge
Hello everybody,

to use the Liferay-UI and AlloyUI taglibs i need to use JSP as the view description language. As far as i know there is no need to configure anything to use JSP instead of Facelets in JSF2.0, but still I get the following exception:

09:17:36,053 ERROR [jsp:154] javax.faces.FacesException: Das FacesServlet kann kein url-pattern von /* haben.  Geben Sie ein anderes url-pattern an.
	at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:325)
	at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:150)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
	at BridgeImpl.java.doFacesRequest(BridgeImpl.java:241)
	at org.portletfaces.bridge.GenericFacesPortlet.doView(GenericFacesPortlet.java:194)
	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
	at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)
	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:92)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
	at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:638)
	at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:723)


The Facelet Servlet URL-mapping is configured as *.jsf, therefore i don't unterstand why this exception occures. I hope somebody can help me with that, even if JSP is no longer the recommended VDL in JSF2.0.
thumbnail
Neil Griffin, geändert vor 13 Jahren.

RE: Using JSP with PortletFaces Bridge / IceFaces 2.0

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
I've created a new project under incubation in the source repository called "AlloyFaces" and for more information you can refer to http://issues.liferay.com/browse/FACES-1

We have no plans of supporting JSP technology in the bridge because there are so many JSF 2.0 features that are only provided by Facelets. So I think the best approach for supporting Alloy is to start with some Facelet Composite Component tags. Enjoy!
Deepak Alibade, geändert vor 13 Jahren.

RE: Using JSP with PortletFaces Bridge / IceFaces 2.0

New Member Beitrag: 1 Beitrittsdatum: 06.01.11 Neueste Beiträge
Hi,
I am using JSF2.0 with glassfish v2.1.1 along with latest Portlet Bridge version . I want to use Rich Interfaces provided by "AlloyUI" and "LiferayUI" tags in my project. Niether I am able to use JSP in my project nor I am able to use custom tag's for AlloyUI" and "LiferayUI" on XHTML page.
When I use JSP in my project I get error Invalid URL pattern /*.

I have referred your project called "AlloyFaces" and "Liferay" from your SVN but there are very few custom tag's present there so what I have to do to use remaining custom tag's provided by "AlloyUI" and "LiferayUI".

I am working on AGILE methodology, so I have very short period to do R & D. So please provide me with Your solution on this.
thumbnail
Neil Griffin, geändert vor 13 Jahren.

RE: Using JSP with PortletFaces Bridge / IceFaces 2.0

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
There are so many features of JSF 2.0 that are only available for Facelets, that we decided to only support Facelet in PortletFaces Bridge, and to not support JSP.

To this end, the AlloyFaces project currently implements the following tags as Java UIComponents:

aui:button-row
aui:column
aui:convertLongList
aui:field
aui:fieldset
aui:form
aui:list
aui:list-item

See: https://github.com/liferay/liferay-faces/blob/master/alloy/src/main/resources/META-INF/aui.taglib.xml

Also, AlloyFaces currently implements the following tags as Facelet Composite Components:

aui-cc:button
aui-cc:input
aui-cc:message
aui-cc:messages
aui-cc:select

See: https://github.com/liferay/liferay-faces/blob/master/alloy/src/main/resources/META-INF/resources/aui-cc/

Also, the LiferayFaces project implements the following tags as Facelet Composite Components:
liferay-ui:ice-info-data-paginator.xhtml
liferay-ui:ice-nav-data-paginator.xhtml
liferay-ui:ice-page-iterator.xhtml
liferay-ui:icon-menu.xhtml
liferay-ui:icon.xhtml
liferay-ui:info.xhtml
liferay-ui:input-editor.xhtml (uses Liferay's CKEditor/TinyMCE feature)
liferay-ui:message.xhtml
liferay-ui:panel-container.xhtml
liferay-ui:panel.xhtml
liferay-ui:portlet-toolbar.xhtml
liferay-ui:separator.xhtml
liferay-ui:toolbar-button.xhtml

See: https://github.com/liferay/liferay-faces/blob/master/portal/src/main/resources/META-INF/resources/liferay-ui/

Also, there is liferay-security:permissionsURL which is a Java UIComponent.

Although we don't have documentation available yet, these tags are being used heavily in the following portlets, that should serve as a guide as to how to use them:

https://github.com/liferay/liferay-faces/blob/master/demos/bridge/icefaces3-chat-portlet/
https://github.com/liferay/liferay-faces/blob/master/demos/bridge/icefaces3-directory-portlet/
https://github.com/liferay/liferay-faces/blob/master/demos/portal/icefaces3-documents-portlet/