portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/jsf-demo/xdocs index.xml navigation.xml
Date Tue, 08 Mar 2005 04:27:28 GMT
dlestrat    2005/03/07 20:27:28

  Modified:    applications/jsf-demo/src/webapp/WEB-INF web.xml portlet.xml
               applications/jsf-demo/xdocs navigation.xml
  Added:       applications/jsf-demo-myfaces project.xml maven.xml
                        project.properties locator.ent .cvsignore
               applications/jsf-demo/xdocs index.xml
  Log:
  Update myfaces dependencies to 1.0.9.
  Move JSF bridge.
  Add documentation.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/applications/jsf-demo-myfaces/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE project [
    <!ENTITY % locator-entities SYSTEM "file:locator.ent"> %locator-entities;	
  ]>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  
    $Id: project.xml,v 1.1 2005/03/08 04:27:28 dlestrat Exp $
  -->
  <project>
    <extend>${basedir}/./../project.xml</extend>
    <pomVersion>3</pomVersion>
    <id>jsf-demo-myfaces</id>
    <name>JSF Portlet Demo - MyFaces Portlet Support</name>
    <package>org.apache.portals.webapp.example</package>
    <description>JSF Portlet Demo - MyFaces Portlet Support</description>
    <shortDescription>JSF Portlet Demo - MyFaces Portlet Support</shortDescription>
  
    <repository>                 
      <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-jetspeed-2/applications/jsf-demo-myfaces</connection>
      <url>http://cvs.apache.org/viewcvs/jakarta-jetspeed-2/applications/jsf-demo-myfaces/</url>
    </repository>
  
    <dependencies>
       <dependency>
        <id>servletapi</id>
        <version>2.3</version>
        <properties>
          <war.bundle>false</war.bundle>
        </properties>
      </dependency>
  	<dependency>
        <groupId>portlet-api</groupId>
        <artifactId>portlet-api</artifactId>
        <version>1.0</version>
        <properties>
          <war.bundle>false</war.bundle>
        </properties>
      </dependency>
      <!-- warred jars -->
      <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.6.1</version>
        <url>http://jakarta.apache.org/commons/beanutils.html</url>
        <properties>
          <war.bundle>true</war.bundle>
        </properties>
      </dependency>
      <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.2</version>
        <url>http://jakarta.apache.org/commons/codec/</url>
        <properties>
          <war.bundle>true</war.bundle>
        </properties>
      </dependency>
      <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>2.1</version>
        <url>http://jakarta.apache.org/commons/collections.html</url>
        <properties>
          <war.bundle>true</war.bundle>
        </properties>
      </dependency>
      <dependency>
        <groupId>commons-digester</groupId>
        <artifactId>commons-digester</artifactId>
        <version>1.5</version>
        <url>http://jakarta.apache.org/commons/digester.html</url>
        <properties>
          <war.bundle>true</war.bundle>
        </properties>
      </dependency>
      <dependency>
        <id>log4j</id>
        <version>1.2.8</version>
        <properties>
          <war.bundle>true</war.bundle>
        </properties>
      </dependency>
      
      &myfaces-deps;
      
      <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.0.3</version>
        <url>http://jakarta.apache.org/commons/logging.html</url>
        <properties>
          <war.bundle>true</war.bundle>
        </properties>
      </dependency>
      <dependency>
        <groupId>commons-el</groupId>
        <artifactId>commons-el</artifactId>
        <version>1.0</version>
        <url>http://jakarta.apache.org/commons/el/</url>
        <properties>
          <war.bundle>true</war.bundle>
        </properties>
      </dependency>
          
     </dependencies>
  
    <build>
      <sourceDirectory>../jsf-demo/src/java</sourceDirectory>
      <sourceModifications>
        <sourceModification>
          <className>excludeClass</className>
          <excludes>
            <exclude>**/Tree*.java</exclude>
            <exclude>**/Calendar*.java</exclude>
          </excludes>
        </sourceModification>
      </sourceModifications>
      <resources>
        <resource>
          <directory>${basedir}/src/java</directory>
          <excludes>
            <exclude>**/*.java</exclude>
          </excludes>
        </resource>
      </resources>
    </build>
  
    <reports>
      
      &j2-reports;
      
    </reports>  
  </project>
  
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo-myfaces/maven.xml
  
  Index: maven.xml
  ===================================================================
  <project default="java:jar"
           xmlns:j="jelly:core"
           xmlns:define="jelly:define">
  
  
    <!-- ================================================================ -->
    <!-- Hot Deploy for mundane everyday development under Catalina       -->
    <!-- ================================================================ -->
    <goal name="hotdeploy">
      <echo message="Hot Deploying ${org.apache.jetspeed.portlet.app.name} to ${org.apache.jetspeed.deploy.war.dir}"/>
      <copy todir="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portlet.app.name}/WEB-INF/classes">
          <fileset dir="${maven.build.dir}/classes">
          </fileset>
      </copy>
      <copy todir="${org.apache.jetspeed.deploy.war.dir}/${org.apache.jetspeed.portlet.app.name}/">
        <fileset dir="${maven.war.src}">
        </fileset>
      </copy>
    </goal>
  
    <preGoal name="hotdeploy">
     <attainGoal name= "java:compile"/>
    </preGoal>
  
  </project>
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo-myfaces/project.properties
  
  Index: project.properties
  ===================================================================
  # Copyright 2004 The Apache Software Foundation
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  #
  # $Id: project.properties,v 1.1 2005/03/08 04:27:28 dlestrat Exp $
  #
  
  maven.multiproject.type=war
  maven.license.licenseFile=${basedir}/../../LICENSE.TXT
  
  org.apache.jetspeed.portlet.app.name = jsf-demo-myfaces
  
  
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo-myfaces/locator.ent
  
  Index: locator.ent
  ===================================================================
  <!-- Project dependencies -->
  <!ENTITY myfaces-deps SYSTEM "file:../../etc/project-dependencies/myfaces-deps.xml">
  
  <!-- Project reports -->
  <!ENTITY j2-reports SYSTEM "file:../../etc/project-reports/j2-reports.xml">
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo-myfaces/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  target
  
  
  
  1.4       +51 -0     jakarta-jetspeed-2/applications/jsf-demo/src/webapp/WEB-INF/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/jsf-demo/src/webapp/WEB-INF/web.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- web.xml	17 Nov 2004 01:06:43 -0000	1.3
  +++ web.xml	8 Mar 2005 04:27:28 -0000	1.4
  @@ -93,6 +93,57 @@
               Default: "true"
           </description>
       </context-param>
  +
  +    <context-param>
  +        <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
  +        <param-value>true</param-value>
  +        <description>
  +            If true, a javascript function will be rendered that is able to restore the
  +            former vertical scroll on every request. Convenient feature if you have pages
  +            with long lists and you do not want the browser page to always jump to the
top
  +            if you trigger a link or button action that stays on the same page.
  +            Default: "false"
  +        </description>
  +    </context-param>
  +
  +    <!-- Extensions Filter -->
  +    <filter>
  +        <filter-name>extensionsFilter</filter-name>
  +        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
  +        <init-param>
  +            <param-name>uploadMaxFileSize</param-name>
  +            <param-value>100m</param-value>
  +            <description>Set the size limit for uploaded files.
  +                Format: 10 - 10 bytes
  +                        10k - 10 KB
  +                        10m - 10 MB
  +                        1g - 1 GB
  +            </description>
  +        </init-param>
  +        <init-param>
  +            <param-name>uploadThresholdSize</param-name>
  +            <param-value>100k</param-value>
  +            <description>Set the threshold size - files
  +                    below this limit are stored in memory, files above
  +                    this limit are stored on disk.
  +
  +                Format: 10 - 10 bytes
  +                        10k - 10 KB
  +                        10m - 10 MB
  +                        1g - 1 GB
  +            </description>
  +        </init-param>
  +	</filter>
  +
  +    <!-- Filter Mappings -->
  +    <filter-mapping>
  +        <filter-name>extensionsFilter</filter-name>
  +        <url-pattern>*.jsf</url-pattern>
  +    </filter-mapping>
  +    <filter-mapping>
  +        <filter-name>extensionsFilter</filter-name>
  +        <url-pattern>/faces/*</url-pattern>
  +    </filter-mapping>
     
     	<!-- Listener, that does all the startup work (configuration, init). -->
     	<listener>
  
  
  
  1.4       +6 -6      jakarta-jetspeed-2/applications/jsf-demo/src/webapp/WEB-INF/portlet.xml
  
  Index: portlet.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/jsf-demo/src/webapp/WEB-INF/portlet.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- portlet.xml	19 Nov 2004 21:53:12 -0000	1.3
  +++ portlet.xml	8 Mar 2005 04:27:28 -0000	1.4
  @@ -23,10 +23,10 @@
         		<name>ViewPage</name>
   			<value>/greeting.jsp</value>
   	    </init-param>
  -	    <description>JSF GuessNumber Portlet</description>
  +	    <description>JSF GuessNumber Portlet - Using J2 JSF Bridge</description>
           <portlet-name>guessNumber</portlet-name>
  -        <display-name>JSF GuessNumber Portlet</display-name>
  -        <portlet-class>org.apache.portals.bridges.myfaces.FacesPortlet</portlet-class>
  +        <display-name>JSF GuessNumber Portlet - J2 JSF Bridge</display-name>
  +        <portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>
   
           <supports>
               <mime-type>text/html</mime-type>
  @@ -40,12 +40,12 @@
               <short-title>guessNumber</short-title>
           </portlet-info>
       </portlet>
  -	
  -   <portlet>
  +    	
  +   	<portlet>
           <description>Calendar Portlet</description>		
           <portlet-name>CalendarPortlet</portlet-name>		
           <display-name>Calendar</display-name>		
  -        <portlet-class>org.apache.portals.bridges.myfaces.FacesPortlet</portlet-class>
  +        <portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>
           <init-param>
               <name>ViewPage</name>
               <value>/WEB-INF/view/calendar-view.jsp</value>
  
  
  
  1.2       +1 -1      jakarta-jetspeed-2/applications/jsf-demo/xdocs/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/jsf-demo/xdocs/navigation.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- navigation.xml	17 Aug 2004 19:58:58 -0000	1.1
  +++ navigation.xml	8 Mar 2005 04:27:28 -0000	1.2
  @@ -17,7 +17,7 @@
   <project>
     <body>
         <links>
  -        <item name="Jetspeed 2" href="../../index.html"/>
  +        <item name="Jetspeed 2" href="../../index.html"/>     
         </links>
     </body>
   </project>
  
  
  
  1.1                  jakarta-jetspeed-2/applications/jsf-demo/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <!--
  Copyright 2004 The Apache Software Foundation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
      http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
  <document>
    <properties>
      <title>Jetspeed MyFaces Demo Portlet Configuration</title>
      <subtitle>MyFaces Demo Portlet Configuration - Jetspeed 2 JSF Bridge</subtitle>
      <authors>
        <person name="David Le Strat" email="dlestrat@apache.org"/>
      </authors>
    </properties>
    <body>
  <section name="Introduction">
  <p>
  Jetspeed MyFaces Demo Portlet leverages Sun's Guess Number reference implementation sample
application to
  illustrate how a MyFaces based portlet using Jetspeed 2 JSF bridge should be configured.
  </p>
  <p>
  Jetspeed 2 provides a JSF bridge implementation to support JSF with the Portlet Specifications.
 This section describes
  the necessary configuration required in order to use Jetspeed 2 JSF bridge.
  </p>
  </section>
  <section name="Configuration MyFaces as a Portlet">
  <p>
  The modifications required in order to deploy a MyFaces application as a portlet need to
be made to the
  <i>portlet.xml</i> file. An <i>&lt;init-param&gt;</i> should
be added to the <i>portlet.xml</i> as described below:
  <source><![CDATA[
  <init-param>
      <name>ViewPage</name>
      <value>/greeting.jsp</value>
  </init-param>]]>
  </source>
  </p>
  <p>
  The parameter <i>ViewPage</i> indicates to the <i>org.apache.portals.bridges.jsf.FacesPortlet</i>
which view
  should be used as a default view.
  </p>
  <p>
  Additionally, the &lt;portlet-class&gt; element should specify the MyFaces generic
portlet implementation as described
  below:
  <source>
  <![CDATA[<portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>]]>
  </source>
  </p>
  <p>
  This final <i>portlet.xml</i> should look like:
  <source><![CDATA[
  <portlet id="guessNumber">
          <init-param>
              <name>ViewPage</name>
              <value>/greeting.jsp</value>
          </init-param>
          <description>JSF GuessNumber Portlet - Using J2 JSF Bridge</description>
          <portlet-name>guessNumber</portlet-name>
          <display-name>JSF GuessNumber Portlet - J2 JSF Bridge</display-name>
          <portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>
  
          <supports>
              <mime-type>text/html</mime-type>
              <portlet-mode>VIEW</portlet-mode>
              <portlet-mode>EDIT</portlet-mode>
              <portlet-mode>HELP</portlet-mode>
          </supports>
  
          <portlet-info>
              <title>GuessNumber Portlet</title>
              <short-title>guessNumber</short-title>
          </portlet-info>
  </portlet>]]>
  </source>
  </p>
  </section>
  
  </body>
  </document>
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message