From portal-commits at lists.jboss.org Mon Feb 18 03:25:42 2008 Content-Type: multipart/mixed; boundary="===============0840929828456094536==" MIME-Version: 1.0 From: portal-commits at lists.jboss.org To: portal-commits at lists.jboss.org Subject: [portal-commits] JBoss Portal SVN: r10012 - docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules. Date: Mon, 18 Feb 2008 03:25:42 -0500 Message-ID: --===============0840929828456094536== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mmcallis Date: 2008-02-18 03:25:42 -0500 (Mon, 18 Feb 2008) New Revision: 10012 Modified: docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutorial= s.xml Log: 5.2.4.4. Building your Apache MyFaces JSF Porlet revising and adding content to make this section consistent with 5.2.2.5. Building your JSP Portlet 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-18 06:04:52 UTC (rev 10011) +++ docs/branches/JBoss_Portal_Branch_2_6/referenceGuide/en/modules/tutoria= ls.xml 2008-02-18 08:25:42 UTC (rev 10012) @@ -1431,9 +1431,9 @@ - Adding Functionality to a Apache MyFaces JSF Porlet + Adding Functionality to an Apache MyFaces JSF Porlet - To add functionality to a Apache MyFaces JSF Porlet, sub-class it and c= reate your own class. + To add functionality to an Apache MyFaces JSF Porlet, sub-class it and = create your own class. @@ -1482,11 +1482,68 @@ Building your Apache MyFaces JSF Porlet - 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 - helloworldjsfportlet.war file in a way s= imilar to what we saw in - . - + + The HelloWorldJSFMyFaces42Portlet.zip file cont= ains a pre-compiled helloworldjsfmyfacesportlet.war fi= le; however, to manually build the helloworldjsfmyfacesportlet.wa= r file: + + + + + + Change into the HelloWorldJSFMyFaces42Portlet/ directory, and remove the existing helloworldjsfmyfacesportlet= .war file. + + + + + If required, edit the HelloWorldJSFMyFaces42Portlet/src= /main/org/jboss/portlet/hello/bean/User.java file, and the appli= cation descriptors in the HelloWorldJSFMyFaces42Portlet/src/resou= rces/helloworldjsfmyfacesportlet-war/WEB-INF/ directory. + + + + + Change into HelloWorldJSFMyFaces42Portlet/ d= irectory, 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 helloworldjsfmyfacesportlet.war f= ile allows you to deploy the portlet as an expanded directory, which makes = development easier. As well, it gives you access to the application descrip= tors, resource files, JSF, and JSP pages. To expand the helloworl= djsfmyfacesportlet.war file: + + + + + + If you do not have the HelloWorldJSFMyFaces42Portlet/he= lloworldjsfmyfacesportlet.war file, change into the He= lloWorldJSFMyFaces42Portlet/ directory, and run the ant= deploy command. This creates the helloworldjsfmyfacesp= ortlet.war file. + + + + + To expand the WAR file, change into the HelloWorldJSFMy= Faces42Portlet/ 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 application descriptors are located in= the HelloWorldJSFMyFaces42Portlet/output/lib/exploded/helloworld= jsfmyfacesportlet.war/WEB-INF/ directory. + Deploying your Apache MyFaces JSF Portlet --===============0840929828456094536==--