You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2011/10/22 19:59:37 UTC
svn commit: r1187741 [5/11] - in /myfaces/shared/trunk: ./
core/src/main/java/org/apache/myfaces/shared/
core/src/main/java/org/apache/myfaces/shared/application/
core/src/main/java/org/apache/myfaces/shared/component/
core/src/main/java/org/apache/myf...
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/resource/ResourceMetaImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/resource/ResourceMetaImpl.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/UIComponentBodyELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/UIComponentBodyTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/UIComponentTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/UIComponentTagUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/ConvertDateTimeTagBase.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/ConvertDateTimeTagBase.java?rev=1187741&r1=1187740&r2=1187741&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/ConvertDateTimeTagBase.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/ConvertDateTimeTagBase.java Sat Oct 22 17:59:32 2011
@@ -32,8 +32,8 @@ import javax.servlet.jsp.JspException;
import org.apache.myfaces.shared.util.LocaleUtils;
/**
- * @author Manfred Geiler (latest modification by $Author: schof $)
- * @version $Revision: 382015 $ $Date: 2006-03-01 14:47:11 +0100 (Wed, 01 Mar 2006) $
+ * @author Manfred Geiler (latest modification by $Author$)
+ * @version $Revision$ $Date$
*/
public class ConvertDateTimeTagBase
extends ConverterTag
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/ConvertDateTimeTagBase.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/core/SelectItemTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlCommandButtonELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlCommandButtonTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlCommandLinkELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlCommandLinkTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlComponentBodyELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlComponentBodyTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlComponentELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlComponentTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlDataTableELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlDataTableTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlFormELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlFormTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlGraphicImageELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlGraphicImageTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputHiddenELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputHiddenTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputSecretELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputSecretTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputTextELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputTextTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputTextareaELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlInputTextareaTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlMessageELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlMessageTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlMessagesELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlMessagesTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputFormatELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputFormatTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputLabelELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputLabelTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputLinkELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputLinkTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputTextELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlOutputTextTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlPanelGridELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlPanelGridTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlPanelGroupELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlPanelGroupTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectBooleanCheckboxELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectBooleanCheckboxTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectListboxELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectListboxTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectManyCheckboxELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectManyCheckboxTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectMenuELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectMenuTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectOneRadioELTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/taglib/html/HtmlSelectOneRadioTagBase.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/test/ClassElementHandler.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ArrayUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/BiLevelCacheMap.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ClassLoaderExtension.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ClassLoaderExtension.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ClassLoaderUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ClassLoaderUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ClassUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/CommentUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/CommentUtils.java?rev=1187741&r1=1187740&r2=1187741&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/CommentUtils.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/CommentUtils.java Sat Oct 22 17:59:32 2011
@@ -1,131 +1,131 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.shared.util;
-
-/**
- * This class contains utility methods to detect special cases to be handled on "script" or
- * "style" tags by HtmlResponseWriterImpl.
- *
- * @author Leonardo Uribe (latest modification by $Author: jakobk $)
- * @version $Revision: 937069 $ $Date: 2010-04-22 16:19:29 -0500 (Jue, 22 Abr 2010) $
- */
-public class CommentUtils
-{
- public static final String INLINE_SCRIPT_COMMENT = "//";
- public static final String START_SCRIPT_COMMENT = "/*";
- public static final String END_SCRIPT_COMMENT = "*/";
- public static final String CDATA_SIMPLE_START = "<![CDATA[";
- public static final String CDATA_SIMPLE_END = "]]>";
- public static final String COMMENT_SIMPLE_START = "<!--";
- public static final String COMMENT_SIMPLE_END = "-->";
-
- public static boolean isStartMatchWithCommentedCDATA(String trimmedContent)
- {
- if (trimmedContent.startsWith(START_SCRIPT_COMMENT))
- {
- int offset = 2;
- while (trimmedContent.charAt(offset) <= ' ')
- {
- offset++;
- }
- if (trimmedContent.startsWith(CDATA_SIMPLE_START, offset))
- {
- return true;
- }
- }
- return false;
- }
-
- public static boolean isEndMatchWithCommentedCDATA(String trimmedContent)
- {
- if (trimmedContent.endsWith(END_SCRIPT_COMMENT))
- {
- int offset = trimmedContent.length()-3;
- while (trimmedContent.charAt(offset) <= ' ')
- {
- offset--;
- }
- // CDATA_SIMPLE_END.length() = 3
- // So, -3 +1 = -2
- if (trimmedContent.startsWith(CDATA_SIMPLE_END, offset - 2))
- {
- return true;
- }
- }
- return false;
- }
-
- public static boolean isEndMatchtWithInlineCommentedXmlCommentTag(String trimmedContent)
- {
- if (trimmedContent.endsWith(COMMENT_SIMPLE_END))
- {
- int offset = trimmedContent.length()-4;
- while (trimmedContent.charAt(offset) <= ' ' &&
- trimmedContent.charAt(offset) != '\n')
- {
- offset--;
- }
- // INLINE_SCRIPT_COMMENT.length() = 2
- // So, -2 +1 = -1
- if (trimmedContent.startsWith(INLINE_SCRIPT_COMMENT, offset - 1))
- {
- return true;
- }
- }
- return false;
- }
-
- public static boolean isStartMatchWithInlineCommentedCDATA(String trimmedContent)
- {
- if (trimmedContent.startsWith(INLINE_SCRIPT_COMMENT))
- {
- int offset = 2;
- while (trimmedContent.charAt(offset) <= ' ' &&
- trimmedContent.charAt(offset) != '\n')
- {
- offset++;
- }
- if (trimmedContent.startsWith(CDATA_SIMPLE_START, offset))
- {
- return true;
- }
- }
- return false;
- }
-
- public static boolean isEndMatchWithInlineCommentedCDATA(String trimmedContent)
- {
- if (trimmedContent.endsWith(CDATA_SIMPLE_END))
- {
- int offset = trimmedContent.length()- 4;
- while (trimmedContent.charAt(offset) <= ' ' &&
- trimmedContent.charAt(offset) != '\n')
- {
- offset--;
- }
- // INLINE_SCRIPT_COMMENT.length() = 2
- // So, -2 +1 = -1
- if (trimmedContent.startsWith(INLINE_SCRIPT_COMMENT, offset - 1))
- {
- return true;
- }
- }
- return false;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.shared.util;
+
+/**
+ * This class contains utility methods to detect special cases to be handled on "script" or
+ * "style" tags by HtmlResponseWriterImpl.
+ *
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public class CommentUtils
+{
+ public static final String INLINE_SCRIPT_COMMENT = "//";
+ public static final String START_SCRIPT_COMMENT = "/*";
+ public static final String END_SCRIPT_COMMENT = "*/";
+ public static final String CDATA_SIMPLE_START = "<![CDATA[";
+ public static final String CDATA_SIMPLE_END = "]]>";
+ public static final String COMMENT_SIMPLE_START = "<!--";
+ public static final String COMMENT_SIMPLE_END = "-->";
+
+ public static boolean isStartMatchWithCommentedCDATA(String trimmedContent)
+ {
+ if (trimmedContent.startsWith(START_SCRIPT_COMMENT))
+ {
+ int offset = 2;
+ while (trimmedContent.charAt(offset) <= ' ')
+ {
+ offset++;
+ }
+ if (trimmedContent.startsWith(CDATA_SIMPLE_START, offset))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public static boolean isEndMatchWithCommentedCDATA(String trimmedContent)
+ {
+ if (trimmedContent.endsWith(END_SCRIPT_COMMENT))
+ {
+ int offset = trimmedContent.length()-3;
+ while (trimmedContent.charAt(offset) <= ' ')
+ {
+ offset--;
+ }
+ // CDATA_SIMPLE_END.length() = 3
+ // So, -3 +1 = -2
+ if (trimmedContent.startsWith(CDATA_SIMPLE_END, offset - 2))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public static boolean isEndMatchtWithInlineCommentedXmlCommentTag(String trimmedContent)
+ {
+ if (trimmedContent.endsWith(COMMENT_SIMPLE_END))
+ {
+ int offset = trimmedContent.length()-4;
+ while (trimmedContent.charAt(offset) <= ' ' &&
+ trimmedContent.charAt(offset) != '\n')
+ {
+ offset--;
+ }
+ // INLINE_SCRIPT_COMMENT.length() = 2
+ // So, -2 +1 = -1
+ if (trimmedContent.startsWith(INLINE_SCRIPT_COMMENT, offset - 1))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public static boolean isStartMatchWithInlineCommentedCDATA(String trimmedContent)
+ {
+ if (trimmedContent.startsWith(INLINE_SCRIPT_COMMENT))
+ {
+ int offset = 2;
+ while (trimmedContent.charAt(offset) <= ' ' &&
+ trimmedContent.charAt(offset) != '\n')
+ {
+ offset++;
+ }
+ if (trimmedContent.startsWith(CDATA_SIMPLE_START, offset))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public static boolean isEndMatchWithInlineCommentedCDATA(String trimmedContent)
+ {
+ if (trimmedContent.endsWith(CDATA_SIMPLE_END))
+ {
+ int offset = trimmedContent.length()- 4;
+ while (trimmedContent.charAt(offset) <= ' ' &&
+ trimmedContent.charAt(offset) != '\n')
+ {
+ offset--;
+ }
+ // INLINE_SCRIPT_COMMENT.length() = 2
+ // So, -2 +1 = -1
+ if (trimmedContent.startsWith(INLINE_SCRIPT_COMMENT, offset - 1))
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+}
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/CommentUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/CommentUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/FastWriter.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/FastWriter.java?rev=1187741&r1=1187740&r2=1187741&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/FastWriter.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/FastWriter.java Sat Oct 22 17:59:32 2011
@@ -1,110 +1,110 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.shared.util;
-
-import java.io.IOException;
-import java.io.Writer;
-
-/**
- * StringWriter cannot be reused without create a new object over and over.
- * This class provide a simple implementation that allows reuse the same buffer
- * in a efficient way.
- *
- * @author Jacob Hookom
- * @version $Id: FastWriter.java,v 1.4 2008/07/13 19:01:34 rlubke Exp $
- */
-public final class FastWriter extends Writer
-{
-
- private char[] buff;
- private int size;
-
- public FastWriter()
- {
- this(1024);
- }
-
- public FastWriter(int initialSize)
- {
- if (initialSize < 0)
- {
- throw new IllegalArgumentException("Initial Size cannot be less than 0");
- }
- this.buff = new char[initialSize];
- }
-
- public void close() throws IOException
- {
- // do nothing
- }
-
- public void flush() throws IOException
- {
- // do nothing
- }
-
- private final void overflow(int len)
- {
- if (this.size + len > this.buff.length)
- {
- char[] next = new char[(this.size + len) * 2];
- System.arraycopy(this.buff, 0, next, 0, this.size);
- this.buff = next;
- }
- }
-
- public void write(char[] cbuf, int off, int len) throws IOException
- {
- overflow(len);
- System.arraycopy(cbuf, off, this.buff, this.size, len);
- this.size += len;
- }
-
- public void write(char[] cbuf) throws IOException
- {
- this.write(cbuf, 0, cbuf.length);
- }
-
- public void write(int c) throws IOException
- {
- this.overflow(1);
- this.buff[this.size] = (char) c;
- this.size++;
- }
-
- public void write(String str, int off, int len) throws IOException
- {
- this.write(str.toCharArray(), off, len);
- }
-
- public void write(String str) throws IOException
- {
- this.write(str.toCharArray(), 0, str.length());
- }
-
- public void reset()
- {
- this.size = 0;
- }
-
- public String toString()
- {
- return new String(this.buff, 0, this.size);
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.shared.util;
+
+import java.io.IOException;
+import java.io.Writer;
+
+/**
+ * StringWriter cannot be reused without create a new object over and over.
+ * This class provide a simple implementation that allows reuse the same buffer
+ * in a efficient way.
+ *
+ * @author Jacob Hookom
+ * @version $Id$
+ */
+public final class FastWriter extends Writer
+{
+
+ private char[] buff;
+ private int size;
+
+ public FastWriter()
+ {
+ this(1024);
+ }
+
+ public FastWriter(int initialSize)
+ {
+ if (initialSize < 0)
+ {
+ throw new IllegalArgumentException("Initial Size cannot be less than 0");
+ }
+ this.buff = new char[initialSize];
+ }
+
+ public void close() throws IOException
+ {
+ // do nothing
+ }
+
+ public void flush() throws IOException
+ {
+ // do nothing
+ }
+
+ private final void overflow(int len)
+ {
+ if (this.size + len > this.buff.length)
+ {
+ char[] next = new char[(this.size + len) * 2];
+ System.arraycopy(this.buff, 0, next, 0, this.size);
+ this.buff = next;
+ }
+ }
+
+ public void write(char[] cbuf, int off, int len) throws IOException
+ {
+ overflow(len);
+ System.arraycopy(cbuf, off, this.buff, this.size, len);
+ this.size += len;
+ }
+
+ public void write(char[] cbuf) throws IOException
+ {
+ this.write(cbuf, 0, cbuf.length);
+ }
+
+ public void write(int c) throws IOException
+ {
+ this.overflow(1);
+ this.buff[this.size] = (char) c;
+ this.size++;
+ }
+
+ public void write(String str, int off, int len) throws IOException
+ {
+ this.write(str.toCharArray(), off, len);
+ }
+
+ public void write(String str) throws IOException
+ {
+ this.write(str.toCharArray(), 0, str.length());
+ }
+
+ public void reset()
+ {
+ this.size = 0;
+ }
+
+ public String toString()
+ {
+ return new String(this.buff, 0, this.size);
+ }
+}
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/FastWriter.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/FastWriter.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/HashMapUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/LocaleUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MessageUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MyFacesClassLoader.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MyFacesClassLoader.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MyFacesObjectInputStream.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MyFacesObjectInputStream.java?rev=1187741&r1=1187740&r2=1187741&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MyFacesObjectInputStream.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MyFacesObjectInputStream.java Sat Oct 22 17:59:32 2011
@@ -30,8 +30,8 @@ import java.io.ObjectStreamClass;
* the input stream. The solution appears to be to subclass ObjectInputStream
* (eg. CustomInputStream), and specify a different class-loading mechanism.
*
- * @author Robert Gothan <ro...@funkyjazz.net> (latest modification by $Author: schof $)
- * @version $Revision: 382015 $ $Date: 2006-03-01 08:47:11 -0500 (Wed, 01 Mar 2006) $
+ * @author Robert Gothan <ro...@funkyjazz.net> (latest modification by $Author$)
+ * @version $Revision$ $Date$
*/
public class MyFacesObjectInputStream
extends ObjectInputStream
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/MyFacesObjectInputStream.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/NullEnumeration.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/NullIterator.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ParametrizableFacesMessage.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ParametrizableFacesMessage.java?rev=1187741&r1=1187740&r2=1187741&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ParametrizableFacesMessage.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ParametrizableFacesMessage.java Sat Oct 22 17:59:32 2011
@@ -1,153 +1,153 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.shared.util;
-
-import java.text.MessageFormat;
-import java.util.Locale;
-
-import javax.el.ValueExpression;
-import javax.faces.application.FacesMessage;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
-
-/**
- * This class encapsulates a FacesMessage to evaluate the label
- * expression on render response, where f:loadBundle is available
- *
- * @author Leonardo Uribe (latest modification by $Author: skitching $)
- * @version $Revision: 676298 $ $Date: 2008-07-13 05:31:48 -0500 (Dom, 13 Jul 2008) $
- */
-public class ParametrizableFacesMessage extends FacesMessage
-{
- /**
- *
- */
- private static final long serialVersionUID = 7792947730961657948L;
-
- private final Object _args[];
- private String _evaluatedDetail;
- private String _evaluatedSummary;
- private transient Object _evaluatedArgs[];
- private Locale _locale;
-
- public ParametrizableFacesMessage(
- String summary, String detail, Object[] args, Locale locale)
- {
- super(summary, detail);
- if(locale == null) throw new NullPointerException("locale");
- _locale = locale;
- _args = args;
- }
-
- public ParametrizableFacesMessage(FacesMessage.Severity severity,
- String summary, String detail, Object[] args, Locale locale)
- {
- super(severity, summary, detail);
- if(locale == null) throw new NullPointerException("locale");
- _locale = locale;
- _args = args;
- }
-
- @Override
- public String getDetail()
- {
- if (_evaluatedArgs == null && _args != null)
- {
- evaluateArgs();
- }
- if (_evaluatedDetail == null)
- {
- MessageFormat format = new MessageFormat(super.getDetail(), _locale);
- _evaluatedDetail = format.format(_evaluatedArgs);
- }
- return _evaluatedDetail;
- }
-
- @Override
- public void setDetail(String detail)
- {
- super.setDetail(detail);
- _evaluatedDetail = null;
- }
-
- public String getUnformattedDetail()
- {
- return super.getDetail();
- }
-
- @Override
- public String getSummary()
- {
- if (_evaluatedArgs == null && _args != null)
- {
- evaluateArgs();
- }
- if (_evaluatedSummary == null)
- {
- MessageFormat format = new MessageFormat(super.getSummary(), _locale);
- _evaluatedSummary = format.format(_evaluatedArgs);
- }
- return _evaluatedSummary;
- }
-
- @Override
- public void setSummary(String summary)
- {
- super.setSummary(summary);
- _evaluatedSummary = null;
- }
-
- public String getUnformattedSummary()
- {
- return super.getSummary();
- }
-
- private void evaluateArgs()
- {
- _evaluatedArgs = new Object[_args.length];
- FacesContext facesContext = null;
- for (int i = 0; i < _args.length; i++)
- {
- if (_args[i] == null)
- {
- continue;
- }
- else if (_args[i] instanceof ValueBinding)
- {
- if (facesContext == null)
- {
- facesContext = FacesContext.getCurrentInstance();
- }
- _evaluatedArgs[i] = ((ValueBinding)_args[i]).getValue(facesContext);
- }
- else if (_args[i] instanceof ValueExpression)
- {
- if (facesContext == null)
- {
- facesContext = FacesContext.getCurrentInstance();
- }
- _evaluatedArgs[i] = ((ValueExpression)_args[i]).getValue(facesContext.getELContext());
- }
- else
- {
- _evaluatedArgs[i] = _args[i];
- }
- }
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.shared.util;
+
+import java.text.MessageFormat;
+import java.util.Locale;
+
+import javax.el.ValueExpression;
+import javax.faces.application.FacesMessage;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+/**
+ * This class encapsulates a FacesMessage to evaluate the label
+ * expression on render response, where f:loadBundle is available
+ *
+ * @author Leonardo Uribe (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public class ParametrizableFacesMessage extends FacesMessage
+{
+ /**
+ *
+ */
+ private static final long serialVersionUID = 7792947730961657948L;
+
+ private final Object _args[];
+ private String _evaluatedDetail;
+ private String _evaluatedSummary;
+ private transient Object _evaluatedArgs[];
+ private Locale _locale;
+
+ public ParametrizableFacesMessage(
+ String summary, String detail, Object[] args, Locale locale)
+ {
+ super(summary, detail);
+ if(locale == null) throw new NullPointerException("locale");
+ _locale = locale;
+ _args = args;
+ }
+
+ public ParametrizableFacesMessage(FacesMessage.Severity severity,
+ String summary, String detail, Object[] args, Locale locale)
+ {
+ super(severity, summary, detail);
+ if(locale == null) throw new NullPointerException("locale");
+ _locale = locale;
+ _args = args;
+ }
+
+ @Override
+ public String getDetail()
+ {
+ if (_evaluatedArgs == null && _args != null)
+ {
+ evaluateArgs();
+ }
+ if (_evaluatedDetail == null)
+ {
+ MessageFormat format = new MessageFormat(super.getDetail(), _locale);
+ _evaluatedDetail = format.format(_evaluatedArgs);
+ }
+ return _evaluatedDetail;
+ }
+
+ @Override
+ public void setDetail(String detail)
+ {
+ super.setDetail(detail);
+ _evaluatedDetail = null;
+ }
+
+ public String getUnformattedDetail()
+ {
+ return super.getDetail();
+ }
+
+ @Override
+ public String getSummary()
+ {
+ if (_evaluatedArgs == null && _args != null)
+ {
+ evaluateArgs();
+ }
+ if (_evaluatedSummary == null)
+ {
+ MessageFormat format = new MessageFormat(super.getSummary(), _locale);
+ _evaluatedSummary = format.format(_evaluatedArgs);
+ }
+ return _evaluatedSummary;
+ }
+
+ @Override
+ public void setSummary(String summary)
+ {
+ super.setSummary(summary);
+ _evaluatedSummary = null;
+ }
+
+ public String getUnformattedSummary()
+ {
+ return super.getSummary();
+ }
+
+ private void evaluateArgs()
+ {
+ _evaluatedArgs = new Object[_args.length];
+ FacesContext facesContext = null;
+ for (int i = 0; i < _args.length; i++)
+ {
+ if (_args[i] == null)
+ {
+ continue;
+ }
+ else if (_args[i] instanceof ValueBinding)
+ {
+ if (facesContext == null)
+ {
+ facesContext = FacesContext.getCurrentInstance();
+ }
+ _evaluatedArgs[i] = ((ValueBinding)_args[i]).getValue(facesContext);
+ }
+ else if (_args[i] instanceof ValueExpression)
+ {
+ if (facesContext == null)
+ {
+ facesContext = FacesContext.getCurrentInstance();
+ }
+ _evaluatedArgs[i] = ((ValueExpression)_args[i]).getValue(facesContext.getELContext());
+ }
+ else
+ {
+ _evaluatedArgs[i] = _args[i];
+ }
+ }
+ }
+}
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ParametrizableFacesMessage.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/ParametrizableFacesMessage.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/RequestType.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/RequestType.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Modified: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java?rev=1187741&r1=1187740&r2=1187741&view=diff
==============================================================================
--- myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java (original)
+++ myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java Sat Oct 22 17:59:32 2011
@@ -28,8 +28,8 @@ import javax.faces.component.UIComponent
import javax.faces.context.FacesContext;
/**
- * @author Martin Marinschek (latest modification by $Author: grantsmith $)
- * @version $Revision: 169655 $ $Date: 2005-05-11 18:45:06 +0200 (Mi, 11 Mai 2005) $
+ * @author Martin Marinschek (latest modification by $Author$)
+ * @version $Revision$ $Date$
*/
public class RestoreStateUtils
{
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/RestoreStateUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/SelectItemsIterator.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/StateUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/util/StringUtils.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sat Oct 22 17:59:32 2011
@@ -1 +1 @@
-Author Date Id Revision
+Date Author Id Revision HeadURL