From portal-commits at lists.jboss.org Sat Feb 16 01:20:27 2008 Content-Type: multipart/mixed; boundary="===============3865801488017387026==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r10000 - in docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en: images/tutorials/jsp_portlet and 1 other directories. Date: Sat, 16 Feb 2008 01:20:27 -0500 Message-ID: --===============3865801488017387026== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mmcallis Date: 2008-02-16 01:20:27 -0500 (Sat, 16 Feb 2008) New Revision: 10000 Added: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/images/tutorials= /jsf_portlet/jsf_ant_deploy.png docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/images/tutorials= /jsf_portlet/jsf_ant_explode.png Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/images/tutorials= /jsp_portlet/jsp_ant_explode.png docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorial= s.xml Log: 5.2.3. An example Sun JSF Reference Implementation (RI) Portlet * adding images of ant deploy and ant explode * fixing my images that had a black line * revising 5.2.3 to be consistent with 5.2.1. Deploying your first Portlet and 5.2.2. An example JSP Portlet Added: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/images/tutor= ials/jsf_portlet/jsf_ant_deploy.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/e= n/images/tutorials/jsf_portlet/jsf_ant_deploy.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/images/tutor= ials/jsf_portlet/jsf_ant_explode.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Property changes on: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/e= n/images/tutorials/jsf_portlet/jsf_ant_explode.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/images/tu= torials/jsp_portlet/jsp_ant_explode.png =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (Binary files differ) Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/t= utorials.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutoria= ls.xml 2008-02-16 05:05:05 UTC (rev 9999) +++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutoria= ls.xml 2008-02-16 06:20:27 UTC (rev 10000) @@ -1155,34 +1155,114 @@ - Building and deploying your portlet - If you have downloaded the sample, you can execute the b= uild.xml with ant or inside your IDE. - Executing ant will compile all source fi= les and produce a - helloworldjspportlet.war file in a way s= imilar to what we saw in - . + Building your JSF Portlet + + The HelloWorldJSFSunRIPortlet.zip file contains a= pre-compiled helloworldjsfsunriportlet.war file; howe= ver, to manually build the helloworldjsfsunriportlet.war file: + + + + + + Change into the HHelloWorldJSFSunRIPortlet dir= ectory, and remove the existing helloworldjsfsunriportlet.war file. + + + + + If required, edit the HelloWorldJSFSunRIPortlet/src/main/= org/jboss/portlet/hello/bean/User.java file, and the XML descrip= tors in the HelloWorldJSFSunRIPortlet/src/resources/helloworldjsf= sunriportlet-war/WEB-INF/ directory. + + + + + Change into HelloWorldJSFSunRIPortlet/ directo= ry, and run the ant deploy command. On Linux, the output= will be similar to the following: + + + + + + + + + + + + + Note: the directory names will be different for your system. + + + Expanding the helloworldjsfsunriportlet.war fil= e allows you to deploy the portlet as an expanded directory, which makes de= velopment easier. As well, it gives you access to the XML descriptors, reso= urce files, JSF, and JSP pages. To expand the helloworldjsfsunrip= ortlet.war file: + + + + + + If you do not have the HelloWorldJSFSunRIPortlet/hellow= orldjsfsunriportlet.war file, change into the HelloWor= ldJSFSunRIPortlet/ directory, and run the ant deploy command. This creates the helloworldjsfsunriportlet.war file. + + + + + To expand the war file, change into the HelloWorldJSFSu= nRIPortlet/ directory, and run the ant explode command. On Linux, the output will be similar to the following: + + + + + + + + + + + + + Note: the directory names will be different for your system. + + + The expanded war file and the XML descriptors are located in the HelloWorldJSFSunRIPortlet/output/lib/exploded/helloworldjsfsunriport= let.war directory. - - - Deploying the portlet is as easy as copying/moving the helloworldjspportlet.war file - to the server deploy directory. We can t= hen see our portlet on the Portal default - page (http://l= ocalhost:8080/portal/): - - - - - - - - + + To re-deploy the portlet, for example, if you have made changes to a= ny of the XML descriptors, touch the $JBOSS_HOME/server/configuration/deploy/helloworldjsfsunriportlet.war/WEB-IN= F/web.xml file. On Linux, run the following command to re-deploy= the HelloWorldPortlet: + + + +touch $JBOSS_HOME/server/configuration/deploy/h= elloworldjsfsunriportlet.war/WEB-INF/web.xml + + + + Re-deploying the HelloWorldJSFPortlet will produce output to the JBos= s AS or JBoss EAP console, similar to the following: + + + + + + +