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 2010/08/07 11:51:38 UTC
svn commit: r983193 -
/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
Author: bommel
Date: Sat Aug 7 09:51:37 2010
New Revision: 983193
URL: http://svn.apache.org/viewvc?rev=983193&view=rev
Log:
(TOBAGO-904) Problem with tc:selectOneChoice in sheet
Modified:
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java?rev=983193&r1=983192&r2=983193&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/component/ComponentUtil.java Sat Aug 7 09:51:37 2010
@@ -263,7 +263,7 @@ public class ComponentUtil {
public static <T extends UIComponent> T findDescendant(UIComponent component, Class<T> type) {
- for (UIComponent child : (List<UIComponent>)component.getChildren()) {
+ for (UIComponent child : (List<UIComponent>) component.getChildren()) {
if (child.getClass().equals(type)) {
return (T) component;
}
@@ -708,7 +708,7 @@ public class ComponentUtil {
}
private static String spaces(int n) {
- StringBuilder buffer = new StringBuilder();
+ StringBuilder buffer = new StringBuilder(n * 2);
for (int i = 0; i < n; i++) {
buffer.append(" ");
}