tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r594319 [15/40] - in /tapestry/tapestry5/trunk: ./ tapestry-annotations/ tapestry-annotations/src/main/java/org/apache/tapestry/beaneditor/ tapestry-annotations/src/site/ tapestry-component-report/ tapestry-component-report/src/main/java/or...
Date Mon, 12 Nov 2007 22:23:28 GMT
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/AbstractSelectModel.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/AbstractSelectModel.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/AbstractSelectModel.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/AbstractSelectModel.java Mon Nov 12 14:22:31 2007
@@ -14,12 +14,12 @@
 
 package org.apache.tapestry.util;
 
-import java.util.List;
-
 import org.apache.tapestry.OptionGroupModel;
 import org.apache.tapestry.OptionModel;
 import org.apache.tapestry.SelectModel;
 import org.apache.tapestry.SelectModelVisitor;
+
+import java.util.List;
 
 /**
  * Base class for {@link SelectModel} implementations, whose primary job is to provide the

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/DefaultPrimaryKeyEncoder.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/DefaultPrimaryKeyEncoder.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/DefaultPrimaryKeyEncoder.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/DefaultPrimaryKeyEncoder.java Mon Nov 12 14:22:31 2007
@@ -14,9 +14,9 @@
 
 package org.apache.tapestry.util;
 
-import static org.apache.tapestry.ioc.internal.util.CollectionFactory.newList;
-import static org.apache.tapestry.ioc.internal.util.CollectionFactory.newMap;
-import static org.apache.tapestry.ioc.internal.util.CollectionFactory.newSet;
+import org.apache.tapestry.PrimaryKeyEncoder;
+import static org.apache.tapestry.ioc.internal.util.CollectionFactory.*;
+import org.apache.tapestry.ioc.internal.util.Defense;
 
 import java.io.Serializable;
 import java.util.LinkedHashMap;
@@ -24,20 +24,17 @@
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.tapestry.PrimaryKeyEncoder;
-import org.apache.tapestry.ioc.internal.util.Defense;
-
 /**
  * A default, extensible version of {@link PrimaryKeyEncoder} that is based on loading known values
  * into an internal map. When there's a reasonable number (hundreds, perhaps thousands) of items to
  * choose from, and those items are fast and cheap to read and instantiate, this implementation is a
  * good bet. For very large result sets, you'll need to create your own implementation of
  * {@link PrimaryKeyEncoder}.
- * 
+ *
  * @param <K>
- *            the key type (which must be serializable)
+ * the key type (which must be serializable)
  * @param <V>
- *            the value type
+ * the value type
  */
 public class DefaultPrimaryKeyEncoder<K extends Serializable, V> implements PrimaryKeyEncoder<K, V>
 {
@@ -49,7 +46,9 @@
 
     private K _currentKey;
 
-    /** Adds a new key/value pair to the encoder. */
+    /**
+     * Adds a new key/value pair to the encoder.
+     */
     public final void add(K key, V value)
     {
         Defense.notNull(key, "key");
@@ -69,7 +68,7 @@
     /**
      * Returns the values previously {@link #add(Serializable, Object) added to the encoder},
      * <em>in the order in which they were added</em>. Values that are deleted are not returned.
-     * 
+     *
      * @return ordered list of values
      */
     public final List<V> getValues()
@@ -80,9 +79,8 @@
     /**
      * Returns a list of all the values <em>except</em> those values whose keys are in the
      * provided set. The set may be null, in which case all values are returned.
-     * 
-     * @param keySet
-     *            set of keys identifying values to exclude, or null to exclude no values
+     *
+     * @param keySet set of keys identifying values to exclude, or null to exclude no values
      * @return values (not in the set) in order origionally added
      */
     protected final List<V> valuesNotInKeySet(Set<K> keySet)
@@ -157,11 +155,10 @@
      * (they key was not valuable, possibly because it points to a deleted entity object) and
      * provide a temporary object. This method may return null, but in a typical application, that
      * will likely case NullPointerExceptions further down the processing chain.
-     * <p>
+     * <p/>
      * This implementation returns null, and is intended to be overriden in subclasses.
-     * 
-     * @param key
-     *            key for which a value is required
+     *
+     * @param key key for which a value is required
      * @return a substitute value, or null
      */
     protected V provideMissingObject(K key)
@@ -181,9 +178,8 @@
 
     /**
      * Returns true if the current key is in the provided set.
-     * 
-     * @param keySet
-     *            the set of keys to check, or null
+     *
+     * @param keySet the set of keys to check, or null
      * @return true if the key is in the set, false if it is missing (or if keySet is null)
      */
     protected final boolean inKeySet(Set<K> keySet)
@@ -193,20 +189,18 @@
 
     /**
      * Modifies a keySet to add or remove the current key. If necessary, a new Set is created.
-     * <p>
+     * <p/>
      * Useage: <code>
      * private Set<K> _myFlagKeys;
-     * 
+     * <p/>
      * public boolean void setMyFlag(boolean value)
      * {
-     *   _myFlagKeys = modifySet(_myFlagKeys, value);
+     * _myFlagKeys = modifySet(_myFlagKeys, value);
      * }
      * </code>
-     * 
-     * @param keySet
-     *            the set of keys, or null
-     * @param value
-     *            true to add the current key, false to remove
+     *
+     * @param keySet the set of keys, or null
+     * @param value  true to add the current key, false to remove
      * @return the provided key set, or a new one
      */
     protected final Set<K> modifyKeySet(Set<K> keySet, boolean value)
@@ -227,7 +221,9 @@
         return keySet;
     }
 
-    /** Does nothing. Subclasses may override as necessary. */
+    /**
+     * Does nothing. Subclasses may override as necessary.
+     */
     public void prepareForKeys(List<K> keys)
     {
     }

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumSelectModel.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumSelectModel.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumSelectModel.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumSelectModel.java Mon Nov 12 14:22:31 2007
@@ -14,17 +14,16 @@
 
 package org.apache.tapestry.util;
 
-import static org.apache.tapestry.ioc.internal.util.CollectionFactory.newList;
-import static org.apache.tapestry.ioc.internal.util.Defense.notNull;
-
-import java.io.Serializable;
-import java.util.List;
-
 import org.apache.tapestry.OptionGroupModel;
 import org.apache.tapestry.OptionModel;
 import org.apache.tapestry.internal.OptionModelImpl;
 import org.apache.tapestry.internal.TapestryInternalUtils;
 import org.apache.tapestry.ioc.Messages;
+import static org.apache.tapestry.ioc.internal.util.CollectionFactory.newList;
+import static org.apache.tapestry.ioc.internal.util.Defense.notNull;
+
+import java.io.Serializable;
+import java.util.List;
 
 /**
  * A basic select model for a particular Enum type. The labels for each Enum are drawn from the Enum
@@ -40,7 +39,8 @@
 {
     private static final long serialVersionUID = -3590412082766899684L;
 
-    private final List<OptionModel> _options = newList();;
+    private final List<OptionModel> _options = newList();
+    ;
 
     public <T extends Enum> EnumSelectModel(Class<T> enumClass, Messages messages)
     {
@@ -62,13 +62,17 @@
         }
     }
 
-    /** Returns null. */
+    /**
+     * Returns null.
+     */
     public List<OptionGroupModel> getOptionGroups()
     {
         return null;
     }
 
-    /** Returns the option groupos created in the constructor. */
+    /**
+     * Returns the option groupos created in the constructor.
+     */
     public List<OptionModel> getOptions()
     {
         return _options;

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumValueEncoder.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumValueEncoder.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumValueEncoder.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/EnumValueEncoder.java Mon Nov 12 14:22:31 2007
@@ -14,9 +14,8 @@
 
 package org.apache.tapestry.util;
 
-import static org.apache.tapestry.ioc.internal.util.Defense.notNull;
-
 import org.apache.tapestry.ValueEncoder;
+import static org.apache.tapestry.ioc.internal.util.Defense.notNull;
 
 /**
  * A value encoder that can be used for aribrary Enum types. The enum name is stored as the client

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/StringToEnumCoercion.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/StringToEnumCoercion.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/StringToEnumCoercion.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/StringToEnumCoercion.java Mon Nov 12 14:22:31 2007
@@ -15,19 +15,18 @@
 package org.apache.tapestry.util;
 
 import static org.apache.tapestry.ioc.internal.util.CollectionFactory.newCaseInsensitiveMap;
-
-import java.util.Map;
-
 import org.apache.tapestry.ioc.internal.util.InternalUtils;
 import org.apache.tapestry.ioc.services.Coercion;
 
+import java.util.Map;
+
 /**
  * A {@link Coercion} for converting strings into an instance of a particular enumerated type. The
  * {@link Enum#name() name} is used as the key to identify the enum instance, in a case-insensitive
  * fashion.
- * 
+ *
  * @param <T>
- *            the type of enumeration
+ * the type of enumeration
  */
 public final class StringToEnumCoercion<T extends Enum> implements Coercion<String, T>
 {

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/TextStreamResponse.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/TextStreamResponse.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/TextStreamResponse.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/TextStreamResponse.java Mon Nov 12 14:22:31 2007
@@ -14,15 +14,14 @@
 
 package org.apache.tapestry.util;
 
+import org.apache.tapestry.StreamResponse;
 import static org.apache.tapestry.ioc.internal.util.Defense.notBlank;
 import static org.apache.tapestry.ioc.internal.util.Defense.notNull;
+import org.apache.tapestry.services.Response;
 
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
-
-import org.apache.tapestry.StreamResponse;
-import org.apache.tapestry.services.Response;
 
 public class TextStreamResponse implements StreamResponse
 {

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/UtilMessages.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/UtilMessages.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/UtilMessages.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/util/UtilMessages.java Mon Nov 12 14:22:31 2007
@@ -14,11 +14,11 @@
 
 package org.apache.tapestry.util;
 
-import java.util.Collection;
-
 import org.apache.tapestry.ioc.Messages;
 import org.apache.tapestry.ioc.internal.util.InternalUtils;
 import org.apache.tapestry.ioc.internal.util.MessagesImpl;
+
+import java.util.Collection;
 
 final class UtilMessages
 {

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Max.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Max.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Max.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Max.java Mon Nov 12 14:22:31 2007
@@ -14,16 +14,13 @@
 
 package org.apache.tapestry.validator;
 
+import org.apache.tapestry.*;
 import static org.apache.tapestry.TapestryUtils.quote;
-
-import org.apache.tapestry.Field;
-import org.apache.tapestry.MarkupWriter;
-import org.apache.tapestry.PageRenderSupport;
-import org.apache.tapestry.ValidationException;
-import org.apache.tapestry.Validator;
 import org.apache.tapestry.ioc.MessageFormatter;
 
-/** Enforces a maximum integer value. */
+/**
+ * Enforces a maximum integer value.
+ */
 public class Max implements Validator<Long, Number>
 {
     public Class<Long> getConstraintType()
@@ -59,7 +56,7 @@
     }
 
     public void render(Field field, Long constraintValue, MessageFormatter formatter,
-            MarkupWriter writer, PageRenderSupport pageRenderSupport)
+                       MarkupWriter writer, PageRenderSupport pageRenderSupport)
     {
         pageRenderSupport.addScript(
                 "Tapestry.Field.max('%s', %d, %s);",

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MaxLength.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MaxLength.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MaxLength.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MaxLength.java Mon Nov 12 14:22:31 2007
@@ -14,13 +14,8 @@
 
 package org.apache.tapestry.validator;
 
+import org.apache.tapestry.*;
 import static org.apache.tapestry.TapestryUtils.quote;
-
-import org.apache.tapestry.Field;
-import org.apache.tapestry.MarkupWriter;
-import org.apache.tapestry.PageRenderSupport;
-import org.apache.tapestry.ValidationException;
-import org.apache.tapestry.Validator;
 import org.apache.tapestry.ioc.MessageFormatter;
 
 public final class MaxLength implements Validator<Integer, String>
@@ -46,7 +41,7 @@
     }
 
     public void validate(Field field, Integer constraintValue, MessageFormatter formatter,
-            String value) throws ValidationException
+                         String value) throws ValidationException
     {
         if (value.length() > constraintValue)
             throw new ValidationException(buildMessage(formatter, field, constraintValue));
@@ -58,11 +53,11 @@
     }
 
     public void render(Field field, Integer constraintValue, MessageFormatter formatter,
-            MarkupWriter writer, PageRenderSupport pageRenderSupport)
+                       MarkupWriter writer, PageRenderSupport pageRenderSupport)
     {
         // TODO: write a maxlength attribute into the element?  But that's only for
         // textfield, not for textarea.
-        
+
         pageRenderSupport.addScript(
                 "Tapestry.Field.maxlength('%s', %d, %s);",
                 field.getClientId(),

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Min.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Min.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Min.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Min.java Mon Nov 12 14:22:31 2007
@@ -14,13 +14,8 @@
 
 package org.apache.tapestry.validator;
 
+import org.apache.tapestry.*;
 import static org.apache.tapestry.TapestryUtils.quote;
-
-import org.apache.tapestry.Field;
-import org.apache.tapestry.MarkupWriter;
-import org.apache.tapestry.PageRenderSupport;
-import org.apache.tapestry.ValidationException;
-import org.apache.tapestry.Validator;
 import org.apache.tapestry.ioc.MessageFormatter;
 
 /* A vaidator that enforces that a number is greater than some minimum integer value. */
@@ -59,7 +54,7 @@
     }
 
     public void render(Field field, Long constraintValue, MessageFormatter formatter,
-            MarkupWriter writer, PageRenderSupport pageRenderSupport)
+                       MarkupWriter writer, PageRenderSupport pageRenderSupport)
     {
         pageRenderSupport.addScript(
                 "Tapestry.Field.min('%s', %s, %s);",

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MinLength.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MinLength.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MinLength.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/MinLength.java Mon Nov 12 14:22:31 2007
@@ -14,13 +14,8 @@
 
 package org.apache.tapestry.validator;
 
+import org.apache.tapestry.*;
 import static org.apache.tapestry.TapestryUtils.quote;
-
-import org.apache.tapestry.Field;
-import org.apache.tapestry.MarkupWriter;
-import org.apache.tapestry.PageRenderSupport;
-import org.apache.tapestry.ValidationException;
-import org.apache.tapestry.Validator;
 import org.apache.tapestry.ioc.MessageFormatter;
 
 /**
@@ -34,7 +29,7 @@
     }
 
     public void validate(Field field, Integer constraintValue, MessageFormatter formatter,
-            String value) throws ValidationException
+                         String value) throws ValidationException
     {
         if (value.length() < constraintValue)
             throw new ValidationException(buildMessage(formatter, field, constraintValue));
@@ -61,7 +56,7 @@
     }
 
     public void render(Field field, Integer constraintValue, MessageFormatter formatter,
-            MarkupWriter writer, PageRenderSupport pageRenderSupport)
+                       MarkupWriter writer, PageRenderSupport pageRenderSupport)
     {
         pageRenderSupport.addScript(
                 "Tapestry.Field.minlength('%s', %d, %s);",

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Regexp.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Regexp.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Regexp.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Regexp.java Mon Nov 12 14:22:31 2007
@@ -14,18 +14,13 @@
 
 package org.apache.tapestry.validator;
 
+import org.apache.tapestry.*;
 import static org.apache.tapestry.TapestryUtils.quote;
+import org.apache.tapestry.ioc.MessageFormatter;
 
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-import org.apache.tapestry.Field;
-import org.apache.tapestry.MarkupWriter;
-import org.apache.tapestry.PageRenderSupport;
-import org.apache.tapestry.ValidationException;
-import org.apache.tapestry.Validator;
-import org.apache.tapestry.ioc.MessageFormatter;
-
 public class Regexp implements Validator<Pattern, String>
 {
     public Class<Pattern> getConstraintType()
@@ -54,7 +49,7 @@
     }
 
     public void render(Field field, Pattern constraintValue, MessageFormatter formatter,
-            MarkupWriter writer, PageRenderSupport pageRenderSupport)
+                       MarkupWriter writer, PageRenderSupport pageRenderSupport)
     {
         pageRenderSupport.addScript(
                 "Tapestry.Field.regexp('%s', %s, %s);",
@@ -65,7 +60,7 @@
     }
 
     public void validate(Field field, Pattern constraintValue, MessageFormatter formatter,
-            String value) throws ValidationException
+                         String value) throws ValidationException
     {
         Matcher matcher = constraintValue.matcher(value);
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Required.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Required.java?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Required.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/validator/Required.java Mon Nov 12 14:22:31 2007
@@ -14,13 +14,8 @@
 
 package org.apache.tapestry.validator;
 
+import org.apache.tapestry.*;
 import static org.apache.tapestry.TapestryUtils.quote;
-
-import org.apache.tapestry.Field;
-import org.apache.tapestry.MarkupWriter;
-import org.apache.tapestry.PageRenderSupport;
-import org.apache.tapestry.ValidationException;
-import org.apache.tapestry.Validator;
 import org.apache.tapestry.ioc.MessageFormatter;
 
 /**
@@ -62,7 +57,7 @@
     }
 
     public void render(Field field, Void constraintValue, MessageFormatter formatter,
-            MarkupWriter writer, PageRenderSupport pageRenderSupport)
+                       MarkupWriter writer, PageRenderSupport pageRenderSupport)
     {
         pageRenderSupport.addScript(
                 "Tapestry.Field.required('%s', %s);",

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/palette.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/palette.js?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/palette.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/corelib/components/palette.js Mon Nov 12 14:22:31 2007
@@ -2,183 +2,231 @@
 
 Tapestry.Palette.prototype = {
 
-  initialize : function(id, reorder, naturalOrder) {
-    this.reorder = reorder;
+    initialize : function(id, reorder, naturalOrder)
+    {
+        this.reorder = reorder;
     // The SELECT elements
 
-	  this.avail = $(id + ":avail");
-	  this.selected = $(id);
-	  
-	  this.hidden = $(id + ":values");
+        this.avail = $(id + ":avail");
+        this.selected = $(id);
+
+        this.hidden = $(id + ":values");
 	  
 	  // Seperator used for values in the hidden field.
-	  this.sep = ";";
+        this.sep = ";";
 	  
 	  // The BUTTON elements
-	  this.select = $(id + ":select");
-	  this.deselect = $(id + ":deselect");
-	  
-	  if (this.reorder) {
-	    this.up = $(id + ":up");
-	    this.down = $(id + ":down");
-	  }
-	  
-	  this.valueToOrderIndex = {};
-	  
-	  naturalOrder.split(this.sep).each(function (value, i) { this.valueToOrderIndex[value] = i; }.bind(this));
-    
-	  this.bindEvents();   
-  },  
-
-  bindEvents : function() {
-    var updateButtons = this.updateButtons.bindAsEventListener(this);
-    Event.observe(this.avail, "change", updateButtons);
-    Event.observe(this.selected, "change", updateButtons);
-    
-    var selectClicked = this.selectClicked.bindAsEventListener(this);
-    Event.observe(this.select, "click", selectClicked);
-    Event.observe(this.avail, "dblclick", selectClicked);
-    
-    var deselectClicked = this.deselectClicked.bindAsEventListener(this);      
-    Event.observe(this.deselect, "click", deselectClicked);
-    Event.observe(this.selected, "dblclick", deselectClicked);
-        
-    if (this.reorder) {          
-      Event.observe(this.up, "click", this.moveUpClicked.bindAsEventListener(this));
-      Event.observe(this.down, "click", this.moveDownClicked.bindAsEventListener(this));
-    }
-  },
-  
-  updateButtons: function() {
-    this.select.disabled = this.avail.selectedIndex < 0;
-    
-    var nothingSelected = this.selected.selectedIndex < 0;
-    
-    this.deselect.disabled = nothingSelected;
-    
-    if (this.reorder) {
-      this.up.disabled = nothingSelected || this.allSelectionsAtTop();
-      this.down.disabled = nothingSelected || this.allSelectionsAtBottom();
-    }
-  },  
-  
-  indexOfLastSelection : function(select) {
-    if (select.selectedIndex < 0) return -1;
-    
-    for (var i = select.options.length - 1; i >= select.selectedIndex; i--) {
-      if (select.options[i].selected) return i;
-    }
-    
-    return -1;
-  },
-  
-  allSelectionsAtTop: function() {
-    var last = this.indexOfLastSelection(this.selected);
-    var options = $A(this.selected.options);
-    
-    return ! options.slice(0, last).any(function (o) { return ! o.selected; });
-  },
-  
-  allSelectionsAtBottom : function() {
-    var options = $A(this.selected.options);
+        this.select = $(id + ":select");
+        this.deselect = $(id + ":deselect");
+
+        if (this.reorder)
+        {
+            this.up = $(id + ":up");
+            this.down = $(id + ":down");
+        }
+
+        this.valueToOrderIndex = {};
+
+        naturalOrder.split(this.sep).each(function (value, i)
+        {
+            this.valueToOrderIndex[value] = i;
+        }.bind(this));
+
+        this.bindEvents();
+    },
+
+    bindEvents : function()
+    {
+        var updateButtons = this.updateButtons.bindAsEventListener(this);
+        Event.observe(this.avail, "change", updateButtons);
+        Event.observe(this.selected, "change", updateButtons);
+
+        var selectClicked = this.selectClicked.bindAsEventListener(this);
+        Event.observe(this.select, "click", selectClicked);
+        Event.observe(this.avail, "dblclick", selectClicked);
+
+        var deselectClicked = this.deselectClicked.bindAsEventListener(this);
+        Event.observe(this.deselect, "click", deselectClicked);
+        Event.observe(this.selected, "dblclick", deselectClicked);
+
+        if (this.reorder)
+        {
+            Event.observe(this.up, "click", this.moveUpClicked.bindAsEventListener(this));
+            Event.observe(this.down, "click", this.moveDownClicked.bindAsEventListener(this));
+        }
+    },
+
+    updateButtons: function()
+    {
+        this.select.disabled = this.avail.selectedIndex < 0;
+
+        var nothingSelected = this.selected.selectedIndex < 0;
+
+        this.deselect.disabled = nothingSelected;
+
+        if (this.reorder)
+        {
+            this.up.disabled = nothingSelected || this.allSelectionsAtTop();
+            this.down.disabled = nothingSelected || this.allSelectionsAtBottom();
+        }
+    },
+
+    indexOfLastSelection : function(select)
+    {
+        if (select.selectedIndex < 0) return -1;
+
+        for (var i = select.options.length - 1; i >= select.selectedIndex; i--)
+        {
+            if (select.options[i].selected) return i;
+        }
+
+        return -1;
+    },
+
+    allSelectionsAtTop: function()
+    {
+        var last = this.indexOfLastSelection(this.selected);
+        var options = $A(this.selected.options);
+
+        return ! options.slice(0, last).any(function (o)
+        {
+            return ! o.selected;
+        });
+    },
+
+    allSelectionsAtBottom : function()
+    {
+        var options = $A(this.selected.options);
 
     // Make sure that all elements from the (first) selectedIndex to the end are also selected.     
-    return options.slice(this.selected.selectedIndex).all(function(o) { return o.selected; });  
-  },
-  
-  selectClicked : function(event) {
-     this.transferOptions(this.avail, this.selected, this.reorder);
-  },
-  
-  deselectClicked : function(event) {
-     this.transferOptions(this.selected, this.avail, false);
-  }, 
-  
-  transferOptions : function (from, to, atEnd) {
-    // from: SELECT to move option(s) from (those that are selected)
-    // to: SELECT to add option(s) to
-    // atEnd : if true, add at end, otherwise by natural sort order
-    var toOptions = $A(to.options);
-     
-    toOptions.each(function(option) { option.selected = false; });
-        
-    var movers = this.removeSelectedOptions(from);
-    this.moveOptions(movers, to, atEnd);
-    
-  },
-  
-  updateHidden : function() {
-    // Every value in the selected list (whether enabled or not) is combined to form the value.
-    var values = $A(this.selected).map(function(o) { return o.value; });
-    
-    this.hidden.value = values.join(this.sep);
-  },
-  
-  moveUpClicked : function(event) {
-    var pos = this.selected.selectedIndex - 1;
-    var movers = this.removeSelectedOptions(this.selected);
-
-    var before = pos < 0 ? this.selected.options[0] : this.selected.options[pos];
- 
-    this.reorderSelected(movers, before);
-   
-    Event.stop(event);
-  },
-  
-  removeSelectedOptions : function(select) {
-    var movers = [];
-    var options = select.options;
-    
-    for (var i = select.selectedIndex; i < select.length; i++) {
-      var option = options[i];
-      if (option.selected) {
-        select.remove(i--);
-        movers.push(option);  
-      }          
-    }
-    
-    return movers;
-  },
-  
-  moveOptions : function(movers, to, atEnd) {
-  
-    movers.each(function(option) { this.moveOption(option, to, atEnd); }.bind(this));
-    
-    this.updateHidden();  
-    this.updateButtons();
-  },
-  
-  moveOption : function(option, to, atEnd) {
-    var before = null;
-    
-    if (!atEnd) {
-      var optionOrder = this.valueToOrderIndex[option.value]; 
-      var candidate = $A(to.options).find(function (o) {
-            return this.valueToOrderIndex[o.value] > optionOrder;
+        return options.slice(this.selected.selectedIndex).all(function(o)
+        {
+            return o.selected;
+        });
+    },
+
+    selectClicked : function(event)
+    {
+        this.transferOptions(this.avail, this.selected, this.reorder);
+    },
+
+    deselectClicked : function(event)
+    {
+        this.transferOptions(this.selected, this.avail, false);
+    },
+
+    transferOptions : function (from, to, atEnd)
+    {
+        // from: SELECT to move option(s) from (those that are selected)
+        // to: SELECT to add option(s) to
+        // atEnd : if true, add at end, otherwise by natural sort order
+        var toOptions = $A(to.options);
+
+        toOptions.each(function(option)
+        {
+            option.selected = false;
+        });
+
+        var movers = this.removeSelectedOptions(from);
+        this.moveOptions(movers, to, atEnd);
+
+    },
+
+    updateHidden : function()
+    {
+        // Every value in the selected list (whether enabled or not) is combined to form the value.
+        var values = $A(this.selected).map(function(o)
+        {
+            return o.value;
+        });
+
+        this.hidden.value = values.join(this.sep);
+    },
+
+    moveUpClicked : function(event)
+    {
+        var pos = this.selected.selectedIndex - 1;
+        var movers = this.removeSelectedOptions(this.selected);
+
+        var before = pos < 0 ? this.selected.options[0] : this.selected.options[pos];
+
+        this.reorderSelected(movers, before);
+
+        Event.stop(event);
+    },
+
+    removeSelectedOptions : function(select)
+    {
+        var movers = [];
+        var options = select.options;
+
+        for (var i = select.selectedIndex; i < select.length; i++)
+        {
+            var option = options[i];
+            if (option.selected)
+            {
+                select.remove(i--);
+                movers.push(option);
+            }
+        }
+
+        return movers;
+    },
+
+    moveOptions : function(movers, to, atEnd)
+    {
+
+        movers.each(function(option)
+        {
+            this.moveOption(option, to, atEnd);
+        }.bind(this));
+
+        this.updateHidden();
+        this.updateButtons();
+    },
+
+    moveOption : function(option, to, atEnd)
+    {
+        var before = null;
+
+        if (!atEnd)
+        {
+            var optionOrder = this.valueToOrderIndex[option.value];
+            var candidate = $A(to.options).find(function (o)
+            {
+                return this.valueToOrderIndex[o.value] > optionOrder;
             }.bind(this));
-      if (candidate) before = candidate;
-    }
-  
-    to.add(option, before);
-  },
-  
-  moveDownClicked : function(event) {
-    var lastSelected = $A(this.selected.options).reverse(true).find(function (option) { return option.selected; });
-    var lastPos = lastSelected.index;
-    var before = this.selected.options[lastPos + 2];
+            if (candidate) before = candidate;
+        }
+
+        to.add(option, before);
+    },
+
+    moveDownClicked : function(event)
+    {
+        var lastSelected = $A(this.selected.options).reverse(true).find(function (option)
+        {
+            return option.selected;
+        });
+        var lastPos = lastSelected.index;
+        var before = this.selected.options[lastPos + 2];
         
     // TODO: needs to be "reorder options"
-    this.reorderSelected(this.removeSelectedOptions(this.selected), before);
-    
-    Event.stop(event);
-  },
-  
-  reorderSelected : function(movers,  before) {
-    movers.each(function(option) { this.selected.add(option, before); }.bind(this));
-    
-    this.updateHidden();  
-    this.updateButtons();
-  },  
+        this.reorderSelected(this.removeSelectedOptions(this.selected), before);
+
+        Event.stop(event);
+    },
+
+    reorderSelected : function(movers, before)
+    {
+        movers.each(function(option)
+        {
+            this.selected.add(option, before);
+        }.bind(this));
+
+        this.updateHidden();
+        this.updateButtons();
+    },
 };
 
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/default.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/default.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/default.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/default.css Mon Nov 12 14:22:31 2007
@@ -1,264 +1,316 @@
 /* Tapestry styles all start with "t-" */
 DIV.t-error {
-  border: 1px solid red;
-  padding: 0px;
-  margin: 4px 0px;
+    border: 1px solid red;
+    padding: 0px;
+    margin: 4px 0px;
 }
+
 DIV.t-error DIV {
-  padding: 2px;
-  display: block;
-  margin: 0px;
-  background-color: red;
-  color: white;
-  font-weight: bold;
+    padding: 2px;
+    display: block;
+    margin: 0px;
+    background-color: red;
+    color: white;
+    font-weight: bold;
 }
+
 DIV.t-error UL {
-  margin: 2px 0px;
-  background-color:white;
-  color:red;
+    margin: 2px 0px;
+    background-color: white;
+    color: red;
 }
+
 DIV.t-error LI {
-  margin-left: -20px;
+    margin-left: -20px;
 }
+
 .t-invisible {
-  display: none;
+    display: none;
 }
+
 LABEL.t-error {
-  color:red;
+    color: red;
 }
+
 INPUT.t-error, TEXTAREA.t-error {
-  border-color: red;
-  font-style: italic;
-  color: red;
+    border-color: red;
+    font-style: italic;
+    color: red;
 }
+
 IMG.t-error-icon {
-  margin-left: 4px;
+    margin-left: 4px;
 }
+
 DIV.t-exception-message {
-  font-style: italic;
-  font-size: 12pt;
-  border: thin dotted silver;
-  margin: 5px 0px;
-  padding: 3px;
+    font-style: italic;
+    font-size: 12pt;
+    border: thin dotted silver;
+    margin: 5px 0px;
+    padding: 3px;
 }
+
 DIV.t-exception-report, DIV.t-env-data {
-  font-family: "Trebuchet MS", Arial, sans-serif;
+    font-family: "Trebuchet MS", Arial, sans-serif;
 }
+
 DIV.t-exception-report LI {
-  margin-left: -40px;
+    margin-left: -40px;
 }
+
 DIV.t-exception-report DT, DIV.t-env-data DT {
-  color:green;
-  padding-left: 2px;
-  background-color: #FFFFCF;
+    color: green;
+    padding-left: 2px;
+    background-color: #FFFFCF;
 }
+
 DIV.t-exception-report LI {
-  list-style: none;
+    list-style: none;
 }
+
 SPAN.t-exception-class-name {
-  display: block;
-  margin-top: 15px;
-  font-size: 12pt;
-  background-color: #E1E1E1;
-  color: blue;
-  padding: 2px 3px;
-  font-weight: bold;
+    display: block;
+    margin-top: 15px;
+    font-size: 12pt;
+    background-color: #E1E1E1;
+    color: blue;
+    padding: 2px 3px;
+    font-weight: bold;
 }
+
 UL.t-stack-trace LI {
-  font-family: Monaco, Times, monospace;
-  font-size: 10pt;
-  margin-left: -25px;
-  list-style: square;
+    font-family: Monaco, Times, monospace;
+    font-size: 10pt;
+    margin-left: -25px;
+    list-style: square;
 }
+
 H1.t-exception-report {
-  font-family: "Trebuchet MS", Arial, sans-serif;
-  color: red;
+    font-family: "Trebuchet MS", Arial, sans-serif;
+    color: red;
 }
+
 DIV.t-exception-report DT:after {
-  content: ":";
+    content: ":";
 }
+
 DIV.t-exception-report DD, DIV.t-env-data DD {
-  margin-left: 10px;
+    margin-left: 10px;
 }
+
 TABLE.t-data-table {
-  border-collapse: collapse;
-  margin: 0px;
-  padding: 2px;
+    border-collapse: collapse;
+    margin: 0px;
+    padding: 2px;
 }
+
 TABLE.t-data-table TH {
-  background-color: black;
-  color: white;
+    background-color: black;
+    color: white;
 }
+
 TABLE.t-data-table TD {
-  border: 1px solid silver;
-  margin: 0px;
+    border: 1px solid silver;
+    margin: 0px;
 }
+
 DIV.t-beaneditor, DIV.t-beandisplay {
-  display: block;
-  background: #ffc;
-  border: 2px outset brown;
-  padding: 2px;
-  font-family: "Trebuchet MS", Arial, sans-serif;
+    display: block;
+    background: #ffc;
+    border: 2px outset brown;
+    padding: 2px;
+    font-family: "Trebuchet MS", Arial, sans-serif;
 }
 
 DIV.t-beandisplay {
-  background: #CCBE99;
-  border: 2px outset black;
-  width: auto;
+    background: #CCBE99;
+    border: 2px outset black;
+    width: auto;
 }
 
 FORM.t-beaneditor LABEL:after {
-  content: ":";
+    content: ":";
 }
+
 DIV.t-beaneditor-row {
-  padding: 4px 0px 2px 0px;
+    padding: 4px 0px 2px 0px;
 }
+
 DIV.t-beaneditor LABEL:after {
-  content: ":";
+    content: ":";
 }
+
 DIV.t-beaneditor LABEL, DIV.t-beandisplay DIV.t-beandisplay-label {
-  width: 10%;
-  display: block;
-  float: left;
-  text-align: right;
-  clear: left;
-  padding-right: 3px;
-  vertical-align: middle;  
+    width: 10%;
+    display: block;
+    float: left;
+    text-align: right;
+    clear: left;
+    padding-right: 3px;
+    vertical-align: middle;
 }
 
 DIV.t-beandisplay DIV.t-beandisplay-label {
-  padding-right: 5px;
+    padding-right: 5px;
 }
 
 TABLE.t-data-grid THEAD TR {
-  color: white;
-  background-color: #809FFF;
+    color: white;
+    background-color: #809FFF;
 }
+
 TABLE.t-data-grid THEAD TR TH {
-  text-align: left;
-  padding: 3px;
-  white-space: nowrap;
-  border-right: 1px solid silver;
-  border-bottom: 1px solid silver;
+    text-align: left;
+    padding: 3px;
+    white-space: nowrap;
+    border-right: 1px solid silver;
+    border-bottom: 1px solid silver;
 }
+
 TABLE.t-data-grid {
-  border-collapse: collapse;
-  border-left: 1px solid silver;
+    border-collapse: collapse;
+    border-left: 1px solid silver;
 }
+
 TABLE.t-data-grid TBODY TR TD {
-  border-right: 1px solid silver;
-  border-bottom: 1px solid silver;
-  padding: 2px;
+    border-right: 1px solid silver;
+    border-bottom: 1px solid silver;
+    padding: 2px;
 }
+
 DIV.t-data-grid {
-  font-family: "Trebuchet MS", Arial, sans-serif;
+    font-family: "Trebuchet MS", Arial, sans-serif;
 }
+
 DIV.t-data-grid-pager {
-  margin: 8px 0px;
+    margin: 8px 0px;
 }
+
 DIV.t-data-grid-pager A, DIV.t-data-grid-pager SPAN.current {
-  text-decoration: none;
-  color: black;
-  padding: 2px 5px;
-  font-size: medium;
-  border: 1px solid silver;
-  margin-right: 5px;
+    text-decoration: none;
+    color: black;
+    padding: 2px 5px;
+    font-size: medium;
+    border: 1px solid silver;
+    margin-right: 5px;
 }
+
 DIV.t-data-grid-pager A:hover {
-  border: 1px solid black;
+    border: 1px solid black;
 }
+
 DIV.t-data-grid-pager SPAN.current {
-  color: white;
-  background-color: #809FFF;
+    color: white;
+    background-color: #809FFF;
 }
+
 TABLE.t-data-grid TR TH A {
-  color: white;
+    color: white;
 }
+
 IMG {
-  border: none;
+    border: none;
 }
+
 DIV.t-env-data-section {
-  padding-left: 5px;
+    padding-left: 5px;
 }
+
 DIV.t-env-data DD, DIV.t-exception-report DD {
-  margin-left: 25px;
-  margin-bottom: 10px;
+    margin-left: 25px;
+    margin-bottom: 10px;
 }
+
 DIV.t-env-data LI {
-  margin-left: -25px;
+    margin-left: -25px;
 }
+
 DIV.t-env-data-section {
-  font-size: 12pt;
-  background-color: #E1E1E1;
-  color: blue;
-  padding: 2px 3px;
-  font-weight: bold;
+    font-size: 12pt;
+    background-color: #E1E1E1;
+    color: blue;
+    padding: 2px 3px;
+    font-weight: bold;
 }
+
 TABLE.t-location-outer {
-  padding: 5px;
-  border-collapse: collapse;
-  border: 1px solid black;
-  width: 100%;
+    padding: 5px;
+    border-collapse: collapse;
+    border: 1px solid black;
+    width: 100%;
 }
+
 TD.t-location-line {
-  width: 40px;
-  text-align: right;
-  padding: 0px;
-  background-color: #E1E1E1;
-  padding-right: 3px;
-  border-right: 1px solid black;
+    width: 40px;
+    text-align: right;
+    padding: 0px;
+    background-color: #E1E1E1;
+    padding-right: 3px;
+    border-right: 1px solid black;
 }
+
 TD.t-location-content {
-  border-top: 1px solid silver;
-  border-right: 1px solid black;
-  white-space: pre;
+    border-top: 1px solid silver;
+    border-right: 1px solid black;
+    white-space: pre;
 }
+
 TD.t-location-current {
-  background-color: #FFFFCF;
+    background-color: #FFFFCF;
 }
+
 TD.t-location-content-first {
-  border-top: 1px solid black;
+    border-top: 1px solid black;
 }
+
 DIV.t-palette {
-  display: inline;
+    display: inline;
 }
+
 DIV.t-palette SELECT {
-  margin-bottom: 2px;
+    margin-bottom: 2px;
 }
+
 DIV.t-palette-title {
-  color: white;
-  background-color: #809FFF;
-  text-align: center;
-  font-weight: bold;
-  margin-bottom: 3px;
-  display: block;
+    color: white;
+    background-color: #809FFF;
+    text-align: center;
+    font-weight: bold;
+    margin-bottom: 3px;
+    display: block;
 }
+
 DIV.t-palette-available {
-  float: left;
+    float: left;
 }
+
 DIV.t-palette-controls {
-  margin: 5px 5px; 
-  float: left;
-  text-align: center;
+    margin: 5px 5px;
+    float: left;
+    text-align: center;
 }
+
 DIV.t-palette-controls BUTTON {
-  display:block;
-  margin-bottom: 3px;
+    display: block;
+    margin-bottom: 3px;
 }
+
 DIV.t-palette-controls BUTTON[disabled] IMG {
-  filter: alpha(opacity=25);
-  -moz-opacity: .25;
+    filter: alpha( opacity = 25 );
+    -moz-opacity: .25;
 }
+
 DIV.t-palette-selected {
-  float: left;
-  clear: right;
+    float: left;
+    clear: right;
 }
+
 DIV.t-palette-spacer {
-  clear: left;
+    clear: left;
 }
 
 BUTTON.t-calendar-trigger {
-  margin-left: 3px;
-  padding: none;
+    margin-left: 3px;
+    padding: none;
 }
 

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/services/tapestry_5_0_0.xsd
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/services/tapestry_5_0_0.xsd?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/services/tapestry_5_0_0.xsd (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/internal/services/tapestry_5_0_0.xsd Mon Nov 12 14:22:31 2007
@@ -1,28 +1,30 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
-    xmlns="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
-    targetNamespace="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">    
+           xmlns="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
+           targetNamespace="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
     <xs:element name="body">
         <xs:annotation>
             <xs:documentation>
-                Defines the position within the template that the body of the component (the portion of the container's template
-                enclosed by the component) will be rendered.  This is optional, and only applies to components that wish to render 
+                Defines the position within the template that the body of the component (the portion of the container's
+                template
+                enclosed by the component) will be rendered. This is optional, and only applies to components that wish
+                to render
                 their body within their template.
             </xs:documentation>
         </xs:annotation>
     </xs:element>
     <xs:element name="container">
-      <xs:annotation>
-        <xs:documentation>
-          May be used as the root element of a template, but is not part of the template itself. Useful when
-          a component exists to emit a series of related elements that are not inside a containing element.
-        </xs:documentation>
-      </xs:annotation>
+        <xs:annotation>
+            <xs:documentation>
+                May be used as the root element of a template, but is not part of the template itself. Useful when
+                a component exists to emit a series of related elements that are not inside a containing element.
+            </xs:documentation>
+        </xs:annotation>
     </xs:element>
     <xs:element name="parameter">
         <xs:annotation>
             <xs:documentation>
-                A structured parameter passed to a component as a single object of type Block.  The receiving component
+                A structured parameter passed to a component as a single object of type Block. The receiving component
                 can get the Block to render. A parameter should always be enclosed by a component element
                 (either an explicit comp element, or an ordinary element instrumented with a Tapestry type or id).
             </xs:documentation>
@@ -33,14 +35,15 @@
                     <xs:documentation>
                         The name of the parameter to be bound to the Block.
                     </xs:documentation>
-                </xs:annotation>                
+                </xs:annotation>
             </xs:attribute>
         </xs:complexType>
     </xs:element>
     <xs:element name="block">
         <xs:annotation>
             <xs:documentation>
-                A block is simply a container of other elements.  Blocks do not render themselves or their bodies in the normal flow; they
+                A block is simply a container of other elements. Blocks do not render themselves or their bodies in the
+                normal flow; they
                 only get rendered when specifially directed to.
             </xs:documentation>
         </xs:annotation>

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue.css Mon Nov 12 14:22:31 2007
@@ -1,232 +1,258 @@
 /* The main calendar widget.  DIV containing a table. */
 
-div.calendar { position: relative; }
+div.calendar {
+    position: relative;
+}
 
 .calendar, .calendar table {
-  border: 1px solid #556;
-  font-size: 11px;
-  color: #000;
-  cursor: default;
-  background: #eef;
-  font-family: tahoma,verdana,sans-serif;
+    border: 1px solid #556;
+    font-size: 11px;
+    color: #000;
+    cursor: default;
+    background: #eef;
+    font-family: tahoma, verdana, sans-serif;
 }
 
 /* Header part -- contains navigation buttons and day names. */
 
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
-  text-align: center;    /* They are the navigation buttons */
-  padding: 2px;          /* Make the buttons seem like they're pressing */
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+    text-align: center; /* They are the navigation buttons */
+    padding: 2px; /* Make the buttons seem like they're pressing */
 }
 
 .calendar .nav {
-  background: #778 url(menuarrow.gif) no-repeat 100% 100%;
+    background: #778 url( menuarrow.gif ) no-repeat 100% 100%;
 }
 
-.calendar thead .title { /* This holds the current "month, year" */
-  font-weight: bold;      /* Pressing it will take you to the current date */
-  text-align: center;
-  background: #fff;
-  color: #000;
-  padding: 2px;
+.calendar thead .title {
+/* This holds the current "month, year" */
+    font-weight: bold; /* Pressing it will take you to the current date */
+    text-align: center;
+    background: #fff;
+    color: #000;
+    padding: 2px;
 }
 
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
-  background: #778;
-  color: #fff;
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
+    background: #778;
+    color: #fff;
 }
 
-.calendar thead .daynames { /* Row <TR> containing the day names */
-  background: #bdf;
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
+    background: #bdf;
 }
 
-.calendar thead .name { /* Cells <TD> containing the day names */
-  border-bottom: 1px solid #556;
-  padding: 2px;
-  text-align: center;
-  color: #000;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+    border-bottom: 1px solid #556;
+    padding: 2px;
+    text-align: center;
+    color: #000;
 }
 
-.calendar thead .weekend { /* How a weekend day name shows in header */
-  color: #a66;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+    color: #a66;
 }
 
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
-  background-color: #aaf;
-  color: #000;
-  border: 1px solid #04f;
-  padding: 1px;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+    background-color: #aaf;
+    color: #000;
+    border: 1px solid #04f;
+    padding: 1px;
 }
 
-.calendar thead .active { /* Active (pressed) buttons in header */
-  background-color: #77c;
-  padding: 2px 0px 0px 2px;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+    background-color: #77c;
+    padding: 2px 0px 0px 2px;
 }
 
 /* The body part -- contains all the days in month. */
 
-.calendar tbody .day { /* Cells <TD> containing month days dates */
-  width: 2em;
-  color: #456;
-  text-align: right;
-  padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+    width: 2em;
+    color: #456;
+    text-align: right;
+    padding: 2px 4px 2px 2px;
 }
+
 .calendar tbody .day.othermonth {
-  font-size: 80%;
-  color: #bbb;
+    font-size: 80%;
+    color: #bbb;
 }
+
 .calendar tbody .day.othermonth.oweekend {
-  color: #fbb;
+    color: #fbb;
 }
 
 .calendar table .wn {
-  padding: 2px 3px 2px 2px;
-  border-right: 1px solid #000;
-  background: #bdf;
+    padding: 2px 3px 2px 2px;
+    border-right: 1px solid #000;
+    background: #bdf;
 }
 
 .calendar tbody .rowhilite td {
-  background: #def;
+    background: #def;
 }
 
 .calendar tbody .rowhilite td.wn {
-  background: #eef;
+    background: #eef;
 }
 
-.calendar tbody td.hilite { /* Hovered cells <TD> */
-  background: #def;
-  padding: 1px 3px 1px 1px;
-  border: 1px solid #bbb;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+    background: #def;
+    padding: 1px 3px 1px 1px;
+    border: 1px solid #bbb;
 }
 
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
-  background: #cde;
-  padding: 2px 2px 0px 2px;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+    background: #cde;
+    padding: 2px 2px 0px 2px;
 }
 
-.calendar tbody td.selected { /* Cell showing today date */
-  font-weight: bold;
-  border: 1px solid #000;
-  padding: 1px 3px 1px 1px;
-  background: #fff;
-  color: #000;
+.calendar tbody td.selected {
+/* Cell showing today date */
+    font-weight: bold;
+    border: 1px solid #000;
+    padding: 1px 3px 1px 1px;
+    background: #fff;
+    color: #000;
 }
 
-.calendar tbody td.weekend { /* Cells showing weekend days */
-  color: #a66;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+    color: #a66;
 }
 
-.calendar tbody td.today { /* Cell showing selected date */
-  font-weight: bold;
-  color: #00f;
-}
-
-.calendar tbody .disabled { color: #999; }
-
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
-  visibility: hidden;
+.calendar tbody td.today {
+/* Cell showing selected date */
+    font-weight: bold;
+    color: #00f;
 }
 
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
-  display: none;
+.calendar tbody .disabled {
+    color: #999;
 }
 
-/* The footer part -- status bar and "Close" button */
-
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
-  text-align: center;
-  background: #556;
-  color: #fff;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+    visibility: hidden;
 }
 
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
-  background: #fff;
-  color: #445;
-  border-top: 1px solid #556;
-  padding: 1px;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+    display: none;
 }
 
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
-  background: #aaf;
-  border: 1px solid #04f;
-  color: #000;
-  padding: 1px;
-}
+/* The footer part -- status bar and "Close" button */
 
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
-  background: #77c;
-  padding: 2px 0px 0px 2px;
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
+    text-align: center;
+    background: #556;
+    color: #fff;
+}
+
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+    background: #fff;
+    color: #445;
+    border-top: 1px solid #556;
+    padding: 1px;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+    background: #aaf;
+    border: 1px solid #04f;
+    color: #000;
+    padding: 1px;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+    background: #77c;
+    padding: 2px 0px 0px 2px;
 }
 
 /* Combo boxes (menus that display months/years for direct selection) */
 
 .calendar .combo {
-  position: absolute;
-  display: none;
-  top: 0px;
-  left: 0px;
-  width: 4em;
-  cursor: default;
-  border: 1px solid #655;
-  background: #def;
-  color: #000;
-  font-size: 90%;
-  z-index: 100;
+    position: absolute;
+    display: none;
+    top: 0px;
+    left: 0px;
+    width: 4em;
+    cursor: default;
+    border: 1px solid #655;
+    background: #def;
+    color: #000;
+    font-size: 90%;
+    z-index: 100;
 }
 
 .calendar .combo .label,
