You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by id...@apache.org on 2007/05/08 15:26:47 UTC

svn commit: r536195 - in /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago: ajax/api/ component/ context/ lifecycle/ renderkit/ renderkit/html/ util/

Author: idus
Date: Tue May  8 06:26:45 2007
New Revision: 536195

URL: http://svn.apache.org/viewvc?view=rev&rev=536195
Log:
checkstyle

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxResponseRenderer.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/FixedLayoutToken.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/HideLayoutToken.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/LayoutToken.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/LayoutTokens.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/MinimumLayoutToken.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/PercentLayoutToken.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/PixelLayoutToken.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/RelativeLayoutToken.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/TransientStateHolder.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java   (contents, props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/InvokeApplicationExecutor.java   (contents, props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/PhaseExecutor.java   (contents, props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java   (contents, props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RenderResponseExecutor.java   (contents, props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RestoreViewExecutor.java   (contents, props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/TobagoLifecycleFactory.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java   (contents, props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/CommandRendererHelper.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/StyleClasses.java   (props changed)
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ResponseWriterBuffer.java   (contents, props changed)

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/ajax/api/AjaxResponseRenderer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/FixedLayoutToken.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/HideLayoutToken.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/LayoutToken.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/LayoutTokens.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/MinimumLayoutToken.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/PercentLayoutToken.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/PixelLayoutToken.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/RelativeLayoutToken.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/TransientStateHolder.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java Tue May  8 06:26:45 2007
@@ -1,108 +1,108 @@
-package org.apache.myfaces.tobago.lifecycle;
-
-/*
- * 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.
- */
-
-import static javax.faces.event.PhaseId.APPLY_REQUEST_VALUES;
-
-import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
-import org.apache.myfaces.tobago.component.ComponentUtil;
-import org.apache.myfaces.tobago.component.UIPage;
-import org.apache.myfaces.tobago.component.UIViewRoot;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseId;
-import javax.faces.component.UIComponent;
-import javax.faces.component.UIData;
-import java.util.ArrayList;
-
-/**
- * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- *
- * Apply request values phase (JSF Spec 2.2.2)
- */
-class ApplyRequestValuesExecutor implements PhaseExecutor {
-  private static final Log LOG = LogFactory.getLog(ApplyRequestValuesExecutor.class);
-
-  public boolean execute(FacesContext facesContext) {
-    ArrayList<UIComponent> ajaxComponents
-        = AjaxUtils.parseAndStoreComponents(facesContext);
-    if (ajaxComponents != null) {
-      // first decode the page
-      UIPage page = ComponentUtil.findPage(facesContext);
-      page.decode(facesContext);
-      page.markSubmittedForm(facesContext);
-
-      // decode the action if actioncomponent not inside one of the ajaxcomponets
-      // otherwise it is decoded there
-      String actionId = page.getActionId();
-      UIComponent actionComponent = null;
-      if (actionId != null) {
-        actionComponent = page.findComponent(actionId);
-      }
-
-      if (actionComponent != null) {
-        boolean decodeNeeded = true;
-        UIData sheet = null;
-
-        for (UIComponent ajaxComponent : ajaxComponents) {
-          UIComponent component = actionComponent;
-          while (component != null) {
-            if (component == ajaxComponent) {
-              decodeNeeded = false;
-              break;
-            } else {
-              component = component.getParent();
-              if (component instanceof UIData) {
-                sheet = (UIData) component;
-              }
-            }
-          }
-          if (!decodeNeeded) {
-            break;
-          }
-        }        
-        if (decodeNeeded) {
-          if (sheet == null) {
-            actionComponent.processDecodes(facesContext);
-          } else {
-            // action component is inside UIData, we need to proccess this component!
-            sheet.processDecodes(facesContext);
-          }
-        }
-      }
-
-      // and all ajax components
-      for (UIComponent ajaxComponent : ajaxComponents) {
-        ajaxComponent.processDecodes(facesContext);
-      }
-
-      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
-      viewRoot.broadcastEventsForPhase(facesContext, APPLY_REQUEST_VALUES);
-
-    } else {
-      facesContext.getViewRoot().processDecodes(facesContext);
-    }
-    return false;
-  }
-
-  public PhaseId getPhase() {
-    return APPLY_REQUEST_VALUES;
-  }
-}
+package org.apache.myfaces.tobago.lifecycle;
+
+/*
+ * 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.
+ */
+
+import static javax.faces.event.PhaseId.APPLY_REQUEST_VALUES;
+
+import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
+import org.apache.myfaces.tobago.component.ComponentUtil;
+import org.apache.myfaces.tobago.component.UIPage;
+import org.apache.myfaces.tobago.component.UIViewRoot;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseId;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIData;
+import java.util.ArrayList;
+
+/**
+ * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
+ *
+ * Apply request values phase (JSF Spec 2.2.2)
+ */
+class ApplyRequestValuesExecutor implements PhaseExecutor {
+  private static final Log LOG = LogFactory.getLog(ApplyRequestValuesExecutor.class);
+
+  public boolean execute(FacesContext facesContext) {
+    ArrayList<UIComponent> ajaxComponents
+        = AjaxUtils.parseAndStoreComponents(facesContext);
+    if (ajaxComponents != null) {
+      // first decode the page
+      UIPage page = ComponentUtil.findPage(facesContext);
+      page.decode(facesContext);
+      page.markSubmittedForm(facesContext);
+
+      // decode the action if actioncomponent not inside one of the ajaxcomponets
+      // otherwise it is decoded there
+      String actionId = page.getActionId();
+      UIComponent actionComponent = null;
+      if (actionId != null) {
+        actionComponent = page.findComponent(actionId);
+      }
+
+      if (actionComponent != null) {
+        boolean decodeNeeded = true;
+        UIData sheet = null;
+
+        for (UIComponent ajaxComponent : ajaxComponents) {
+          UIComponent component = actionComponent;
+          while (component != null) {
+            if (component == ajaxComponent) {
+              decodeNeeded = false;
+              break;
+            } else {
+              component = component.getParent();
+              if (component instanceof UIData) {
+                sheet = (UIData) component;
+              }
+            }
+          }
+          if (!decodeNeeded) {
+            break;
+          }
+        }        
+        if (decodeNeeded) {
+          if (sheet == null) {
+            actionComponent.processDecodes(facesContext);
+          } else {
+            // action component is inside UIData, we need to proccess this component!
+            sheet.processDecodes(facesContext);
+          }
+        }
+      }
+
+      // and all ajax components
+      for (UIComponent ajaxComponent : ajaxComponents) {
+        ajaxComponent.processDecodes(facesContext);
+      }
+
+      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
+      viewRoot.broadcastEventsForPhase(facesContext, APPLY_REQUEST_VALUES);
+
+    } else {
+      facesContext.getViewRoot().processDecodes(facesContext);
+    }
+    return false;
+  }
+
+  public PhaseId getPhase() {
+    return APPLY_REQUEST_VALUES;
+  }
+}

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ApplyRequestValuesExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/InvokeApplicationExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/InvokeApplicationExecutor.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/InvokeApplicationExecutor.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/InvokeApplicationExecutor.java Tue May  8 06:26:45 2007
@@ -1,37 +1,37 @@
-package org.apache.myfaces.tobago.lifecycle;
-
-/*
- * 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.
- */
-
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseId;
-
-/**
- * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- *
- * Invoke application phase (JSF Spec 2.2.5)
- */
-class InvokeApplicationExecutor implements PhaseExecutor {
-  public boolean execute(FacesContext facesContext) {
-    facesContext.getViewRoot().processApplication(facesContext);
-    return false;
-  }
-
-  public PhaseId getPhase() {
-    return PhaseId.INVOKE_APPLICATION;
-  }
-}
+package org.apache.myfaces.tobago.lifecycle;
+
+/*
+ * 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.
+ */
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseId;
+
+/**
+ * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
+ *
+ * Invoke application phase (JSF Spec 2.2.5)
+ */
+class InvokeApplicationExecutor implements PhaseExecutor {
+  public boolean execute(FacesContext facesContext) {
+    facesContext.getViewRoot().processApplication(facesContext);
+    return false;
+  }
+
+  public PhaseId getPhase() {
+    return PhaseId.INVOKE_APPLICATION;
+  }
+}

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/InvokeApplicationExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/PhaseExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/PhaseExecutor.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/PhaseExecutor.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/PhaseExecutor.java Tue May  8 06:26:45 2007
@@ -1,42 +1,42 @@
-package org.apache.myfaces.tobago.lifecycle;
-
-/*
- * 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.
- */
-
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseId;
-
-/**
- * Implements the PhaseExecutor for a lifecycle
- */
-interface PhaseExecutor {
-
-  /**
-   * Executes a phase of the JavaServer(tm) Faces lifecycle, like UpdateModelValues.
-   * The <code>execute</code> method is called by the lifecylce implementation's private
-   * <code>executePhase</code>.
-   * @param facesContext The <code>FacesContext</code> for the current request we are processing 
-   * @return <code>true</code> if execution should be stopped
-   */
-  boolean execute(FacesContext facesContext);
-
-  /**
-   * Returns the <code>PhaseId</code> for which the implemented executor is invoked 
-   * @return
-   */
-  PhaseId getPhase();
-}
+package org.apache.myfaces.tobago.lifecycle;
+
+/*
+ * 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.
+ */
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseId;
+
+/**
+ * Implements the PhaseExecutor for a lifecycle
+ */
+interface PhaseExecutor {
+
+  /**
+   * Executes a phase of the JavaServer(tm) Faces lifecycle, like UpdateModelValues.
+   * The <code>execute</code> method is called by the lifecylce implementation's private
+   * <code>executePhase</code>.
+   * @param facesContext The <code>FacesContext</code> for the current request we are processing 
+   * @return <code>true</code> if execution should be stopped
+   */
+  boolean execute(FacesContext facesContext);
+
+  /**
+   * Returns the <code>PhaseId</code> for which the implemented executor is invoked 
+   * @return
+   */
+  PhaseId getPhase();
+}

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/PhaseExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java Tue May  8 06:26:45 2007
@@ -1,52 +1,52 @@
-package org.apache.myfaces.tobago.lifecycle;
-
-/*
- * 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.
- */
-
-import static javax.faces.event.PhaseId.PROCESS_VALIDATIONS;
-
-import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
-import org.apache.myfaces.tobago.component.UIViewRoot;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseId;
-import java.util.List;
-
-/**
- * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- * Process validations phase (JSF Spec 2.2.3)
- */
-class ProcessValidationsExecutor implements PhaseExecutor {
-  public boolean execute(FacesContext facesContext) {
-    List<UIComponent> ajaxComponents = AjaxUtils.getAjaxComponents(facesContext);
-    if (ajaxComponents != null) {
-      for (UIComponent ajaxComponent : ajaxComponents) {
-        ajaxComponent.processValidators(facesContext);
-      }
-      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
-      viewRoot.broadcastEventsForPhase(facesContext, PROCESS_VALIDATIONS);
-    } else {
-    facesContext.getViewRoot().processValidators(facesContext);
-    }
-    return false;
-  }
-
-  public PhaseId getPhase() {
-    return PROCESS_VALIDATIONS;
-  }
-}
+package org.apache.myfaces.tobago.lifecycle;
+
+/*
+ * 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.
+ */
+
+import static javax.faces.event.PhaseId.PROCESS_VALIDATIONS;
+
+import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
+import org.apache.myfaces.tobago.component.UIViewRoot;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseId;
+import java.util.List;
+
+/**
+ * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
+ * Process validations phase (JSF Spec 2.2.3)
+ */
+class ProcessValidationsExecutor implements PhaseExecutor {
+  public boolean execute(FacesContext facesContext) {
+    List<UIComponent> ajaxComponents = AjaxUtils.getAjaxComponents(facesContext);
+    if (ajaxComponents != null) {
+      for (UIComponent ajaxComponent : ajaxComponents) {
+        ajaxComponent.processValidators(facesContext);
+      }
+      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
+      viewRoot.broadcastEventsForPhase(facesContext, PROCESS_VALIDATIONS);
+    } else {
+    facesContext.getViewRoot().processValidators(facesContext);
+    }
+    return false;
+  }
+
+  public PhaseId getPhase() {
+    return PROCESS_VALIDATIONS;
+  }
+}

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/ProcessValidationsExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RenderResponseExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RenderResponseExecutor.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RenderResponseExecutor.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RenderResponseExecutor.java Tue May  8 06:26:45 2007
@@ -1,67 +1,67 @@
-package org.apache.myfaces.tobago.lifecycle;
-
-/*
- * 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.
- */
-
-import org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer;
-import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
-
-import javax.faces.FacesException;
-import javax.faces.application.Application;
-import javax.faces.application.ViewHandler;
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseId;
-import java.io.IOException;
-
-/**
- * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- *
- * render response phase (JSF Spec 2.2.6)
- */
-class RenderResponseExecutor implements PhaseExecutor {
-
-  private AjaxResponseRenderer ajaxResponseRenderer;
-
-
-  public RenderResponseExecutor() {
-    this.ajaxResponseRenderer = new AjaxResponseRenderer();
-  }
-
-  public boolean execute(FacesContext facesContext) {
-    if (AjaxUtils.getAjaxComponents(facesContext) != null) {
-      try {
-        ajaxResponseRenderer.renderResponse(facesContext);
-      } catch (IOException e) {
-        throw new FacesException(e.getMessage(), e);
-      }
-    } else {
-      Application application = facesContext.getApplication();
-      ViewHandler viewHandler = application.getViewHandler();
-
-      try {
-        viewHandler.renderView(facesContext, facesContext.getViewRoot());
-      } catch (IOException e) {
-        throw new FacesException(e.getMessage(), e);
-      }
-    }
-    return false;
-  }
-
-  public PhaseId getPhase() {
-    return PhaseId.RENDER_RESPONSE;
-  }
-}
+package org.apache.myfaces.tobago.lifecycle;
+
+/*
+ * 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.
+ */
+
+import org.apache.myfaces.tobago.ajax.api.AjaxResponseRenderer;
+import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
+
+import javax.faces.FacesException;
+import javax.faces.application.Application;
+import javax.faces.application.ViewHandler;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseId;
+import java.io.IOException;
+
+/**
+ * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
+ *
+ * render response phase (JSF Spec 2.2.6)
+ */
+class RenderResponseExecutor implements PhaseExecutor {
+
+  private AjaxResponseRenderer ajaxResponseRenderer;
+
+
+  public RenderResponseExecutor() {
+    this.ajaxResponseRenderer = new AjaxResponseRenderer();
+  }
+
+  public boolean execute(FacesContext facesContext) {
+    if (AjaxUtils.getAjaxComponents(facesContext) != null) {
+      try {
+        ajaxResponseRenderer.renderResponse(facesContext);
+      } catch (IOException e) {
+        throw new FacesException(e.getMessage(), e);
+      }
+    } else {
+      Application application = facesContext.getApplication();
+      ViewHandler viewHandler = application.getViewHandler();
+
+      try {
+        viewHandler.renderView(facesContext, facesContext.getViewRoot());
+      } catch (IOException e) {
+        throw new FacesException(e.getMessage(), e);
+      }
+    }
+    return false;
+  }
+
+  public PhaseId getPhase() {
+    return PhaseId.RENDER_RESPONSE;
+  }
+}

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RenderResponseExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RestoreViewExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RestoreViewExecutor.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RestoreViewExecutor.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RestoreViewExecutor.java Tue May  8 06:26:45 2007
@@ -1,229 +1,229 @@
-package org.apache.myfaces.tobago.lifecycle;
-
-/*
- * 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.
- */
-
-import static org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.FACES_MESSAGES_KEY;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import static org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.VIEW_ROOT_KEY;
-
-import javax.faces.FacesException;
-import javax.faces.application.Application;
-import javax.faces.application.ViewHandler;
-import javax.faces.application.FacesMessage;
-import javax.faces.component.UIComponent;
-import javax.faces.component.UIInput;
-import javax.faces.component.UIViewRoot;
-import javax.faces.context.ExternalContext;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ValueBinding;
-import javax.faces.event.PhaseId;
-import java.io.IOException;
-import java.lang.reflect.Method;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.List;
-//import org.apache.myfaces.portlet.MyFacesGenericPortlet;
-//import org.apache.myfaces.portlet.PortletUtil;
-
-/**
- * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- *
- * Restore view phase (JSF Spec 2.2.1)
- */
-class RestoreViewExecutor implements PhaseExecutor {
-
-  private static final Log LOG = LogFactory.getLog(RestoreViewExecutor.class);
-
-  public boolean execute(FacesContext facesContext) {
-    ExternalContext externalContext = facesContext.getExternalContext();
-
-    Map sessionMap = externalContext.getSessionMap();
-    UIViewRoot viewRoot = (UIViewRoot) sessionMap.get(VIEW_ROOT_KEY);
-    if (viewRoot != null) {
-      facesContext.setViewRoot(viewRoot);
-      sessionMap.remove(VIEW_ROOT_KEY);
-      //noinspection unchecked
-      List<Object[]> messageHolders
-          = (List<Object[]>) sessionMap.get(FACES_MESSAGES_KEY);
-      if (messageHolders != null) {
-        for (Object[] messageHolder : messageHolders) {
-          facesContext.addMessage((String) messageHolder[0], (FacesMessage) messageHolder[1]);
-        }
-      }
-      sessionMap.remove(FACES_MESSAGES_KEY);
-      facesContext.renderResponse();
-      return true;
-    }
-
-    if(facesContext.getViewRoot() != null) {
-      facesContext.getViewRoot().setLocale(facesContext.getExternalContext().getRequestLocale());
-      recursivelyHandleComponentReferencesAndSetValid(facesContext, facesContext.getViewRoot());
-      return false;
-    }
-
-    // Derive view identifier
-    String viewId = deriveViewId(facesContext);
-
-    if (viewId == null) {
-
-      if(externalContext.getRequestServletPath() == null) {
-        return true;
-      }
-
-      if (!externalContext.getRequestServletPath().endsWith("/")) {
-        try {
-          externalContext.redirect(externalContext.getRequestServletPath() + "/");
-          facesContext.responseComplete();
-          return true;
-        } catch (IOException e) {
-          throw new FacesException("redirect failed", e);
-        }
-      }
-    }
-
-    Application application = facesContext.getApplication();
-    ViewHandler viewHandler = application.getViewHandler();
-
-    // boolean viewCreated = false;
-    viewRoot = viewHandler.restoreView(facesContext, viewId);
-    if (viewRoot == null) {
-      viewRoot = viewHandler.createView(facesContext, viewId);
-      viewRoot.setViewId(viewId);
-      facesContext.renderResponse();
-      // viewCreated = true;
-    }
-
-    facesContext.setViewRoot(viewRoot);
-
-    if (facesContext.getExternalContext().getRequestParameterMap().isEmpty()) {
-      // no POST or query parameters --> set render response flag
-      facesContext.renderResponse();
-    }
-
-    recursivelyHandleComponentReferencesAndSetValid(facesContext, viewRoot);
-    //noinspection unchecked
-    facesContext.getExternalContext().getRequestMap().put(VIEW_ROOT_KEY, viewRoot);
-    return false;
-  }
-
-  public PhaseId getPhase() {
-    return PhaseId.RESTORE_VIEW;
-  }
-
-  private static String deriveViewId(FacesContext facesContext) {
-    ExternalContext externalContext = facesContext.getExternalContext();
-
-    // TODO: Portlet
-//    if (PortletUtil.isPortletRequest(facesContext)) {
-//      PortletRequest request = (PortletRequest) externalContext.getRequest();
-//      return request.getParameter(MyFacesGenericPortlet.VIEW_ID);
-//    }
-
-    String viewId = externalContext.getRequestPathInfo(); // getPathInfo
-    if (viewId == null) {
-      // No extra path info found, so it is propably extension mapping
-      viewId = externalContext.getRequestServletPath(); // getServletPath
-      if (viewId == null) {
-        String msg = "RequestServletPath is null, cannot determine viewId of current page.";
-        LOG.error(msg);
-        throw new FacesException(msg);
-      }
-
-      // TODO: JSF Spec 2.2.1 - what do they mean by "if the default
-      // ViewHandler implementation is used..." ?
-      String defaultSuffix = externalContext.getInitParameter(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);
-      String suffix = defaultSuffix != null ? defaultSuffix : ViewHandler.DEFAULT_SUFFIX;
-      if (suffix.charAt(0) != '.') {
-        String msg = "Default suffix must start with a dot!";
-        LOG.error(msg);
-        throw new FacesException(msg);
-      }
-
-      int dot = viewId.lastIndexOf('.');
-      if (dot == -1) {
-        LOG.error("Assumed extension mapping, but there is no extension in " + viewId);
-        viewId = null;
-      } else {
-        viewId = viewId.substring(0, dot) + suffix;
-      }
-    }
-
-    return viewId;
-  }
-
-
-
-  // next two methods are taken from 'org.apache.myfaces.shared.util.RestoreStateUtils'
-
-  public static void recursivelyHandleComponentReferencesAndSetValid(FacesContext facesContext,
-                                                                     UIComponent parent)
-  {
-    boolean forceHandle = false;
-
-    Method handleBindingsMethod = getBindingMethod(parent);
-
-    if(handleBindingsMethod!=null && !forceHandle) {
-      try {
-        handleBindingsMethod.invoke(parent, new Object[]{});
-      } catch (Throwable th) {
-        LOG.error("Exception while invoking handleBindings on component with client-id:"
-            + parent.getClientId(facesContext), th);
-      }
-    } else {
-      for (Iterator it = parent.getFacetsAndChildren(); it.hasNext();) {
-        UIComponent component = (UIComponent) it.next();
-
-        ValueBinding binding = component.getValueBinding("binding");    //TODO: constant
-        if (binding != null && !binding.isReadOnly(facesContext)) {
-          binding.setValue(facesContext, component);
-        }
-
-        if (component instanceof UIInput) {
-          ((UIInput) component).setValid(true);
-        }
-
-        recursivelyHandleComponentReferencesAndSetValid(facesContext, component);
-      }
-    }
-  }
-
-  /**This is all a hack to work around a spec-bug which will be fixed in JSF2.0
-   *
-   * @param parent
-   * @return true if this component is bindingAware (e.g. aliasBean)
-   */
-  private static Method getBindingMethod(UIComponent parent) {
-    Class[] clazzes = parent.getClass().getInterfaces();
-
-    for (Class clazz : clazzes) {
-      if (clazz.getName().indexOf("BindingAware") != -1) {
-        try {
-          return parent.getClass().getMethod("handleBindings", new Class[]{});
-        } catch (NoSuchMethodException e) {
-          // return
-        }
-      }
-    }
-
-    return null;
-  }
-
-}
+package org.apache.myfaces.tobago.lifecycle;
+
+/*
+ * 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.
+ */
+
+import static org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.FACES_MESSAGES_KEY;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import static org.apache.myfaces.tobago.lifecycle.TobagoLifecycle.VIEW_ROOT_KEY;
+
+import javax.faces.FacesException;
+import javax.faces.application.Application;
+import javax.faces.application.ViewHandler;
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIInput;
+import javax.faces.component.UIViewRoot;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import javax.faces.event.PhaseId;
+import java.io.IOException;
+import java.lang.reflect.Method;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.List;
+//import org.apache.myfaces.portlet.MyFacesGenericPortlet;
+//import org.apache.myfaces.portlet.PortletUtil;
+
+/**
+ * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
+ *
+ * Restore view phase (JSF Spec 2.2.1)
+ */
+class RestoreViewExecutor implements PhaseExecutor {
+
+  private static final Log LOG = LogFactory.getLog(RestoreViewExecutor.class);
+
+  public boolean execute(FacesContext facesContext) {
+    ExternalContext externalContext = facesContext.getExternalContext();
+
+    Map sessionMap = externalContext.getSessionMap();
+    UIViewRoot viewRoot = (UIViewRoot) sessionMap.get(VIEW_ROOT_KEY);
+    if (viewRoot != null) {
+      facesContext.setViewRoot(viewRoot);
+      sessionMap.remove(VIEW_ROOT_KEY);
+      //noinspection unchecked
+      List<Object[]> messageHolders
+          = (List<Object[]>) sessionMap.get(FACES_MESSAGES_KEY);
+      if (messageHolders != null) {
+        for (Object[] messageHolder : messageHolders) {
+          facesContext.addMessage((String) messageHolder[0], (FacesMessage) messageHolder[1]);
+        }
+      }
+      sessionMap.remove(FACES_MESSAGES_KEY);
+      facesContext.renderResponse();
+      return true;
+    }
+
+    if(facesContext.getViewRoot() != null) {
+      facesContext.getViewRoot().setLocale(facesContext.getExternalContext().getRequestLocale());
+      recursivelyHandleComponentReferencesAndSetValid(facesContext, facesContext.getViewRoot());
+      return false;
+    }
+
+    // Derive view identifier
+    String viewId = deriveViewId(facesContext);
+
+    if (viewId == null) {
+
+      if(externalContext.getRequestServletPath() == null) {
+        return true;
+      }
+
+      if (!externalContext.getRequestServletPath().endsWith("/")) {
+        try {
+          externalContext.redirect(externalContext.getRequestServletPath() + "/");
+          facesContext.responseComplete();
+          return true;
+        } catch (IOException e) {
+          throw new FacesException("redirect failed", e);
+        }
+      }
+    }
+
+    Application application = facesContext.getApplication();
+    ViewHandler viewHandler = application.getViewHandler();
+
+    // boolean viewCreated = false;
+    viewRoot = viewHandler.restoreView(facesContext, viewId);
+    if (viewRoot == null) {
+      viewRoot = viewHandler.createView(facesContext, viewId);
+      viewRoot.setViewId(viewId);
+      facesContext.renderResponse();
+      // viewCreated = true;
+    }
+
+    facesContext.setViewRoot(viewRoot);
+
+    if (facesContext.getExternalContext().getRequestParameterMap().isEmpty()) {
+      // no POST or query parameters --> set render response flag
+      facesContext.renderResponse();
+    }
+
+    recursivelyHandleComponentReferencesAndSetValid(facesContext, viewRoot);
+    //noinspection unchecked
+    facesContext.getExternalContext().getRequestMap().put(VIEW_ROOT_KEY, viewRoot);
+    return false;
+  }
+
+  public PhaseId getPhase() {
+    return PhaseId.RESTORE_VIEW;
+  }
+
+  private static String deriveViewId(FacesContext facesContext) {
+    ExternalContext externalContext = facesContext.getExternalContext();
+
+    // TODO: Portlet
+//    if (PortletUtil.isPortletRequest(facesContext)) {
+//      PortletRequest request = (PortletRequest) externalContext.getRequest();
+//      return request.getParameter(MyFacesGenericPortlet.VIEW_ID);
+//    }
+
+    String viewId = externalContext.getRequestPathInfo(); // getPathInfo
+    if (viewId == null) {
+      // No extra path info found, so it is propably extension mapping
+      viewId = externalContext.getRequestServletPath(); // getServletPath
+      if (viewId == null) {
+        String msg = "RequestServletPath is null, cannot determine viewId of current page.";
+        LOG.error(msg);
+        throw new FacesException(msg);
+      }
+
+      // TODO: JSF Spec 2.2.1 - what do they mean by "if the default
+      // ViewHandler implementation is used..." ?
+      String defaultSuffix = externalContext.getInitParameter(ViewHandler.DEFAULT_SUFFIX_PARAM_NAME);
+      String suffix = defaultSuffix != null ? defaultSuffix : ViewHandler.DEFAULT_SUFFIX;
+      if (suffix.charAt(0) != '.') {
+        String msg = "Default suffix must start with a dot!";
+        LOG.error(msg);
+        throw new FacesException(msg);
+      }
+
+      int dot = viewId.lastIndexOf('.');
+      if (dot == -1) {
+        LOG.error("Assumed extension mapping, but there is no extension in " + viewId);
+        viewId = null;
+      } else {
+        viewId = viewId.substring(0, dot) + suffix;
+      }
+    }
+
+    return viewId;
+  }
+
+
+
+  // next two methods are taken from 'org.apache.myfaces.shared.util.RestoreStateUtils'
+
+  public static void recursivelyHandleComponentReferencesAndSetValid(FacesContext facesContext,
+                                                                     UIComponent parent)
+  {
+    boolean forceHandle = false;
+
+    Method handleBindingsMethod = getBindingMethod(parent);
+
+    if(handleBindingsMethod!=null && !forceHandle) {
+      try {
+        handleBindingsMethod.invoke(parent, new Object[]{});
+      } catch (Throwable th) {
+        LOG.error("Exception while invoking handleBindings on component with client-id:"
+            + parent.getClientId(facesContext), th);
+      }
+    } else {
+      for (Iterator it = parent.getFacetsAndChildren(); it.hasNext();) {
+        UIComponent component = (UIComponent) it.next();
+
+        ValueBinding binding = component.getValueBinding("binding");    //TODO: constant
+        if (binding != null && !binding.isReadOnly(facesContext)) {
+          binding.setValue(facesContext, component);
+        }
+
+        if (component instanceof UIInput) {
+          ((UIInput) component).setValid(true);
+        }
+
+        recursivelyHandleComponentReferencesAndSetValid(facesContext, component);
+      }
+    }
+  }
+
+  /**This is all a hack to work around a spec-bug which will be fixed in JSF2.0
+   *
+   * @param parent
+   * @return true if this component is bindingAware (e.g. aliasBean)
+   */
+  private static Method getBindingMethod(UIComponent parent) {
+    Class[] clazzes = parent.getClass().getInterfaces();
+
+    for (Class clazz : clazzes) {
+      if (clazz.getName().indexOf("BindingAware") != -1) {
+        try {
+          return parent.getClass().getMethod("handleBindings", new Class[]{});
+        } catch (NoSuchMethodException e) {
+          // return
+        }
+      }
+    }
+
+    return null;
+  }
+
+}

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/RestoreViewExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/TobagoLifecycleFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java Tue May  8 06:26:45 2007
@@ -1,53 +1,53 @@
-package org.apache.myfaces.tobago.lifecycle;
-
-/*
- * 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.
- */
-
-import static javax.faces.event.PhaseId.UPDATE_MODEL_VALUES;
-
-import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
-import org.apache.myfaces.tobago.component.UIViewRoot;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.event.PhaseId;
-import java.util.List;
-
-
-/**
- * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
- * Update model values phase (JSF Spec 2.2.4)
- */
-class UpdateModelValuesExecutor implements PhaseExecutor {
-  public boolean execute(FacesContext facesContext) {
-    List<UIComponent> ajaxComponents = AjaxUtils.getAjaxComponents(facesContext);
-    if (ajaxComponents != null) {
-      for (UIComponent ajaxComponent : ajaxComponents) {
-        ajaxComponent.processUpdates(facesContext);
-      }
-      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
-      viewRoot.broadcastEventsForPhase(facesContext, UPDATE_MODEL_VALUES);
-    } else {
-      facesContext.getViewRoot().processUpdates(facesContext);
-    }
-    return false;
-  }
-
-  public PhaseId getPhase() {
-    return UPDATE_MODEL_VALUES;
-  }
-}
+package org.apache.myfaces.tobago.lifecycle;
+
+/*
+ * 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.
+ */
+
+import static javax.faces.event.PhaseId.UPDATE_MODEL_VALUES;
+
+import org.apache.myfaces.tobago.ajax.api.AjaxUtils;
+import org.apache.myfaces.tobago.component.UIViewRoot;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseId;
+import java.util.List;
+
+
+/**
+ * Implements the lifecycle as described in Spec. 1.0 PFD Chapter 2
+ * Update model values phase (JSF Spec 2.2.4)
+ */
+class UpdateModelValuesExecutor implements PhaseExecutor {
+  public boolean execute(FacesContext facesContext) {
+    List<UIComponent> ajaxComponents = AjaxUtils.getAjaxComponents(facesContext);
+    if (ajaxComponents != null) {
+      for (UIComponent ajaxComponent : ajaxComponents) {
+        ajaxComponent.processUpdates(facesContext);
+      }
+      UIViewRoot viewRoot = ((UIViewRoot) facesContext.getViewRoot());
+      viewRoot.broadcastEventsForPhase(facesContext, UPDATE_MODEL_VALUES);
+    } else {
+      facesContext.getViewRoot().processUpdates(facesContext);
+    }
+    return false;
+  }
+
+  public PhaseId getPhase() {
+    return UPDATE_MODEL_VALUES;
+  }
+}

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/lifecycle/UpdateModelValuesExecutor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/RendererBase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/CommandRendererHelper.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/StyleClasses.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ResponseWriterBuffer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ResponseWriterBuffer.java?view=diff&rev=536195&r1=536194&r2=536195
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ResponseWriterBuffer.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ResponseWriterBuffer.java Tue May  8 06:26:45 2007
@@ -1,5 +1,22 @@
 package org.apache.myfaces.tobago.util;
 
+/*
+ * 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.
+ */
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 

Propchange: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/util/ResponseWriterBuffer.java
------------------------------------------------------------------------------
    svn:eol-style = native