You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/04/11 21:27:14 UTC

svn commit: r527626 - in /myfaces/tobago/trunk/example/test/src/main/webapp: WEB-INF/faces-config.xml tab.jsp

Author: bommel
Date: Wed Apr 11 12:27:13 2007
New Revision: 527626

URL: http://svn.apache.org/viewvc?view=rev&rev=527626
Log:
added tab test

Added:
    myfaces/tobago/trunk/example/test/src/main/webapp/tab.jsp   (with props)
Modified:
    myfaces/tobago/trunk/example/test/src/main/webapp/WEB-INF/faces-config.xml   (contents, props changed)

Modified: myfaces/tobago/trunk/example/test/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/WEB-INF/faces-config.xml?view=diff&rev=527626&r1=527625&r2=527626
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/WEB-INF/faces-config.xml Wed Apr 11 12:27:13 2007
@@ -1,60 +1,76 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
--->
-
-<!DOCTYPE faces-config PUBLIC
-  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
-  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
-
-<faces-config>
-
-  <application>
-    <locale-config>
-      <default-locale>en</default-locale>
-      <supported-locale>de</supported-locale>
-      <supported-locale>de_DE</supported-locale>
-      <supported-locale>de_AT</supported-locale>
-      <supported-locale>de_CH</supported-locale>
-    </locale-config>
-  </application>
-
-  <managed-bean>
-    <managed-bean-name>test</managed-bean-name>
-    <managed-bean-class>org.apache.myfaces.tobago.example.test.TestBean</managed-bean-class>
-    <managed-bean-scope>session</managed-bean-scope>
-  </managed-bean>
-
-  <navigation-rule>
-    <navigation-case>
-      <from-outcome>solarList</from-outcome>
-      <to-view-id>solarList.jsp</to-view-id>
-    </navigation-case>
-    <navigation-case>
-      <from-outcome>solarDetail</from-outcome>
-      <to-view-id>solarDetail.jsp</to-view-id>
-    </navigation-case>
-  </navigation-rule>
-
-  <navigation-rule>
-    <navigation-case>
-      <from-outcome>layout</from-outcome>
-      <to-view-id>/layout.jsp</to-view-id>
-    </navigation-case>
-  </navigation-rule>
-
-</faces-config>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+-->
+
+<!DOCTYPE faces-config PUBLIC
+  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+
+<faces-config>
+
+  <application>
+    <locale-config>
+      <default-locale>en</default-locale>
+      <supported-locale>de</supported-locale>
+      <supported-locale>de_DE</supported-locale>
+      <supported-locale>de_AT</supported-locale>
+      <supported-locale>de_CH</supported-locale>
+    </locale-config>
+  </application>
+
+  <managed-bean>
+    <managed-bean-name>test</managed-bean-name>
+    <managed-bean-class>org.apache.myfaces.tobago.example.test.TestBean</managed-bean-class>
+    <managed-bean-scope>session</managed-bean-scope>
+  </managed-bean>
+
+  <managed-bean>
+      <managed-bean-name>bbg</managed-bean-name>
+      <managed-bean-class>
+        org.apache.myfaces.tobago.example.test.SessionController
+      </managed-bean-class>
+      <managed-bean-scope>session</managed-bean-scope>
+    </managed-bean>
+
+    <lifecycle>
+      <phase-listener>
+        org.apache.myfaces.tobago.util.DebugPhaseListener
+      </phase-listener>
+
+    </lifecycle>
+
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>solarList</from-outcome>
+      <to-view-id>solarList.jsp</to-view-id>
+    </navigation-case>
+    <navigation-case>
+      <from-outcome>solarDetail</from-outcome>
+      <to-view-id>solarDetail.jsp</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+
+  <navigation-rule>
+    <navigation-case>
+      <from-outcome>layout</from-outcome>
+      <to-view-id>/layout.jsp</to-view-id>
+    </navigation-case>
+  </navigation-rule>
+
+</faces-config>

Propchange: myfaces/tobago/trunk/example/test/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/tobago/trunk/example/test/src/main/webapp/tab.jsp
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/test/src/main/webapp/tab.jsp?view=auto&rev=527626
==============================================================================
--- myfaces/tobago/trunk/example/test/src/main/webapp/tab.jsp (added)
+++ myfaces/tobago/trunk/example/test/src/main/webapp/tab.jsp Wed Apr 11 12:27:13 2007
@@ -0,0 +1,74 @@
+<%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc" %>
+<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<f:view>
+  <tc:page width="600" height="300">
+   <tc:loadBundle basename="overview" var="overviewBundle" />
+    <f:facet name="layout">
+      <tc:gridLayout/>
+    </f:facet>
+      <tc:panel>
+        <f:facet name="layout">
+          <tc:gridLayout rows="1*" />
+        </f:facet>
+
+        <tc:box label="#{overviewBundle.ekawTitle}">
+          <f:facet name="layout">
+            <tc:gridLayout />
+          </f:facet>
+
+          <tc:tabGroup id="tabs" switchType="reloadTab"
+            selectedIndex="#{bbg.selectedIndex0}">
+
+            <tc:tabChangeListener
+              type="org.apache.myfaces.tobago.example.test.SimpleTabChangeListener"
+              binding="#{bbg.tabChangeListener}" />
+
+            <tc:tab label="#{overviewBundle.ekawTabLastYear}" rendered="true">
+
+              <tc:tabGroup id="tabLastYear" switchType="reloadTab"
+                selectedIndex="#{bbg.selectedIndex1}" >
+
+                <tc:tabChangeListener
+                  type="org.apache.myfaces.tobago.example.testSimpleTabChangeListener"
+                  binding="#{bbg.tabChangeListener}" />
+
+                <tc:tab label="#{overviewBundle.ekawTabEkLetztesJahr}">
+                </tc:tab>
+
+                <tc:tab label="#{overviewBundle.ekawTabKeekLetztesJahr}">
+                </tc:tab>
+
+                <tc:tab label="#{overviewBundle.ekawTabVekLetztesJahr}">
+                </tc:tab>
+              </tc:tabGroup>
+            </tc:tab>
+
+            <tc:tab label="#{overviewBundle.ekawTabCurrentYear}">
+
+              <tc:tabGroup id="tabCurrentYear" switchType="reloadTab"
+                selectedIndex="#{bbg.selectedIndex2}">
+
+                <tc:tabChangeListener
+                  type="org.apache.myfaces.tobago.example.test.SimpleTabChangeListener"
+                  binding="#{bbg.tabChangeListener}" />
+
+                <tc:tab label="#{overviewBundle.ekawTabEkLaufendenesJahr}">
+                </tc:tab>
+
+                <tc:tab label="#{overviewBundle.ekawTabKeekLaufendenesJahr}">
+                </tc:tab>
+
+                <tc:tab label="#{overviewBundle.ekawTabLeekLaufendenesJahr}">
+                </tc:tab>
+
+                <tc:tab label="#{overviewBundle.ekawTabVekLaufendenesJahr}">
+                </tc:tab>
+              </tc:tabGroup>
+            </tc:tab>
+          </tc:tabGroup>
+        </tc:box>
+      </tc:panel>
+ </tc:page>
+</f:view>
\ No newline at end of file

Propchange: myfaces/tobago/trunk/example/test/src/main/webapp/tab.jsp
------------------------------------------------------------------------------
    svn:eol-style = native