-.calendar .combo .label-IEfix {
-  text-align: center;
-  padding: 1px;
+    .calendar .combo .label-IEfix {
+    text-align: center;
+    padding: 1px;
 }
 
 .calendar .combo .label-IEfix {
-  width: 4em;
+    width: 4em;
 }
 
 .calendar .combo .hilite {
-  background: #acf;
+    background: #acf;
 }
 
 .calendar .combo .active {
-  border-top: 1px solid #46a;
-  border-bottom: 1px solid #46a;
-  background: #eef;
-  font-weight: bold;
+    border-top: 1px solid #46a;
+    border-bottom: 1px solid #46a;
+    background: #eef;
+    font-weight: bold;
 }
 
 .calendar td.time {
-  border-top: 1px solid #000;
-  padding: 1px 0px;
-  text-align: center;
-  background-color: #f4f0e8;
+    border-top: 1px solid #000;
+    padding: 1px 0px;
+    text-align: center;
+    background-color: #f4f0e8;
 }
 
 .calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
-  padding: 0px 3px 0px 4px;
-  border: 1px solid #889;
-  font-weight: bold;
-  background-color: #fff;
+    .calendar td.time .minute,
+    .calendar td.time .ampm {
+    padding: 0px 3px 0px 4px;
+    border: 1px solid #889;
+    font-weight: bold;
+    background-color: #fff;
 }
 
 .calendar td.time .ampm {
-  text-align: center;
+    text-align: center;
 }
 
 .calendar td.time .colon {
-  padding: 0px 2px 0px 3px;
-  font-weight: bold;
+    padding: 0px 2px 0px 3px;
+    font-weight: bold;
 }
 
 .calendar td.time span.hilite {
-  border-color: #000;
-  background-color: #667;
-  color: #fff;
+    border-color: #000;
+    background-color: #667;
+    color: #fff;
 }
 
 .calendar td.time span.active {
-  border-color: #f00;
-  background-color: #000;
-  color: #0f0;
+    border-color: #f00;
+    background-color: #000;
+    color: #0f0;
 }

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue2.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue2.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue2.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-blue2.css Mon Nov 12 14:22:31 2007
@@ -1,236 +1,262 @@
 /* The main calendar widget.  DIV containing a table. */
 
-div.calendar { position: relative; }
+div.calendar {
+    position: relative;
+}
 
 .calendar, .calendar table {
-  border: 1px solid #206A9B;
-  font-size: 11px;
-  color: #000;
-  cursor: default;
-  background: #F1F8FC;
-  font-family: tahoma,verdana,sans-serif;
+    border: 1px solid #206A9B;
+    font-size: 11px;
+    color: #000;
+    cursor: default;
+    background: #F1F8FC;
+    font-family: tahoma, verdana, sans-serif;
 }
 
 /* Header part -- contains navigation buttons and day names. */
 
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
-  text-align: center;    /* They are the navigation buttons */
-  padding: 2px;          /* Make the buttons seem like they're pressing */
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+    text-align: center; /* They are the navigation buttons */
+    padding: 2px; /* Make the buttons seem like they're pressing */
 }
 
 .calendar .nav {
-  background: #007ED1 url(menuarrow2.gif) no-repeat 100% 100%;
+    background: #007ED1 url( menuarrow2.gif ) no-repeat 100% 100%;
 }
 
