You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by aw...@apache.org on 2007/06/06 00:16:43 UTC
svn commit: r544659 [4/4] - in /myfaces/trinidad/trunk/trinidad:
trinidad-api/src/main/java/org/apache/myfaces/trinidad/bean/
trinidad-api/src/main/java/org/apache/myfaces/trinidad/bean/util/
trinidad-api/src/main/java/org/apache/myfaces/trinidad/chang...
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/xml/parse/StyleNodeParser.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/xml/parse/StyleNodeParser.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/xml/parse/StyleNodeParser.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/xml/parse/StyleNodeParser.java Tue Jun 5 15:16:36 2007
@@ -172,7 +172,8 @@
if (!(child instanceof PropertyNode))
{
- throw new IllegalArgumentException("child not instance of PropertyNode");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "CHILD_NOT_PROPERTYNODE_INSTANCE"));
}
if (child instanceof PropertyNode)
@@ -183,7 +184,8 @@
{
if (!(child instanceof IncludePropertyNode))
{
- throw new IllegalArgumentException("child not an instance of IncludePropertyNode");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "CHIL_NOT_INCLUDEPROEPRTYNODE_INSTANCE"));
}
if (child instanceof IncludePropertyNode)
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/AttributeTag.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/AttributeTag.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/AttributeTag.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/AttributeTag.java Tue Jun 5 15:16:36 2007
@@ -25,6 +25,7 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
*
@@ -87,19 +88,22 @@
UIComponentTag.getParentUIComponentTag(pageContext);
if (tag == null)
{ // PENDING - i18n
- throw new JspException("Not nested in a UIComponentTag");
+ throw new JspException(_LOG.getMessage(
+ "NOT_NESTED_IN_UICOMPONENTTAG"));
}
// Add this attribute if it is not already defined
UIComponent component = tag.getComponentInstance();
if (component == null)
{ // PENDING - i18n
- throw new JspException("No component associated with UIComponentTag");
+ throw new JspException(_LOG.getMessage(
+ "NO_COMPONENT_ASSOCIATED_WITH_UICOMPONENTTAG"));
}
String nameVal = _name;
if (UIComponentTag.isValueReference(_name))
{
- throw new JspException("Name attribute cannot be EL bound");
+ throw new JspException(_LOG.getMessage(
+ "NAME_ATTRIBUTE_CANNOT_BE_EL_BOUND"));
}
if (component.getAttributes().get(nameVal) == null)
@@ -149,4 +153,6 @@
private String _name = null;
// The value to be associated with this attribute, if it is created.
private String _value = null;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ AttributeTag.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ComponentDefTag.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ComponentDefTag.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ComponentDefTag.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ComponentDefTag.java Tue Jun 5 15:16:36 2007
@@ -27,6 +27,7 @@
import javax.servlet.jsp.JspException;
import org.apache.myfaces.trinidadinternal.taglib.util.TagUtils;
import javax.faces.webapp.UIComponentTag;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
public class ComponentDefTag extends TagSupport
{
@@ -47,8 +48,8 @@
UIComponentTag tag = UIComponentTag.getParentUIComponentTag(pageContext);
if (tag == null)
{
- throw new JspException(
- "componentDef cannot be run as a stand-alone. It must be included inside a JSF component tree.");
+ throw new JspException(_LOG.getMessage(
+ "COMPOENENTDEF_CANNOT_RUN_AS_STANDALONE"));
}
// Only run on the first time the tag executes
@@ -57,14 +58,15 @@
UIComponent component = tag.getComponentInstance();
if (!(component instanceof UIXComponentRef))
{
- throw new JspException(
- "componentDef must be included as a child of an <tr:componentRef>.");
+ throw new JspException(_LOG.getMessage(
+ "COMPONENTDEF_MUST_BE_INCLUDED_AS_CHILD_OF"));
}
if (_var != null)
{
if (TagUtils.isValueReference(_var))
- throw new JspException("tr:componentDef does not support EL on 'var'");
+ throw new JspException(_LOG.getMessage(
+ "COMPONENTDEF_NOT_SUPPORT_EL"));
((UIXComponentRef) component).setVar(_var);
}
@@ -79,4 +81,6 @@
super.release();
_var = null;
}
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ ComponentDefTag.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ForEachTag.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ForEachTag.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ForEachTag.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/ForEachTag.java Tue Jun 5 15:16:36 2007
@@ -64,8 +64,8 @@
{
if (!items.startsWith("#{") ||
!items.endsWith("}"))
- throw new IllegalArgumentException(
- "\"items\" must be a simple JSF EL expression");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "MUST_BE_SIMPLE_JSF_EL_EXPRESSION"));
_items = items;
}
@@ -87,7 +87,8 @@
public void setVar(String var)
{
if (UIComponentTag.isValueReference(var))
- throw new IllegalArgumentException("\"var\" cannot be an expression");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "VAR_CANNOT_BE_EXPRESSION"));
_var = var;
}
@@ -95,7 +96,8 @@
public void setVarStatus(String varStatus)
{
if (UIComponentTag.isValueReference(varStatus))
- throw new IllegalArgumentException("\"varStatus\" cannot be an expression");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "VARSTATUS_CANNOT_BE_EXPRESSION"));
_varStatus = varStatus;
}
@@ -128,7 +130,8 @@
else if (items.getClass().isArray())
length = Array.getLength(items);
else
- throw new JspException("\"items\" must point to a List or array");
+ throw new JspException(_LOG.getMessage(
+ "MUST_POINT_TO_LIST_OR_ARRAY"));
if (length == 0)
{
if (_LOG.isFine())
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ResetActionListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ResetActionListenerTag.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ResetActionListenerTag.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ResetActionListenerTag.java Tue Jun 5 15:16:36 2007
@@ -24,6 +24,7 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
*
@@ -36,8 +37,8 @@
UIComponentTag tag = UIComponentTag.getParentUIComponentTag(pageContext);
if (tag == null)
{
- throw new JspException(
- "ResetActionListener must be inside of a UIComponent tag.");
+ throw new JspException(_LOG.getMessage(
+ "RESETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
}
// Only run on the first time the tag executes
@@ -47,8 +48,8 @@
UIComponent component = tag.getComponentInstance();
if (!(component instanceof ActionSource))
{
- throw new JspException(
- "ResetActionListener must be inside of a ActionSource component.");
+ throw new JspException(_LOG.getMessage(
+ "RESETACTIONlISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
}
ResetActionListener listener = new ResetActionListener();
@@ -63,4 +64,6 @@
{
super.release();
}
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ ResetActionListenerTag.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ReturnActionListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ReturnActionListenerTag.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ReturnActionListenerTag.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/ReturnActionListenerTag.java Tue Jun 5 15:16:36 2007
@@ -30,6 +30,7 @@
import javax.faces.webapp.UIComponentTag;
import org.apache.myfaces.trinidad.webapp.ELContextTag;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
@@ -48,8 +49,8 @@
UIComponentTag tag = UIComponentTag.getParentUIComponentTag(pageContext);
if (tag == null)
{
- throw new JspException(
- "returnActionListener must be inside of a UIComponent tag.");
+ throw new JspException(_LOG.getMessage(
+ "RETURNACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
}
// Only run on the first time the tag executes
@@ -59,8 +60,8 @@
UIComponent component = tag.getComponentInstance();
if (!(component instanceof ActionSource))
{
- throw new JspException(
- "returnActionListener must be inside of an ActionSource component.");
+ throw new JspException(_LOG.getMessage(
+ "RETURNACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
}
ELContextTag parentELContext = (ELContextTag)
@@ -99,4 +100,6 @@
}
private String _value;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ ReturnActionListenerTag.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/SetActionListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/SetActionListenerTag.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/SetActionListenerTag.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/SetActionListenerTag.java Tue Jun 5 15:16:36 2007
@@ -30,6 +30,7 @@
import javax.faces.webapp.UIComponentTag;
import org.apache.myfaces.trinidad.webapp.ELContextTag;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* JavaServer Faces version 1.2 a <code>setPropertyActionListener</code>, which provides the
@@ -54,8 +55,8 @@
UIComponentTag tag = UIComponentTag.getParentUIComponentTag(pageContext);
if (tag == null)
{
- throw new JspException(
- "setActionListener must be inside of a UIComponent tag.");
+ throw new JspException(_LOG.getMessage(
+ "SETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
}
// Only run on the first time the tag executes
@@ -65,8 +66,8 @@
UIComponent component = tag.getComponentInstance();
if (!(component instanceof ActionSource))
{
- throw new JspException(
- "setActionListener must be inside of a ActionSource component.");
+ throw new JspException(_LOG.getMessage(
+ "SETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG"));
}
ELContextTag parentELContext = (ELContextTag)
@@ -103,8 +104,8 @@
}
else
{
- throw new JspException("setActionListener's 'to' attribute must " +
- "be an EL expression.");
+ throw new JspException(_LOG.getMessage(
+ "SETACTIONLISTENERS_TO_MUST_BE_EL_EXPRESSION"));
}
}
@@ -123,4 +124,6 @@
private String _from;
private String _to;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ SetActionListenerTag.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/util/TagUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/util/TagUtils.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/util/TagUtils.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/util/TagUtils.java Tue Jun 5 15:16:36 2007
@@ -213,9 +213,8 @@
//pu: If we do not have correct starter, stop here
if (!colorCode.startsWith("#"))
- throw new ParseException(
- "Color code " + colorCode + " in '" + value + "' does not start with a '#'",
- value.indexOf(colorCode));
+ throw new ParseException(_LOG.getMessage(
+ "COLOR_CODE_DOES_NOT_START_WITH_POUNDSIGN", new Object[]{colorCode, value}), value.indexOf(colorCode));
//pu: Allow NumberFormatException (RTE) to propogate as is, or transform to JspException ?.
int rgb = Integer.parseInt(colorCode.substring(1), 16);
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/BaseUINode.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/BaseUINode.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/BaseUINode.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/BaseUINode.java Tue Jun 5 15:16:36 2007
@@ -407,8 +407,8 @@
UIXRenderingContext context
)
{
- throw new IllegalStateException(
- "This method changed to getRenderer(RenderingContext, UINode)");
+ throw new IllegalStateException(_LOG.getMessage(
+ "METHOD_CHANGED_TO_GETRENDERER"));
}
@@ -472,7 +472,8 @@
protected final UINode[] getChildArray()
{
// =-= bts FIX ME remove since replaced by getIndexedNodeList()
- throw new IllegalStateException("Replaced in 2.0 by getIndexedNodeList()");
+ throw new IllegalStateException(_LOG.getMessage(
+ "REPLACED_BY_GETINDEXEDNODELIST"));
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/NodeRole.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/NodeRole.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/NodeRole.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/NodeRole.java Tue Jun 5 15:16:36 2007
@@ -18,6 +18,7 @@
*/
package org.apache.myfaces.trinidadinternal.ui;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* A NodeRole defines the role a single UINode plays in the rendering
* process.
@@ -155,7 +156,8 @@
synchronized(NodeRole.class)
{
if ((_sBits & _bits) != 0)
- throw new IllegalArgumentException("Reusing role index");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "REUSING_ROLE_INDEX"));
_sBits = _sBits | _bits;
}
}
@@ -166,4 +168,6 @@
private boolean _base;
static private int _sBits = 0;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ NodeRole.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RendererFactoryImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RendererFactoryImpl.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RendererFactoryImpl.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RendererFactoryImpl.java Tue Jun 5 15:16:36 2007
@@ -19,6 +19,7 @@
package org.apache.myfaces.trinidadinternal.ui;
import java.util.concurrent.ConcurrentHashMap;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
@@ -83,9 +84,8 @@
{
if (renderer == null)
{
- throw new IllegalArgumentException(
- "Attempt to register a null renderer for "+
- name);
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "ATTEMP_TO_REGISTER_NULL_RENDERER", name));
}
_renderers.put(name, renderer);
}
@@ -131,4 +131,6 @@
private ConcurrentHashMap<String, Object> _renderers =
new ConcurrentHashMap<String, Object>(101);
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ RendererFactoryImpl.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RootRenderingContext.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RootRenderingContext.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RootRenderingContext.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/RootRenderingContext.java Tue Jun 5 15:16:36 2007
@@ -121,7 +121,8 @@
if ((config != null) &&
!(config instanceof ContextBasedConfiguration))
{
- throw new IllegalStateException("Only ContextBasedConfiguration is supported");
+ throw new IllegalStateException(_LOG.getMessage(
+ "ONLY_CONTEXTBASEDCONFIGURATION_SUPPORTED"));
}
}
@@ -154,8 +155,8 @@
public void setFacet(String facet)
{
if (_manager != null)
- throw new IllegalStateException("The facet may not be set after the " +
- "RendererManager has been assigned.");
+ throw new IllegalStateException(_LOG.getMessage(
+ "FACET_MAY_NOT_BE_SET_AFTER_RENDERERMANAGER_HAS_BEEN_ASSIGNED"));
if (facet == null)
facet = UIConstants.FACET_DEFAULT;
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UINodeUINodeList.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UINodeUINodeList.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UINodeUINodeList.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UINodeUINodeList.java Tue Jun 5 15:16:36 2007
@@ -21,6 +21,7 @@
import org.apache.myfaces.trinidadinternal.ui.MutableUINode;
import org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext;
import org.apache.myfaces.trinidadinternal.ui.UINode;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* UINodeList that retrieves its list of children from a UINode.
@@ -104,8 +105,8 @@
}
else
{
- throw new UnsupportedOperationException(
- "It is illegal to set children on a " + _getClassName());
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_SET_CHILDREN", _getClassName()));
}
}
@@ -123,8 +124,8 @@
}
else
{
- throw new UnsupportedOperationException(
- "It is illegal to add children to a " + _getClassName());
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_ADD_CHILDREN", _getClassName()));
}
}
@@ -141,8 +142,8 @@
}
else
{
- throw new UnsupportedOperationException(
- "It is illegal to add children to a " + _getClassName());
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_ADD_CHILDREN", _getClassName()));
}
}
@@ -159,8 +160,8 @@
}
else
{
- throw new UnsupportedOperationException(
- "It is illegal to remove children from a " + _getClassName());
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_REMOVE_CHILDREN", _getClassName()));
}
}
@@ -174,8 +175,8 @@
}
else
{
- throw new UnsupportedOperationException(
- "It is illegal to remove all children from a " + _getClassName());
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_REMOVE_CHILDREN", _getClassName()));
}
}
@@ -201,4 +202,6 @@
return name;
return name.substring(indexOfPeriod + 1);
}
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ UINodeUINodeList.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UnmodifiableCompoundNodeList.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UnmodifiableCompoundNodeList.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UnmodifiableCompoundNodeList.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/collection/UnmodifiableCompoundNodeList.java Tue Jun 5 15:16:36 2007
@@ -20,6 +20,7 @@
import org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext;
import org.apache.myfaces.trinidadinternal.ui.UINode;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* Unmodifiable UINodeList that merges the results of two other node lists.
@@ -85,8 +86,8 @@
UINode node
)
{
- throw new UnsupportedOperationException(
- "It is illegal to set children on an UnmodifiableCompoundNodeList");
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_SET_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST"));
}
@@ -95,8 +96,8 @@
UINode node
)
{
- throw new UnsupportedOperationException(
- "It is illegal to add children to an UnmodifiableCompoundNodeList");
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_ADD_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST"));
}
@@ -104,22 +105,22 @@
UINode node
)
{
- throw new UnsupportedOperationException(
- "It is illegal to add children to an UnmodifiableCompoundNodeList");
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_ADD_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST"));
}
public UINode removeUINode(
int index
)
{
- throw new UnsupportedOperationException(
- "It is illegal to remove children from an UnmodifiableCompoundNodeList");
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_REMOVE_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST"));
}
public void clearUINodes()
{
- throw new UnsupportedOperationException(
- "It is illegal to clear children from an UnmodifiableCompoundNodeList");
+ throw new UnsupportedOperationException(_LOG.getMessage(
+ "ILLEGAL_TO_REMOVE_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST"));
}
@Override
@@ -138,4 +139,6 @@
private UINodeList _first;
private UINodeList _second;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ UnmodifiableCompoundNodeList.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/BeanAdapterUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/BeanAdapterUtils.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/BeanAdapterUtils.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/BeanAdapterUtils.java Tue Jun 5 15:16:36 2007
@@ -171,8 +171,8 @@
// =-=AEW This forces classes to be loaded. Should we allow
// registration by string name?
if (!BeanDOAdapter.class.isAssignableFrom(adapterClass))
- throw new IllegalArgumentException(
- "Adapter class doesn't implement BeanDOAdapter");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "ADAPTER_CLASS_NOT_IMPLEMENT_BEANDOADAPTER"));
_sAdapters.put(beanClass, adapterClass);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/IntrospectionAdapter.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/IntrospectionAdapter.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/IntrospectionAdapter.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bean/IntrospectionAdapter.java Tue Jun 5 15:16:36 2007
@@ -95,9 +95,8 @@
public void setInstance(Object instance)
{
if ((instance != null) && !_class.isInstance(instance))
- throw new IllegalArgumentException(instance.toString() +
- " is not an instance of " +
- _class);
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NOT_AN_INSTANCE", new Object[]{instance.toString(), _class}));
_instance = instance;
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/ComparisonBoundValue.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/ComparisonBoundValue.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/ComparisonBoundValue.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/ComparisonBoundValue.java Tue Jun 5 15:16:36 2007
@@ -96,13 +96,16 @@
)
{
if (leftSideValue == null)
- throw new IllegalArgumentException("leftSideValue is null");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NULL_LEFTSIDEVALUE"));
if (rightSideValue == null)
- throw new IllegalArgumentException("rightSideValue is null");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NULL_RIGHTSIDEVALUE"));
if ((comparison < COMPARISON_LESS_THAN) ||
(comparison > COMPARISON_GREATER_THAN_OR_EQUALS))
- throw new IllegalArgumentException("Unknown comparison");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "UNKNOWN_COMPARISON"));
_comparison = comparison;
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/IfBoundValue.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/IfBoundValue.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/IfBoundValue.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/data/bind/IfBoundValue.java Tue Jun 5 15:16:36 2007
@@ -20,6 +20,7 @@
import org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext;
import org.apache.myfaces.trinidadinternal.ui.data.BoundValue;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* BoundValue that uses a Boolean BoundValue to determine which of two values
@@ -72,7 +73,8 @@
)
{
if (testBoundValue == null)
- throw new IllegalArgumentException("test BoundValue required");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "TEST_BOUNDVALUE_REQUIRED"));
if (trueBoundValue == null)
trueBoundValue = FixedBoundValue.NULL_VALUE;
@@ -101,4 +103,6 @@
private BoundValue _testValue;
private BoundValue _trueValue;
private BoundValue _falseValue;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ IfBoundValue.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/expl/UIImplicitObject.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/expl/UIImplicitObject.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/expl/UIImplicitObject.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/expl/UIImplicitObject.java Tue Jun 5 15:16:36 2007
@@ -206,7 +206,8 @@
{
if (lst == null)
{
- throw new NullPointerException("Null list argument");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_LIST_ARGUMENT"));
}
_lst = lst;
}
@@ -246,7 +247,8 @@
{
if (dob == null)
{
- throw new NullPointerException("Null data object argument");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_DATA_OBJECT_ARGUMENT"));
}
_dob = dob;
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelExtension.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelExtension.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelExtension.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelExtension.java Tue Jun 5 15:16:36 2007
@@ -27,6 +27,7 @@
import org.apache.myfaces.trinidadinternal.ui.RendererFactoryImpl;
import org.apache.myfaces.trinidadinternal.ui.RendererManager;
import org.apache.myfaces.trinidadinternal.ui.UIConstants;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
@@ -58,7 +59,8 @@
{
if ((baseLookAndFeel == null)||(id == null)||(family == null))
{
- throw new NullPointerException("Null argument");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_ARGUMENT"));
}
_baseLAF = baseLookAndFeel;
@@ -239,8 +241,8 @@
if (factory == null)
{
- throw new IllegalArgumentException("No factory registered for " +
- namespace);
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NO_FACTORY_REGISTERED", namespace));
}
factory.__getLocalFactory().registerRenderer(name, renderer);
@@ -264,8 +266,8 @@
if (factory == null)
{
- throw new IllegalArgumentException("No factory registered for " +
- namespace);
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NO_FACTORY_REGISTERED", namespace));
}
factory.__getLocalFactory().registerRenderer(name, className);
@@ -423,4 +425,6 @@
// Proxy RendererManagers hashed by facet
private Object[] _rendererManagers;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ LookAndFeelExtension.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelManager.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelManager.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelManager.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/LookAndFeelManager.java Tue Jun 5 15:16:36 2007
@@ -25,6 +25,7 @@
import org.apache.myfaces.trinidadinternal.ui.laf.base.desktop.BaseDesktopUtils;
import org.apache.myfaces.trinidadinternal.ui.laf.simple.desktop.SimpleDesktopUtils;
import org.apache.myfaces.trinidadinternal.ui.laf.simple.pda.SimplePdaUtils;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* Manages the set of LookAndFeel instances. LookAndFeel instances can
@@ -157,7 +158,8 @@
{
if (id == null)
{
- throw new NullPointerException("Null id");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_ID"));
}
synchronized (_scorersAndLafs)
@@ -319,4 +321,6 @@
private ArrayList<LookAndFeel> _lafs = new ArrayList<LookAndFeel>();
private static LookAndFeelManager _sDefaultInstance;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ LookAndFeelManager.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/NameOnlyScorer.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/NameOnlyScorer.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/NameOnlyScorer.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/NameOnlyScorer.java Tue Jun 5 15:16:36 2007
@@ -19,6 +19,7 @@
package org.apache.myfaces.trinidadinternal.ui.laf;
import org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* NameScoreProxyr delegates to another LookAndFeelScorer instance
@@ -46,7 +47,8 @@
{
if (baseScorer == null)
{
- throw new NullPointerException("Null baseScorer");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_BASESCORER"));
}
_lafName = requiredLafName;
@@ -111,4 +113,6 @@
private String _lafName;
private LookAndFeelScorer _baseScorer;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ NameOnlyScorer.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/ScoreProxy.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/ScoreProxy.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/ScoreProxy.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/ScoreProxy.java Tue Jun 5 15:16:36 2007
@@ -18,6 +18,7 @@
*/
package org.apache.myfaces.trinidadinternal.ui.laf;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* The Score subclass which is used to wrap another Score.
*
@@ -37,7 +38,8 @@
{
if (baseScore == null)
{
- throw new NullPointerException("Null baseScore");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_BASESCORE"));
}
_baseScore = baseScore;
@@ -99,5 +101,7 @@
}
private Score _baseScore;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ ScoreProxy.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/BaseLookAndFeel.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/BaseLookAndFeel.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/BaseLookAndFeel.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/BaseLookAndFeel.java Tue Jun 5 15:16:36 2007
@@ -24,6 +24,7 @@
import org.apache.myfaces.trinidadinternal.ui.RendererManager;
import org.apache.myfaces.trinidadinternal.ui.UIConstants;
import org.apache.myfaces.trinidadinternal.ui.laf.LookAndFeel;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* Abstract Base LookAndFeel implementation
@@ -68,9 +69,8 @@
if (FACET_DEFAULT.equals(facet))
return getDefaultFactory();
- throw new IllegalArgumentException("Facet " + facet +
- " is not supported on " +
- getClass().getName());
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "FACET_NOT_SUPPORTED", new Object[]{facet, getClass().getName()}));
}
@@ -213,4 +213,6 @@
};
private RendererManager _rendererManager;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ BaseLookAndFeel.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/xhtml/XhtmlLafUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/xhtml/XhtmlLafUtils.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/xhtml/XhtmlLafUtils.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/base/xhtml/XhtmlLafUtils.java Tue Jun 5 15:16:36 2007
@@ -170,7 +170,8 @@
}
catch (NoSuchElementException e)
{
- throw new IllegalArgumentException("# of keys and values much match");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NUMBER_OF_KEYS_AND_VALUES_MUCH_MATCH"));
}
// append end of javascript property
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconNode.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconNode.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconNode.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconNode.java Tue Jun 5 15:16:36 2007
@@ -19,6 +19,7 @@
package org.apache.myfaces.trinidadinternal.ui.laf.xml.parse;
import org.apache.myfaces.trinidad.skin.Icon;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* Object which represents a single <icon> element.
@@ -42,7 +43,8 @@
{
if (name == null)
{
- throw new NullPointerException("Null name");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_NAME"));
}
_name = name;
@@ -69,4 +71,6 @@
private String _name;
private Icon _icon;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ IconNode.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconsNodeParser.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconsNodeParser.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconsNodeParser.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/IconsNodeParser.java Tue Jun 5 15:16:36 2007
@@ -30,6 +30,7 @@
import org.apache.myfaces.trinidadinternal.share.xml.ParseContext;
import org.apache.myfaces.trinidadinternal.ui.laf.xml.XMLConstants;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* NodeParser for <icons> elements
@@ -62,7 +63,8 @@
{
if ((child != null) && !(child instanceof IconNode))
{
- throw new IllegalArgumentException("child is not null and not an instance of IconNode");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "CHILD_NOT_NULL_NOT_ICONNODE_INSTANCE"));
}
if (child instanceof IconNode)
@@ -85,4 +87,6 @@
}
private ArrayList<IconNode> _icons = new ArrayList<IconNode>();
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ IconsNodeParser.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RendererNode.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RendererNode.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RendererNode.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RendererNode.java Tue Jun 5 15:16:36 2007
@@ -19,6 +19,7 @@
package org.apache.myfaces.trinidadinternal.ui.laf.xml.parse;
import org.apache.myfaces.trinidadinternal.ui.Renderer;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* Object which represents a single <renderer> element.
@@ -44,7 +45,7 @@
{
if ((namespace == null)||(name == null)||(renderer == null))
{
- throw new NullPointerException("Null argument");
+ throw new NullPointerException();
}
_namespace = namespace;
@@ -81,4 +82,6 @@
private String _namespace;
private String _name;
private Renderer _renderer;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ RendererNode.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNode.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNode.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNode.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNode.java Tue Jun 5 15:16:36 2007
@@ -21,6 +21,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
@@ -47,7 +48,8 @@
// creating the RenderersNode.
if ((renderers == null) || (renderers.length <= 0))
{
- throw new IllegalArgumentException("Null renderers or no renderers passed");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NULL_RENDERERS_NO_RENDERERS_PASSED"));
}
@@ -93,4 +95,6 @@
private RendererNode[] _renderers;
private String[] _facets;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ RenderersNode.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNodeParser.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNodeParser.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNodeParser.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/RenderersNodeParser.java Tue Jun 5 15:16:36 2007
@@ -31,6 +31,7 @@
import org.apache.myfaces.trinidadinternal.share.xml.XMLUtils;
import org.apache.myfaces.trinidadinternal.ui.laf.xml.XMLConstants;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* NodeParser for <renderers> elements
@@ -77,7 +78,8 @@
{
if ((child != null) && !(child instanceof RendererNode))
{
- throw new IllegalArgumentException("Null child or child not an instance of RendererNode");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NULL_CHILD_NOT_REDNERERNODE_INSTANCE"));
}
if (child instanceof RendererNode)
@@ -102,4 +104,6 @@
private ArrayList<RendererNode> _renderers = new ArrayList<RendererNode>();
private String[] _facets;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ RenderersNodeParser.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinNode.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinNode.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinNode.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinNode.java Tue Jun 5 15:16:36 2007
@@ -18,6 +18,8 @@
*/
package org.apache.myfaces.trinidadinternal.ui.laf.xml.parse;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
+
/**
* Object which represents a single <skin> element in trinidad-skins.xml.
*
@@ -41,11 +43,13 @@
if (id==null)
{
- throw new NullPointerException("Null id");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_ID"));
}
if (family==null)
{
- throw new NullPointerException("Null family");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_FAMILY"));
}
_id = id;
@@ -113,5 +117,6 @@
private String _styleSheetName;
private String _bundleName;
-
+ private static final TrinidadLogger _LOG =
+ TrinidadLogger.createTrinidadLogger( SkinNode.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertiesNodeParser.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertiesNodeParser.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertiesNodeParser.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertiesNodeParser.java Tue Jun 5 15:16:36 2007
@@ -30,6 +30,7 @@
import org.apache.myfaces.trinidadinternal.share.xml.ParseContext;
import org.apache.myfaces.trinidadinternal.ui.laf.xml.XMLConstants;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* NodeParser for <properties> elements
@@ -62,8 +63,8 @@
{
if (!(child == null) && !(child instanceof SkinPropertyNode))
{
- throw new IllegalArgumentException(
- "Non Null child and child not an instance of SkinPropertyNode");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "NON_NULL_CHILD_NOT_SKINPROPERTYNODE_INSTANCE"));
}
if (child instanceof SkinPropertyNode)
@@ -86,4 +87,6 @@
}
private ArrayList<SkinPropertyNode> _properties = new ArrayList<SkinPropertyNode>();
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ SkinPropertiesNodeParser.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertyNode.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertyNode.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertyNode.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/ui/laf/xml/parse/SkinPropertyNode.java Tue Jun 5 15:16:36 2007
@@ -18,6 +18,7 @@
*/
package org.apache.myfaces.trinidadinternal.ui.laf.xml.parse;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
/**
* Object which represents a single <property> element.
*
@@ -43,12 +44,14 @@
if (name==null)
{
- throw new NullPointerException("Null name");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_NAME"));
}
if (value==null)
{
- throw new NullPointerException("Null value");
+ throw new NullPointerException(_LOG.getMessage(
+ "NULL_VALUE"));
}
_selector = selector;
@@ -85,4 +88,6 @@
private String _selector;
private String _name;
private String _value;
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ SkinPropertyNode.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/uinode/FacesRenderingContext.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/uinode/FacesRenderingContext.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/uinode/FacesRenderingContext.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/uinode/FacesRenderingContext.java Tue Jun 5 15:16:36 2007
@@ -85,8 +85,8 @@
FacesContext fContext) throws IOException
{
if (UINodeRendererBase.__getRenderingContext(fContext) != null)
- throw new IllegalStateException("RenderingContext has already been " +
- "created!");
+ throw new IllegalStateException(_LOG.getMessage(
+ "RENDERINGCONTEXT_HAS_BEEN_CREATED"));
FacesRenderingContext rContext = new FacesRenderingContext(fContext);
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JavaIntrospector.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JavaIntrospector.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JavaIntrospector.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JavaIntrospector.java Tue Jun 5 15:16:36 2007
@@ -343,9 +343,8 @@
if (!isSuper)
{
- throw new IntrospectionException(stopClass.getName() +
- " not superclass of " +
- beanClass.getName());
+ throw new IntrospectionException(_LOG.getMessage(
+ "NOT_SUPERCLASS_OF", new Object[]{stopClass.getName(), beanClass.getName()}));
}
}
@@ -2022,6 +2021,7 @@
private static boolean _sDeclaredAccessOK = true;
private static String[] _sSearchPath = { "sun.beans.infos" };
+ static private final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(JavaIntrospector.class);
}
@@ -2418,6 +2418,6 @@
private MethodDescriptor[] _methods;
private BeanInfo _targetBeanInfo;
- static private final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(JavaIntrospector.class);
+ static private final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(GenericBeanInfo.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JsonUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JsonUtils.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JsonUtils.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/JsonUtils.java Tue Jun 5 15:16:36 2007
@@ -40,6 +40,7 @@
import java.util.Iterator;
import java.util.Map;
+import org.apache.myfaces.trinidad.logging.TrinidadLogger;
import org.apache.myfaces.trinidadinternal.convert.GenericConverterFactory;
/**
@@ -370,7 +371,8 @@
Map.Entry<?, ?> entry = (Map.Entry<?, ?>)iter.next();
Object rawKey = entry.getKey();
if(rawKey == null)
- throw new IllegalArgumentException("Javascript does not support null keys");
+ throw new IllegalArgumentException(_LOG.getMessage(
+ "JAVASCRIPT_NOT_SUPPORT_NULL_KEYS"));
String key = rawKey.toString();
Object value = entry.getValue();
if (value == null)
@@ -491,4 +493,7 @@
break;
}
}
+
+ private static final TrinidadLogger _LOG = TrinidadLogger.createTrinidadLogger(
+ JsonUtils.class);
}
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/validator/ByteLengthValidator.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/validator/ByteLengthValidator.java?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/validator/ByteLengthValidator.java (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/validator/ByteLengthValidator.java Tue Jun 5 15:16:36 2007
@@ -173,8 +173,8 @@
// as being part of _cjkEncodings and singlByteEncodings might not be
// supported by the JVM
if ( !Charset.isSupported(encoding))
- throw new IllegalCharsetNameException("Encoding: " + encoding +
- " is unsupported by JVM");
+ throw new IllegalCharsetNameException(_LOG.getMessage(
+ "ENCODING_UNSUPPORTED_BY_JVM", encoding));
encoding = encoding.toLowerCase();
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/xrts/org/apache/myfaces/trinidadinternal/resource/LoggerBundle.xrts
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/xrts/org/apache/myfaces/trinidadinternal/resource/LoggerBundle.xrts?view=diff&rev=544659&r1=544658&r2=544659
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/xrts/org/apache/myfaces/trinidadinternal/resource/LoggerBundle.xrts (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/xrts/org/apache/myfaces/trinidadinternal/resource/LoggerBundle.xrts Tue Jun 5 15:16:36 2007
@@ -94,7 +94,7 @@
<resource key="NOT_SUPPORT_EL_EXPRESSION">Element {0} does not support EL expressions.</resource>
<!-- ELEMENT_ONLY_ACCEPT_INTEGER -->
-<resource key="ELEMENT_ONLY_ACCEPT_INTEGER">"Element {0} only accepts integer values</resource>
+<resource key="ELEMENT_ONLY_ACCEPT_INTEGER">Element {0} only accepts integer values</resource>
<!-- CANNOT_FIND_CONTEXT_CLASS_LOADER -->
<resource key="CANNOT_FIND_CONTEXT_CLASS_LOADER">Could not find context class loader.</resource>
@@ -349,7 +349,7 @@
<resource key="UNABLE_GET_RESOURCE">Unable to get resource {0}</resource>
<!-- RUNNING_DEBUG_JAVASCRIPT -->
-<resource key="RUNNING_DEBUG_JAVASCRIPT">Apache Trinidad is running with debug javascript. Do not use in a production environment. See the "+_DEBUG_JAVASCRIPT+" parameter in /WEB-INF/web.xml</resource>
+<resource key="RUNNING_DEBUG_JAVASCRIPT">Apache Trinidad is running with debug javascript. Do not use in a production environment. See the "org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT" parameter in /WEB-INF/web.xml</resource>
<!-- ILLEGAL_VALUE -->
<resource key="ILLEGAL_VALUE">Illegal value:{0} for {1}</resource>
@@ -472,7 +472,7 @@
<resource key="EMPTY_URL_IN_STYLE_SHEET">An empty URL was found in style sheet ''{0}''</resource>
<!-- ELEMENT_MUST_HAVE_NAME_ATTRIBUTE -->
-<resource key="ELEMENT_MUST_HAVE_NAME_ATTRIBUTE">"<style> elements must have either a name or a selector attribute</resource>
+<resource key="ELEMENT_MUST_HAVE_NAME_ATTRIBUTE"><style> elements must have either a name or a selector attribute</resource>
<!-- CANNOT_PARSE_IMPORT -->
<resource key="CANNOT_PARSE_IMPORT">Could not parse import: {0}</resource>
@@ -604,5 +604,416 @@
<resource key="REQUIRED_TRINIDADFILTER_NOT_INSTALLED">The TrinidadFilter has not been installed. Apache Trinidad requires this filter for proper execution.</resource>
<resource key="INVALID_ENUM_IN_CONFIG">The value ''{0}'' is not a legal value for <''{1}''></resource>
+
+ <!-- MERGECAPABILITIES_ONLY_USED_WITH_AGENTS_CREATED_BY_THIS_CLASS -->
+ <resource key="MERGECAPABILITIES_ONLY_USED_WITH_AGENTS_CREATED_BY_THIS_CLASS">mergeCapabilities() may only be used with Agents created by this class.</resource>
+
+ <!-- INVALID_NAMESPACE -->
+ <resource key="INVALID_NAMESPACE">Invalid Namespace: {0}</resource>
+
+ <!-- INVALID_ROOT_ELEMENT -->
+ <resource key="INVALID_ROOT_ELEMENT">Invalid Root Element: {0} {1}</resource>
+
+ <!-- UNEXPECTED -->
+ <resource key="UNEXPECTED_BACKSLASH">Unexpected '\'.</resource>
+
+ <!-- UNEXPECTED_CHARACTER -->
+ <resource key="EXPECTED_PERIOD_OR_BACKSLASH">Unexpected character. Expecting '.' or '\'</resource>
+
+ <!-- UNEXPECTED_CHARACTER_EXPECTING -->
+ <resource key="EXPECTED_ASTERISK">Unexpected character. Expecting '*'</resource>
+
+ <!-- EXPECTING_CHAR -->
+ <resource key="EXPECTING_CHAR">Expecting char</resource>
+
+ <!-- UNTERMINATED_QUOTE -->
+ <resource key="UNTERMINATED_QUOTE">Unterminated quote.</resource>
+
+ <!-- UNEXPECTED_CHAR -->
+ <resource key="UNEXPECTED_CHAR">Unexpected character</resource>
+
+ <!-- INVALID_SAVED_STATE_OBJECT -->
+ <resource key="INVALID_SAVED_STATE_OBJECT">Invalid saved state object</resource>
+
+ <!-- PER_REQUEST_DISK_SPACE_LIMITS_EXCEEDED -->
+ <resource key="PER_REQUEST_DISK_SPACE_LIMITS_EXCEEDED">Per-request disk space limits exceeded.</resource>
+
+ <!-- POPVIEW_NO_VIEW_PUSHED -->
+ <resource key="POPVIEW_NO_VIEW_PUSHED">popView(): No view has been pushed.</resource>
+
+ <!-- POPVIEW_NO_VIEW_PUSHED -->
+ <resource key=">POPVIEW_NO_VIEW_PUSHED">popView(): No view has been pushed.</resource>
+
+
+ <!-- ONLY_HTTPSERVLETREQUEST_SUPPORTED -->
+ <resource key="ONLY_HTTPSERVLETREQUEST_SUPPORTED">Only HttpServletRequest supported</resource>
+
+ <!-- ONLY_HTTPSERVLETRESPONSE_SUPPORTED -->
+ <resource key="ONLY_HTTPSERVLETRESPONSE_SUPPORTED">Only HttpServletResponse supported</resource>
+
+
+ <!-- CANNOT_BE_NULL -->
+ <resource key="CANNOT_BE_NULL">{0} can not be null.</resource>
+
+ <!-- NULL_REQUEST_ON_THIS_CONTEXT -->
+ <resource key="NULL_REQUEST_ON_THIS_CONTEXT">Request is null on this context.</resource>
+
+ <!-- NULL_RESPONSE_ON_THIS_CONTEXT -->
+ <resource key="NULL_RESPONSE_ON_THIS_CONTEXT">Response is null on this context.</resource>
+
+ <!-- UNSUPPORTED_CONVERSION -->
+ <resource key="UNSUPPORTED_CONVERSION">Unsupported conversion from:{0} to:{1}</resource>
+
+ <!-- CANNOT_CONVERT -->
+ <resource key="CANNOT_CONVERT">Cannot convert to:{0}</resource>
+
+ <!-- NULL_NAME -->
+ <resource key="NULL_NAME">Null name</resource>
+
+ <!-- NULL_VALUE -->
+ <resource key="NULL_VALUE">Null value</resource>
+
+ <!-- PUTALL_OPERATION_NOT_SUPPORTED_FOR_WRAPPING -->
+ <resource key="PUTALL_OPERATION_NOT_SUPPORTED_FOR_WRAPPING">putAll operation not supported for WrappingMap</resource>
+
+ <!-- CLEAROPERATION -->
+ <resource key="CLEAROPERATION">clear operation not supported for WrappingMap</resource>
+
+ <!-- PROBLEM_LOADING -->
+ <resource key="PROBLEM_LOADING">Problem loading...</resource>
+
+ <!-- GRABBING_PIXELS -->
+ <resource key="GRABBING_PIXELS">While grabbing pixels:</resource>
+
+ <!-- ERROR_FETCHING_IMAGE -->
+ <resource key="ERROR_FETCHING_IMAGE">Error while fetching image. grabbed {0} pixel values of the {1} x {2} image.</resource>
+
+ <!-- EXCEEDED_GIF_COLOR_LIMIT -->
+ <resource key="EXCEEDED_GIF_COLOR_LIMIT">Exceeded gif color limit.</resource>
+
+ <!-- NO_SPACE_LEFT_FOR_TRANSPARENCY -->
+ <resource key="NO_SPACE_LEFT_FOR_TRANSPARENCY">No space left for transparency</resource>
+
+ <!-- DIFFERENT_LENGTHS_SOURCECOLORS_TARGETCOLORS -->
+ <resource key="DIFFERENT_LENGTHS_SOURCECOLORS_TARGETCOLORS">Different lengths - sourceColors and targetColors</resource>
+
+ <!-- REGION_METADATA_CANNOT_NEST -->
+ <resource key="REGION_METADATA_CANNOT_NEST">Cannot yet nest:{0} elements</resource>
+
+ <!-- DUPLICATE_RENDERER_TYPE -->
+ <resource key="DUPLICATE_RENDERER_TYPE">Duplicate renderer type "{0}" for family "{1}"</resource>
+
+ <!-- NO_RETURNID_AVAILABLE_FOR_RETURNING_FROM_DIALOG -->
+ <resource key="NO_RETURNID_AVAILABLE_FOR_RETURNING_FROM_DIALOG">No returnId is available for returning from the dialog; this usually means that you aren't in a dialog in the first place, or that the pageFlowScope is not available.</resource>
+
+ <!-- TRAINRENDERER_ONLY_RENDERS_INSTANCE -->
+ <resource key="TRAINRENDERER_ONLY_RENDERS_INSTANCE">TrainRenderer only renders instances of {0}, found {1}</resource>
+
+ <!-- SELECTONE_SUBMITTEDVALUE_INDEX_OUTSIDE_BOUNDS -->
+ <resource key="SELECTONE_SUBMITTEDVALUE_INDEX_OUTSIDE_BOUNDS">SelectOne submittedValue''s index {0} is out of bounds. It should be between 0 and {1}</resource>
+
+ <!-- SELECTONE_CANNOT_CONVERT_SUBMITTEDVALUE_INDEX_INTO_INTEGER -->
+ <resource key="SELECTONE_CANNOT_CONVERT_SUBMITTEDVALUE_INDEX_INTO_INTEGER">SelectOne could not convert submittedValue''s index {0} into int {1}</resource>
+
+ <!-- DONOT_CALL_THIS_FOR_COLUMN_HEADERS -->
+ <resource key="DONOT_CALL_THIS_FOR_COLUMN_HEADERS">Don't call this for column headers</resource>
+
+ <!-- NULL_CONTEXT_URL -->
+ <resource key="NULL_CONTEXT_URL">contextURI is null</resource>
+
+ <!-- CONTEXT_URI_ENDS_WITH_SLASH -->
+ <resource key="CONTEXT_URI_ENDS_WITH_SLASH">context URI for {0} ends with a slash</resource>
+
+ <!-- NULL_CONTEXTPATH -->
+ <resource key="NULL_CONTEXTPATH">contextPath is null {0}</resource>
+
+ <!-- REGISTERED_NULL_URI -->
+ <resource key="REGISTERED_NULL_URI">Registered null URI</resource>
+
+ <!-- NULL_PATH_REGISTERED -->
+ <resource key="NULL_PATH_REGISTERED">A null path was registered for {0}</resource>
+
+ <!-- NO_BASE_PATH_REGISTERED -->
+ <resource key="NO_BASE_PATH_REGISTERED">No base path registered</resource>
+
+ <!-- KEYS_AND_VALUES_MUST_MATCH -->
+ <resource key="KEYS_AND_VALUES_MUST_MATCH"># of keys and values must match</resource>
+
+ <!-- NOT_A_CHARACTER -->
+ <resource key="NOT_A_CHARACTER">{0} is not a character</resource>
+
+ <!-- CANNOT_FIND_CLASS -->
+ <resource key="CANNOT_FIND_CLASS">Could not find class {0}</resource>
+
+ <!-- CANNOT_BE_PARSED -->
+ <resource key="CANNOT_BE_PARSED">{0} cannot be parsed into a {1}</resource>
+
+ <!-- NULL_TYPE -->
+ <resource key="NULL_TYPE">type is null</resource>
+
+ <!-- CANNOT_COERCE_VALUE_OF_TYPE -->
+ <resource key="CANNOT_COERCE_VALUE_OF_TYPE">Could not coerce value of type {0} into type {1}</resource>
+
+ <!-- CANNOT_BE_COERCED -->
+ <resource key="CANNOT_BE_COERCED">{0} cannot be coerced into a java.awt.Color</resource>
+
+ <!-- CANNOT_FIND_FILE -->
+ <resource key="CANNOT_FIND_FILE">Could not find {1}</resource>
+
+ <!-- DECIMALFORMATCONTEXT_NOT_CLONEABLE -->
+ <resource key="DECIMALFORMATCONTEXT_NOT_CLONEABLE">DecimalFormatContext is not cloneable!</resource>
+
+ <!-- USER_DEFINED_SUBCLASSES_NOT_SUPOORTED -->
+ <resource key="USER_DEFINED_SUBCLASSES_NOT_SUPOORTED">User-defined subclasses not supported.</resource>
+
+ <!-- UNKNOWN_READING_DIRECTION -->
+ <resource key="UNKNOWN_READING_DIRECTION">Unknown reading direction: {0}</resource>
+
+ <!-- FORMAT_PARSEOBJECT_FAIL -->
+ <resource key="FORMAT_PARSEOBJECT_FAIL">Format.parseObject(String) failed</resource>
+
+ <!-- CANNOT_FORMAT_GIVEN_OBJECT_AS_A_COLOR -->
+ <resource key="CANNOT_FORMAT_GIVEN_OBJECT_AS_A_COLOR">Cannot format given Object as a Color</resource>
+
+ <!-- ILLEGAL_PATTERN_CHARACTER -->
+ <resource key="ILLEGAL_PATTERN_CHARACTER">Illegal pattern character ''{0}''</resource>
+
+ <!-- >ILLEGAL_PATTERN_CHARACTER -->
+ <resource key=">ILLEGAL_PATTERN_CHARACTER">Illegal pattern character ''{0}''</resource>
+
+ <!-- CONTENT_NOT_MULTIPART_FORM_DATA -->
+ <resource key="CONTENT_NOT_MULTIPART_FORM_DATA">Content is not multipart form data</resource>
+
+ <!-- ITEM_NOT_A_FILE -->
+ <resource key="ITEM_NOT_A_FILE">Item is not a file</resource>
+
+ <!-- ITEM_ALREADY_BEEN_READ_PAST -->
+ <resource key="ITEM_ALREADY_BEEN_READ_PAST">Item has already been read past.</resource>
+
+ <!-- INPUT_STREAM_ALREADY_REQUESTED -->
+ <resource key="INPUT_STREAM_ALREADY_REQUESTED">Input stream has already been requested.</resource>
+
+ <!-- UPLOADED_FILE_EXCEEDED_MAXIMUM_ALLOWED_LENGTH -->
+ <resource key="UPLOADED_FILE_EXCEEDED_MAXIMUM_ALLOWED_LENGTH">Uploaded file of length {0} bytes exceeded maximum allowed length ({1} bytes)</resource>
+
+ <!-- ITEM_ALREDY_BEEN_READ_PAST -->
+ <resource key="ITEM_ALREDY_BEEN_READ_PAST">Item has already been read past.</resource>
+
+ <!-- END_OF_FILE -->
+ <resource key="END_OF_FILE">End Of File</resource>
+
+ <!-- UNDECLARED_PREFIX -->
+ <resource key="UNDECLARED_PREFIX">Undeclared prefix: {0}</resource>
+
+ <!-- NULL_PARSER -->
+ <resource key="NULL_PARSER">parser is null</resource>
+
+ <!-- NULL_ROOTCLASS_ROOTPARSER -->
+ <resource key="NULL_ROOTCLASS_ROOTPARSER">Both rootClass and rootParser are null</resource>
+
+ <!-- CIRCULAR_INCLUDE_DETECTED -->
+ <resource key="CIRCULAR_INCLUDE_DETECTED">Circular include of {0} detected!</resource>
+
+ <!-- NULL_SKIN_ID -->
+ <resource key="NULL_SKIN_ID">Null id</resource>
+
+ <!-- NULL_LOCALE_CONTEXT -->
+ <resource key="NULL_LOCALE_CONTEXT">Null locale context</resource>
+
+ <!-- NULL_ICONNAME -->
+ <resource key="NULL_ICONNAME">Null iconName</resource>
+
+ <!-- NULL_STYLESHEETNAME -->
+ <resource key="NULL_STYLESHEETNAME">Null styleSheetName</resource>
+
+ <!-- NO_SKIN_SPECIFIED -->
+ <resource key="NO_SKIN_SPECIFIED">No Skin specified.</resource>
+
+ <!-- NO_INPUTSTREAM -->
+ <resource key="NO_INPUTSTREAM">Null inputStream</resource>
+
+ <!-- NULL_PARSEMANAGER -->
+ <resource key="NULL_PARSEMANAGER">Null parserManager</resource>
+
+ <!-- REQUIRED_XSS_FILE_SOURCE_NOT_EXIST -->
+ <resource key="REQUIRED_XSS_FILE_SOURCE_NOT_EXIST">Required XSS file {0} does not exist.</resource>
+
+ <!-- NULL_SOURCENAME -->
+ <resource key="NULL_SOURCENAME">Null sourceName</resource>
+
+ <!-- NULL_PROPERTYNAME -->
+ <resource key="NULL_PROPERTYNAME">Null propertyName</resource>
+
+ <!-- PROPERTYNODE_NAME_CANNOT_BE_NULL_OR_EMPTY -->
+ <resource key="PROPERTYNODE_NAME_CANNOT_BE_NULL_OR_EMPTY">PropertyNode's name cannot be null or the empty string.name is ''{0}'' and value is ''{1}''</resource>
+
+ <!-- CHILD_NOT_PROPERTYNODE_INSTANCE -->
+ <resource key="CHILD_NOT_PROPERTYNODE_INSTANCE">child not instance of PropertyNode</resource>
+
+ <!-- CHIL_NOT_INCLUDEPROEPRTYNODE_INSTANCE -->
+ <resource key="CHIL_NOT_INCLUDEPROEPRTYNODE_INSTANCE">child not an instance of IncludePropertyNode</resource>
+
+ <!-- NOT_NESTED_IN_UICOMPONENTTAG -->
+ <resource key="NOT_NESTED_IN_UICOMPONENTTAG">Not nested in a UIComponentTag</resource>
+
+ <!-- NO_COMPONENT_ASSOCIATED_WITH_UICOMPONENTTAG -->
+ <resource key="NO_COMPONENT_ASSOCIATED_WITH_UICOMPONENTTAG">No component associated with UIComponentTag</resource>
+
+ <!-- NAME_ATTRIBUTE_CANNOT_BE_EL_BOUND -->
+ <resource key="NAME_ATTRIBUTE_CANNOT_BE_EL_BOUND">Name attribute cannot be EL bound</resource>
+
+ <!-- COMPOENENTDEF_CANNOT_RUN_AS_STANDALONE -->
+ <resource key="COMPOENENTDEF_CANNOT_RUN_AS_STANDALONE">componentDef cannot be run as a stand-alone. It must be included inside a JSF component tree.</resource>
+
+ <!-- COMPONENTDEF_MUST_BE_INCLUDED_AS_CHILD_OF -->
+ <resource key="COMPONENTDEF_MUST_BE_INCLUDED_AS_CHILD_OF">componentDef must be included as a child of an <tr:componentRef>.</resource>
+
+ <!-- COMPONENTDEF_NOT_SUPPORT_EL -->
+ <resource key="COMPONENTDEF_NOT_SUPPORT_EL">tr:componentDef does not support EL on 'var'</resource>
+
+ <!-- MUST_BE_SIMPLE_JSF_EL_EXPRESSION -->
+ <resource key="MUST_BE_SIMPLE_JSF_EL_EXPRESSION">items must be a simple JSF EL expression</resource>
+
+ <!-- VAR_CANNOT_BE_EXPRESSION -->
+ <resource key="VAR_CANNOT_BE_EXPRESSION">"var" cannot be an expression</resource>
+
+ <!-- VARSTATUS_CANNOT_BE_EXPRESSION -->
+ <resource key="VARSTATUS_CANNOT_BE_EXPRESSION">"varStatus" cannot be an expression</resource>
+
+ <!-- MUST_POINT_TO_LIST_OR_ARRAY -->
+ <resource key="MUST_POINT_TO_LIST_OR_ARRAY">"items" must point to a List or array</resource>
+
+ <!-- MUST_SPECIFY_BEGIN_AND_END -->
+ <resource key="MUST_SPECIFY_BEGIN_AND_END">'begin' and 'end' should be specified if 'items' is not specified</resource>
+
+ <!-- MUST_NOT_HAVE_SAME_VALUE -->
+ <resource key="MUST_NOT_HAVE_SAME_VALUE">'var' and 'varStatus' must not have same value</resource>
+
+ <!-- BEGIN_BELOW_ZERO -->
+ <resource key="BEGIN_BELOW_ZERO">'begin' < 0</resource>
+
+ <!-- STEP_BELOW_ONE -->
+ <resource key="STEP_BELOW_ONE">'step' < 1</resource>
+
+ <!-- RESETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG -->
+ <resource key="RESETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG">ResetActionListener must be inside of a UIComponent tag.</resource>
+
+ <!-- RETURNACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG -->
+ <resource key="RETURNACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG">returnActionListener must be inside of a UIComponent tag.</resource>
+
+ <!-- SETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG -->
+ <resource key="SETACTIONLISTENER_MUST_INSIDE_UICOMPONENT_TAG">setActionListener must be inside of a UIComponent tag.</resource>
+
+ <!-- SETACTIONLISTENERS_TO_MUST_BE_EL_EXPRESSION -->
+ <resource key="SETACTIONLISTENERS_TO_MUST_BE_EL_EXPRESSION">setActionListener's 'to' attribute must be an EL expression.</resource>
+
+ <!-- COLOR_CODE_DOES_NOT_START_WITH_POUNDSIGN -->
+ <resource key="COLOR_CODE_DOES_NOT_START_WITH_POUNDSIGN">Color code {0} in ''{1}'' does not start with a ''#''</resource>
+
+ <!-- METHOD_CHANGED_TO_GETRENDERER -->
+ <resource key="METHOD_CHANGED_TO_GETRENDERER">This method changed to getRenderer(RenderingContext, UINode)</resource>
+
+ <!-- REPLACED_BY_GETINDEXEDNODELIST -->
+ <resource key="REPLACED_BY_GETINDEXEDNODELIST">Replaced in 2.0 by getIndexedNodeList()</resource>
+
+ <!-- REUSING_ROLE_INDEX -->
+ <resource key="REUSING_ROLE_INDEX">Reusing role index</resource>
+
+ <!-- ATTEMP_TO_REGISTER_NULL_RENDERER -->
+ <resource key="ATTEMP_TO_REGISTER_NULL_RENDERER">Attempt to register a null renderer for {0}</resource>
+
+ <!-- ONLY_CONTEXTBASEDCONFIGURATION_SUPPORTED -->
+ <resource key="ONLY_CONTEXTBASEDCONFIGURATION_SUPPORTED">Only ContextBasedConfiguration is supported</resource>
+
+ <!-- FACET_MAY_NOT_BE_SET_AFTER_RENDERERMANAGER_HAS_BEEN_ASSIGNED -->
+ <resource key="FACET_MAY_NOT_BE_SET_AFTER_RENDERERMANAGER_HAS_BEEN_ASSIGNED">The facet may not be set after the RendererManager has been assigned.</resource>
+
+ <!-- ILLEGAL_TO_SET_CHILDREN -->
+ <resource key="ILLEGAL_TO_SET_CHILDREN">It is illegal to set children on a {0}</resource>
+
+ <!-- ILLEGAL_TO_ADD_CHILDREN -->
+ <resource key="ILLEGAL_TO_ADD_CHILDREN">It is illegal to add children to a {0}</resource>
+
+ <!-- ILLEGAL_TO_REMOVE_CHILDREN -->
+ <resource key="ILLEGAL_TO_REMOVE_CHILDREN">It is illegal to remove children from a {0}</resource>
+
+ <!-- ILLEGAL_TO_SET_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST -->
+ <resource key="ILLEGAL_TO_SET_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST">It is illegal to set children on an UnmodifiableCompoundNodeList</resource>
+
+ <!-- ILLEGAL_TO_ADD_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST -->
+ <resource key="ILLEGAL_TO_ADD_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST">It is illegal to add children to an UnmodifiableCompoundNodeList</resource>
+
+ <!-- ILLEGAL_TO_REMOVE_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST -->
+ <resource key="ILLEGAL_TO_REMOVE_CHILDREN_ON_UNMODIFIABLECOMPOUNDNODELIST">It is illegal to remove children from an UnmodifiableCompoundNodeList</resource>
+
+ <!-- ADAPTER_CLASS_NOT_IMPLEMENT_BEANDOADAPTER -->
+ <resource key="ADAPTER_CLASS_NOT_IMPLEMENT_BEANDOADAPTER">Adapter class doesn't implement BeanDOAdapter</resource>
+
+ <!-- NOT_AN_INSTANCE -->
+ <resource key="NOT_AN_INSTANCE">{0} is not an instance of {1}</resource>
+
+ <!-- NULL_LEFTSIDEVALUE -->
+ <resource key="NULL_LEFTSIDEVALUE">leftSideValue is null</resource>
+
+ <!-- NULL_RIGHTSIDEVALUE -->
+ <resource key="NULL_RIGHTSIDEVALUE">rightSideValue is null</resource>
+
+ <!-- UNKNOWN_COMPARISON -->
+ <resource key="UNKNOWN_COMPARISON">Unknown comparison</resource>
+
+ <!-- TEST_BOUNDVALUE_REQUIRED -->
+ <resource key="TEST_BOUNDVALUE_REQUIRED">test BoundValue required</resource>
+
+ <!-- NULL_LIST_ARGUMENT -->
+ <resource key="NULL_LIST_ARGUMENT">Null list argument</resource>
+
+ <!-- NULL_DATA_OBJECT_ARGUMENT -->
+ <resource key="NULL_DATA_OBJECT_ARGUMENT">Null data object argument</resource>
+
+ <!-- NO_FACTORY_REGISTERED -->
+ <resource key="NO_FACTORY_REGISTERED">No factory registered for {0}</resource>
+
+ <!-- NULL_BASESCORER -->
+ <resource key="NULL_BASESCORER">Null baseScorer</resource>
+
+ <!-- NULL_BASESCORE -->
+ <resource key="NULL_BASESCORE">Null baseScore</resource>
+
+ <!-- FACET_NOT_SUPPORTED -->
+ <resource key="FACET_NOT_SUPPORTED">Facet {0} is not supported on {1}</resource>
+
+ <!-- NUMBER_OF_KEYS_AND_VALUES_MUCH_MATCH -->
+ <resource key="NUMBER_OF_KEYS_AND_VALUES_MUCH_MATCH"># of keys and values much match</resource>
+
+ <!-- CHILD_NOT_NULL_NOT_ICONNODE_INSTANCE -->
+ <resource key="CHILD_NOT_NULL_NOT_ICONNODE_INSTANCE">child is not null and not an instance of IconNode</resource>
+
+ <!-- NULL_RENDERERS_NO_RENDERERS_PASSED -->
+ <resource key="NULL_RENDERERS_NO_RENDERERS_PASSED">"Null renderers or no renderers passed"</resource>
+
+ <!-- NULL_CHILD_NOT_REDNERERNODE_INSTANCE -->
+ <resource key="NULL_CHILD_NOT_REDNERERNODE_INSTANCE">Null child or child not an instance of RendererNode</resource>
+
+ <!-- NULL_FAMILY -->
+ <resource key="NULL_FAMILY">Null family</resource>
+
+ <!-- NON_NULL_CHILD_NOT_SKINPROPERTYNODE_INSTANCE -->
+ <resource key="NON_NULL_CHILD_NOT_SKINPROPERTYNODE_INSTANCE">Non Null child and child not an instance of SkinPropertyNode</resource>
+
+ <!-- RENDERINGCONTEXT_HAS_BEEN_CREATED -->
+ <resource key="RENDERINGCONTEXT_HAS_BEEN_CREATED">RenderingContext has already been created!</resource>
+
+ <!-- NOT_SUPERCLASS_OF -->
+ <resource key="NOT_SUPERCLASS_OF">{0} not superclass of {1}</resource>
+
+ <!-- UNEXPECTED_REFLECTION -->
+ <resource key="UNEXPECTED_REFLECTION">Unexpected reflection exception: {0}</resource>
+
+ <!-- JAVASCRIPT_NOT_SUPPORT_NULL_KEYS -->
+ <resource key="JAVASCRIPT_NOT_SUPPORT_NULL_KEYS">Javascript does not support null keys</resource>
+
+ <!-- ENCODING_UNSUPPORTED_BY_JVM -->
+ <resource key="ENCODING_UNSUPPORTED_BY_JVM">Encoding: {0} is unsupported by JVM</resource>
+
</resources>