This is a WAR deployment of seam component showcase example implemented in Seam. As such, it doesn't require an ejb3 container and still uses Seam annotations and contexts. ****NEAT THINGS IN THIS VERSION***** 1.8.2 version:- panelConfirmation component 1.8.0 version:- for changing language/locale, setPhaseEvent example and dataExporter component for export to excel or csv 1.7.2 version:- The new outputResource component is now included. 1.7.1 version:- include component binding example in dataPaginator example, the navigation is in conversation scope, so users can do multiple windows of the application in the same session (concurrent dom views). Note though that all pages are not bookmarkable. If it has page scope, a page refresh will probably set you back to original view of the application. The conversationally scoped views will hold their view. This application could be changed easily to have the key to the MResources table (which holds all the links to info for each of the components) could be the page paramter, but since pages are not always required to be bookmarkable, that has been left off. This same table could also be used to load the documentation (in tabs similar to older version, etc). This app can be deployed in JBoss, WebLogic, Glassfish and Tomcat without the EJB3 container. Note that the j2ee AS have asynch issues with the Seam2.0.0.GA since the jsf-1.2 implementation is used. The old distribution of seam-comp-showcase which is an ear deployment and uses the myfaces (jsf1.1 implementation) works better for these older servers. The j5ee AS work much better with jsf1.2 implementations of which Seam2.0.x recommends. There are also a few portlet targets available. **DIRECTIONS** 1. download jboss-seam-2.x and unzip all files (as the libraries will be copied from these folders)--may have to build the jars NOTE THAT FOR PORTLET EXAMPLES*** you should have jboss-seam-2.0.2.SP1 or jboss-seam-2.1.0 as a minimum. 2. download and unzip Icefaces (now 1.8.2) 3. update the following properties in build.properties file to point to the appropriate directories where the jboss-4.2.x or jboss-5.x server, icefaces libraries and jboss-seam libraries exist on your machine. (an example follows or you can just look at the build.properties file in this folder) for example:- jboss.home = C:/work/webserver/jboss-5.1.0.GA icefacesSourceDirectory = C:/ICEfaces-1.8.2/icefaces jboss.seam.home = C:/Seam/jboss-seam-2.2.0.GA 4. run target = copy-libs (will copy all the required libraries from the above locations) 5. run target = copy-source (will copy over the jspx pages and beans from component-showcase) Specific Server instructions:- JBoss AS 4.2.x or 5.x (this is the default target for the ant script): * Install JBoss AS with the default profile * ant jboss * Deploy dist-jboss/seam-comp-showcase.war * Start JBoss AS * Access the app at http://localhost:8080/seam-comp-showcase/ JBoss Portal 2.6.4 : * Install JBoss-portal AS with the default profile * copy /setup/portal-hsqldb-ds.xml to /server/default/deploy * ant jboss-portal * set jboss.home in build.properties to this AS * Start AS * Access the app at http://localhost:8080/portal/ * each window from seam-comp-showcase will have it's own portlet window automatically (xml files specify instances already) Known-issues:- ICE-2045 WebLogic 10 : * Install WebLogic 10 * copy hsql.jar to libs for weblogic domain (just regular domain with autodeploy enabled. I created a domain called seam-examples and copied this jar into \bea\user-projects\domains\seam-examples\lib) * create Datasource for componentDB (jndi name as well) Database type & drive: "other" DatabaseName: hsqldb HOst Name: 127.0.0.1 Port: 9001 username: sa Driver Class Name: org.hsqldb.jdbcDriver URL: jdbc:hsqldb:. select domain that you are using and all other settings the same (my domain = seam-examples) * ant weblogic * Start the WebLogic server domain you have created and are using with this datasource * copy dist-weblogic/seam-comp-showcase.war to autodeploy folder of domain (for example, copy to \bea\user-projects\domains\seam-examples\autodeploy) * Access the app at http://localhost:7001/seam-comp-showcase/ Plain Tomcat (no embedded jboss container--just ootb) * Install Tomcat 6 * copy hsqldb.jar to /lib * ant tomcat6 * Deploy dist-tomcat6/seam-comp-showcase.war to $TOMCAT_HOME/webapps/jboss-seam-hibernate.war * Start Tomcat * Access the app at http://localhost:8080/seam-comp-showcase/ Tomcat with embeddable JBoss (the build is the same as JBoss 4.2.2 GA WAR): * Install Tomcat * Install Embeddable JBoss * ant jboss * Deploy dist-jboss/seam-comp-showcase.war * Start Tomcat * Access the app at http://localhost:8080/seam-comp-showcase/ Glassfish (tested with v2.1 & v2.2) * Install Glassfish v2.1 or v2.2 * ant glassfish * Start GlassFish after starting embedded Derby database (bin/asadmin start-database) * Load the admin console http://localhost:4848/ * Deploy dist-glassfish/seam-comp-showcase.war as Web App * Access the app at http://localhost:8080/seam-comp-showcase/ Glassfish/Liferay bundle (Liferay 5.0.1.RC1 & Glassfish V2) * Install * Must have jboss-seam-2.1.0.A1 as minimum (or seam-2.0.2) * ant glassfishv2-liferay * copy \dist\glassfish-liferay\seam-comp-showcase to \Documents and Settings\\liferay * make sure you have both the embedded Derby database as well as AS running * KNOWN ISSUE (to be fixed with liferay-5.0.2 problem with liferay injector (get extra > chars in file), so replace the web.xml that is generated from liferay deployment with the one in the resources-glasfish-liferay folder (on the Server/domains//autodeploy/seam-comp-showcase * restart the server. * use URL:- http://localhost:8080/c/portal/login * sign in and create some pages and place some of the portlets on them. Jboss-4.2.2.GA/Liferay5.0.1.RC bundle * Install * Must have jboss-seam-2.1.0.A1 as minimum (Actually seam-2.0.2 looks like it works as well) * add hibernate.jar and hibernate-validator.jar from seam distribution to server/default/lib * ant jboss4.2.2-liferay5.0.1.RC * copy \dist\jboss-liferay\seam-comp-showcase to \Documents and Settings\\liferay * start AS * use URL:- http://localhost:8080/c/portal/login * sign in and create some pages and place some of the portlets on them. Known issues with Liferay:- must have the following context-param set in web.xml as Liferay already uses compression of resources and default is true for ICEfaces compression.:- com.icesoft.faces.compressResources false Websphere -6.1 admin console:- http://localhost:9060/ibm/console * Install and run WebSphere 6.1 * Set a Websphere web container custom property "com.ibm.ws.webcontainer.invokefilterscompatibility" to true. See Seam reference guide chapter for details. * Set a Websphere web container custom property "prependSlashToResource" to true. See Seam reference guide chapter for details. * ant websphere61 * Deploy dist-websphere61/jboss-seam-jpa.war and specify a context_root * From the "Enterprise Applications" list select: "jboss-seam-jpa" --> "Manager Modules" --> "jboss-seam-jpa.war" --> "Classes loaded with application class loader first", and then Apply * Start the application * Access it at http://localhost:9080/context_root/index.html