You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/10/30 18:36:00 UTC
svn commit: r831399 - in
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util:
ComponentUtil.java ComponentUtils.java
Author: lofwyr
Date: Fri Oct 30 17:36:00 2009
New Revision: 831399
URL: http://svn.apache.org/viewvc?rev=831399&view=rev
Log:
TOBAGO-412: rename ComponentUtil to ComponentUtils
Added:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java (contents, props changed)
- copied, changed from r831309, myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtil.java
Removed:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtil.java
Copied: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java (from r831309, myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtil.java)
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java?p2=myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java&p1=myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtil.java&r1=831309&r2=831399&rev=831399&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtil.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java Fri Oct 30 17:36:00 2009
@@ -71,12 +71,12 @@
import java.util.List;
import java.util.Map;
-public class ComponentUtil {
+public class ComponentUtils {
- private static final Log LOG = LogFactory.getLog(ComponentUtil.class);
+ private static final Log LOG = LogFactory.getLog(ComponentUtils.class);
private static final String RENDER_KEY_PREFIX
- = "org.apache.myfaces.tobago.util.ComponentUtil.RendererKeyPrefix_";
+ = "org.apache.myfaces.tobago.util.ComponentUtils.RendererKeyPrefix_";
private static final String PAGE_KEY = "org.apache.myfaces.tobago.Page.Key";
@@ -86,7 +86,7 @@
public static final Class[] VALIDATOR_ARGS = {FacesContext.class, UIComponent.class, Object.class};
public static final String LIST_SEPARATOR_CHARS = ", ";
- private ComponentUtil() {
+ private ComponentUtils() {
}
public static boolean hasErrorMessages(FacesContext context) {
@@ -292,7 +292,7 @@
public static boolean mayValidate(UIComponent component) {
return !isOutputOnly(component)
- && ComponentUtil.isInActiveForm(component);
+ && ComponentUtils.isInActiveForm(component);
}
public static boolean mayUpdateModel(UIComponent component) {
@@ -329,16 +329,6 @@
return FacesContext.getCurrentInstance().getApplication().createValueBinding(value);
}
- public static void setStringProperty(UIComponent component, String name, String value) {
- if (value != null) {
- if (UIComponentTag.isValueReference(value)) {
- component.setValueBinding(name, createValueBinding(value));
- } else {
- component.getAttributes().put(name, value);
- }
- }
- }
-
public static void setStyleClasses(UIComponent component, String styleClasses) {
if (styleClasses != null) {
if (UIComponentTag.isValueReference(styleClasses)) {
@@ -585,7 +575,7 @@
}
public static boolean isHoverEnabled(UIComponent component) {
- return ComponentUtil.getBooleanAttribute(component, Attributes.HOVER);
+ return ComponentUtils.getBooleanAttribute(component, Attributes.HOVER);
}
public static UIOutput getFirstNonGraphicChild(UIComponent component) {
@@ -683,7 +673,7 @@
Application application = FacesContext.getCurrentInstance().getApplication();
label = application.createComponent(UIOutput.COMPONENT_TYPE);
label.setRendererType(RendererTypes.LABEL);
- String idprefix = ComponentUtil.getComponentId(facesContext, component);
+ String idprefix = ComponentUtils.getComponentId(facesContext, component);
label.setId(idprefix + "_" + Facets.LABEL);
label.setRendered(true);
Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL