You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ws...@apache.org on 2005/09/24 06:21:09 UTC
svn commit: r291247 - in /struts/shale/trunk/clay-plugin/src:
java/org/apache/shale/clay/ java/org/apache/shale/clay/component/
java/org/apache/shale/clay/component/chain/
java/org/apache/shale/clay/config/ java/org/apache/shale/clay/config/beans/
java...
Author: wsmoak
Date: Fri Sep 23 21:20:32 2005
New Revision: 291247
URL: http://svn.apache.org/viewcvs?rev=291247&view=rev
Log:
Added missing svn props, fixed line endings. No other changes.
Modified:
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/Bundle.properties (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/LoadBundle.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AbstractCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignActionListenersCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignChildrenCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignConverterCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignPropertiesCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignValidatorsCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignValueChangeListenersCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/ClayContext.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateActionListenerCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateComponentCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateConverterCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateValidatorCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateValueChangeListenerCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyActionCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyActionListenerCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValidatorCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValueChangeListenerCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValueCommand.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/shale-clay-config.xml (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigParser.java (contents, props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigureListener.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayTemplateParser.java (contents, props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayXmlParser.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/Globals.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ActionListenerBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/AttributeBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ComponentBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ComponentConfigBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigBeanFactory.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigDefinitionsWatchdogFilter.java (contents, props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConverterBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ElementBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/InnerComponentBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/TemplateConfigBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ValidatorBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ValueChangeListenerBean.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandler.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java (contents, props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/AttributeTokenizer.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Node.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/NodeTokenizer.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Parser.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Token.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/BuilderFactory.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommandButtonBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommentBuilder.java (contents, props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/FormBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/InputTextBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/InputTextareaBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/MorphBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/OutputLabelBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/OutputLinkBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectBooleanCheckboxBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectItemBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectItemsBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectManyMenuBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectOneMenuBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectOneRadioBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/VerbatimBuilder.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/AnchorBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/BuilderRuleContext.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/DefaultBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/FormBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/InputBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/LabelBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/OptionBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/SelectBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/SpanBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/TextareaBuilderRule.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/shale-builder-config.xml (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/taglib/ClayTag.java (props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/FalseLookupCommand.java (contents, props changed)
struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/PropUtils.java (props changed)
struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/ConfigTestCase.java (props changed)
struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/TestActionListener.java (props changed)
struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/TestValueChangeListener.java (props changed)
struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/address-config.xml (props changed)
struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/address.html (props changed)
struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/parser/ParserTestCase.java (props changed)
struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/utils/PropUtilsTestCase.java (props changed)
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/Bundle.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/LoadBundle.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/LoadBundle.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AbstractCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AbstractCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignActionListenersCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignActionListenersCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignChildrenCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignChildrenCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignConverterCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignConverterCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignPropertiesCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignPropertiesCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignValidatorsCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignValidatorsCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignValueChangeListenersCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/AssignValueChangeListenersCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/ClayContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/ClayContext.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateActionListenerCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateActionListenerCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateComponentCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateComponentCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateConverterCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateConverterCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateValidatorCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateValidatorCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateValueChangeListenerCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/CreateValueChangeListenerCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyActionCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyActionCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyActionListenerCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyActionListenerCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValidatorCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValidatorCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValueChangeListenerCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValueChangeListenerCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValueCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/PropertyValueCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/shale-clay-config.xml
------------------------------------------------------------------------------
svn:keywords = author date id
Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigParser.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigParser.java?rev=291247&r1=291246&r2=291247&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigParser.java (original)
+++ struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigParser.java Fri Sep 23 21:20:32 2005
@@ -1,60 +1,60 @@
-/*
- * Copyright 2005 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.
- *
- * $Id$
- */
-
-package org.apache.shale.clay.config;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-import org.apache.shale.clay.config.beans.ConfigBean;
-import org.xml.sax.SAXException;
-
-/**
- * <p>This interfaces is used by a {@link ConfigBean} instance to load
- * a configuration file. These files come in two flavors XML and HTML.
- * The {@link org.apache.shale.clay.config.beans.ComponentConfigBean}
- * handles materializing XML documents into a graph of
- * {@link org.apache.shale.clay.config.beans.ComponentBean} and the
- * {@link org.apache.shale.clay.config.beans.TemplateConfigBean}
- * loads an HTML template into {@link org.apache.shale.clay.config.beans.ComponentBean}
- * object representations.
- * </p>
- */
-public interface ClayConfigParser {
-
- /**
- * <p>Sets an instance of the {@link ConfigBean} that pools a
- * collection of faces meta-component definitions.
- * </p>
- */
- public void setConfig(ConfigBean config);
-
- /**
- * <p>Returns an instance of the {@link ConfigBean} that pools a
- * collection of faces meta-component definitions.
- * </p>
- */
- public ConfigBean getConfig();
-
- /**
- * <p>Loads the <code>inputStream</code> identified by the <code>watchDogName</code>
- * into the {@link ConfigBean} object pool.</p>
- */
- public void loadConfigFile(InputStream inputStream, String watchDogName)
- throws IOException, SAXException;
-}
+/*
+ * Copyright 2005 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.
+ *
+ * $Id$
+ */
+
+package org.apache.shale.clay.config;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.apache.shale.clay.config.beans.ConfigBean;
+import org.xml.sax.SAXException;
+
+/**
+ * <p>This interfaces is used by a {@link ConfigBean} instance to load
+ * a configuration file. These files come in two flavors XML and HTML.
+ * The {@link org.apache.shale.clay.config.beans.ComponentConfigBean}
+ * handles materializing XML documents into a graph of
+ * {@link org.apache.shale.clay.config.beans.ComponentBean} and the
+ * {@link org.apache.shale.clay.config.beans.TemplateConfigBean}
+ * loads an HTML template into {@link org.apache.shale.clay.config.beans.ComponentBean}
+ * object representations.
+ * </p>
+ */
+public interface ClayConfigParser {
+
+ /**
+ * <p>Sets an instance of the {@link ConfigBean} that pools a
+ * collection of faces meta-component definitions.
+ * </p>
+ */
+ public void setConfig(ConfigBean config);
+
+ /**
+ * <p>Returns an instance of the {@link ConfigBean} that pools a
+ * collection of faces meta-component definitions.
+ * </p>
+ */
+ public ConfigBean getConfig();
+
+ /**
+ * <p>Loads the <code>inputStream</code> identified by the <code>watchDogName</code>
+ * into the {@link ConfigBean} object pool.</p>
+ */
+ public void loadConfigFile(InputStream inputStream, String watchDogName)
+ throws IOException, SAXException;
+}
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigParser.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigParser.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigureListener.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayConfigureListener.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayTemplateParser.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayTemplateParser.java?rev=291247&r1=291246&r2=291247&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayTemplateParser.java (original)
+++ struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayTemplateParser.java Fri Sep 23 21:20:32 2005
@@ -1,163 +1,163 @@
-/*
- * Copyright 2005 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.
- *
- * $Id$
- */
-package org.apache.shale.clay.config;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.shale.clay.config.beans.ComponentBean;
-import org.apache.shale.clay.config.beans.ComponentConfigBean;
-import org.apache.shale.clay.config.beans.ConfigBean;
-import org.apache.shale.clay.config.beans.ElementBean;
-import org.apache.shale.clay.parser.Node;
-import org.apache.shale.clay.parser.Parser;
-import org.apache.shale.clay.parser.builder.Builder;
-import org.apache.shale.util.Messages;
-import org.xml.sax.SAXException;
-
-/**
- * <p>This class is responsible for loading an HTML template into a graph
- * of {@link ComponentBean}'s that represents a JSF component tree. It
- * is used by {@link org.apache.shale.clay.config.beans.TemplateConfigBean},
- * a subclass of {@link org.apache.shale.clay.config.beans.ComponentConfigBean}.
- * </p>
- */
-public class ClayTemplateParser implements ClayConfigParser {
-
- /**
- * <p>Commons logging utility object static instance.</p>
- */
- private static Log log;
- static {
- log = LogFactory.getLog(org.apache.shale.clay.config.ClayXmlParser.class);
- }
-
- /**
- * <p>Message resources for this class.</p>
- */
- private static Messages messages = new Messages("org.apache.shale.clay.Bundle",
- ClayConfigureListener.class.getClassLoader());
-
-
- /**
- * <p>Object pool for HTML template configuration files.</p>
- */
- private ConfigBean config = null;
-
- /**
- * <p>Sets an object pool for HTML template configuration files.</p>
- */
- public void setConfig(ConfigBean config) {
- this.config = config;
- }
-
- /**
- * <p>Returns an object pool for HTML template configuration files.</p>
- */
- public ConfigBean getConfig() {
- return config;
- }
-
- /**
- * <p>Loads the <code>inputStream</code> identified by the <code>templateName</code>
- * into a graph of {@link ComponentBean}'s.</p>
- */
- public void loadConfigFile(InputStream inputStream, String templateName) throws IOException,
- SAXException {
-
- ((ComponentConfigBean) config).addChild(generateElement(inputStream, templateName));
- }
-
-
- /**
- * <p>Loads the template file and parses it into a composition
- * of metadata that's used by the {@link org.apache.shale.clay.component.Clay}
- * component. This metadata is used to construct a JSF subtree
- * within target view.
- * </p>
- */
- public ComponentBean generateElement(InputStream inputStream, String templateName) throws IOException {
-
- if (log.isInfoEnabled())
- log.info(messages.getMessage("loading.template", new Object[] {templateName}));
-
- ComponentBean root = new ComponentBean();
- root.setJsfid(templateName);
- root.setComponentType("javax.faces.NamingContainer");
-
- // generate the document
- StringBuffer buffer = loadTemplate(inputStream, templateName);
-
- List roots = new Parser().parse(buffer);
- Iterator ri = roots.iterator();
- while (ri.hasNext()) {
- Node node = (Node) ri.next();
- Builder renderer = node.getBuilder();
- ElementBean child = renderer.createElement(node);
-
- root.addChild(child);
- if (renderer.isChildrenAllowed()) {
- renderer.encode(node, child, child);
- } else {
- renderer.encode(node, child, root);
- }
- }
-
- roots = null;
- buffer = null;
- ri = null;
-
- return root;
- }
-
-
- /**
- * <p>Loads the template into a <code>StringBuffer</code> using
- * the <code>inputStream</code> and <code>templateName<code> parameters.
- * </p>
- */
- protected StringBuffer loadTemplate(InputStream inputStream, String templateName) throws IOException {
-
-
- StringBuffer buff = new StringBuffer();
-
- try {
- int c = 0;
- done: while (true) {
- c = inputStream.read();
- if (c > -1)
- buff.append((char) c);
- else
- break done;
-
- }
- } catch (IOException e) {
- log.error(messages.getMessage("loading.template.exception", new Object[] {templateName}), e);
- throw e;
- }
-
- return buff;
-
- }
-
-
-}
+/*
+ * Copyright 2005 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.
+ *
+ * $Id$
+ */
+package org.apache.shale.clay.config;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.shale.clay.config.beans.ComponentBean;
+import org.apache.shale.clay.config.beans.ComponentConfigBean;
+import org.apache.shale.clay.config.beans.ConfigBean;
+import org.apache.shale.clay.config.beans.ElementBean;
+import org.apache.shale.clay.parser.Node;
+import org.apache.shale.clay.parser.Parser;
+import org.apache.shale.clay.parser.builder.Builder;
+import org.apache.shale.util.Messages;
+import org.xml.sax.SAXException;
+
+/**
+ * <p>This class is responsible for loading an HTML template into a graph
+ * of {@link ComponentBean}'s that represents a JSF component tree. It
+ * is used by {@link org.apache.shale.clay.config.beans.TemplateConfigBean},
+ * a subclass of {@link org.apache.shale.clay.config.beans.ComponentConfigBean}.
+ * </p>
+ */
+public class ClayTemplateParser implements ClayConfigParser {
+
+ /**
+ * <p>Commons logging utility object static instance.</p>
+ */
+ private static Log log;
+ static {
+ log = LogFactory.getLog(org.apache.shale.clay.config.ClayXmlParser.class);
+ }
+
+ /**
+ * <p>Message resources for this class.</p>
+ */
+ private static Messages messages = new Messages("org.apache.shale.clay.Bundle",
+ ClayConfigureListener.class.getClassLoader());
+
+
+ /**
+ * <p>Object pool for HTML template configuration files.</p>
+ */
+ private ConfigBean config = null;
+
+ /**
+ * <p>Sets an object pool for HTML template configuration files.</p>
+ */
+ public void setConfig(ConfigBean config) {
+ this.config = config;
+ }
+
+ /**
+ * <p>Returns an object pool for HTML template configuration files.</p>
+ */
+ public ConfigBean getConfig() {
+ return config;
+ }
+
+ /**
+ * <p>Loads the <code>inputStream</code> identified by the <code>templateName</code>
+ * into a graph of {@link ComponentBean}'s.</p>
+ */
+ public void loadConfigFile(InputStream inputStream, String templateName) throws IOException,
+ SAXException {
+
+ ((ComponentConfigBean) config).addChild(generateElement(inputStream, templateName));
+ }
+
+
+ /**
+ * <p>Loads the template file and parses it into a composition
+ * of metadata that's used by the {@link org.apache.shale.clay.component.Clay}
+ * component. This metadata is used to construct a JSF subtree
+ * within target view.
+ * </p>
+ */
+ public ComponentBean generateElement(InputStream inputStream, String templateName) throws IOException {
+
+ if (log.isInfoEnabled())
+ log.info(messages.getMessage("loading.template", new Object[] {templateName}));
+
+ ComponentBean root = new ComponentBean();
+ root.setJsfid(templateName);
+ root.setComponentType("javax.faces.NamingContainer");
+
+ // generate the document
+ StringBuffer buffer = loadTemplate(inputStream, templateName);
+
+ List roots = new Parser().parse(buffer);
+ Iterator ri = roots.iterator();
+ while (ri.hasNext()) {
+ Node node = (Node) ri.next();
+ Builder renderer = node.getBuilder();
+ ElementBean child = renderer.createElement(node);
+
+ root.addChild(child);
+ if (renderer.isChildrenAllowed()) {
+ renderer.encode(node, child, child);
+ } else {
+ renderer.encode(node, child, root);
+ }
+ }
+
+ roots = null;
+ buffer = null;
+ ri = null;
+
+ return root;
+ }
+
+
+ /**
+ * <p>Loads the template into a <code>StringBuffer</code> using
+ * the <code>inputStream</code> and <code>templateName<code> parameters.
+ * </p>
+ */
+ protected StringBuffer loadTemplate(InputStream inputStream, String templateName) throws IOException {
+
+
+ StringBuffer buff = new StringBuffer();
+
+ try {
+ int c = 0;
+ done: while (true) {
+ c = inputStream.read();
+ if (c > -1)
+ buff.append((char) c);
+ else
+ break done;
+
+ }
+ } catch (IOException e) {
+ log.error(messages.getMessage("loading.template.exception", new Object[] {templateName}), e);
+ throw e;
+ }
+
+ return buff;
+
+ }
+
+
+}
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayTemplateParser.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayTemplateParser.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayXmlParser.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayXmlParser.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/Globals.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/Globals.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ActionListenerBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ActionListenerBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/AttributeBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/AttributeBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ComponentBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ComponentBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ComponentConfigBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ComponentConfigBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigBeanFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigBeanFactory.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigDefinitionsWatchdogFilter.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigDefinitionsWatchdogFilter.java?rev=291247&r1=291246&r2=291247&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigDefinitionsWatchdogFilter.java (original)
+++ struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigDefinitionsWatchdogFilter.java Fri Sep 23 21:20:32 2005
@@ -1,73 +1,73 @@
-/*
- * Copyright 2005 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.
- *
- * $Id$
- */
-
-package org.apache.shale.clay.config.beans;
-
-import org.apache.shale.application.AbstractRegExpFilter;
-import org.apache.shale.clay.config.Globals;
-import org.apache.shale.faces.ShaleWebContext;
-
-public class ConfigDefinitionsWatchdogFilter extends AbstractRegExpFilter {
-
- /**
- * <p>Return the servlet path (if any) concatenated with the path info
- * (if any) for this request.</p>
- *
- * @param context <code>Context</code> for the current request
- */
- protected String value(ShaleWebContext context) {
-
- String servletPath = context.getRequest().getServletPath();
- if (servletPath == null) {
- servletPath = "";
- }
- String pathInfo = context.getRequest().getPathInfo();
- if (pathInfo == null) {
- pathInfo = "";
- }
- return servletPath + pathInfo;
-
- }
-
- /**
- * <p>Override the base implementation to ignore this condition.</p>
- *
- * @param context <code>Context</code> for the current request
- */
- protected void reject(ShaleWebContext context) throws Exception {
- }
-
- /**
- * <p>Trigger reloading of the {@link org.apache.shale.clay.component.Clay}'s
- * xml configuration files if the <code>auto-reload-clay-files</code> init
- * parameter is set to <code>true</code> in the web.xml. The HTML templates
- * are re-cashed on-demand due to their atomicity. The XML configuration
- * files are shared by all {@link org.apache.shale.clay.component.Clay}
- * view composition mechanisms so all files must be reloaded if a change
- * is made.</p>
- *
- * @param context <code>Context</code> for the current request
- */
- protected void accept(ShaleWebContext context) throws Exception {
-
- ConfigBeanFactory.refresh();
- }
-
-
-
-}
+/*
+ * Copyright 2005 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.
+ *
+ * $Id$
+ */
+
+package org.apache.shale.clay.config.beans;
+
+import org.apache.shale.application.AbstractRegExpFilter;
+import org.apache.shale.clay.config.Globals;
+import org.apache.shale.faces.ShaleWebContext;
+
+public class ConfigDefinitionsWatchdogFilter extends AbstractRegExpFilter {
+
+ /**
+ * <p>Return the servlet path (if any) concatenated with the path info
+ * (if any) for this request.</p>
+ *
+ * @param context <code>Context</code> for the current request
+ */
+ protected String value(ShaleWebContext context) {
+
+ String servletPath = context.getRequest().getServletPath();
+ if (servletPath == null) {
+ servletPath = "";
+ }
+ String pathInfo = context.getRequest().getPathInfo();
+ if (pathInfo == null) {
+ pathInfo = "";
+ }
+ return servletPath + pathInfo;
+
+ }
+
+ /**
+ * <p>Override the base implementation to ignore this condition.</p>
+ *
+ * @param context <code>Context</code> for the current request
+ */
+ protected void reject(ShaleWebContext context) throws Exception {
+ }
+
+ /**
+ * <p>Trigger reloading of the {@link org.apache.shale.clay.component.Clay}'s
+ * xml configuration files if the <code>auto-reload-clay-files</code> init
+ * parameter is set to <code>true</code> in the web.xml. The HTML templates
+ * are re-cashed on-demand due to their atomicity. The XML configuration
+ * files are shared by all {@link org.apache.shale.clay.component.Clay}
+ * view composition mechanisms so all files must be reloaded if a change
+ * is made.</p>
+ *
+ * @param context <code>Context</code> for the current request
+ */
+ protected void accept(ShaleWebContext context) throws Exception {
+
+ ConfigBeanFactory.refresh();
+ }
+
+
+
+}
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigDefinitionsWatchdogFilter.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConfigDefinitionsWatchdogFilter.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConverterBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ConverterBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ElementBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ElementBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/InnerComponentBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/InnerComponentBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/TemplateConfigBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/TemplateConfigBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ValidatorBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ValidatorBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ValueChangeListenerBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/beans/ValueChangeListenerBean.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandler.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandler.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java?rev=291247&r1=291246&r2=291247&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java (original)
+++ struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java Fri Sep 23 21:20:32 2005
@@ -1,82 +1,82 @@
-/*
- * Copyright 2005 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.
- *
- * $Id$
- */
-
-package org.apache.shale.clay.faces;
-
-import org.apache.commons.chain.Command;
-import org.apache.commons.chain.Context;
-import org.apache.shale.clay.config.Globals;
-import org.apache.shale.faces.ShaleWebContext;
-
-/**
- * This is a Shale "preprocess" command that should be registered
- * with the shale chains catalog. It is only need for implementing
- * full html Clay views with myfaces. The myfaces implementation pays
- * strict attention to the javax.faces.DEFAULT_SUFFIX, only allowing viewId's
- * with this suffix. This command will place an indicator in request scope
- * before the request is processed by the faces servlet. The {@link ClayViewHandler}
- * will use the indicator to determine that the view should be handled by the
- * {@link ClayViewHandler}.
- *
- */
-public class ClayViewHandlerCommand implements Command {
-
- /**
- * <p>Holds the suffix used to identify a Clay HTML full view template.</p>
- */
- private String suffix = null;
-
- /**
- * <p>Looks at the request uri to determine if the target page
- * is a clay template. If the request's pathInfo matches the
- * clay template suffix, a flag is added to the request attributes.
- * This is need for the MyFaces JSF implementation.
- */
- public boolean execute(Context context) throws Exception {
-
- ShaleWebContext webContext = (ShaleWebContext) context;
- if (isClayTemplate(webContext)) {
- webContext.getRequest().setAttribute(Globals.CLAY_TEMPLATE_SUFFIX, Boolean.TRUE);
- }
-
- return false;
- }
-
-
- /**
- * <p>Returns <code>true</code> if the request's <code>uri</code> has a
- * matching <code>suffix</code>. The <code>suffix</code> is determined
- * by an initialization parameter in the web deployment descriptor,
- * <code>clay-template-suffix</code>. The default suffix, if one
- * is not specified, is ".clay".
- * </p>
- */
- protected boolean isClayTemplate(ShaleWebContext context) {
- if (suffix == null) {
- suffix = (String) context.getContext().getInitParameter(
- Globals.CLAY_TEMPLATE_SUFFIX);
- if (suffix == null) {
- suffix = Globals.CLAY_DEFAULT_TEMPLATE_SUFFIX;
- }
- }
- String uri = context.getRequest().getRequestURI();
- return (uri != null) && (uri.endsWith(suffix));
- }
-
-
-}
+/*
+ * Copyright 2005 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.
+ *
+ * $Id$
+ */
+
+package org.apache.shale.clay.faces;
+
+import org.apache.commons.chain.Command;
+import org.apache.commons.chain.Context;
+import org.apache.shale.clay.config.Globals;
+import org.apache.shale.faces.ShaleWebContext;
+
+/**
+ * This is a Shale "preprocess" command that should be registered
+ * with the shale chains catalog. It is only need for implementing
+ * full html Clay views with myfaces. The myfaces implementation pays
+ * strict attention to the javax.faces.DEFAULT_SUFFIX, only allowing viewId's
+ * with this suffix. This command will place an indicator in request scope
+ * before the request is processed by the faces servlet. The {@link ClayViewHandler}
+ * will use the indicator to determine that the view should be handled by the
+ * {@link ClayViewHandler}.
+ *
+ */
+public class ClayViewHandlerCommand implements Command {
+
+ /**
+ * <p>Holds the suffix used to identify a Clay HTML full view template.</p>
+ */
+ private String suffix = null;
+
+ /**
+ * <p>Looks at the request uri to determine if the target page
+ * is a clay template. If the request's pathInfo matches the
+ * clay template suffix, a flag is added to the request attributes.
+ * This is need for the MyFaces JSF implementation.
+ */
+ public boolean execute(Context context) throws Exception {
+
+ ShaleWebContext webContext = (ShaleWebContext) context;
+ if (isClayTemplate(webContext)) {
+ webContext.getRequest().setAttribute(Globals.CLAY_TEMPLATE_SUFFIX, Boolean.TRUE);
+ }
+
+ return false;
+ }
+
+
+ /**
+ * <p>Returns <code>true</code> if the request's <code>uri</code> has a
+ * matching <code>suffix</code>. The <code>suffix</code> is determined
+ * by an initialization parameter in the web deployment descriptor,
+ * <code>clay-template-suffix</code>. The default suffix, if one
+ * is not specified, is ".clay".
+ * </p>
+ */
+ protected boolean isClayTemplate(ShaleWebContext context) {
+ if (suffix == null) {
+ suffix = (String) context.getContext().getInitParameter(
+ Globals.CLAY_TEMPLATE_SUFFIX);
+ if (suffix == null) {
+ suffix = Globals.CLAY_DEFAULT_TEMPLATE_SUFFIX;
+ }
+ }
+ String uri = context.getRequest().getRequestURI();
+ return (uri != null) && (uri.endsWith(suffix));
+ }
+
+
+}
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/AttributeTokenizer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/AttributeTokenizer.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Node.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Node.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/NodeTokenizer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/NodeTokenizer.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Parser.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Parser.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Token.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/Token.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/Builder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/BuilderFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/BuilderFactory.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommandButtonBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommandButtonBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommentBuilder.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommentBuilder.java?rev=291247&r1=291246&r2=291247&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommentBuilder.java (original)
+++ struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommentBuilder.java Fri Sep 23 21:20:32 2005
@@ -1,92 +1,92 @@
-/*
- * Copyright 2005 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.
- *
- * $Id$
- */
-package org.apache.shale.clay.parser.builder;
-
-import java.util.Iterator;
-
-import org.apache.shale.clay.config.beans.AttributeBean;
-import org.apache.shale.clay.config.beans.ComponentBean;
-import org.apache.shale.clay.config.beans.ElementBean;
-import org.apache.shale.clay.parser.Node;
-
-/**
- * <p>This {@link Builder} will render a HTML {@link Node} as
- * an HTML comment. All nodes under the comment will be concatenated
- * as their original raw text value within the HTML document.
- * </p>
- *
- */
-public class CommentBuilder extends VerbatimBuilder {
-
- /**
- * <p>This method is overridden to return a <code>true</code> value indicating
- * that this {@link Builder} will handle child nodes under the
- * associated HTML {@link Node}. This method can easily be confused
- * with the <code>isChildrenAllowed()</code> method of the super
- * class {@link Builder}. The distinction is that the
- * <code>isChildrenAllowed()</code> method signifies that the
- * associated JSF component supports children components. This method
- * signifies that this builder will handle building child nodes
- * similarly to the jsf component's <code>getRendersChildren()</code> method.
- */
- protected boolean getBuildNodeBody(Node node, ElementBean target) {
- return true;
- }
-
- /**
- * <p>The super implementation is invoked to build a target
- * {@link org.apache.shale.clay.config.beans.ElementBean}.
- * The body of the comment is constructed by capturing the text
- * of all child HTML nodes within the comment body.</p>
- */
- protected void encodeBegin(Node node, ElementBean target, ComponentBean root) {
- super.encodeBegin(node, target, root);
-
- AttributeBean valueAttr = (AttributeBean) target.getAttribute("value");
- StringBuffer comment = new StringBuffer(valueAttr.getValue());
- captureComment(node, comment);
- valueAttr.setValue(comment.toString());
-
- }
-
- /**
- * <p>Recursively traverses the children of the HTML
- * {@link org.apache.shale.clay.parser.Node} concatenating
- * the raw text of each {@link org.apache.shale.clay.parser.Token}
- * into the <code>commentBody</code>.</p>
- */
- protected void captureComment(Node node, StringBuffer commentBody) {
- Iterator ni = node.getChildren().iterator();
- while (ni.hasNext()) {
- Node child = (Node) ni.next();
- commentBody.append(child.getToken().getRawText());
- captureComment(child, commentBody);
- }
- }
-
-
- /**
- * <p>This override cancels the super implementation. The overridden
- * method handles the ending comment tag, "-->".</p>
- */
- protected void encodeEnd(Node node, ElementBean target, ComponentBean root) {
-
- }
-
-
-}
+/*
+ * Copyright 2005 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.
+ *
+ * $Id$
+ */
+package org.apache.shale.clay.parser.builder;
+
+import java.util.Iterator;
+
+import org.apache.shale.clay.config.beans.AttributeBean;
+import org.apache.shale.clay.config.beans.ComponentBean;
+import org.apache.shale.clay.config.beans.ElementBean;
+import org.apache.shale.clay.parser.Node;
+
+/**
+ * <p>This {@link Builder} will render a HTML {@link Node} as
+ * an HTML comment. All nodes under the comment will be concatenated
+ * as their original raw text value within the HTML document.
+ * </p>
+ *
+ */
+public class CommentBuilder extends VerbatimBuilder {
+
+ /**
+ * <p>This method is overridden to return a <code>true</code> value indicating
+ * that this {@link Builder} will handle child nodes under the
+ * associated HTML {@link Node}. This method can easily be confused
+ * with the <code>isChildrenAllowed()</code> method of the super
+ * class {@link Builder}. The distinction is that the
+ * <code>isChildrenAllowed()</code> method signifies that the
+ * associated JSF component supports children components. This method
+ * signifies that this builder will handle building child nodes
+ * similarly to the jsf component's <code>getRendersChildren()</code> method.
+ */
+ protected boolean getBuildNodeBody(Node node, ElementBean target) {
+ return true;
+ }
+
+ /**
+ * <p>The super implementation is invoked to build a target
+ * {@link org.apache.shale.clay.config.beans.ElementBean}.
+ * The body of the comment is constructed by capturing the text
+ * of all child HTML nodes within the comment body.</p>
+ */
+ protected void encodeBegin(Node node, ElementBean target, ComponentBean root) {
+ super.encodeBegin(node, target, root);
+
+ AttributeBean valueAttr = (AttributeBean) target.getAttribute("value");
+ StringBuffer comment = new StringBuffer(valueAttr.getValue());
+ captureComment(node, comment);
+ valueAttr.setValue(comment.toString());
+
+ }
+
+ /**
+ * <p>Recursively traverses the children of the HTML
+ * {@link org.apache.shale.clay.parser.Node} concatenating
+ * the raw text of each {@link org.apache.shale.clay.parser.Token}
+ * into the <code>commentBody</code>.</p>
+ */
+ protected void captureComment(Node node, StringBuffer commentBody) {
+ Iterator ni = node.getChildren().iterator();
+ while (ni.hasNext()) {
+ Node child = (Node) ni.next();
+ commentBody.append(child.getToken().getRawText());
+ captureComment(child, commentBody);
+ }
+ }
+
+
+ /**
+ * <p>This override cancels the super implementation. The overridden
+ * method handles the ending comment tag, "-->".</p>
+ */
+ protected void encodeEnd(Node node, ElementBean target, ComponentBean root) {
+
+ }
+
+
+}
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommentBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/CommentBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/FormBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/FormBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/InputTextBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/InputTextBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/InputTextareaBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/InputTextareaBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/MorphBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/MorphBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/OutputLabelBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/OutputLabelBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/OutputLinkBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/OutputLinkBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectBooleanCheckboxBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectBooleanCheckboxBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectItemBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectItemBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectItemsBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectItemsBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectManyMenuBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectManyMenuBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectOneMenuBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectOneMenuBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectOneRadioBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/SelectOneRadioBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/VerbatimBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/VerbatimBuilder.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/AnchorBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/AnchorBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/BuilderRuleContext.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/BuilderRuleContext.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/DefaultBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/DefaultBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/FormBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/FormBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/InputBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/InputBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/LabelBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/LabelBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/OptionBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/OptionBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/SelectBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/SelectBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/SpanBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/SpanBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/TextareaBuilderRule.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/TextareaBuilderRule.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/parser/builder/chain/shale-builder-config.xml
------------------------------------------------------------------------------
svn:keywords = author date id
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/taglib/ClayTag.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/taglib/ClayTag.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/FalseLookupCommand.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/FalseLookupCommand.java?rev=291247&r1=291246&r2=291247&view=diff
==============================================================================
--- struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/FalseLookupCommand.java (original)
+++ struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/FalseLookupCommand.java Fri Sep 23 21:20:32 2005
@@ -1,34 +1,34 @@
-/*
- * Copyright 2005 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.
- *
- * $Id$
- */
-
-package org.apache.shale.clay.utils;
-
-import org.apache.commons.chain.Context;
-import org.apache.commons.chain.generic.LookupCommand;
-
-/**
- * Very similar to the LookupCommand of commons chain, but the execute method
- * return always false to continue the processing.
- * @see org.apache.commons.chain.generic.LookupCommand
- */
-public class FalseLookupCommand extends LookupCommand {
- public boolean execute(Context context) throws Exception {
- super.execute(context);
- return false;
- }
-}
+/*
+ * Copyright 2005 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.
+ *
+ * $Id$
+ */
+
+package org.apache.shale.clay.utils;
+
+import org.apache.commons.chain.Context;
+import org.apache.commons.chain.generic.LookupCommand;
+
+/**
+ * Very similar to the LookupCommand of commons chain, but the execute method
+ * return always false to continue the processing.
+ * @see org.apache.commons.chain.generic.LookupCommand
+ */
+public class FalseLookupCommand extends LookupCommand {
+ public boolean execute(Context context) throws Exception {
+ super.execute(context);
+ return false;
+ }
+}
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/FalseLookupCommand.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/FalseLookupCommand.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/PropUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/utils/PropUtils.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/ConfigTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/ConfigTestCase.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/TestActionListener.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/TestActionListener.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/TestValueChangeListener.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/TestValueChangeListener.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/address-config.xml
------------------------------------------------------------------------------
svn:keywords = author date id
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/config/address.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/parser/ParserTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/parser/ParserTestCase.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/utils/PropUtilsTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: struts/shale/trunk/clay-plugin/src/test/org/apache/shale/clay/utils/PropUtilsTestCase.java
------------------------------------------------------------------------------
svn:keywords = date author id rev
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org