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 2007/02/11 19:51:56 UTC
svn commit: r506092 - in /myfaces/tobago/trunk:
core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java
theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java
Author: bommel
Date: Sun Feb 11 10:51:56 2007
New Revision: 506092
URL: http://svn.apache.org/viewvc?view=rev&rev=506092
Log:
cleanup
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java
myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java?view=diff&rev=506092&r1=506091&r2=506092
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/HtmlUtils.java Sun Feb 11 10:51:56 2007
@@ -26,8 +26,6 @@
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
-import javax.faces.validator.LongRangeValidator;
-import javax.faces.validator.Validator;
public class HtmlUtils {
@@ -59,7 +57,7 @@
FacesContext facesContext) {
StringBuilder buffer = new StringBuilder();
- Validator[] validators = component.getValidators();
+ /*Validator[] validators = component.getValidators();
for (int i = 0; i < validators.length; i++) {
if (validators[i] instanceof LongRangeValidator) {
String functionCall = "validateLongRange('"
@@ -74,7 +72,7 @@
if (i + 1 < validators.length) { // is not last
buffer.append(" && ");
}
- }
+ } */
Object onchange = component.getAttributes().get(ATTR_ONCHANGE);
if (onchange != null) { // append the onchange attribute
Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java?view=diff&rev=506092&r1=506091&r2=506092
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PanelRenderer.java Sun Feb 11 10:51:56 2007
@@ -46,7 +46,6 @@
import javax.faces.context.ResponseWriter;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
-import java.util.Iterator;
public class PanelRenderer extends RendererBase implements AjaxRenderer {
@@ -94,8 +93,8 @@
}
height = 0;
- for (Iterator iterator = component.getChildren().iterator(); iterator.hasNext();) {
- UIComponent child = (UIComponent) iterator.next();
+ for (Object o : component.getChildren()) {
+ UIComponent child = (UIComponent) o;
RendererBase renderer = ComponentUtil.getRenderer(facesContext, child);
if (renderer == null
&& child instanceof UINamingContainer