-.calendar thead .title { /* This holds the current "month, year" */
-  font-weight: bold;      /* Pressing it will take you to the current date */
-  text-align: center;
-  background: #000;
-  color: #fff;
-  padding: 2px;
+.calendar thead .title {
+/* This holds the current "month, year" */
+    font-weight: bold; /* Pressing it will take you to the current date */
+    text-align: center;
+    background: #000;
+    color: #fff;
+    padding: 2px;
 }
 
-.calendar thead tr { /* Row <TR> containing navigation buttons */
-  background: #007ED1;
-  color: #fff;
+.calendar thead tr {
+/* Row <TR> containing navigation buttons */
+    background: #007ED1;
+    color: #fff;
 }
 
-.calendar thead .daynames { /* Row <TR> containing the day names */
-  background: #C7E1F3;
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
+    background: #C7E1F3;
 }
 
-.calendar thead .name { /* Cells <TD> containing the day names */
-  border-bottom: 1px solid #206A9B;
-  padding: 2px;
-  text-align: center;
-  color: #000;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+    border-bottom: 1px solid #206A9B;
+    padding: 2px;
+    text-align: center;
+    color: #000;
 }
 
-.calendar thead .weekend { /* How a weekend day name shows in header */
-  color: #a66;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+    color: #a66;
 }
 
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
-  background-color: #34ABFA;
-  color: #000;
-  border: 1px solid #016DC5;
-  padding: 1px;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+    background-color: #34ABFA;
+    color: #000;
+    border: 1px solid #016DC5;
+    padding: 1px;
 }
 
-.calendar thead .active { /* Active (pressed) buttons in header */
-  background-color: #006AA9;
-  border: 1px solid #008AFF;
-  padding: 2px 0px 0px 2px;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+    background-color: #006AA9;
+    border: 1px solid #008AFF;
+    padding: 2px 0px 0px 2px;
 }
 
 /* The body part -- contains all the days in month. */
 
-.calendar tbody .day { /* Cells <TD> containing month days dates */
-  width: 2em;
-  color: #456;
-  text-align: right;
-  padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+    width: 2em;
+    color: #456;
+    text-align: right;
+    padding: 2px 4px 2px 2px;
 }
+
 .calendar tbody .day.othermonth {
-  font-size: 80%;
-  color: #bbb;
+    font-size: 80%;
+    color: #bbb;
 }
+
 .calendar tbody .day.othermonth.oweekend {
-  color: #fbb;
+    color: #fbb;
 }
 
 .calendar table .wn {
-  padding: 2px 3px 2px 2px;
-  border-right: 1px solid #000;
-  background: #C7E1F3;
+    padding: 2px 3px 2px 2px;
+    border-right: 1px solid #000;
+    background: #C7E1F3;
 }
 
 .calendar tbody .rowhilite td {
-  background: #def;
+    background: #def;
 }
 
 .calendar tbody .rowhilite td.wn {
-  background: #F1F8FC;
+    background: #F1F8FC;
 }
 
-.calendar tbody td.hilite { /* Hovered cells <TD> */
-  background: #def;
-  padding: 1px 3px 1px 1px;
-  border: 1px solid #8FC4E8;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+    background: #def;
+    padding: 1px 3px 1px 1px;
+    border: 1px solid #8FC4E8;
 }
 
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
-  background: #cde;
-  padding: 2px 2px 0px 2px;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+    background: #cde;
+    padding: 2px 2px 0px 2px;
 }
 
