You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/10/15 15:33:54 UTC
svn commit: r464192 [4/4] - in /myfaces/tomahawk/trunk/sandbox15: core/
core/src/main/java/org/ core/src/main/java/org/apache/
core/src/main/java/org/apache/myfaces/
core/src/main/java/org/apache/myfaces/custom/
core/src/main/java/org/apache/myfaces/cu...
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/metadata/utils/TypeInfos.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/metadata/utils/TypeInfos.java?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/metadata/utils/TypeInfos.java (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/metadata/utils/TypeInfos.java Sun Oct 15 06:33:49 2006
@@ -0,0 +1,130 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.apache.myfaces.custom.dynaForm.metadata.utils;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.HashMap;
+import java.util.Map;
+
+public class TypeInfos
+{
+ private final static Map<Class, Info> INFOS = new HashMap<Class, Info>(10);
+
+ public static class Info
+ {
+ /**
+ * min possible value
+ */
+ private final Double minValue;
+
+ /**
+ * max possible value
+ */
+ private final Double maxValue;
+
+ /**
+ * display length, -1 means unknown
+ */
+ private final int length;
+
+ /**
+ * do this type has a fractional part
+ */
+ private final boolean hasFractional;
+
+ /**
+ * if this is a number
+ */
+ private final boolean number;
+
+ private Info(boolean number, Double minValue, Double maxValue, boolean hasFractional)
+ {
+ if (minValue != null)
+ {
+ int length = String.valueOf(minValue).length();
+ if (!hasFractional)
+ {
+ length=length-2; // strip off the .0 part after string conversion
+ }
+ this.length = length;
+ }
+ else
+ {
+ length = -1;
+ }
+ this.minValue = minValue;
+ this.maxValue = maxValue;
+ this.hasFractional = hasFractional;
+ this.number = number;
+ }
+
+ public int getLength()
+ {
+ return length;
+ }
+
+ public Double getMaxValue()
+ {
+ return maxValue;
+ }
+
+ public Double getMinValue()
+ {
+ return minValue;
+ }
+
+ public boolean isHasFractional()
+ {
+ return hasFractional;
+ }
+
+ public boolean isNumber()
+ {
+ return number;
+ }
+ }
+
+ static
+ {
+ addInfo(new Info(true, (double) Byte.MIN_VALUE, (double) Byte.MAX_VALUE, false), Byte.class, Byte.TYPE);
+ addInfo(new Info(true, (double) Short.MIN_VALUE, (double) Short.MAX_VALUE, false), Short.class, Short.TYPE);
+ addInfo(new Info(true, (double) Integer.MIN_VALUE, (double) Integer.MAX_VALUE, false), Integer.class, Integer.TYPE);
+ addInfo(new Info(true, (double) Long.MIN_VALUE, (double) Long.MAX_VALUE, false), Long.class, Long.TYPE);
+ addInfo(new Info(true, null, null, false), BigInteger.class);
+ addInfo(new Info(true, null, (double) Float.MAX_VALUE, true), Float.class, Float.TYPE);
+ addInfo(new Info(true, null, Double.MAX_VALUE, true), Double.class, Double.TYPE);
+ addInfo(new Info(true, null, null, true), BigDecimal.class);
+ addInfo(new Info(false, null, null, false), String.class);
+ }
+
+ private TypeInfos()
+ {
+ }
+
+ private static void addInfo(Info info, Class ... types)
+ {
+ for (Class type : types)
+ {
+ INFOS.put(type, info);
+ }
+ }
+
+ public static Info getInfo(Class type)
+ {
+ return INFOS.get(type);
+ }
+}
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/metadata/utils/TypeInfos.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/metadata/utils/TypeInfos.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/metadata/utils/TypeInfos.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/FacesUriResolver.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/FacesUriResolver.java?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/FacesUriResolver.java (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/FacesUriResolver.java Sun Oct 15 06:33:49 2006
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.apache.myfaces.custom.dynaForm.uri;
+
+import java.io.InputStream;
+
+import javax.faces.context.FacesContext;
+
+/**
+ * try to locate the configuration through the faces context too
+ */
+public class FacesUriResolver extends UriResolver
+{
+ @Override
+ protected InputStream findConfig(String config)
+ {
+ InputStream is = FacesContext.getCurrentInstance().getExternalContext().getResourceAsStream("/WEB-INF/" + config);
+ if (is != null)
+ {
+ return is;
+ }
+
+ return super.findConfig(config);
+ }
+
+}
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/FacesUriResolver.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/FacesUriResolver.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/FacesUriResolver.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/UriResolver.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/UriResolver.java?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/UriResolver.java (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/UriResolver.java Sun Oct 15 06:33:49 2006
@@ -0,0 +1,184 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.apache.myfaces.custom.dynaForm.uri;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.InvalidPropertiesFormatException;
+import java.util.Properties;
+
+import org.apache.myfaces.custom.dynaForm.lib.DynaFormException;
+import org.apache.myfaces.custom.dynaForm.metadata.Extractor;
+
+/**
+ * Resolves the URI to a configuration
+ */
+public abstract class UriResolver
+{
+ /**
+ * The configuration
+ */
+ public static class Configuration
+ {
+ private final Extractor extractor;
+ private final String entity;
+
+ protected Configuration(Extractor extractor, String entity)
+ {
+ this.extractor = extractor;
+ this.entity = entity;
+ }
+
+ /**
+ * metadata for the given entity
+ */
+ public Extractor getExtractor()
+ {
+ return extractor;
+ }
+
+ /**
+ * the entity identification
+ */
+ public String getEntity()
+ {
+ return entity;
+ }
+ }
+
+ protected Configuration createConfiguration(Extractor extractor, String entity)
+ {
+ return new Configuration(extractor, entity);
+ }
+
+ /**
+ * resolve the given uri
+ */
+ public Configuration resolveUri(String uri)
+ {
+ int pos = uri.indexOf(":");
+ if (pos < 0)
+ {
+ return resolve("default", uri);
+ }
+ if (uri.length() < pos+1)
+ {
+ throw new IllegalArgumentException("Invalid uri: " + uri);
+ }
+
+ return resolve(uri.substring(0, pos), uri.substring(pos+1));
+ }
+
+ /**
+ * do the hard work
+ */
+ protected Configuration resolve(String scheme, String path)
+ {
+ String config = "dynaForm-" + scheme + ".xml";
+ Properties props = new Properties();
+ InputStream resource = null;
+ try
+ {
+ resource = findConfig(config);
+ if (resource == null)
+ {
+ throw new DynaFormException("configuration '" + config + "' not found.");
+ }
+
+ props.loadFromXML(resource);
+ }
+ catch (InvalidPropertiesFormatException e)
+ {
+ throw new DynaFormException(e);
+ }
+ catch (IOException e)
+ {
+ throw new DynaFormException(e);
+ }
+ finally
+ {
+ if (resource != null)
+ {
+ try
+ {
+ resource.close();
+ }
+ catch (IOException e)
+ {
+ // do not shadow the real exception
+ }
+ }
+ }
+
+ String extractor = getRequiredProperty(config, props, "Extractor");
+
+ try
+ {
+ Extractor extractorClass = (Extractor) Class.forName(extractor).newInstance();
+ return createConfiguration(
+ extractorClass,
+ path);
+ }
+ catch (InstantiationException e)
+ {
+ throw new DynaFormException(e);
+ }
+ catch (IllegalAccessException e)
+ {
+ throw new DynaFormException(e);
+ }
+ catch (ClassNotFoundException e)
+ {
+ throw new DynaFormException(e);
+ }
+ catch (SecurityException e)
+ {
+ throw new DynaFormException(e);
+ }
+ catch (IllegalArgumentException e)
+ {
+ throw new DynaFormException(e);
+ }
+ }
+
+ /**
+ * load the configuration
+ */
+ protected InputStream findConfig(String config)
+ {
+ return getResourceAsStream("META-INF/" + config);
+ }
+
+ protected InputStream getResourceAsStream(String resource)
+ {
+ InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);
+ if (stream == null)
+ {
+ stream = UriResolver.class.getClassLoader().getResourceAsStream(resource);
+ }
+ return stream;
+ }
+
+ protected String getRequiredProperty(String config, Properties props, String key)
+ {
+ String value = props.getProperty(key);
+ if (value == null)
+ {
+ throw new IllegalStateException("Configuration '" + key + "' missing in config " + config);
+ }
+ return value;
+ }
+}
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/UriResolver.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/UriResolver.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/java/org/apache/myfaces/custom/dynaForm/uri/UriResolver.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/dynaForm-default.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/dynaForm-default.xml?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/dynaForm-default.xml (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/dynaForm-default.xml Sun Oct 15 06:33:49 2006
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ -->
+
+<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
+<properties>
+<comment>DynaForm default configuration</comment>
+<entry key="Extractor">org.apache.myfaces.custom.dynaForm.metadata.impl.ejb.EjbExtractor</entry>
+</properties>
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/dynaForm-default.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/dynaForm-default.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/dynaForm-default.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/faces-config.xml?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/faces-config.xml (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/faces-config.xml Sun Oct 15 06:33:49 2006
@@ -0,0 +1,136 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<!--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ -->
+
+<!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>
+
+ <!-- components -->
+ <component>
+ <component-type>org.apache.myfaces.dynaForm.DynaConfigs</component-type>
+ <component-class>org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaConfigs</component-class>
+ </component>
+
+ <component>
+ <component-type>org.apache.myfaces.dynaForm.DynaConfig</component-type>
+ <component-class>org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaConfig</component-class>
+ <property>
+ <description>
+ The name of the property this configuration is for
+ </description>
+ <property-name>for</property-name>
+ <property-class>java.lang.String</property-class>
+ </property>
+ <property>
+ <description>
+ The size to be used to render the component
+ </description>
+ <property-name>displaySize</property-name>
+ <property-class>java.lang.Integer</property-class>
+ </property>
+ <property>
+ <description>
+ Configures this field as displayOnly
+ </description>
+ <property-name>displayOnly</property-name>
+ <property-class>java.lang.Boolean</property-class>
+ </property>
+ <property>
+ <description>
+ configure this field as readOnly - noneditable input field
+ </description>
+ <property-name>readOnly</property-name>
+ <property-class>java.lang.Boolean</property-class>
+ </property>
+ <property>
+ <description>
+ configure this field as disabled - like readOnly but grayed too
+ </description>
+ <property-name>disabled</property-name>
+ <property-class>java.lang.Boolean</property-class>
+ </property>
+ </component>
+
+ <component>
+ <component-type>org.apache.myfaces.dynaForm.DynaForm</component-type>
+ <component-class>org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaForm</component-class>
+ <property>
+ <description>
+ The root model
+ </description>
+ <property-name>uri</property-name>
+ <property-class>java.lang.String</property-class>
+ </property>
+ <property>
+ <description>
+ The value binding prefix which will be used to create the real value binding.
+ If this is missing and the layout component has a "var" attribute its value will be used.
+ </description>
+ <property-name>valueBindingPrefix</property-name>
+ <property-class>java.lang.String</property-class>
+ </property>
+ <property>
+ <description>
+ The var used to get access to the form controller
+ </description>
+ <property-name>var</property-name>
+ <property-class>java.lang.String</property-class>
+ </property>
+ <property>
+ <description>
+ Render the whole form in display (non editable) only mode
+ </description>
+ <property-name>displayOnly</property-name>
+ <property-class>java.lang.Boolean</property-class>
+ </property>
+ <property>
+ <description>
+ The bundle to use to convert the lables to readable strings
+ </description>
+ <property-name>bundle</property-name>
+ <property-class>java.lang.String</property-class>
+ </property>
+ <property>
+ <description>
+ Render only the fields listed by an facet
+ </description>
+ <property-name>exclusiveFields</property-name>
+ <property-class>java.lang.Boolean</property-class>
+ </property>
+ </component>
+
+ <!-- render kits -->
+ <render-kit>
+ <renderer>
+ <description>
+ Render the dynaForm (in fact it renders nothing but creates the children for the layout component)
+ </description>
+ <component-family>org.apache.myfaces.dynaForm.DynaForm</component-family>
+ <renderer-type>org.apache.myfaces.dynaForm.DynaForm</renderer-type>
+ <renderer-class>org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaFormRenderer</renderer-class>
+ </renderer>
+ </render-kit>
+
+ <!-- converters -->
+ <converter>
+ <converter-for-class>java.lang.Enum</converter-for-class>
+ <converter-class>org.apache.myfaces.custom.dynaForm.jsfext.EnumConverter</converter-class>
+ </converter>
+</faces-config>
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/faces-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/faces-config.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/resources-facesconfig/META-INF/faces-config.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities.xsl
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities.xsl?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities.xsl (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities.xsl Sun Oct 15 06:33:49 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ - Stylesheet to pretty-print an xml document. In addition, if the input
+ - document contains any xml entity references, then those are expanded
+ - inline.
+ -
+ - Based on a stylesheet by John Mongan.
+ -->
+<xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="xml"
+ encoding="ISO-8859-1"
+ doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"/>
+
+ <xsl:param name="indent-increment" select="' '" />
+
+ <xsl:template match="*">
+ <xsl:param name="indent" select="'
'"/>
+
+ <xsl:value-of select="$indent"/>
+ <xsl:copy>
+ <xsl:copy-of select="@*" />
+ <xsl:apply-templates>
+ <xsl:with-param name="indent"
+ select="concat($indent, $indent-increment)"/>
+ </xsl:apply-templates>
+ <xsl:if test="*">
+ <xsl:value-of select="$indent"/>
+ </xsl:if>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="comment()|processing-instruction()">
+ <xsl:param name="indent" select="'
'"/>
+ <xsl:value-of select="$indent"/>
+ <xsl:copy />
+ </xsl:template>
+
+ <!--
+ - Discard the text content of a node where the text content
+ - is nothing but whitespace. When this rule isn't matched
+ - the default xml processing applies, which is to copy the
+ - text directly to the output.
+ -
+ - WARNING: this is dangerous. Handle with care
+ -->
+ <xsl:template match="text()[normalize-space(.)='']"/>
+
+</xsl:stylesheet>
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities.xsl
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities.xsl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/myfaces_sandbox15.tld
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/myfaces_sandbox15.tld?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/myfaces_sandbox15.tld (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/myfaces_sandbox15.tld Sun Oct 15 06:33:49 2006
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ -->
+
+<!DOCTYPE taglib
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+
+<taglib>
+
+ <tlib-version>1.0.10</tlib-version>
+ <jsp-version>1.2</jsp-version>
+ <short-name>sn</short-name>
+ <uri>http://myfaces.apache.org/sandbox15</uri>
+ <description>
+ Enhanced standard JSP actions and custom MyFaces actions.
+ </description>
+
+ <tag>
+ <name>dynaFormConfigs</name>
+ <tag-class>org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaConfigsTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ Container for field configurations
+ </description>
+ </tag>
+
+ <tag>
+ <name>dynaFormConfig</name>
+ <tag-class>org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaConfigTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ Field configurations
+ </description>
+
+ <attribute>
+ <name>for</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ the name of the property this configuration is for
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>displaySize</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ the displaySize to be used to render the component
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>displayOnly</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ configure this field as displayOnly
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>readOnly</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ configure this field as readOnly - noneditable input field
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>disabled</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ configure this field as disabled - like readOnly but grayed too
+ </description>
+ </attribute>
+ </tag>
+
+ <tag>
+ <name>dynaForm</name>
+ <tag-class>org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaFormTag</tag-class>
+ <body-content>JSP</body-content>
+ <description>
+ Handle all the dynamic form creation for JSF
+ </description>
+
+ <attribute>
+ <name>var</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The var used to get access to the form controller
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>valueBindingPrefix</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The value binding prefix which will be used to create the real value binding.
+ If this is missing and the layout component has a "var" attribute its value will be used.
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>uri</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The root model
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>displayOnly</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ Render the whole form in display (non editable) only mode
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>bundle</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ The bundle to use to convert the lables to readable strings
+ </description>
+ </attribute>
+
+ <attribute>
+ <name>exclusiveFields</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ <description>
+ true|false - Set to true if only the fields listed within the configuration are to be rendered
+ </description>
+ </attribute>
+
+ </tag>
+
+</taglib>
Modified: myfaces/tomahawk/trunk/sandbox15/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/pom.xml?view=diff&rev=464192&r1=464191&r2=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/pom.xml (original)
+++ myfaces/tomahawk/trunk/sandbox15/examples/pom.xml Sun Oct 15 06:33:49 2006
@@ -209,6 +209,7 @@
<groupId>org.apache.myfaces.tomahawk</groupId>
<artifactId>tomahawk-sandbox15</artifactId>
<version>${version}</version>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
@@ -216,6 +217,12 @@
<version>1.0.4</version>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>javax.persistence</groupId>
+ <artifactId>persistence-api</artifactId>
+ <version>1.0</version>
+ <scope>compile</scope>
+ </dependency>
</dependencies>
<build>
@@ -228,6 +235,15 @@
</resource>
</resources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project>
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBean.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBean.java?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBean.java (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBean.java Sun Oct 15 06:33:49 2006
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.apache.myfaces.examples.dynaForm;
+
+import org.apache.myfaces.custom.dynaForm.annot.ui.Temporal;
+
+import javax.persistence.TemporalType;
+import java.util.Date;
+
+public class SimpleBean
+{
+ private String anyString;
+ private long anyLong;
+ private boolean anyBoolean;
+ private Date anyDateTime;
+ private Date anyDateOnly;
+
+ public String getAnyString()
+ {
+ return anyString;
+ }
+
+ public void setAnyString(String anyString)
+ {
+ this.anyString = anyString;
+ }
+
+ public long getAnyLong()
+ {
+ return anyLong;
+ }
+
+ public void setAnyLong(long anyLong)
+ {
+ this.anyLong = anyLong;
+ }
+
+ public boolean isAnyBoolean()
+ {
+ return anyBoolean;
+ }
+
+ public void setAnyBoolean(boolean anyBoolean)
+ {
+ this.anyBoolean = anyBoolean;
+ }
+
+ public Date getAnyDateTime()
+ {
+ return anyDateTime;
+ }
+
+ public void setAnyDateTime(Date anyDateTime)
+ {
+ this.anyDateTime = anyDateTime;
+ }
+
+ @Temporal(value=TemporalType.DATE)
+ public Date getAnyDateOnly()
+ {
+ return anyDateOnly;
+ }
+
+ public void setAnyDateOnly(Date anyDateOnly)
+ {
+ this.anyDateOnly = anyDateOnly;
+ }
+}
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBeanBacking.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBeanBacking.java?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBeanBacking.java (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBeanBacking.java Sun Oct 15 06:33:49 2006
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.apache.myfaces.examples.dynaForm;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Date;
+
+public class SimpleBeanBacking
+{
+ private SimpleBean simpleBean;
+ private List<SimpleBean> simpleBeans;
+
+ public SimpleBeanBacking()
+ {
+ initBean();
+ }
+
+ protected void initBean()
+ {
+ simpleBean = new SimpleBean();
+
+ SimpleBean s1 = new SimpleBean();
+ s1.setAnyBoolean(true);
+ s1.setAnyDateTime(new Date());
+ s1.setAnyLong(1L);
+ s1.setAnyString("bean 1");
+ SimpleBean s2 = new SimpleBean();
+ s2.setAnyBoolean(true);
+ s2.setAnyDateTime(new Date());
+ s2.setAnyLong(2L);
+ s2.setAnyString("bean 2");
+
+ simpleBeans = new ArrayList<SimpleBean>();
+ simpleBeans.add(s1);
+ simpleBeans.add(s2);
+ }
+
+ public SimpleBean getSimpleBean()
+ {
+ return simpleBean;
+ }
+
+ public void setSimpleBean(SimpleBean simpleBean)
+ {
+ this.simpleBean = simpleBean;
+ }
+
+ public List<SimpleBean> getSimpleBeans()
+ {
+ return simpleBeans;
+ }
+
+ public void setSimpleBeans(List<SimpleBean> simpleBeans)
+ {
+ this.simpleBeans = simpleBeans;
+ }
+}
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBeanBacking.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBeanBacking.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/java/org/apache/myfaces/examples/dynaForm/SimpleBeanBacking.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/build.properties
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/build.properties?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/build.properties (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/build.properties Sun Oct 15 06:33:49 2006
@@ -0,0 +1,20 @@
+#
+# Copyright 2006 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+
+# Do not edit this file, as it will be completed automatically
+# by maven during the build process
+tomahawk_version=${pom.version}
+jsf_implementation=${jsf_implementation}
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/build.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties Sun Oct 15 06:33:49 2006
@@ -0,0 +1,43 @@
+#
+# Copyright 2006 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+welcome = Welcome to
+today = Today's date is {0,date,short}.
+
+
+nav_Home = Home
+nav_Examples = Examples
+nav_dynaForm = Dynamic Form
+nav_Documentation = Documentation
+nav_Features = Features
+nav_Info = Info
+nav_Contact = Contact
+nav_Copyright = Copyright
+nav_Components = Components
+
+# buttons
+
+button_save = Save
+button_apply = Apply
+button_cancel = Cancel
+button_delete = Delete
+button_submit = Submit
+
+alt_logo = MyFaces - the open source JSF implementation
+
+option_lang = View this page in
+option_layout = Layout
+
+empty_selitem = Please select ...
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/resources/org/apache/myfaces/examples/resource/example_messages.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/examples-config.xml?view=diff&rev=464192&r1=464191&r2=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/examples-config.xml (original)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/examples-config.xml Sun Oct 15 06:33:49 2006
@@ -1,5 +1,21 @@
<?xml version="1.0"?>
+<!--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ -->
+
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
@@ -8,9 +24,21 @@
<faces-config>
- <!-- logger/debugging phase listener -->
- <lifecycle>
- <!--<phase-listener>org.apache.myfaces.examples.debug.DebugPhaseListener</phase-listener>
- --></lifecycle>
+ <managed-bean>
+ <managed-bean-name>simpleBeanBacking</managed-bean-name>
+ <managed-bean-class>org.apache.myfaces.examples.dynaForm.SimpleBeanBacking</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <navigation-rule>
+ <navigation-case>
+ <from-action>go_home</from-action>
+ <to-view-id>/home.jsp</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-action>go_dynaForm</from-action>
+ <to-view-id>/dynaForm/home.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+
</faces-config>
Modified: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/web.xml?view=diff&rev=464192&r1=464191&r2=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/WEB-INF/web.xml Sun Oct 15 06:33:49 2006
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ -->
+
<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" id="WebApp_ID">
<description>debug web.xml</description>
<display-name>
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/basic.css
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/basic.css?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/basic.css (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/basic.css Sun Oct 15 06:33:49 2006
@@ -0,0 +1,663 @@
+body {
+ font-family : arial, verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size : 12px;
+}
+
+.standard {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+}
+
+.standard_bold {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ font-weight: bold;
+}
+
+.scrollerTable {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ padding: 2;
+ border-style: solid;
+ border-width: 1px;
+ width: 400px;
+}
+
+.scroller {
+ padding-left:20px;
+}
+
+.paginator {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+}
+
+
+.standardTable {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ padding: 2;
+ border-style: solid;
+ border-width: 1px;
+}
+
+.standardTable_Header {
+ color: #000000;
+ background-color: #FFDD00;
+ padding: 3;
+ text-align: center;
+ border: none;
+}
+
+.standardTable_SortHeader {
+ background-color: #FFDD00;
+ color: #000000;
+ padding: 3;
+ text-align: center;
+ border: none;
+ font-weight: bold;
+}
+
+.standardTable_Footer {
+ background-color: #FFFFE0;
+}
+
+.standardTable_Row1 {
+ background-color: #FFFFE0;
+}
+
+.standardTable_Row2 {
+ background-color: #FFFFE0;
+}
+
+.standardTable_Column {
+}
+
+.standardTable_ColumnCentered {
+ text-align: center
+}
+
+a
+{
+ color: #333366;
+ text-decoration: underline;
+ font-size: 12px;
+}
+
+a:hover
+{
+ color: #333366;
+ text-decoration: underline;
+}
+
+.error {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 10px;
+ color: #FF0000;
+}
+
+.sortLink {
+ color: #333366;
+ text-decoration: none;
+}
+
+
+.pageLayout {
+ width:760px;
+ height:100%;
+}
+
+h1 {
+ background-color: #6392C6;
+ color: white;
+ font-style: italic;
+ font-size: 100%;
+ padding-left: 20px;
+}
+
+h2 {
+ background-color: #93b3d7;
+ color: white;
+ font-size: 100%;
+ margin-top: 10px;
+ margin-bottom: 5px;
+ padding-left: 20px;
+}
+
+.pageHeader {
+ background-color: #6392C6;
+ text-align: center;
+ vertical-align: middle;
+ height:1px;
+ overflow:visible;
+ color: #FFFFFF;
+ padding: 0px;
+ margin: 0px;
+}
+
+.pageHeader1 {
+}
+.pageHeader2 {
+ width:100%;
+}
+.pageHeader2col1 {
+ background-color: #FFFFFF;
+}
+
+.pageNavigation {
+ text-align: left;
+ vertical-align: top;
+ width: 200px;
+ background-color: #E7EFF7;
+ border: 1px solid #6392C6;
+ padding: 10px;
+}
+
+.pageBody {
+ text-align: left;
+ vertical-align: top;
+ width: 560px;
+ padding: 20px;
+ background-color: #FFFFFF;
+}
+
+.pageFooter {
+ text-align: right;
+ font-size: xx-small;
+ height:1px;
+ overflow:visible;
+ background-color: #6392C6;
+ color: #FFFFFF;
+}
+
+
+
+.navigation {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ width: 100%;
+}
+
+.navitem {
+ white-space : nowrap;
+ text-decoration : none;
+}
+
+a.navitem:hover,active {
+ white-space : nowrap;
+ text-decoration: none;
+ color: #6392C6;
+}
+
+.navitem_open {
+ white-space : nowrap;
+ text-decoration: none;
+ font-weight : bold;
+}
+
+a.navitem_open:hover,active {
+ white-space : nowrap;
+ text-decoration: none;
+ font-weight : bold;
+ color: #6392C6;
+}
+
+.navitem_active {
+ white-space : nowrap;
+ text-decoration: none;
+ font-weight : bold;
+ background-color: #6392C6;
+ width: 100%;
+ color: #FFFFFF;
+}
+
+a.navitem_active:hover,active {
+ white-space : nowrap;
+ text-decoration: none;
+ font-weight : bold;
+ background-color: #6392C6;
+ width: 100%;
+ color: #FFFFFF;
+}
+
+
+.navseparator {
+ line-height: 12px;
+ border-bottom: 1px solid #A2B7C5;
+}
+
+
+
+.fileUploadInput {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ width: 250px;
+}
+
+
+
+
+.emptyHeader {
+ background-color: #FFFFFF;
+ border-top: 0px none;
+ border-right: 0px none;
+ border-bottom: 0px none;
+ border-left: 0px none;
+}
+
+
+
+div.titlebar {
+ background: #C7D0D9;
+ color: black;
+ border: 1px solid #8CACBB;
+ padding-left: 1px;
+ padding-right: 1px;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ margin: 1px 1px;
+ clear: both;
+}
+
+/*
+ ------------------------------------------------------------
+ Calendar component
+ ------------------------------------------------------------
+*/
+
+.yearMonthHeader {
+ background-color: #DDDDDD;
+ color: #000000;
+ text-align: center;
+ border: none;
+ font-weight: bold;
+}
+
+.weekHeader {
+ background-color: #E7E7E7;
+ color: #000000;
+ text-align: center;
+ border: none;
+}
+
+.currentDayCell {
+ background-color: #DDDDDD;
+ color: #000000;
+ border: none;
+}
+
+
+/*
+ ------------------------------------------------------------
+ End Calendar component
+ ------------------------------------------------------------
+*/
+
+/*
+ ------------------------------------------------------------
+ Popup component
+ ------------------------------------------------------------
+*/
+
+.popup {
+ background-color:rgb(255,255,255);
+ color: #000000;
+ border: 1px solid #CCCCCC;
+ font-size:smaller;
+ padding: 5px;
+}
+
+.popup table {
+ font-size:smaller;
+}
+
+
+/*
+ ------------------------------------------------------------
+ End popup component
+ ------------------------------------------------------------
+*/
+
+
+.countryFormTable {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ padding: 2;
+ border-style: solid;
+ border-width: 1px;
+}
+
+.countryFormHeader {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ padding: 2;
+ border-style: none;
+ background-color: #FFDD00;
+ text-align: center;
+ font-weight : normal;
+}
+
+.countryFormFooter {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ padding: 2;
+ border-style: none;
+ background-color: #FFDD00;
+ text-align: center;
+ font-weight : normal;
+}
+
+.countryFormLabels {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ padding: 2;
+ border-style: none;
+ text-align: right;
+ font-weight : bold;
+}
+
+.countryFormInputs {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ padding: 2;
+ border-style: none;
+}
+
+/*
+ ------------------------------------------------------------
+ Tree component
+ ------------------------------------------------------------
+*/
+
+.nodeFolder
+{
+ font-size: 10px;
+ font-family: Verdana, Geneva, sans-serif;
+ text-decoration: none
+}
+.document
+{
+ color: blue;
+ font-size: 10px;
+ font-family: Verdana, Geneva, sans-serif;
+ text-decoration: none
+}
+.documentSelected
+{
+ color: blue;
+ font-size: 10px;
+ font-family: Verdana, Geneva, sans-serif;
+ text-decoration: none;
+ font-weight: bold
+}
+
+.childCount
+{
+ color: blue;
+ font-size: 10px;
+ font-family: Verdana, Geneva, sans-serif;
+ text-decoration: none
+}
+
+/*
+ ------------------------------------------------------------
+ Panelnavigation
+ ------------------------------------------------------------
+*/
+#subnavigation {
+margin-left: 0px;
+margin-right: 20px;
+padding: 0px 0px 20px 0px;
+border: 1px solid #546359;
+background-color: #EAF4F4;
+}
+
+#subnavigation_outer {
+float: left;
+width: 220px;
+padding: 0px;
+margin: 0px 0px 0px 0px;
+}
+#subnavigation_outer h1 {
+font-size: 1.5em;
+margin: 0px;
+padding: 0px 0px 15px 0px;
+}
+
+/*
+ --------------------------------------------------------------
+ Horizontal Panelnavigation
+ --------------------------------------------------------------
+*/
+#hNav_outer {
+ margin: 0;
+ padding: 0;
+ height: 60px;
+ width: 800px;
+}
+#hNav_outer ul {
+ padding: 0;
+ margin: 0;
+}
+#hNav_outer ul li ul {
+ margin: 0;
+ padding: 0;
+}
+#hNav_outer ul a {
+ text-decoration: none;
+}
+#hNav_outer ul li { /*float the main list items*/
+ margin: 0;
+ float: left;
+ display: block;
+ padding: 5px;
+}
+#hNav_outer ul li ul {
+ display: none;
+}
+#hNav_outer ul li.off ul, #hNav_outer ul li.on ul { /*put the subnav below*/
+ position: absolute;
+ top: 36px;
+ *top: 44px;/*reposition for IE*/
+ background: #224d6f;
+ left: 13px;
+ *left: 15px;
+ width: 740px;
+}
+#hNav_outer ul li.on ul {
+ display: block;
+ background: #f90;
+}
+#hNav_outer ul li.on:hover ul, #hNav_outer ul li.over ul { /*for ie*/
+ background: #224d6f;
+}
+#hNav_outer ul li a {
+ color: #224d6f;
+ font-weight: bold;
+ display: block;
+ padding: 5;
+}
+#hNav_outer ul li.on a {
+ color: #fff;
+ background: #f90;
+}
+#hNav_outer ul li.on ul a, #hNav_outer ul li.off ul a {
+ float: left; /*ie doesn't inherit the float*/
+ border: 0;
+ color: #f90;
+ width: auto;
+}
+#hNav_outer ul li.on:hover ul a, #hNav_outer ul li.over ul li a { /*for ie - the specificity is necessary*/
+ background: #224d6f;
+}
+#hNav_outer ul li.off:hover ul, #hNav_outer ul li.over ul {
+ display: block;
+ z-index: 6000;
+}
+#hNav_outer ul li.off a:hover, #hNav_outer ul li:hover a, #hNav_outer ul li.over a {
+ background: #29497b;
+ color: #f90;
+}
+#hNav_outer ul li.off a:hover, #hNav_outer ul li.on a:hover {
+ color: #f90;
+}
+/*subnav formatting*/
+#hNav_outer ul li.off ul a {
+ display: block;
+ background: #224d6f;
+ color: #fff;
+}
+#hNav_outer ul li.on ul a {
+ display: block;
+ background: #f90;
+ color: #fff;
+}
+
+/**************************************************
+ * css layers and classes for list navigation list
+ **************************************************/
+#subnavigation ul li a {
+display:block;
+background-color: #D1E4E4;
+color: #294747;
+text-decoration: none;
+border-bottom: 1px solid #87A8A8;
+padding: 2px 20px;
+margin: 0px;
+}
+
+#subnavigation ul li a:visited {color:#294747;}
+#subnavigation ul li a:hover {color: #FFFFFF; background-color: #87A8A8;}
+#subnavigation ul li a:active { color:#294747;}
+
+#subnavigation ul li a.selected {
+font-weight: bold;
+color:#294747;
+background-color: #FFFFFF;
+}
+
+#subnavigation ul ul li a {
+padding: 2px 20px 2px 25px;
+margin: 0px;
+background-color: #FFFFFF;}
+
+#subnavigation ul ul li ul li a {
+padding: 2px 20px 2px 30px;
+margin: 0px;
+}
+
+#subnavigation ul {
+list-style-type: none;
+padding: 0px;
+margin: 0px;
+}
+
+#subnavigation li{
+margin: 0px;
+padding: 0px;
+display:inline;
+}
+
+#subnavigation ul.mypage li a {
+padding: 2px 20px 2px 20px;
+margin: 0px;
+background-color: #EAF4F4;
+}
+
+#subnavigation ul.mypage ul li a:hover {color: #FFFFFF; background-color: #87A8A8;}
+/*
+ body, th, td, input, select {
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ }
+
+ table, th, td {
+ font-size: small;
+ border: none;
+ }
+
+ .treeHeader {
+ background-color: #bbb;
+ border: 0.75px solid #fff;
+ padding: 2px 3px;
+ text-align: left;
+ }
+
+ .treeFooter {
+ padding: 5px;
+ margin: .67em 2px;
+ margin-top: 0;
+ background-color: #ddd;
+ background-image: url(../images/sw_med_rond.gif);
+ background-repeat: no-repeat;
+ background-position: bottom left;
+ }
+
+ input, .treeFooter {
+ font-size: xx-small;
+ font-size: x-small;
+ }
+
+ .a td {
+ background: #ddd;
+ border-bottom: 1px solid #fff;
+ }
+
+ .b td {
+ background: #efefef;
+ border-bottom: 1px solid #fff;
+ }
+
+ .col1 {
+ border-right: 1px solid #fff;
+ padding: 2px 15px 2px 5px;
+ }
+
+ .col2 {
+ border-left: 1px solid #fff;
+ padding: 2px 15px 2px 5px;
+ }
+
+ .tree {
+ lineheight: 18px;
+ font-family: arial, sans-serif;
+ }
+
+ .treenode {
+ padding: 2px 15px 2px 5px;
+ }
+
+ .treenode a {
+ text-decoration: none;
+ }
+
+ .treenodeSelected {
+ padding: 2px 15px 2px 5px;
+ }
+
+ .treenodeSelected a {
+ text-decoration: none;
+ font-weight: bold;
+ }
+
+ table .selectOneRadio {
+ font-weight: bold;
+ }
+
+
+ .standardList {
+ font-family : verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ }
+
+ */
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/basic.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/basic.css
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/basic.css
------------------------------------------------------------------------------
svn:mime-type = text/css
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/common.css
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/common.css?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/common.css (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/common.css Sun Oct 15 06:33:49 2006
@@ -0,0 +1,34 @@
+body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ font-weight: normal;
+ color: #000000;
+ background-color: #ffffff;
+}
+
+h1 {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 24px;
+}
+
+h2 {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 16px;
+}
+
+a, a:link, a:visited, a:active {
+ color: #000000;
+ background-color: inherit;
+}
+
+a:hover {
+ color: #ff0000;
+ background-color: inherit;
+}
+
+hr {
+ height: 1px;
+ border-style: dotted;
+ border-color: #000000;
+ border-width: 0px 0px 1px 0px;
+}
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/common.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/common.css
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/common.css
------------------------------------------------------------------------------
svn:mime-type = text/css
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css Sun Oct 15 06:33:49 2006
@@ -0,0 +1,292 @@
+/* ThemeOfficeMenu Style Sheet */
+
+.ThemeOfficeMenu,.ThemeOfficeSubMenuTable
+{
+ font-family: verdana, arial, sans-serif;
+ font-size: 13px;
+
+ padding: 0;
+
+ white-space: nowrap;
+ cursor: default;
+}
+
+.ThemeOfficeSubMenu
+{
+ position: absolute;
+ visibility: hidden;
+
+ /*
+ Netscape/Mozilla renders borders by increasing
+ their z-index. The following line is necessary
+ to cover any borders underneath
+ */
+ z-index: 100;
+ border: 0;
+ padding: 0;
+
+ overflow: visible;
+ border: 1px solid #8C867B;
+
+ filter:progid:DXImageTransform.Microsoft.Shadow(color=#BDC3BD, Direction=135, Strength=4);
+}
+
+.ThemeOfficeSubMenuTable
+{
+ overflow: visible;
+}
+
+.ThemeOfficeMainItem,.ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive,
+.ThemeOfficeMenuItem,.ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive
+{
+ border: 0;
+ cursor: default;
+ white-space: nowrap;
+}
+
+.ThemeOfficeMainItem
+{
+ background-color: #EFEBDE;
+}
+
+.ThemeOfficeMainItemHover,.ThemeOfficeMainItemActive
+{
+ background-color: #C6D3EF;
+}
+
+.ThemeOfficeMenuItem
+{
+ background-color: WHITE;
+}
+
+.ThemeOfficeMenuItemHover,.ThemeOfficeMenuItemActive
+{
+ background-color: #C6D3EF;
+}
+
+
+/* horizontal main menu */
+
+.ThemeOfficeMainItem
+{
+ padding: 1px;
+ border: 0;
+}
+
+td.ThemeOfficeMainItemHover,td.ThemeOfficeMainItemActive
+{
+ padding: 0px;
+ border: 1px solid #3169C6;
+}
+
+.ThemeOfficeMainFolderLeft,.ThemeOfficeMainItemLeft,
+.ThemeOfficeMainFolderText,.ThemeOfficeMainItemText,
+.ThemeOfficeMainFolderRight,.ThemeOfficeMainItemRight
+{
+ background-color: inherit;
+}
+
+/* vertical main menu sub components */
+
+td.ThemeOfficeMainFolderLeft,td.ThemeOfficeMainItemLeft
+{
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 0px;
+ padding-right: 2px;
+
+ border-top: 1px solid #3169C6;
+ border-bottom: 1px solid #3169C6;
+ border-left: 1px solid #3169C6;
+
+ background-color: inherit;
+}
+
+td.ThemeOfficeMainFolderText,td.ThemeOfficeMainItemText
+{
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 5px;
+ padding-right: 5px;
+
+ border-top: 1px solid #3169C6;
+ border-bottom: 1px solid #3169C6;
+
+ background-color: inherit;
+ white-space: nowrap;
+}
+
+td.ThemeOfficeMainFolderRight,td.ThemeOfficeMainItemRight
+{
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 0px;
+ padding-right: 0px;
+
+ border-top: 1px solid #3169C6;
+ border-bottom: 1px solid #3169C6;
+ border-right: 1px solid #3169C6;
+
+ background-color: inherit;
+}
+
+tr.ThemeOfficeMainItem td.ThemeOfficeMainFolderLeft,
+tr.ThemeOfficeMainItem td.ThemeOfficeMainItemLeft
+{
+ padding-top: 3px;
+ padding-bottom: 3px;
+ padding-left: 1px;
+ padding-right: 2px;
+
+ white-space: nowrap;
+
+ border: 0;
+ background-color: inherit;
+}
+
+tr.ThemeOfficeMainItem td.ThemeOfficeMainFolderText,
+tr.ThemeOfficeMainItem td.ThemeOfficeMainItemText
+{
+ padding-top: 3px;
+ padding-bottom: 3px;
+ padding-left: 5px;
+ padding-right: 5px;
+
+ border: 0;
+ background-color: inherit;
+}
+
+tr.ThemeOfficeMainItem td.ThemeOfficeMainItemRight,
+tr.ThemeOfficeMainItem td.ThemeOfficeMainFolderRight
+{
+ padding-top: 3px;
+ padding-bottom: 3px;
+ padding-left: 0px;
+ padding-right: 1px;
+
+ border: 0;
+ background-color: inherit;
+}
+
+/* sub menu sub components */
+
+.ThemeOfficeMenuFolderLeft,.ThemeOfficeMenuItemLeft
+{
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 1px;
+ padding-right: 3px;
+
+ border-top: 1px solid #3169C6;
+ border-bottom: 1px solid #3169C6;
+ border-left: 1px solid #3169C6;
+
+ background-color: inherit;
+ white-space: nowrap;
+}
+
+.ThemeOfficeMenuFolderText,.ThemeOfficeMenuItemText
+{
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 5px;
+ padding-right: 5px;
+
+ border-top: 1px solid #3169C6;
+ border-bottom: 1px solid #3169C6;
+
+ background-color: inherit;
+ white-space: nowrap;
+}
+
+.ThemeOfficeMenuFolderRight,.ThemeOfficeMenuItemRight
+{
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 0px;
+ padding-right: 0px;
+
+ border-top: 1px solid #3169C6;
+ border-bottom: 1px solid #3169C6;
+ border-right: 1px solid #3169C6;
+
+ background-color: inherit;
+ white-space: nowrap;
+}
+
+.ThemeOfficeMenuItem .ThemeOfficeMenuFolderLeft,
+.ThemeOfficeMenuItem .ThemeOfficeMenuItemLeft
+{
+ padding-top: 3px;
+ padding-bottom: 3px;
+ padding-left: 2px;
+ padding-right: 3px;
+
+ white-space: nowrap;
+
+ border: 0;
+ background-color: #EFEFDE;
+}
+
+.ThemeOfficeMenuItem .ThemeOfficeMenuFolderText,
+.ThemeOfficeMenuItem .ThemeOfficeMenuItemText
+{
+ padding-top: 3px;
+ padding-bottom: 3px;
+ padding-left: 5px;
+ padding-right: 5px;
+
+ border: 0;
+ background-color: inherit;
+}
+
+.ThemeOfficeMenuItem .ThemeOfficeMenuFolderRight,
+.ThemeOfficeMenuItem .ThemeOfficeMenuItemRight
+{
+ padding-top: 3px;
+ padding-bottom: 3px;
+ padding-left: 0px;
+ padding-right: 1px;
+
+ border: 0;
+ background-color: inherit;
+}
+
+/* menu splits */
+
+.ThemeOfficeMenuSplit
+{
+ margin: 2px;
+ height: 1px;
+ overflow: hidden;
+ background-color: inherit;
+ border-top: 1px solid #C6C3BD;
+}
+
+/* image shadow animation */
+
+/*
+ seq1: image for normal
+ seq2: image for hover and active
+
+ To use, in the icon field, input the following:
+ <img class="seq1" src="normal.gif" /><img class="seq2" src="hover.gif" />
+*/
+
+.ThemeOfficeMenuItem img.seq1
+{
+ display: inline;
+}
+
+.ThemeOfficeMenuItemHover seq2,
+.ThemeOfficeMenuItemActive seq2
+{
+ display: inline;
+}
+
+.ThemeOfficeMenuItem .seq2,
+.ThemeOfficeMenuItemHover .seq1,
+.ThemeOfficeMenuItemActive .seq1
+{
+ display: none;
+}
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/css/jscookmenu/ThemeOffice/theme.css
------------------------------------------------------------------------------
svn:mime-type = text/css
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/home.jsp?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/home.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/home.jsp Sun Oct 15 06:33:49 2006
@@ -0,0 +1,43 @@
+<%--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ --%>
+
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<f:view>
+<t:document>
+<t:documentHead>
+ <%@include file="/inc/head.inc" %>
+</t:documentHead>
+<t:documentBody>
+
+ <h:form>
+ <%@include file="/inc/page_header.jsp" %>
+
+ <h:panelGrid>
+
+ <h:outputLink value="simpleBean.jsf" ><f:verbatim>Show a simple bean as form and list</f:verbatim></h:outputLink>
+
+ </h:panelGrid>
+
+ <%@include file="/inc/page_footer.jsp" %>
+ </h:form>
+
+</t:documentBody>
+</t:document>
+</f:view>
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/home.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/home.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/home.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/index.jsp?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/index.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/index.jsp Sun Oct 15 06:33:49 2006
@@ -0,0 +1,20 @@
+<%--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ --%>
+
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%
+response.sendRedirect("/dynaForm/home.jsf");
+%>
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/index.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/index.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/simpleBean.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/simpleBean.jsp?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/simpleBean.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/simpleBean.jsp Sun Oct 15 06:33:49 2006
@@ -0,0 +1,87 @@
+<%--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ --%>
+
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+<%@ taglib uri="http://myfaces.apache.org/sandbox15" prefix="sn"%>
+
+<f:view>
+<t:document>
+<t:documentHead>
+ <%@include file="/inc/head.inc" %>
+</t:documentHead>
+<t:documentBody>
+
+ <h:form>
+ <%@include file="/inc/page_header.jsp" %>
+
+ <h:panelGrid>
+
+ <t:htmlTag value="h2">
+ <h:outputText value="A simple bean input form" />
+ </t:htmlTag>
+
+ <sn:dynaForm
+ var="simpleBean"
+ uri="org.apache.myfaces.examples.dynaForm.SimpleBean"
+ valueBindingPrefix="simpleBeanBacking.simpleBean">
+ <h:panelGrid
+ id="simpleBean-layout"
+ columns="2" />
+ </sn:dynaForm>
+
+
+ <t:htmlTag value="h2">
+ <h:outputText value="A simple bean list form" />
+ </t:htmlTag>
+
+ <sn:dynaForm
+ var="simpleBean2"
+ uri="org.apache.myfaces.examples.dynaForm.SimpleBean">
+ <h:dataTable
+ var="entry"
+ id="simpleBean2-layout"
+ value="#{simpleBeanBacking.simpleBeans}" />
+ </sn:dynaForm>
+
+
+ <t:htmlTag value="h2">
+ <h:outputText
+ value="A simple bean list form - display only" />
+ </t:htmlTag>
+
+ <sn:dynaForm
+ var="simpleBean3"
+ uri="org.apache.myfaces.examples.dynaForm.SimpleBean"
+ displayOnly="true">
+ <h:dataTable
+ var="entry"
+ id="simpleBean3-layout"
+ value="#{simpleBeanBacking.simpleBeans}" />
+ </sn:dynaForm>
+
+
+ <h:commandButton/>
+ </h:panelGrid>
+
+ <%@include file="/inc/page_footer.jsp" %>
+ </h:form>
+
+</t:documentBody>
+</t:document>
+</f:view>
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/simpleBean.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/simpleBean.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/dynaForm/simpleBean.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/home.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/home.jsp?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/home.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/home.jsp Sun Oct 15 06:33:49 2006
@@ -0,0 +1,43 @@
+<%--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ --%>
+
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<f:view>
+<t:document>
+<t:documentHead>
+ <%@include file="/inc/head.inc" %>
+</t:documentHead>
+<t:documentBody>
+
+ <h:form>
+ <%@include file="/inc/page_header.jsp" %>
+
+ <h:panelGrid>
+
+ <h:outputLink value="dynaForm/home.jsf" ><f:verbatim>DynaForm</f:verbatim></h:outputLink>
+
+ </h:panelGrid>
+
+ <%@include file="/inc/page_footer.jsp" %>
+ </h:form>
+
+</t:documentBody>
+</t:document>
+</f:view>
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/home.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/home.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/home.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/component.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/component.gif?view=auto&rev=464192
==============================================================================
Binary file - no diff available.
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/component.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/logo_mini.jpg
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/logo_mini.jpg?view=auto&rev=464192
==============================================================================
Binary file - no diff available.
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/logo_mini.jpg
------------------------------------------------------------------------------
svn:mime-type = image/jpeg
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/myfaces.gif
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/myfaces.gif?view=auto&rev=464192
==============================================================================
Binary file - no diff available.
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/images/myfaces.gif
------------------------------------------------------------------------------
svn:mime-type = image/gif
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/head.inc
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/head.inc?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/head.inc (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/head.inc Sun Oct 15 06:33:49 2006
@@ -0,0 +1,8 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<f:verbatim>
+ <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
+ <title>MyFaces - the free JSF Implementation</title>
+</f:verbatim>
+<t:stylesheet path="/css/basic.css"/>
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_footer.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_footer.jsp?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_footer.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_footer.jsp Sun Oct 15 06:33:49 2006
@@ -0,0 +1,28 @@
+<%--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ --%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+
+<h:messages
+ showDetail="true"
+ showSummary="true"
+ globalOnly="false"/>
+
+<br/>
+<br/>
+
+<a href="<%=request.getContextPath()%>/home.jsf">[HOME]</a>
+
+<a href="<%=request.getRequestURI()%>.source">[SOURCE]</a>
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_footer.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_footer.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_footer.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_header.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_header.jsp?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_header.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_header.jsp Sun Oct 15 06:33:49 2006
@@ -0,0 +1,42 @@
+<%--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ --%>
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
+
+<f:loadBundle basename="org.apache.myfaces.examples.resource.build" var="buildInfo"/>
+<f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+<h:panelGrid id="header_group1" columns="2" styleClass="pageHeader" >
+ <h:graphicImage id="header_logo" url="/images/logo_mini.jpg" alt="#{example_messages['alt_logo']}" />
+ <f:verbatim>
+ <h:outputText style="font-size:20px;color:#FFFFFF;" escape="false" value="MyFaces - The free JavaServer™ Faces Implementation"/>
+ <h:outputText style="font-size:10px;color:#FFFFFF" value=" (Sandbox15 - Tomahawk Version #{buildInfo['tomahawk_version']}, using #{buildInfo ['jsf_implementation']})"/>
+ </f:verbatim>
+</h:panelGrid>
+
+<h:panelGrid id="header_group2" columns="1" styleClass="pageHeader2" columnClasses="pageHeader2col1" >
+ <t:jscookMenu layout="hbr" theme="ThemeOffice" >
+ <t:navigationMenuItem id="nav_1" itemLabel="#{example_messages['nav_Home']}" action="go_home" />
+ <t:navigationMenuItem id="nav_2" itemLabel="#{example_messages['nav_Examples']}" >
+ <t:navigationMenuItem id="nav_2_4" itemLabel="#{example_messages['nav_Components']}" icon="/images/component.gif" split="true" >
+ <t:navigationMenuItem id="nav_2_4_10" itemLabel="#{example_messages['nav_dynaForm']}" action="go_dynaForm" icon="/images/myfaces.gif" />
+ </t:navigationMenuItem>
+ </t:navigationMenuItem>
+ </t:jscookMenu>
+</h:panelGrid>
+
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_header.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_header.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/inc/page_header.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/index.jsp?view=auto&rev=464192
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/index.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/index.jsp Sun Oct 15 06:33:49 2006
@@ -0,0 +1,20 @@
+<%--
+ Copyright 2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ use this file except in compliance with the License. You may obtain a copy of
+ the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations under
+ the License.
+ --%>
+
+<%@ page session="false" contentType="text/html;charset=utf-8"%>
+<%
+response.sendRedirect("home.jsf");
+%>
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/tomahawk/trunk/sandbox15/examples/src/main/webapp/index.jsp
------------------------------------------------------------------------------
svn:mime-type = text/plain