Malek Tarboush Hace 13 años Hi Neilthank you for this but i tried a jsf 2 portletwith portletfaces-bridge-2.0.0-BETA2im using netbeans 6.9.1 , jsf 2 , liferay 6.0.5 CEthe portlet has been deployed but when i add itto a page it throws an exceptionjava.lang.UnsupportedOperationExceptionhere is my project http://www.pageraz.com/wp-content/uploads/PF_TEST.zipand by the way the svn repository url that you adeed is not exist anymore can you please relocate itthankx Por favor identifíquese para votar. Contestar como... Cancelar Neil Griffin Malek Tarboush Hace 13 años We recently fixed some UnsupportedOperationException problems in the trunk, which will be made available in BETA3.For now, you can use a BETA3-SNAPSHOT by building the JARs manually from the trunks in SVN:http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.api/trunk/http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.impl/trunk/http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge/trunk/That might make the UnsupportedOperationException problem go away. Por favor identifíquese para votar. Contestar como... Cancelar Malek Tarboush Neil Griffin Hace 13 años Hello Neilthank you for replyi built the portletfaces beta3-snapshot and replace itin my project and it throws new exceptionThe FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern.the stack trace ----------------javax.faces.FacesException: The FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern. at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:305) at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:130) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at org.portletfaces.bridge.BridgeImpl.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)---------------------------------these are my filesweb.xml-------------------------<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping></web-app>-----------------------------portlet.xml-------------------------------<?xml version='1.0' encoding='UTF-8' ?><portlet-app xmlns='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' version='2.0'> <portlet> <description>PF_TEST</description> <portlet-name>PF_TEST</portlet-name> <display-name>PF_TEST</display-name> <portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class> <init-param> <name>javax.portlet.faces.defaultViewId.view</name> <value>start.xhtml</value> </init-param> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>PF_TEST</title> <short-title>PF_TEST</short-title> </portlet-info> </portlet></portlet-app>------------------------------------------start.xhtml------------------------------<?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <title>Facelet Title</title> </h:head> <h:body> Hello from Facelets </h:body></html>------------------------------i hope i can find a solution thankx Por favor identifíquese para votar. Contestar como... Cancelar Neil Griffin Malek Tarboush Hace 13 años I would recommend that you start with the JSF 2.0 example portlet source and make modifications to it:http://svn.portletfaces.org/svn/portletfaces/portlets/examples/jsf-2.0-portlet/trunk/ Por favor identifíquese para votar. Contestar como... Cancelar Malek Tarboush Neil Griffin Hace 13 años Hello Neilmy example worked fine i don't know where the problem wasbut now i have a jsf 2 portlet and it works in liferayi haven't tried all the functions like the ajax request and the navigation i will ensure that worked than i will put my portlet hereso anyone can use itthank you Neil Por favor identifíquese para votar. Contestar como... Cancelar Eduard Korenschi Malek Tarboush Hace 13 años I noticed it behaves like this if you don't have a faces-config.xml. Even an empty one will do it.Cheers,Eduard Por favor identifíquese para votar. Contestar como... Cancelar
Neil Griffin Malek Tarboush Hace 13 años We recently fixed some UnsupportedOperationException problems in the trunk, which will be made available in BETA3.For now, you can use a BETA3-SNAPSHOT by building the JARs manually from the trunks in SVN:http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.api/trunk/http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.impl/trunk/http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge/trunk/That might make the UnsupportedOperationException problem go away. Por favor identifíquese para votar. Contestar como... Cancelar Malek Tarboush Neil Griffin Hace 13 años Hello Neilthank you for replyi built the portletfaces beta3-snapshot and replace itin my project and it throws new exceptionThe FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern.the stack trace ----------------javax.faces.FacesException: The FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern. at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:305) at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:130) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at org.portletfaces.bridge.BridgeImpl.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)---------------------------------these are my filesweb.xml-------------------------<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping></web-app>-----------------------------portlet.xml-------------------------------<?xml version='1.0' encoding='UTF-8' ?><portlet-app xmlns='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' version='2.0'> <portlet> <description>PF_TEST</description> <portlet-name>PF_TEST</portlet-name> <display-name>PF_TEST</display-name> <portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class> <init-param> <name>javax.portlet.faces.defaultViewId.view</name> <value>start.xhtml</value> </init-param> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>PF_TEST</title> <short-title>PF_TEST</short-title> </portlet-info> </portlet></portlet-app>------------------------------------------start.xhtml------------------------------<?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <title>Facelet Title</title> </h:head> <h:body> Hello from Facelets </h:body></html>------------------------------i hope i can find a solution thankx Por favor identifíquese para votar. Contestar como... Cancelar Neil Griffin Malek Tarboush Hace 13 años I would recommend that you start with the JSF 2.0 example portlet source and make modifications to it:http://svn.portletfaces.org/svn/portletfaces/portlets/examples/jsf-2.0-portlet/trunk/ Por favor identifíquese para votar. Contestar como... Cancelar Malek Tarboush Neil Griffin Hace 13 años Hello Neilmy example worked fine i don't know where the problem wasbut now i have a jsf 2 portlet and it works in liferayi haven't tried all the functions like the ajax request and the navigation i will ensure that worked than i will put my portlet hereso anyone can use itthank you Neil Por favor identifíquese para votar. Contestar como... Cancelar Eduard Korenschi Malek Tarboush Hace 13 años I noticed it behaves like this if you don't have a faces-config.xml. Even an empty one will do it.Cheers,Eduard Por favor identifíquese para votar. Contestar como... Cancelar
Malek Tarboush Neil Griffin Hace 13 años Hello Neilthank you for replyi built the portletfaces beta3-snapshot and replace itin my project and it throws new exceptionThe FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern.the stack trace ----------------javax.faces.FacesException: The FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern. at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:305) at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:130) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at org.portletfaces.bridge.BridgeImpl.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)---------------------------------these are my filesweb.xml-------------------------<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping></web-app>-----------------------------portlet.xml-------------------------------<?xml version='1.0' encoding='UTF-8' ?><portlet-app xmlns='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd' version='2.0'> <portlet> <description>PF_TEST</description> <portlet-name>PF_TEST</portlet-name> <display-name>PF_TEST</display-name> <portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class> <init-param> <name>javax.portlet.faces.defaultViewId.view</name> <value>start.xhtml</value> </init-param> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>PF_TEST</title> <short-title>PF_TEST</short-title> </portlet-info> </portlet></portlet-app>------------------------------------------start.xhtml------------------------------<?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <title>Facelet Title</title> </h:head> <h:body> Hello from Facelets </h:body></html>------------------------------i hope i can find a solution thankx Por favor identifíquese para votar. Contestar como... Cancelar Neil Griffin Malek Tarboush Hace 13 años I would recommend that you start with the JSF 2.0 example portlet source and make modifications to it:http://svn.portletfaces.org/svn/portletfaces/portlets/examples/jsf-2.0-portlet/trunk/ Por favor identifíquese para votar. Contestar como... Cancelar Malek Tarboush Neil Griffin Hace 13 años Hello Neilmy example worked fine i don't know where the problem wasbut now i have a jsf 2 portlet and it works in liferayi haven't tried all the functions like the ajax request and the navigation i will ensure that worked than i will put my portlet hereso anyone can use itthank you Neil Por favor identifíquese para votar. Contestar como... Cancelar Eduard Korenschi Malek Tarboush Hace 13 años I noticed it behaves like this if you don't have a faces-config.xml. Even an empty one will do it.Cheers,Eduard Por favor identifíquese para votar. Contestar como... Cancelar
Neil Griffin Malek Tarboush Hace 13 años I would recommend that you start with the JSF 2.0 example portlet source and make modifications to it:http://svn.portletfaces.org/svn/portletfaces/portlets/examples/jsf-2.0-portlet/trunk/ Por favor identifíquese para votar. Contestar como... Cancelar Malek Tarboush Neil Griffin Hace 13 años Hello Neilmy example worked fine i don't know where the problem wasbut now i have a jsf 2 portlet and it works in liferayi haven't tried all the functions like the ajax request and the navigation i will ensure that worked than i will put my portlet hereso anyone can use itthank you Neil Por favor identifíquese para votar. Contestar como... Cancelar Eduard Korenschi Malek Tarboush Hace 13 años I noticed it behaves like this if you don't have a faces-config.xml. Even an empty one will do it.Cheers,Eduard Por favor identifíquese para votar. Contestar como... Cancelar
Malek Tarboush Neil Griffin Hace 13 años Hello Neilmy example worked fine i don't know where the problem wasbut now i have a jsf 2 portlet and it works in liferayi haven't tried all the functions like the ajax request and the navigation i will ensure that worked than i will put my portlet hereso anyone can use itthank you Neil Por favor identifíquese para votar. Contestar como... Cancelar Eduard Korenschi Malek Tarboush Hace 13 años I noticed it behaves like this if you don't have a faces-config.xml. Even an empty one will do it.Cheers,Eduard Por favor identifíquese para votar. Contestar como... Cancelar
Eduard Korenschi Malek Tarboush Hace 13 años I noticed it behaves like this if you don't have a faces-config.xml. Even an empty one will do it.Cheers,Eduard Por favor identifíquese para votar. Contestar como... Cancelar
Carlo Cavallieri Hace 13 años the source in the repo is no longer avaiable, is possible to get it somewhere? Por favor identifíquese para votar. Contestar como... Cancelar Neil Griffin Carlo Cavallieri Hace 13 años Just fixed the link. Sorry about that. Por favor identifíquese para votar. Contestar como... Cancelar
Neil Griffin Carlo Cavallieri Hace 13 años Just fixed the link. Sorry about that. Por favor identifíquese para votar. Contestar como... Cancelar
larry smith Hace 11 años sample link is not working Por favor identifíquese para votar. Contestar como... Cancelar