-.calendar tbody td.selected { /* Cell showing today date */
-  font-weight: bold;
-  border: 1px solid #000;
-  padding: 1px 3px 1px 1px;
-  background: #fff;
-  color: #000;
+.calendar tbody td.selected {
+/* Cell showing today date */
+    font-weight: bold;
+    border: 1px solid #000;
+    padding: 1px 3px 1px 1px;
+    background: #fff;
+    color: #000;
 }
 
-.calendar tbody td.weekend { /* Cells showing weekend days */
-  color: #a66;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+    color: #a66;
 }
 
-.calendar tbody td.today { /* Cell showing selected date */
-  font-weight: bold;
-  color: #D50000;
-}
-
-.calendar tbody .disabled { color: #999; }
-
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
-  visibility: hidden;
+.calendar tbody td.today {
+/* Cell showing selected date */
+    font-weight: bold;
+    color: #D50000;
 }
 
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
-  display: none;
+.calendar tbody .disabled {
+    color: #999;
 }
 
-/* The footer part -- status bar and "Close" button */
-
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
-  text-align: center;
-  background: #206A9B;
-  color: #fff;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+    visibility: hidden;
 }
 
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
-  background: #000;
-  color: #fff;
-  border-top: 1px solid #206A9B;
-  padding: 1px;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+    display: none;
 }
 
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
-  background: #B8DAF0;
-  border: 1px solid #178AEB;
-  color: #000;
-  padding: 1px;
-}
+/* The footer part -- status bar and "Close" button */
 
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
-  background: #006AA9;
-  padding: 2px 0px 0px 2px;
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
+    text-align: center;
+    background: #206A9B;
+    color: #fff;
+}
+
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+    background: #000;
+    color: #fff;
+    border-top: 1px solid #206A9B;
+    padding: 1px;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+    background: #B8DAF0;
+    border: 1px solid #178AEB;
+    color: #000;
+    padding: 1px;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+    background: #006AA9;
+    padding: 2px 0px 0px 2px;
 }
 
 /* Combo boxes (menus that display months/years for direct selection) */
 
 .calendar .combo {
-  position: absolute;
-  display: none;
-  top: 0px;
-  left: 0px;
-  width: 4em;
-  cursor: default;
-  border: 1px solid #655;
-  background: #def;
-  color: #000;
-  font-size: 90%;
-  z-index: 100;
+    position: absolute;
+    display: none;
+    top: 0px;
+    left: 0px;
+    width: 4em;
+    cursor: default;
+    border: 1px solid #655;
+    background: #def;
+    color: #000;
+    font-size: 90%;
+    z-index: 100;
 }
 
 .calendar .combo .label,
