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/09/23 20:52:34 UTC
svn commit: r578592 [4/15] - in /myfaces/tobago/trunk: ./ core/
core/src/main/faces-config/ core/src/main/java/org/apache/myfaces/tobago/
core/src/main/java/org/apache/myfaces/tobago/ajax/api/
core/src/main/java/org/apache/myfaces/tobago/application/ c...
Modified: myfaces/tobago/trunk/doc/reference/build.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/doc/reference/build.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/doc/reference/build.xml (original)
+++ myfaces/tobago/trunk/doc/reference/build.xml Sun Sep 23 11:51:32 2007
@@ -1,93 +1,93 @@
-<?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.
--->
-
-<project name="tobago-doc-reference" default="generate-html">
-
- <property name="build-system.home" value="../../tool/build-system"/>
- <property name="build-system.dir" location="${build-system.home}"/>
- <import file="${build-system.dir}/build-basic.xml"/>
-
- <!-- overwrite these properties in your build.properties file -->
- <property name="saxon.jar" value="tool/saxon-6.5.3.jar"/>
- <property name="docbook.dir" value="tool/docbook/docbook-xsl-1.68.1"/>
-
- <property name="docbook.saxon-extension.jar"
- value="${docbook.dir}/extensions/saxon653.jar"/>
-
- <target name="sniplet-extract" depends="init-apt">
- <mkdir dir="build/sniplets"/>
- <sniplet-extract outputDir="build/sniplets" stripLeadingSpaces="true">
- <fileset dir="../../example/demo/src/main/webapp/reference">
- <include name="*.jsp"/>
- </fileset>
- <fileset dir="../../example/demo/src/main/webapp/overview">
- <include name="*.jsp"/>
- </fileset>
- </sniplet-extract>
- </target>
-
- <target name="generate-html" depends="sniplet-extract"
- description="Creates the documentation as html output.">
- <!-- XXX add check if XML file already exists -->
- <ant antfile="build.xml"
- dir="../../core" target="generate-tag-reference"/>
-
- <mkdir dir="build/html"/>
- <mkdir dir="build/html/image"/>
- <mkdir dir="build/docbook"/>
- <style
- in="../../core/build/classes/main/org/apache/myfaces/tobago/taglib/tag-reference.xml"
- out="build/docbook/tag-reference.xml" extension=".xml"
- style="tag-reference2docbook.xsl">
- </style>
- <java classname="com.icl.saxon.StyleSheet" fork="true" failonerror="true">
- <classpath>
- <pathelement path="${saxon.jar}"/>
- <pathelement path="${docbook.saxon-extension.jar}"/>
- </classpath>
- <arg line="
- reference.xml
- ${docbook.dir}/html/chunk.xsl
- use.extensions=1
- textinsert.extension=1
- base.dir=build/html/
- use.id.as.filename=true
- section.autolabel=true
- toc.section.depth=2
- table.footnote.number.format=1
- css.decoration=true
- chunk.section.depth=2
- linenumbering.extension=true
- html.stylesheet=tobago-reference.css
- table.borders.with.css=true"/>
-
- <!-- You can find the documentation of the style sheet params in the document
- '/doc/html/index.html' in your docbook installation. -->
-
- </java>
- <copy file="tobago-reference.css" todir="build/html"/>
- <copy todir="build/html/image">
- <fileset dir="image">
- <include name="*.png"/>
- <include name="*.gif"/>
- </fileset>
- </copy>
- </target>
-
-</project>
+<?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.
+-->
+
+<project name="tobago-doc-reference" default="generate-html">
+
+ <property name="build-system.home" value="../../tool/build-system"/>
+ <property name="build-system.dir" location="${build-system.home}"/>
+ <import file="${build-system.dir}/build-basic.xml"/>
+
+ <!-- overwrite these properties in your build.properties file -->
+ <property name="saxon.jar" value="tool/saxon-6.5.3.jar"/>
+ <property name="docbook.dir" value="tool/docbook/docbook-xsl-1.68.1"/>
+
+ <property name="docbook.saxon-extension.jar"
+ value="${docbook.dir}/extensions/saxon653.jar"/>
+
+ <target name="sniplet-extract" depends="init-apt">
+ <mkdir dir="build/sniplets"/>
+ <sniplet-extract outputDir="build/sniplets" stripLeadingSpaces="true">
+ <fileset dir="../../example/demo/src/main/webapp/reference">
+ <include name="*.jsp"/>
+ </fileset>
+ <fileset dir="../../example/demo/src/main/webapp/overview">
+ <include name="*.jsp"/>
+ </fileset>
+ </sniplet-extract>
+ </target>
+
+ <target name="generate-html" depends="sniplet-extract"
+ description="Creates the documentation as html output.">
+ <!-- XXX add check if XML file already exists -->
+ <ant antfile="build.xml"
+ dir="../../core" target="generate-tag-reference"/>
+
+ <mkdir dir="build/html"/>
+ <mkdir dir="build/html/image"/>
+ <mkdir dir="build/docbook"/>
+ <style
+ in="../../core/build/classes/main/org/apache/myfaces/tobago/taglib/tag-reference.xml"
+ out="build/docbook/tag-reference.xml" extension=".xml"
+ style="tag-reference2docbook.xsl">
+ </style>
+ <java classname="com.icl.saxon.StyleSheet" fork="true" failonerror="true">
+ <classpath>
+ <pathelement path="${saxon.jar}"/>
+ <pathelement path="${docbook.saxon-extension.jar}"/>
+ </classpath>
+ <arg line="
+ reference.xml
+ ${docbook.dir}/html/chunk.xsl
+ use.extensions=1
+ textinsert.extension=1
+ base.dir=build/html/
+ use.id.as.filename=true
+ section.autolabel=true
+ toc.section.depth=2
+ table.footnote.number.format=1
+ css.decoration=true
+ chunk.section.depth=2
+ linenumbering.extension=true
+ html.stylesheet=tobago-reference.css
+ table.borders.with.css=true"/>
+
+ <!-- You can find the documentation of the style sheet params in the document
+ '/doc/html/index.html' in your docbook installation. -->
+
+ </java>
+ <copy file="tobago-reference.css" todir="build/html"/>
+ <copy todir="build/html/image">
+ <fileset dir="image">
+ <include name="*.png"/>
+ <include name="*.gif"/>
+ </fileset>
+ </copy>
+ </target>
+
+</project>
Propchange: myfaces/tobago/trunk/doc/reference/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/doc/reference/build.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/doc/reference/howto-generate-doc.txt
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/doc/reference/howto-generate-doc.txt?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/doc/reference/howto-generate-doc.txt (original)
+++ myfaces/tobago/trunk/doc/reference/howto-generate-doc.txt Sun Sep 23 11:51:32 2007
@@ -1,17 +1,17 @@
-The documentation is generated by the ant target 'generate-html'.
-
-The generation uses Docbook 1.68.1 XSL and Saxon 6.5.3. These programs/libraries
-are not included in this distribution. You have to download them by yourself:
-
- http://docbook.sourceforge.net/projects/xsl/
-
- http://saxon.sourceforge.net/
-
-You need to specify the following build properties that must point to the saxon
-jar file and the docbook directory. The last one specifies the saxon extension
-of the docbook distribution.
-
- <property name="saxon.jar" value="../../../saxon-6.5.3.jar"/>
- <property name="docbook.dir" value="../../../docbook-xsl-1.68.1"/>
- <property name="docbook.saxon-extension.jar"
+The documentation is generated by the ant target 'generate-html'.
+
+The generation uses Docbook 1.68.1 XSL and Saxon 6.5.3. These programs/libraries
+are not included in this distribution. You have to download them by yourself:
+
+ http://docbook.sourceforge.net/projects/xsl/
+
+ http://saxon.sourceforge.net/
+
+You need to specify the following build properties that must point to the saxon
+jar file and the docbook directory. The last one specifies the saxon extension
+of the docbook distribution.
+
+ <property name="saxon.jar" value="../../../saxon-6.5.3.jar"/>
+ <property name="docbook.dir" value="../../../docbook-xsl-1.68.1"/>
+ <property name="docbook.saxon-extension.jar"
value="${docbook.dir}/extensions/saxon653.jar"/>
Propchange: myfaces/tobago/trunk/doc/reference/howto-generate-doc.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/doc/reference/howto-generate-doc.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/doc/reference/image/box.png
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sun Sep 23 11:51:32 2007
@@ -1 +1 @@
-application/octet-stream
+image/png
Propchange: myfaces/tobago/trunk/doc/reference/image/layout-management-example.png
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sun Sep 23 11:51:32 2007
@@ -1 +1 @@
-application/octet-stream
+image/png
Propchange: myfaces/tobago/trunk/doc/reference/image/screen.png
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sun Sep 23 11:51:32 2007
@@ -1 +1 @@
-application/octet-stream
+image/png
Modified: myfaces/tobago/trunk/doc/reference/introduction.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/doc/reference/introduction.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/doc/reference/introduction.xml (original)
+++ myfaces/tobago/trunk/doc/reference/introduction.xml Sun Sep 23 11:51:32 2007
@@ -1,66 +1,66 @@
-<!--
- * 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.
--->
-
-<chapter id="introduction">
- <title>Introduction</title>
- <para>
- This is the
- <application>Tobago</application>
- reference documentation.
- </para>
- <para>
- The goal of Tobago is to create and maintain a well-designed set of user
- interface components based on the JavaServer Faces (
- <abbrev>JSF</abbrev>
- ) specification.
- </para>
- <para>
- Tobago is more than just a tag library. The following statements
- characterize Tobago and makes it different from other frameworks:
- <itemizedlist>
- <listitem>
- The focus of Tobago is to create business applications without the
- need for
- <abbrev>HTML</abbrev>
- design. The development of Tobago pages follows more the development
- of conventional user interfaces than the creation of web pages.
- </listitem>
- <listitem>
- The UI components are abstracted from
- <abbrev>HTML</abbrev>
- and any layout information that does not belong to the general page
- structure.
- The final output format is determined by the client/user-agent.
- </listitem>
- <listitem>
- A theming mechanism makes it easy to change the look and feel and to
- provide special implementations for certain browsers. A fallback
- solution ensures that as much code is reused for new themes as
- possible.
- </listitem>
- <listitem>
- A layout manager is used to arrange the components automatically. This
- means, no manual layouting with
- <abbrev>HTML</abbrev>
- tables or other constructs is needed.
- </listitem>
- </itemizedlist>
- The
- <link linkend='architecture'>next</link>
- chapter will give a short description of the architecture.
- </para>
-</chapter>
+<!--
+ * 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.
+-->
+
+<chapter id="introduction">
+ <title>Introduction</title>
+ <para>
+ This is the
+ <application>Tobago</application>
+ reference documentation.
+ </para>
+ <para>
+ The goal of Tobago is to create and maintain a well-designed set of user
+ interface components based on the JavaServer Faces (
+ <abbrev>JSF</abbrev>
+ ) specification.
+ </para>
+ <para>
+ Tobago is more than just a tag library. The following statements
+ characterize Tobago and makes it different from other frameworks:
+ <itemizedlist>
+ <listitem>
+ The focus of Tobago is to create business applications without the
+ need for
+ <abbrev>HTML</abbrev>
+ design. The development of Tobago pages follows more the development
+ of conventional user interfaces than the creation of web pages.
+ </listitem>
+ <listitem>
+ The UI components are abstracted from
+ <abbrev>HTML</abbrev>
+ and any layout information that does not belong to the general page
+ structure.
+ The final output format is determined by the client/user-agent.
+ </listitem>
+ <listitem>
+ A theming mechanism makes it easy to change the look and feel and to
+ provide special implementations for certain browsers. A fallback
+ solution ensures that as much code is reused for new themes as
+ possible.
+ </listitem>
+ <listitem>
+ A layout manager is used to arrange the components automatically. This
+ means, no manual layouting with
+ <abbrev>HTML</abbrev>
+ tables or other constructs is needed.
+ </listitem>
+ </itemizedlist>
+ The
+ <link linkend='architecture'>next</link>
+ chapter will give a short description of the architecture.
+ </para>
+</chapter>
Propchange: myfaces/tobago/trunk/doc/reference/introduction.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/doc/reference/introduction.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/doc/reference/reference.xml
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Sep 23 11:51:32 2007
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/doc/reference/tag-reference2docbook.xsl
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Sep 23 11:51:32 2007
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/doc/reference/tobago-reference.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/doc/reference/tobago-reference.css?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/doc/reference/tobago-reference.css (original)
+++ myfaces/tobago/trunk/doc/reference/tobago-reference.css Sun Sep 23 11:51:32 2007
@@ -1,70 +1,70 @@
-/*
- * 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.
- */
-
-body, table {
- font: 12px arial,helvetica,sans-serif;
- background: #E2E2E2
-}
-
-h3 {
- margin-bottom: 5px;
-}
-
-li {
- list-style: url("image/squareRed.gif");
- margin-left: -5px;
- width: 600px;
- margin-bottom: 10px;
-}
-
-:link, :active, :visited {
- color: #333333;
- font: bold 12px arial,helvetica,sans-serif;
- text-decoration: none;
- border-bottom: 1px dotted #600;
-}
-
-hr {
- border: 0px solid black;
- border-top: 1px solid black;
-}
-
-.programlisting {
- background-color: #d3d3d3;
- border: 1px solid black;
-}
-
-.mediaobject {
- padding: 10px;
- background: #ffffff;
- border: 1px solid black;
-}
-
-.classname {
- line-height: 18px;
-}
-
-.table table th {
- background-color: #a9a9a9;
- border: 1px solid black;
-}
-
-.table table td {
- background-color: #d3d3d3;
- border: 1px solid black;
- vertical-align: top;
+/*
+ * 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.
+ */
+
+body, table {
+ font: 12px arial,helvetica,sans-serif;
+ background: #E2E2E2
+}
+
+h3 {
+ margin-bottom: 5px;
+}
+
+li {
+ list-style: url("image/squareRed.gif");
+ margin-left: -5px;
+ width: 600px;
+ margin-bottom: 10px;
+}
+
+:link, :active, :visited {
+ color: #333333;
+ font: bold 12px arial,helvetica,sans-serif;
+ text-decoration: none;
+ border-bottom: 1px dotted #600;
+}
+
+hr {
+ border: 0px solid black;
+ border-top: 1px solid black;
+}
+
+.programlisting {
+ background-color: #d3d3d3;
+ border: 1px solid black;
+}
+
+.mediaobject {
+ padding: 10px;
+ background: #ffffff;
+ border: 1px solid black;
+}
+
+.classname {
+ line-height: 18px;
+}
+
+.table table th {
+ background-color: #a9a9a9;
+ border: 1px solid black;
+}
+
+.table table td {
+ background-color: #d3d3d3;
+ border: 1px solid black;
+ vertical-align: top;
}
Propchange: myfaces/tobago/trunk/doc/reference/tobago-reference.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/doc/reference/tobago-reference.css
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/doc/reference/using-tobago.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/doc/reference/using-tobago.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/doc/reference/using-tobago.xml (original)
+++ myfaces/tobago/trunk/doc/reference/using-tobago.xml Sun Sep 23 11:51:32 2007
@@ -1,120 +1,120 @@
-<!--
- * 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.
--->
-
-<chapter id="using">
- <title>Using Tobago (Users guide)</title>
- <para>This chapter describes how JSF applications are developed with
- Tobago.</para>
- <sect1 id="setup">
- <title>Setup</title>
- <para>To get your web application work with Tobago you have to do (at least)
- the following:
- <itemizedlist>
- <listitem>
- Include the "tobago-core.jar" in your classpath. A good
- position may be the "WEB-INF/lib" directory.
- </listitem>
- <listitem>
- <para>
- Add the needed themes to your web application. A theme is a zip
- file containing a subset of a war file. For example: html, css,
- image, javascript, jsp and java class files. The file contains
- a "tobago-theme" and a "WEB-INF/lib" directory.
- </para>
- <para>
- To add themes extract the theme files into your content root
- directory. This is the directory that contains your "WEB-INF"
- directory.
- </para>
- <para>
- Themes may extend other themes. In this case you have to include
- all super themes a theme depends on!
- </para>
- </listitem>
- <listitem>
- Add a "tobago-config.xml" file to your "WEB-INF" directory. The
- configuration file is described in
- <xref linkend="configuration"/>
- . You may use a sample provided with the distribution.
- </listitem>
- </itemizedlist>
- The distribution comes with an ant build file containing a "war"
- target which can be used as a reference.
- </para>
- </sect1>
- <sect1>
- <title>Tag library</title>
- <para>Tobago offers a rich set of user interface components described in
- this chapter. The component are used as tags on jsp pages.</para>
- <para>The following sections describe the components in detail.</para>
- <!-- the reference of the tag lib is generated -->
- &taglib;
- </sect1>
- <sect1 id="layout">
- <title>Layout management</title>
- <para>Tobago uses a layout manager to render the components. The manager
- is specified (as a facet) for a container component like a panel. Layout
- information given to the manager determine how the contained components
- are positioned and sized.</para>
- <para>The most important layout manager is the GridLayoutRenderer which is
- used to layout components in grid structures like forms.</para>
- <para>
- The following example illustrates the use of a layout manager:
- a typical web form.
- </para>
- <example>
- <title>Layout management</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="image/layout-management-example.png"
- format="PNG"/>
- </imageobject>
- </mediaobject>
- <para>The form has two columns and six rows. Both columns get the same
- size which is expressed through
- <code>columns="1*;1*"</code>
- . The first five rows have a
- <code>fixed</code>
- height. This means the
- row is rendered as high as the components contained in the row needs it.
- The last row consumes the rest of the available space. This is specified
- by <code>rows="fixed;fixed;fixed;fixed;fixed;*"</code>. (Note the star
- at the end!)
- </para>
- <para>
- The complete code comes here:
- </para>
- <programlisting lang="jsp">
- <textobject>
- <textdata fileref="build/sniplets/layoutManagementExample.snip"/>
- </textobject>
- </programlisting>
- <para>
- Two of the rows range over both columns. This can be archived through
- a <code>cell</code> element with a <code>spanX</code> attribute
- (<code>spanY</code> is also possible).
- </para>
- <para>The first row has only one component. The second column contains
- an empty cell element.
- </para>
- </example>
- </sect1>
- <sect1 id="themes">
- <title>Themes</title>
- <para></para>
- </sect1>
+<!--
+ * 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.
+-->
+
+<chapter id="using">
+ <title>Using Tobago (Users guide)</title>
+ <para>This chapter describes how JSF applications are developed with
+ Tobago.</para>
+ <sect1 id="setup">
+ <title>Setup</title>
+ <para>To get your web application work with Tobago you have to do (at least)
+ the following:
+ <itemizedlist>
+ <listitem>
+ Include the "tobago-core.jar" in your classpath. A good
+ position may be the "WEB-INF/lib" directory.
+ </listitem>
+ <listitem>
+ <para>
+ Add the needed themes to your web application. A theme is a zip
+ file containing a subset of a war file. For example: html, css,
+ image, javascript, jsp and java class files. The file contains
+ a "tobago-theme" and a "WEB-INF/lib" directory.
+ </para>
+ <para>
+ To add themes extract the theme files into your content root
+ directory. This is the directory that contains your "WEB-INF"
+ directory.
+ </para>
+ <para>
+ Themes may extend other themes. In this case you have to include
+ all super themes a theme depends on!
+ </para>
+ </listitem>
+ <listitem>
+ Add a "tobago-config.xml" file to your "WEB-INF" directory. The
+ configuration file is described in
+ <xref linkend="configuration"/>
+ . You may use a sample provided with the distribution.
+ </listitem>
+ </itemizedlist>
+ The distribution comes with an ant build file containing a "war"
+ target which can be used as a reference.
+ </para>
+ </sect1>
+ <sect1>
+ <title>Tag library</title>
+ <para>Tobago offers a rich set of user interface components described in
+ this chapter. The component are used as tags on jsp pages.</para>
+ <para>The following sections describe the components in detail.</para>
+ <!-- the reference of the tag lib is generated -->
+ &taglib;
+ </sect1>
+ <sect1 id="layout">
+ <title>Layout management</title>
+ <para>Tobago uses a layout manager to render the components. The manager
+ is specified (as a facet) for a container component like a panel. Layout
+ information given to the manager determine how the contained components
+ are positioned and sized.</para>
+ <para>The most important layout manager is the GridLayoutRenderer which is
+ used to layout components in grid structures like forms.</para>
+ <para>
+ The following example illustrates the use of a layout manager:
+ a typical web form.
+ </para>
+ <example>
+ <title>Layout management</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="image/layout-management-example.png"
+ format="PNG"/>
+ </imageobject>
+ </mediaobject>
+ <para>The form has two columns and six rows. Both columns get the same
+ size which is expressed through
+ <code>columns="1*;1*"</code>
+ . The first five rows have a
+ <code>fixed</code>
+ height. This means the
+ row is rendered as high as the components contained in the row needs it.
+ The last row consumes the rest of the available space. This is specified
+ by <code>rows="fixed;fixed;fixed;fixed;fixed;*"</code>. (Note the star
+ at the end!)
+ </para>
+ <para>
+ The complete code comes here:
+ </para>
+ <programlisting lang="jsp">
+ <textobject>
+ <textdata fileref="build/sniplets/layoutManagementExample.snip"/>
+ </textobject>
+ </programlisting>
+ <para>
+ Two of the rows range over both columns. This can be archived through
+ a <code>cell</code> element with a <code>spanX</code> attribute
+ (<code>spanY</code> is also possible).
+ </para>
+ <para>The first row has only one component. The second column contains
+ an empty cell element.
+ </para>
+ </example>
+ </sect1>
+ <sect1 id="themes">
+ <title>Themes</title>
+ <para></para>
+ </sect1>
</chapter>
Propchange: myfaces/tobago/trunk/doc/reference/using-tobago.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/doc/reference/using-tobago.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/Address.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/AddressDao.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/AddressDao.java?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/AddressDao.java (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/AddressDao.java Sun Sep 23 11:51:32 2007
@@ -19,7 +19,7 @@
/*
* Created 29.11.2004 17:36:20.
- * $Id: Controller.java,v 1.2 2005/08/10 11:57:55 lofwyr Exp $
+ * $Id$
*/
import java.util.List;
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/AddressDao.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/AddressDaoException.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/DerbyShutdownServletContextListener.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/EmailAddress.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/InMemoryAddressDao.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/InMemoryAddressDao.java?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/InMemoryAddressDao.java (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/InMemoryAddressDao.java Sun Sep 23 11:51:32 2007
@@ -19,7 +19,7 @@
/*
* Created 29.11.2004 17:36:20.
- * $Id: Controller.java,v 1.2 2005/08/10 11:57:55 lofwyr Exp $
+ * $Id$
*/
import org.apache.commons.logging.Log;
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/InMemoryAddressDao.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/JpaAddressDao.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/Log4jUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/OpenJpaLoadTimeWeaver.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/OpenJpaLoadTimeWeaver.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/Picture.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/AdminController.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/AppenderModel.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/CategoryModel.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Controller.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Controller.java?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Controller.java (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Controller.java Sun Sep 23 11:51:32 2007
@@ -19,7 +19,7 @@
/*
* Created 29.11.2004 17:36:20.
- * $Id: Controller.java,v 1.2 2005/08/10 11:57:55 lofwyr Exp $
+ * $Id$
*/
import org.apache.commons.fileupload.FileItem;
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Controller.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Countries.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/EmailAddressConverter.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/EmailAddressConverter.java?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/EmailAddressConverter.java (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/EmailAddressConverter.java Sun Sep 23 11:51:32 2007
@@ -19,7 +19,7 @@
/*
* Created 03.12.2004 00:08:01.
- * $Id: AddressConverter.java,v 1.1.1.1 2004/12/15 12:51:35 lofwyr Exp $
+ * $Id$
*/
import org.apache.commons.logging.Log;
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/EmailAddressConverter.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/EmailAddressValidator.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/Layout.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/LocaleConverter.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/LoggingController.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/MessageUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/PictureServlet.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/RandomAddressGenerator.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/SelectItemComparator.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/java/org/apache/myfaces/tobago/example/addressbook/web/StartupPhaseListener.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/resources/error/messages.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/resources/error/messages.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/LICENSE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/NOTICE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/NOTICE.txt
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/context.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/context.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/context.xml (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/context.xml Sun Sep 23 11:51:32 2007
@@ -1,24 +1,24 @@
-<?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.
--->
-<!--
- antiResourceLocking is needed for proper redeploy under Windows.
--->
-
-<Context antiResourceLocking="true">
-</Context>
+<?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.
+-->
+<!--
+ antiResourceLocking is needed for proper redeploy under Windows.
+-->
+
+<Context antiResourceLocking="true">
+</Context>
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/context.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/META-INF/context.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/applicationContext.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/applicationContext.xml (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/applicationContext.xml Sun Sep 23 11:51:32 2007
@@ -1,62 +1,62 @@
-<?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.
--->
-
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
-
- <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>
-
- <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
-
- <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
- <property name="dataSource" ref="dataSource"/>
- <property name="jpaVendorAdapter">
- <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter">
- <property name="showSql" value="true"/>
- <property name="generateDdl" value="true"/>
- </bean>
- </property>
- <property name="persistenceUnitName" value="addressBook"/>
- <property name="loadTimeWeaver">
- <bean class="org.apache.myfaces.tobago.example.addressbook.OpenJpaLoadTimeWeaver"/>
- </property>
- </bean>
-
- <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
- <property name="url" value="jdbc:derby:target/addressDB;create=true"/>
- </bean>
-
- <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
- <property name="entityManagerFactory" ref="entityManagerFactory"/>
- <property name="dataSource" ref="dataSource"/>
- </bean>
-
- <bean id="addressDao" class="org.apache.myfaces.tobago.example.addressbook.JpaAddressDao">
- <property name="entityManagerFactory" ref="entityManagerFactory"/>
- </bean>
-
- <tx:annotation-driven />
-
+<?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.
+-->
+
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:tx="http://www.springframework.org/schema/tx"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/tx
+ http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
+
+ <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/>
+
+ <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/>
+
+ <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
+ <property name="dataSource" ref="dataSource"/>
+ <property name="jpaVendorAdapter">
+ <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter">
+ <property name="showSql" value="true"/>
+ <property name="generateDdl" value="true"/>
+ </bean>
+ </property>
+ <property name="persistenceUnitName" value="addressBook"/>
+ <property name="loadTimeWeaver">
+ <bean class="org.apache.myfaces.tobago.example.addressbook.OpenJpaLoadTimeWeaver"/>
+ </property>
+ </bean>
+
+ <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
+ <property name="driverClassName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+ <property name="url" value="jdbc:derby:target/addressDB;create=true"/>
+ </bean>
+
+ <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
+ <property name="entityManagerFactory" ref="entityManagerFactory"/>
+ <property name="dataSource" ref="dataSource"/>
+ </bean>
+
+ <bean id="addressDao" class="org.apache.myfaces.tobago.example.addressbook.JpaAddressDao">
+ <property name="entityManagerFactory" ref="entityManagerFactory"/>
+ </bean>
+
+ <tx:annotation-driven />
+
</beans>
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/applicationContext.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/classes/log4j.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/classes/log4j.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/classes/log4j.xml (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/classes/log4j.xml Sun Sep 23 11:51:32 2007
@@ -1,68 +1,68 @@
-<?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 log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration>
-
- <appender name="logfile" class="org.apache.log4j.FileAppender">
- <param name="File" value="tobago-example-addressbook.log" />
- <param name="Append" value="true" />
- <param name="Encoding" value="UTF-8" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern"
- value="%d{yyyy-MM-dd HH:mm:ss} %15t %-5p - %c:%L - %m%n"/>
- <!--
- %d{...} date pattern
- %p priority
- %m log message
- %n newline
- -5 fill with spaces (5)
-
- For more options see class org.apache.log4j.PatternLayout.
- -->
- </layout>
- </appender>
-
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern"
- value="%d{yyyy-MM-dd HH:mm:ss} %15t %-5p - %c:%L - %m%n"/>
- </layout>
- </appender>
-
- <category name="org.apache.myfaces.tobago.example.addressbook">
- <priority value="debug" />
- </category>
-
- <category name="org.apache.myfaces.tobago.application">
- <priority value="debug" />
- </category>
-
-
- <category name="org.apache.myfaces.tobago.util">
- <priority value="debug" />
- </category>
-
- <root>
- <priority value="info" />
- <appender-ref ref="console" />
- <appender-ref ref="logfile" />
- </root>
-
-</log4j:configuration>
+<?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 log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration>
+
+ <appender name="logfile" class="org.apache.log4j.FileAppender">
+ <param name="File" value="tobago-example-addressbook.log" />
+ <param name="Append" value="true" />
+ <param name="Encoding" value="UTF-8" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{yyyy-MM-dd HH:mm:ss} %15t %-5p - %c:%L - %m%n"/>
+ <!--
+ %d{...} date pattern
+ %p priority
+ %m log message
+ %n newline
+ -5 fill with spaces (5)
+
+ For more options see class org.apache.log4j.PatternLayout.
+ -->
+ </layout>
+ </appender>
+
+ <appender name="console" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern"
+ value="%d{yyyy-MM-dd HH:mm:ss} %15t %-5p - %c:%L - %m%n"/>
+ </layout>
+ </appender>
+
+ <category name="org.apache.myfaces.tobago.example.addressbook">
+ <priority value="debug" />
+ </category>
+
+ <category name="org.apache.myfaces.tobago.application">
+ <priority value="debug" />
+ </category>
+
+
+ <category name="org.apache.myfaces.tobago.util">
+ <priority value="debug" />
+ </category>
+
+ <root>
+ <priority value="info" />
+ <appender-ref ref="console" />
+ <appender-ref ref="logfile" />
+ </root>
+
+</log4j:configuration>
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/classes/log4j.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/classes/log4j.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/faces-config.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/faces-config.xml (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/faces-config.xml Sun Sep 23 11:51:32 2007
@@ -1,168 +1,168 @@
-<?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>
- <action-listener>org.apache.myfaces.tobago.util.DebugActionListener</action-listener>
- <navigation-handler>org.apache.myfaces.tobago.util.DebugNavigationHandler</navigation-handler>
- <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
- <locale-config>
- <default-locale>en_US</default-locale>
- <supported-locale>de</supported-locale>
- <supported-locale>en_GB</supported-locale>
- <supported-locale>en_US</supported-locale>
- </locale-config>
- <message-bundle>error.messages</message-bundle>
- </application>
-
- <component>
- <component-type>org.apache.myfaces.tobago.Command</component-type>
- <component-class>org.apache.myfaces.tobago.security.UISecuredCommand</component-class>
- </component>
-
- <component>
- <component-type>org.apache.myfaces.tobago.LinkCommand</component-type>
- <component-class>org.apache.myfaces.tobago.security.UISecuredLinkCommand</component-class>
- </component>
-
- <component>
- <component-type>org.apache.myfaces.tobago.ButtonCommand</component-type>
- <component-class>org.apache.myfaces.tobago.security.UISecuredButtonCommand</component-class>
- </component>
-
- <component>
- <component-type>org.apache.myfaces.tobago.MenuCommand</component-type>
- <component-class>org.apache.myfaces.tobago.security.UISecuredMenuCommand</component-class>
- </component>
-
- <lifecycle>
- <phase-listener>org.apache.myfaces.tobago.util.DebugPhaseListener</phase-listener>
- <phase-listener>org.apache.myfaces.tobago.example.addressbook.web.StartupPhaseListener</phase-listener>
- </lifecycle>
-
- <managed-bean>
- <managed-bean-name>controller</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.Controller</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>addressDao</property-name>
- <value>#{addressDao}</value>
- </managed-property>
- <managed-property>
- <property-name>countries</property-name>
- <value>#{countries}</value>
- </managed-property>
- </managed-bean>
-
- <managed-bean>
- <managed-bean-name>admin</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.AdminController</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
-
- <managed-bean>
- <managed-bean-name>logging</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.LoggingController</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
-
- <managed-bean>
- <managed-bean-name>countries</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.Countries</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
-
- <managed-bean>
- <managed-bean-name>layout</managed-bean-name>
- <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.Layout</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>width</property-name>
- <property-class>int</property-class>
- <value>600</value>
- </managed-property>
- <managed-property>
- <property-name>height</property-name>
- <property-class>int</property-class>
- <value>550</value>
- </managed-property>
- <managed-property>
- <property-name>minimumWidth</property-name>
- <property-class>int</property-class>
- <value>600</value>
- </managed-property>
- <managed-property>
- <property-name>minimumHeight</property-name>
- <property-class>int</property-class>
- <value>550</value>
- </managed-property>
- <managed-property>
- <property-name>maximumWidth</property-name>
- <property-class>int</property-class>
- <value>1000</value>
- </managed-property>
- <managed-property>
- <property-name>maximumHeight</property-name>
- <property-class>int</property-class>
- <value>600</value>
- </managed-property>
- </managed-bean>
-
- <converter>
- <converter-for-class>java.util.Locale</converter-for-class>
- <converter-class>org.apache.myfaces.tobago.example.addressbook.web.LocaleConverter</converter-class>
- </converter>
-
- <validator>
- <validator-id>EmailAddressValidator</validator-id>
- <validator-class>org.apache.myfaces.tobago.example.addressbook.web.EmailAddressValidator</validator-class>
- </validator>
-
- <converter>
- <converter-for-class>org.apache.myfaces.tobago.example.addressbook.EmailAddress</converter-for-class>
- <converter-class>org.apache.myfaces.tobago.example.addressbook.web.EmailAddressConverter</converter-class>
- </converter>
-
- <navigation-rule>
- <navigation-case>
- <from-outcome>logout</from-outcome>
- <to-view-id>/auth/logout.jsp</to-view-id>
- </navigation-case>
- </navigation-rule>
- <navigation-rule>
- <navigation-case>
- <from-outcome>editor</from-outcome>
- <to-view-id>/application/editor.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>list</from-outcome>
- <to-view-id>/application/list.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
- <from-outcome>admin</from-outcome>
- <to-view-id>/application/admin/admin.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>
+ <action-listener>org.apache.myfaces.tobago.util.DebugActionListener</action-listener>
+ <navigation-handler>org.apache.myfaces.tobago.util.DebugNavigationHandler</navigation-handler>
+ <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
+ <locale-config>
+ <default-locale>en_US</default-locale>
+ <supported-locale>de</supported-locale>
+ <supported-locale>en_GB</supported-locale>
+ <supported-locale>en_US</supported-locale>
+ </locale-config>
+ <message-bundle>error.messages</message-bundle>
+ </application>
+
+ <component>
+ <component-type>org.apache.myfaces.tobago.Command</component-type>
+ <component-class>org.apache.myfaces.tobago.security.UISecuredCommand</component-class>
+ </component>
+
+ <component>
+ <component-type>org.apache.myfaces.tobago.LinkCommand</component-type>
+ <component-class>org.apache.myfaces.tobago.security.UISecuredLinkCommand</component-class>
+ </component>
+
+ <component>
+ <component-type>org.apache.myfaces.tobago.ButtonCommand</component-type>
+ <component-class>org.apache.myfaces.tobago.security.UISecuredButtonCommand</component-class>
+ </component>
+
+ <component>
+ <component-type>org.apache.myfaces.tobago.MenuCommand</component-type>
+ <component-class>org.apache.myfaces.tobago.security.UISecuredMenuCommand</component-class>
+ </component>
+
+ <lifecycle>
+ <phase-listener>org.apache.myfaces.tobago.util.DebugPhaseListener</phase-listener>
+ <phase-listener>org.apache.myfaces.tobago.example.addressbook.web.StartupPhaseListener</phase-listener>
+ </lifecycle>
+
+ <managed-bean>
+ <managed-bean-name>controller</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.Controller</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>addressDao</property-name>
+ <value>#{addressDao}</value>
+ </managed-property>
+ <managed-property>
+ <property-name>countries</property-name>
+ <value>#{countries}</value>
+ </managed-property>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>admin</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.AdminController</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>logging</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.LoggingController</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>countries</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.Countries</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>layout</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.tobago.example.addressbook.web.Layout</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>width</property-name>
+ <property-class>int</property-class>
+ <value>600</value>
+ </managed-property>
+ <managed-property>
+ <property-name>height</property-name>
+ <property-class>int</property-class>
+ <value>550</value>
+ </managed-property>
+ <managed-property>
+ <property-name>minimumWidth</property-name>
+ <property-class>int</property-class>
+ <value>600</value>
+ </managed-property>
+ <managed-property>
+ <property-name>minimumHeight</property-name>
+ <property-class>int</property-class>
+ <value>550</value>
+ </managed-property>
+ <managed-property>
+ <property-name>maximumWidth</property-name>
+ <property-class>int</property-class>
+ <value>1000</value>
+ </managed-property>
+ <managed-property>
+ <property-name>maximumHeight</property-name>
+ <property-class>int</property-class>
+ <value>600</value>
+ </managed-property>
+ </managed-bean>
+
+ <converter>
+ <converter-for-class>java.util.Locale</converter-for-class>
+ <converter-class>org.apache.myfaces.tobago.example.addressbook.web.LocaleConverter</converter-class>
+ </converter>
+
+ <validator>
+ <validator-id>EmailAddressValidator</validator-id>
+ <validator-class>org.apache.myfaces.tobago.example.addressbook.web.EmailAddressValidator</validator-class>
+ </validator>
+
+ <converter>
+ <converter-for-class>org.apache.myfaces.tobago.example.addressbook.EmailAddress</converter-for-class>
+ <converter-class>org.apache.myfaces.tobago.example.addressbook.web.EmailAddressConverter</converter-class>
+ </converter>
+
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>logout</from-outcome>
+ <to-view-id>/auth/logout.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>editor</from-outcome>
+ <to-view-id>/application/editor.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>list</from-outcome>
+ <to-view-id>/application/list.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>admin</from-outcome>
+ <to-view-id>/application/admin/admin.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
+</faces-config>
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/faces-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tags/layout/basic.tag
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tags/layout/basic.tag
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tobago-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tobago-config.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tobago-config.xml (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tobago-config.xml Sun Sep 23 11:51:32 2007
@@ -1,44 +1,44 @@
-<?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 tobago-config PUBLIC
- "-//The Apache Software Foundation//DTD Tobago Config 1.0//EN" "tobago-config_1_0.dtd">
-
-<tobago-config>
-
- <theme-config>
- <default-theme>speyside</default-theme>
- <supported-theme>scarborough</supported-theme>
- <supported-theme>richmond</supported-theme>
- <supported-theme>charlotteville</supported-theme>
- </theme-config>
-
- <resource-dir>tobago-resource</resource-dir>
- <ajax-enabled>true</ajax-enabled>
- <renderers>
- <renderer>
- <name>Progress</name>
- <supported-markup>
- <markup>ok</markup>
- <markup>warn</markup>
- <markup>error</markup>
- </supported-markup>
- </renderer>
- </renderers>
-</tobago-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 tobago-config PUBLIC
+ "-//The Apache Software Foundation//DTD Tobago Config 1.0//EN" "tobago-config_1_0.dtd">
+
+<tobago-config>
+
+ <theme-config>
+ <default-theme>speyside</default-theme>
+ <supported-theme>scarborough</supported-theme>
+ <supported-theme>richmond</supported-theme>
+ <supported-theme>charlotteville</supported-theme>
+ </theme-config>
+
+ <resource-dir>tobago-resource</resource-dir>
+ <ajax-enabled>true</ajax-enabled>
+ <renderers>
+ <renderer>
+ <name>Progress</name>
+ <supported-markup>
+ <markup>ok</markup>
+ <markup>warn</markup>
+ <markup>error</markup>
+ </supported-markup>
+ </renderer>
+ </renderers>
+</tobago-config>
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tobago-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/tobago-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/web.xml?rev=578592&r1=578591&r2=578592&view=diff
==============================================================================
--- myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/web.xml Sun Sep 23 11:51:32 2007
@@ -1,118 +1,118 @@
-<?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.
--->
-
-<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
-
- <display-name>A simple addressbook demo with Tobago</display-name>
-
-
- <!-- workaround for a bug in Oracle AS (e.g. 10.1.2.0.0)-->
- <listener>
- <listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextListener</listener-class>
- </listener>
-
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- </listener>
-
- <listener>
- <listener-class>org.apache.myfaces.tobago.example.addressbook.DerbyShutdownServletContextListener</listener-class>
- </listener>
-
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>/WEB-INF/applicationContext.xml</param-value>
- </context-param>
-
- <!-- servlet -->
-
- <servlet>
- <servlet-name>FacesServlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet>
- <servlet-name>PictureServlet</servlet-name>
- <servlet-class>org.apache.myfaces.tobago.example.addressbook.web.PictureServlet</servlet-class>
- </servlet>
-
- <!-- workaround for a bug in Bea Weblogic 8.1 SP 2 and older -->
- <servlet>
- <servlet-name>WeblogicWorkaroundServlet</servlet-name>
- <servlet-class>org.apache.myfaces.tobago.webapp.WeblogicWorkaroundServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet>
- <servlet-name>ResourceServlet</servlet-name>
- <servlet-class>org.apache.myfaces.tobago.servlet.ResourceServlet</servlet-class>
- </servlet>
-
-
- <servlet-mapping>
- <servlet-name>FacesServlet</servlet-name>
- <url-pattern>/faces/*</url-pattern>
- </servlet-mapping>
-
- <servlet-mapping>
- <servlet-name>PictureServlet</servlet-name>
- <url-pattern>/faces/picture</url-pattern>
- </servlet-mapping>
-
- <servlet-mapping>
- <servlet-name>ResourceServlet</servlet-name>
- <url-pattern>/org/apache/myfaces/tobago/renderkit/*</url-pattern>
- </servlet-mapping>
-
- <!-- Welcome File List -->
-
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- </welcome-file-list>
-
- <security-constraint>
- <display-name>Security Constraint</display-name>
- <web-resource-collection>
- <web-resource-name>Application Area</web-resource-name>
- <url-pattern>/faces/application/*</url-pattern>
- <url-pattern>/application/*</url-pattern>
- </web-resource-collection>
- <auth-constraint>
- <role-name>*</role-name>
- </auth-constraint>
- </security-constraint>
-
- <login-config>
- <auth-method>FORM</auth-method>
- <realm-name>addressbook-realm</realm-name>
- <form-login-config>
- <form-login-page>/faces/auth/login.jsp</form-login-page>
- <form-error-page>/faces/auth/error.jsp</form-error-page>
- </form-login-config>
- </login-config>
-
- <security-role>
- <role-name>addressbook-user</role-name>
- </security-role>
-
-</web-app>
+<?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.
+-->
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <display-name>A simple addressbook demo with Tobago</display-name>
+
+
+ <!-- workaround for a bug in Oracle AS (e.g. 10.1.2.0.0)-->
+ <listener>
+ <listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextListener</listener-class>
+ </listener>
+
+ <listener>
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+ </listener>
+
+ <listener>
+ <listener-class>org.apache.myfaces.tobago.example.addressbook.DerbyShutdownServletContextListener</listener-class>
+ </listener>
+
+ <context-param>
+ <param-name>contextConfigLocation</param-name>
+ <param-value>/WEB-INF/applicationContext.xml</param-value>
+ </context-param>
+
+ <!-- servlet -->
+
+ <servlet>
+ <servlet-name>FacesServlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet>
+ <servlet-name>PictureServlet</servlet-name>
+ <servlet-class>org.apache.myfaces.tobago.example.addressbook.web.PictureServlet</servlet-class>
+ </servlet>
+
+ <!-- workaround for a bug in Bea Weblogic 8.1 SP 2 and older -->
+ <servlet>
+ <servlet-name>WeblogicWorkaroundServlet</servlet-name>
+ <servlet-class>org.apache.myfaces.tobago.webapp.WeblogicWorkaroundServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet>
+ <servlet-name>ResourceServlet</servlet-name>
+ <servlet-class>org.apache.myfaces.tobago.servlet.ResourceServlet</servlet-class>
+ </servlet>
+
+
+ <servlet-mapping>
+ <servlet-name>FacesServlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>PictureServlet</servlet-name>
+ <url-pattern>/faces/picture</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>ResourceServlet</servlet-name>
+ <url-pattern>/org/apache/myfaces/tobago/renderkit/*</url-pattern>
+ </servlet-mapping>
+
+ <!-- Welcome File List -->
+
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+
+ <security-constraint>
+ <display-name>Security Constraint</display-name>
+ <web-resource-collection>
+ <web-resource-name>Application Area</web-resource-name>
+ <url-pattern>/faces/application/*</url-pattern>
+ <url-pattern>/application/*</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>*</role-name>
+ </auth-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>FORM</auth-method>
+ <realm-name>addressbook-realm</realm-name>
+ <form-login-config>
+ <form-login-page>/faces/auth/login.jsp</form-login-page>
+ <form-error-page>/faces/auth/error.jsp</form-error-page>
+ </form-login-config>
+ </login-config>
+
+ <security-role>
+ <role-name>addressbook-user</role-name>
+ </security-role>
+
+</web-app>
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/application/admin/admin.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/example/addressbook/src/main/webapp/application/admin/admin.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL