So if you have a running MyFaces web application you should simply add a 'portlet.xml' to the WEB-INF folder. This should specify the correct portlet-class: MyFacesGenericPortlet
| <?xml version="1.0" encoding="UTF-8"?> | <portlet-app id="librarian" version="1.0"> | <portlet> | | <portlet-name>LibrarianPortlet</portlet-name> | <display-name>Librarian Portlet</display-name> | <description>Librarian Portlet</description> | <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class> | <expiration-cache>-1</expiration-cache> | <init-param> | <name>default-view</name> | <value>/welcome.jsp</value> | </init-param> | <supports> | <mime-type>text/html</mime-type> | <portlet-mode>VIEW</portlet-mode> | </supports> | <supported-locale>en</supported-locale> | <resource-bundle>portlet-info</resource-bundle> | <portlet-info> | <title>Librarian Portlet</title> | <short-title>Librarian</short-title> | <keywords>JSF, Portlet</keywords> | </portlet-info> | </portlet> | </portlet-app> | To deploy the app in JBossPortal you have also to add the JBossPortal deployment descriptors 'jboss-app.xml','jboss-portlet.xml' to the WEB-INF folder, as if you would do it when writing a normal portlet. This way you can run your app as simple web application (very useful during application development) or as portlet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929352#3929352 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929352 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