-.calendar .combo .label-IEfix {
-  text-align: center;
-  padding: 1px;
+    .calendar .combo .label-IEfix {
+    text-align: center;
+    padding: 1px;
 }
 
 .calendar .combo .label-IEfix {
-  width: 4em;
+    width: 4em;
 }
 
 .calendar .combo .hilite {
-  background: #34ABFA;
-  border-top: 1px solid #46a;
-  border-bottom: 1px solid #46a;
-  font-weight: bold;
+    background: #34ABFA;
+    border-top: 1px solid #46a;
+    border-bottom: 1px solid #46a;
+    font-weight: bold;
 }
 
 .calendar .combo .active {
-  border-top: 1px solid #46a;
-  border-bottom: 1px solid #46a;
-  background: #F1F8FC;
-  font-weight: bold;
+    border-top: 1px solid #46a;
+    border-bottom: 1px solid #46a;
+    background: #F1F8FC;
+    font-weight: bold;
 }
 
 .calendar td.time {
-  border-top: 1px solid #000;
-  padding: 1px 0px;
-  text-align: center;
-  background-color: #E3F0F9;
+    border-top: 1px solid #000;
+    padding: 1px 0px;
+    text-align: center;
+    background-color: #E3F0F9;
 }
 
 .calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
-  padding: 0px 3px 0px 4px;
-  border: 1px solid #889;
-  font-weight: bold;
-  background-color: #F1F8FC;
+    .calendar td.time .minute,
+    .calendar td.time .ampm {
+    padding: 0px 3px 0px 4px;
+    border: 1px solid #889;
+    font-weight: bold;
+    background-color: #F1F8FC;
 }
 
 .calendar td.time .ampm {
-  text-align: center;
+    text-align: center;
 }
 
 .calendar td.time .colon {
-  padding: 0px 2px 0px 3px;
-  font-weight: bold;
+    padding: 0px 2px 0px 3px;
+    font-weight: bold;
 }
 
 .calendar td.time span.hilite {
-  border-color: #000;
-  background-color: #267DB7;
-  color: #fff;
+    border-color: #000;
+    background-color: #267DB7;
+    color: #fff;
 }
 
 .calendar td.time span.active {
-  border-color: red;
-  background-color: #000;
-  color: #A5FF00;
+    border-color: red;
+    background-color: #000;
+    color: #A5FF00;
 }

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-brown.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-brown.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-brown.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-brown.css Mon Nov 12 14:22:31 2007
@@ -1,225 +1,252 @@
 /* The main calendar widget.  DIV containing a table. */
 
-div.calendar { position: relative; }
+div.calendar {
+    position: relative;
+}
 
 .calendar, .calendar table {
-  border: 1px solid #655;
-  font-size: 11px;
-  color: #000;
-  cursor: default;
-  background: #ffd;
-  font-family: tahoma,verdana,sans-serif;
+    border: 1px solid #655;
+    font-size: 11px;
+    color: #000;
+    cursor: default;
+    background: #ffd;
+    font-family: tahoma, verdana, sans-serif;
 }
 
 /* Header part -- contains navigation buttons and day names. */
 
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
-  text-align: center;    /* They are the navigation buttons */
-  padding: 2px;          /* Make the buttons seem like they're pressing */
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+    text-align: center; /* They are the navigation buttons */
+    padding: 2px; /* Make the buttons seem like they're pressing */
 }
 
 .calendar .nav {
-  background: #edc url(menuarrow.gif) no-repeat 100% 100%;
+    background: #edc url( menuarrow.gif ) no-repeat 100% 100%;
 }
 
-.calendar thead .title { /* This holds the current "month, year" */
-  font-weight: bold;      /* Pressing it will take you to the current date */
-  text-align: center;
-  background: #654;
-  color: #fed;
-  padding: 2px;
+.calendar thead .title {
+/* This holds the current "month, year" */
+    font-weight: bold; /* Pressing it will take you to the current date */
+    text-align: center;
+    background: #654;
+    color: #fed;
+    padding: 2px;
 }
 
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
-  background: #edc;
-  color: #000;
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
+    background: #edc;
+    color: #000;
 }
 
-.calendar thead .name { /* Cells <TD> containing the day names */
-  border-bottom: 1px solid #655;
-  padding: 2px;
-  text-align: center;
-  color: #000;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+    border-bottom: 1px solid #655;
+    padding: 2px;
+    text-align: center;
+    color: #000;
 }
 
-.calendar thead .weekend { /* How a weekend day name shows in header */
-  color: #f00;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+    color: #f00;
 }
 
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
-  background-color: #faa;
-  color: #000;
-  border: 1px solid #f40;
-  padding: 1px;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+    background-color: #faa;
+    color: #000;
+    border: 1px solid #f40;
+    padding: 1px;
 }
 
-.calendar thead .active { /* Active (pressed) buttons in header */
-  background-color: #c77;
-  padding: 2px 0px 0px 2px;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+    background-color: #c77;
+    padding: 2px 0px 0px 2px;
 }
 
-.calendar thead .daynames { /* Row <TR> containing the day names */
-  background: #fed;
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
+    background: #fed;
 }
 
 /* The body part -- contains all the days in month. */
 
-.calendar tbody .day { /* Cells <TD> containing month days dates */
-  width: 2em;
-  text-align: right;
-  padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+    width: 2em;
+    text-align: right;
+    padding: 2px 4px 2px 2px;
 }
+
 .calendar tbody .day.othermonth {
-  font-size: 80%;
-  color: #bbb;
+    font-size: 80%;
+    color: #bbb;
 }
+
 .calendar tbody .day.othermonth.oweekend {
-  color: #fbb;
+    color: #fbb;
 }
 
 .calendar table .wn {
-  padding: 2px 3px 2px 2px;
-  border-right: 1px solid #000;
-  background: #fed;
+    padding: 2px 3px 2px 2px;
+    border-right: 1px solid #000;
+    background: #fed;
 }
 
 .calendar tbody .rowhilite td {
-  background: #ddf;
+    background: #ddf;
 }
 
 .calendar tbody .rowhilite td.wn {
-  background: #efe;
+    background: #efe;
 }
 
-.calendar tbody td.hilite { /* Hovered cells <TD> */
-  background: #ffe;
-  padding: 1px 3px 1px 1px;
-  border: 1px solid #bbb;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+    background: #ffe;
+    padding: 1px 3px 1px 1px;
+    border: 1px solid #bbb;
 }
 
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
-  background: #ddc;
-  padding: 2px 2px 0px 2px;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+    background: #ddc;
+    padding: 2px 2px 0px 2px;
 }
 
-.calendar tbody td.selected { /* Cell showing today date */
-  font-weight: bold;
-  border: 1px solid #000;
-  padding: 1px 3px 1px 1px;
-  background: #fea;
+.calendar tbody td.selected {
+/* Cell showing today date */
+    font-weight: bold;
+    border: 1px solid #000;
+    padding: 1px 3px 1px 1px;
+    background: #fea;
 }
 
-.calendar tbody td.weekend { /* Cells showing weekend days */
-  color: #f00;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+    color: #f00;
 }
 
-.calendar tbody td.today { font-weight: bold; }
-
-.calendar tbody .disabled { color: #999; }
-
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
-  visibility: hidden;
+.calendar tbody td.today {
+    font-weight: bold;
 }
 
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
-  display: none;
+.calendar tbody .disabled {
+    color: #999;
 }
 
-/* The footer part -- status bar and "Close" button */
-
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
-  text-align: center;
-  background: #988;
-  color: #000;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+    visibility: hidden;
 }
 
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
-  border-top: 1px solid #655;
-  background: #dcb;
-  color: #840;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+    display: none;
 }
 
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
-  background: #faa;
-  border: 1px solid #f40;
-  padding: 1px;
-}
+/* The footer part -- status bar and "Close" button */
 
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
-  background: #c77;
-  padding: 2px 0px 0px 2px;
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
+    text-align: center;
+    background: #988;
+    color: #000;
+}
+
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+    border-top: 1px solid #655;
+    background: #dcb;
+    color: #840;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+    background: #faa;
+    border: 1px solid #f40;
+    padding: 1px;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+    background: #c77;
+    padding: 2px 0px 0px 2px;
 }
 
 /* Combo boxes (menus that display months/years for direct selection) */
 
 .calendar .combo {
-  position: absolute;
-  display: none;
-  top: 0px;
-  left: 0px;
-  width: 4em;
-  cursor: default;
-  border: 1px solid #655;
-  background: #ffe;
-  color: #000;
-  font-size: 90%;
-  z-index: 100;
+    position: absolute;
+    display: none;
+    top: 0px;
+    left: 0px;
+    width: 4em;
+    cursor: default;
+    border: 1px solid #655;
+    background: #ffe;
+    color: #000;
+    font-size: 90%;
+    z-index: 100;
 }
 
 .calendar .combo .label,
