myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject cvs commit: incubator-myfaces/webapps/tiles/web/common navigation.jsp
Date Wed, 16 Mar 2005 08:19:19 GMT
matzew      2005/03/16 00:19:19

  Modified:    webapps/tiles/web/WEB-INF tiles-faces-config.xml
               webapps/tiles/web/common navigation.jsp
  Added:       webapps/tiles/src/org/apache/myfaces/tiles/example
                        TilesBacking.java
  Log:
  changed tiles example
  
  Revision  Changes    Path
  1.5       +6 -0      incubator-myfaces/webapps/tiles/web/WEB-INF/tiles-faces-config.xml
  
  Index: tiles-faces-config.xml
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/webapps/tiles/web/WEB-INF/tiles-faces-config.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- tiles-faces-config.xml	28 Dec 2004 09:19:14 -0000	1.4
  +++ tiles-faces-config.xml	16 Mar 2005 08:19:19 -0000	1.5
  @@ -13,6 +13,12 @@
           <view-handler>org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl</view-handler>
       </application>
   
  +	<managed-bean>
  +		<managed-bean-name>tilesBacking</managed-bean-name>
  +		<managed-bean-class>org.apache.myfaces.tiles.example.TilesBacking</managed-bean-class>
  +		<managed-bean-scope>request</managed-bean-scope>
  +	</managed-bean>
  +	
       <navigation-rule>
           <from-view-id>*</from-view-id>
           <navigation-case>
  
  
  
  1.1                  incubator-myfaces/webapps/tiles/src/org/apache/myfaces/tiles/example/TilesBacking.java
  
  Index: TilesBacking.java
  ===================================================================
  /*
   * 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.
   */
  package org.apache.myfaces.tiles.example;
  
  /**
   * @author <a href="mailto:matzew@apache.org">Matthias Weßendorf</a> 
   */
  public class TilesBacking {
      
      public String pressMe(){
          System.out.println("pushed the button");
          return ("nav_page4");
      }
  
  }
  
  
  
  1.8       +1 -1      incubator-myfaces/webapps/tiles/web/common/navigation.jsp
  
  Index: navigation.jsp
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/webapps/tiles/web/common/navigation.jsp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- navigation.jsp	29 Dec 2004 13:30:37 -0000	1.7
  +++ navigation.jsp	16 Mar 2005 08:19:19 -0000	1.8
  @@ -12,7 +12,7 @@
           <h:outputText value="non-tiles page" />
       </h:commandLink>
       <h:form id="button">
  -        <h:commandButton value="nested Tiles" action="nav_page4">
  +        <h:commandButton value="nested Tiles" action="#{tilesBacking.pressMe}">
               <f:actionListener type="org.apache.myfaces.tiles.example.DemoActionListener"/>
           </h:commandButton>
       </h:form>
  
  
  

Mime
View raw message