-.calendar .combo .label-IEfix {
-  text-align: center;
-  padding: 1px;
+    .calendar .combo .label-IEfix {
+    text-align: center;
+    padding: 1px;
 }
 
 .calendar .combo .label-IEfix {
-  width: 4em;
+    width: 4em;
 }
 
 .calendar .combo .hilite {
-  background: #fc8;
+    background: #fc8;
 }
 
 .calendar .combo .active {
-  border-top: 1px solid #a64;
-  border-bottom: 1px solid #a64;
-  background: #fee;
-  font-weight: bold;
+    border-top: 1px solid #a64;
+    border-bottom: 1px solid #a64;
+    background: #fee;
+    font-weight: bold;
 }
 
 .calendar td.time {
-  border-top: 1px solid #a88;
-  padding: 1px 0px;
-  text-align: center;
-  background-color: #fed;
+    border-top: 1px solid #a88;
+    padding: 1px 0px;
+    text-align: center;
+    background-color: #fed;
 }
 
 .calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
-  padding: 0px 3px 0px 4px;
-  border: 1px solid #988;
-  font-weight: bold;
-  background-color: #fff;
+    .calendar td.time .minute,
+    .calendar td.time .ampm {
+    padding: 0px 3px 0px 4px;
+    border: 1px solid #988;
+    font-weight: bold;
+    background-color: #fff;
 }
 
 .calendar td.time .ampm {
-  text-align: center;
+    text-align: center;
 }
 
 .calendar td.time .colon {
-  padding: 0px 2px 0px 3px;
-  font-weight: bold;
+    padding: 0px 2px 0px 3px;
+    font-weight: bold;
 }
 
 .calendar td.time span.hilite {
-  border-color: #000;
-  background-color: #866;
-  color: #fff;
+    border-color: #000;
+    background-color: #866;
+    color: #fff;
 }
 
 .calendar td.time span.active {
-  border-color: #f00;
-  background-color: #000;
-  color: #0f0;
+    border-color: #f00;
+    background-color: #000;
+    color: #0f0;
 }

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-green.css
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-green.css?rev=594319&r1=594318&r2=594319&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-green.css (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry/jscalendar-1.0/calendar-green.css Mon Nov 12 14:22:31 2007
@@ -1,229 +1,257 @@
 /* The main calendar widget.  DIV containing a table. */
 
-div.calendar { position: relative; }
+div.calendar {
+    position: relative;
+}
 
 .calendar, .calendar table {
-  border: 1px solid #565;
-  font-size: 11px;
-  color: #000;
-  cursor: default;
-  background: #efe;
-  font-family: tahoma,verdana,sans-serif;
+    border: 1px solid #565;
+    font-size: 11px;
+    color: #000;
+    cursor: default;
+    background: #efe;
+    font-family: tahoma, verdana, sans-serif;
 }
 
 /* Header part -- contains navigation buttons and day names. */
 
-.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */
-  text-align: center;    /* They are the navigation buttons */
-  padding: 2px;          /* Make the buttons seem like they're pressing */
-  background: #676;
-  color: #fff;
-  font-size: 90%;
+.calendar .button {
+/* "<<", "<", ">", ">>" buttons have this class */
+    text-align: center; /* They are the navigation buttons */
+    padding: 2px; /* Make the buttons seem like they're pressing */
+    background: #676;
+    color: #fff;
+    font-size: 90%;
 }
 
 .calendar .nav {
-  background: #676 url(menuarrow.gif) no-repeat 100% 100%;
+    background: #676 url( menuarrow.gif ) no-repeat 100% 100%;
 }
 
-.calendar thead .title { /* This holds the current "month, year" */
-  font-weight: bold;      /* Pressing it will take you to the current date */
-  text-align: center;
-  padding: 2px;
-  background: #250;
-  color: #efa;
+.calendar thead .title {
+/* This holds the current "month, year" */
+    font-weight: bold; /* Pressing it will take you to the current date */
+    text-align: center;
+    padding: 2px;
+    background: #250;
+    color: #efa;
 }
 
-.calendar thead .headrow { /* Row <TR> containing navigation buttons */
+.calendar thead .headrow {
+/* Row <TR> containing navigation buttons */
 }
 
-.calendar thead .name { /* Cells <TD> containing the day names */
-  border-bottom: 1px solid #565;
-  padding: 2px;
-  text-align: center;
-  color: #000;
+.calendar thead .name {
+/* Cells <TD> containing the day names */
+    border-bottom: 1px solid #565;
+    padding: 2px;
+    text-align: center;
+    color: #000;
 }
 
-.calendar thead .weekend { /* How a weekend day name shows in header */
-  color: #a66;
+.calendar thead .weekend {
+/* How a weekend day name shows in header */
+    color: #a66;
 }
 
-.calendar thead .hilite { /* How do the buttons in header appear when hover */
-  background-color: #afa;
-  color: #000;
-  border: 1px solid #084;
-  padding: 1px;
+.calendar thead .hilite {
+/* How do the buttons in header appear when hover */
+    background-color: #afa;
+    color: #000;
+    border: 1px solid #084;
+    padding: 1px;
 }
 
-.calendar thead .active { /* Active (pressed) buttons in header */
-  background-color: #7c7;
-  padding: 2px 0px 0px 2px;
+.calendar thead .active {
+/* Active (pressed) buttons in header */
+    background-color: #7c7;
+    padding: 2px 0px 0px 2px;
 }
 
-.calendar thead .daynames { /* Row <TR> containing the day names */
-  background: #dfb;
+.calendar thead .daynames {
+/* Row <TR> containing the day names */
+    background: #dfb;
 }
 
 /* The body part -- contains all the days in month. */
 
-.calendar tbody .day { /* Cells <TD> containing month days dates */
-  width: 2em;
-  color: #564;
-  text-align: right;
-  padding: 2px 4px 2px 2px;
+.calendar tbody .day {
+/* Cells <TD> containing month days dates */
+    width: 2em;
+    color: #564;
+    text-align: right;
+    padding: 2px 4px 2px 2px;
 }
+
 .calendar tbody .day.othermonth {
-  font-size: 80%;
-  color: #bbb;
+    font-size: 80%;
+    color: #bbb;
 }
+
 .calendar tbody .day.othermonth.oweekend {
-  color: #fbb;
+    color: #fbb;
 }
 
 .calendar table .wn {
-  padding: 2px 3px 2px 2px;
-  border-right: 1px solid #8a8;
-  background: #dfb;
+    padding: 2px 3px 2px 2px;
+    border-right: 1px solid #8a8;
+    background: #dfb;
 }
 
 .calendar tbody .rowhilite td {
-  background: #dfd;
+    background: #dfd;
 }
 
 .calendar tbody .rowhilite td.wn {
-  background: #efe;
+    background: #efe;
 }
 
-.calendar tbody td.hilite { /* Hovered cells <TD> */
-  background: #efd;
-  padding: 1px 3px 1px 1px;
-  border: 1px solid #bbb;
+.calendar tbody td.hilite {
+/* Hovered cells <TD> */
+    background: #efd;
+    padding: 1px 3px 1px 1px;
+    border: 1px solid #bbb;
 }
 
-.calendar tbody td.active { /* Active (pressed) cells <TD> */
-  background: #dec;
-  padding: 2px 2px 0px 2px;
+.calendar tbody td.active {
+/* Active (pressed) cells <TD> */
+    background: #dec;
+    padding: 2px 2px 0px 2px;
 }
 
-.calendar tbody td.selected { /* Cell showing today date */
-  font-weight: bold;
-  border: 1px solid #000;
-  padding: 1px 3px 1px 1px;
-  background: #f8fff8;
-  color: #000;
+.calendar tbody td.selected {
+/* Cell showing today date */
+    font-weight: bold;
+    border: 1px solid #000;
+    padding: 1px 3px 1px 1px;
+    background: #f8fff8;
+    color: #000;
 }
 
-.calendar tbody td.weekend { /* Cells showing weekend days */
-  color: #a66;
+.calendar tbody td.weekend {
+/* Cells showing weekend days */
+    color: #a66;
 }
 
-.calendar tbody td.today { font-weight: bold; color: #0a0; }
-
-.calendar tbody .disabled { color: #999; }
-
-.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */
-  visibility: hidden;
+.calendar tbody td.today {
+    font-weight: bold;
+    color: #0a0;
 }
 
-.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */
-  display: none;
+.calendar tbody .disabled {
+    color: #999;
 }
 
-/* The footer part -- status bar and "Close" button */
-
-.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */
-  text-align: center;
-  background: #565;
-  color: #fff;
+.calendar tbody .emptycell {
+/* Empty cells (the best is to hide them) */
+    visibility: hidden;
 }
 
-.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */
-  padding: 2px;
-  background: #250;
-  color: #efa;
+.calendar tbody .emptyrow {
+/* Empty row (some months need less than 6 rows) */
+    display: none;
 }
 
-.calendar tfoot .hilite { /* Hover style for buttons in footer */
-  background: #afa;
-  border: 1px solid #084;
-  color: #000;
-  padding: 1px;
-}
+/* The footer part -- status bar and "Close" button */
 
-.calendar tfoot .active { /* Active (pressed) style for buttons in footer */
-  background: #7c7;
-  padding: 2px 0px 0px 2px;
+.calendar tfoot .footrow {
+/* The <TR> in footer (only one right now) */
+    text-align: center;
+    background: #565;
+    color: #fff;
+}
+
+.calendar tfoot .ttip {
+/* Tooltip (status bar) cell <TD> */
+    padding: 2px;
+    background: #250;
+    color: #efa;
+}
+
+.calendar tfoot .hilite {
+/* Hover style for buttons in footer */
+    background: #afa;
+    border: 1px solid #084;
+    color: #000;
+    padding: 1px;
+}
+
+.calendar tfoot .active {
+/* Active (pressed) style for buttons in footer */
+    background: #7c7;
+    padding: 2px 0px 0px 2px;
 }
 
 /* Combo boxes (menus that display months/years for direct selection) */
 
 .calendar .combo {
-  position: absolute;
-  display: none;
-  top: 0px;
-  left: 0px;
-  width: 4em;
-  cursor: default;
-  border: 1px solid #565;
-  background: #efd;
-  color: #000;
-  font-size: 90%;
-  z-index: 100;
+    position: absolute;
+    display: none;
+    top: 0px;
+    left: 0px;
+    width: 4em;
+    cursor: default;
+    border: 1px solid #565;
+    background: #efd;
+    color: #000;
+    font-size: 90%;
+    z-index: 100;
 }
 
 .calendar .combo .label,
-.calendar .combo .label-IEfix {
-  text-align: center;
-  padding: 1px;
+    .calendar .combo .label-IEfix {
+    text-align: center;
+    padding: 1px;
 }
 
 .calendar .combo .label-IEfix {
-  width: 4em;
+    width: 4em;
 }
 
 .calendar .combo .hilite {
-  background: #af8;
+    background: #af8;
 }
 
 .calendar .combo .active {
-  border-top: 1px solid #6a4;
-  border-bottom: 1px solid #6a4;
-  background: #efe;
-  font-weight: bold;
+    border-top: 1px solid #6a4;
+    border-bottom: 1px solid #6a4;
+    background: #efe;
+    font-weight: bold;
 }
 
 .calendar td.time {
-  border-top: 1px solid #8a8;
-  padding: 1px 0px;
-  text-align: center;
-  background-color: #dfb;
+    border-top: 1px solid #8a8;
+    padding: 1px 0px;
+    text-align: center;
+    background-color: #dfb;
 }
 
 .calendar td.time .hour,
-.calendar td.time .minute,
-.calendar td.time .ampm {
-  padding: 0px 3px 0px 4px;
-  border: 1px solid #898;
-  font-weight: bold;
-  background-color: #fff;
+    .calendar td.time .minute,
+    .calendar td.time .ampm {
+    padding: 0px 3px 0px 4px;
+    border: 1px solid #898;
+    font-weight: bold;
+    background-color: #fff;
 }
 
 .calendar td.time .ampm {
-  text-align: center;
+    text-align: center;
 }
 
 .calendar td.time .colon {
-  padding: 0px 2px 0px 3px;
-  font-weight: bold;
+    padding: 0px 2px 0px 3px;
+    font-weight: bold;
 }
 
 .calendar td.time span.hilite {
-  border-color: #000;
-  background-color: #686;
-  color: #fff;
+    border-color: #000;
+    background-color: #686;
+    color: #fff;
 }
 
 .calendar td.time span.active {
-  border-color: #f00;
-  background-color: #000;
-  color: #0f0;
+    border-color: #f00;
+    background-color: #000;
+    color: #0f0;
 }



Mime
View raw message