You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2006/11/22 09:16:35 UTC

svn commit: r478080 - in /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom: ajax/api/AjaxDecodePhaseListener.java ppr/PPRPanelGroupRenderer.java

Author: matzew
Date: Wed Nov 22 00:16:34 2006
New Revision: 478080

URL: http://svn.apache.org/viewvc?view=rev&rev=478080
Log:
using RendererUtils.findNestingForm (see MYFACES-1496)

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java?view=diff&rev=478080&r1=478079&r2=478080
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ajax/api/AjaxDecodePhaseListener.java Wed Nov 22 00:16:34 2006
@@ -29,7 +29,6 @@
 import org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils;
 import org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl;
 import org.apache.myfaces.shared_tomahawk.renderkit.html.util.FormInfo;
-import org.apache.myfaces.shared_tomahawk.util._ComponentUtils;
 
 import javax.faces.application.StateManager;
 import javax.faces.component.UIComponent;
@@ -140,7 +139,7 @@
             // special treatment for this one, it will try to update the entire form
             // 1. get surrounding form
             //String elname = (String) requestMap.get("elname");
-            FormInfo fi = _ComponentUtils.findNestingForm(ajaxComponent, context);
+            FormInfo fi = RendererUtils.findNestingForm(ajaxComponent, context);
             UIComponent form = fi.getForm();
             //System.out.println("FOUND FORM: " + form);
             if (form != null)
@@ -246,7 +245,7 @@
                     // special treatment for this one, it will try to update the entire form
                     // 1. get surrounding form
                     //String elname = (String) requestMap.get("elname");
-                    FormInfo fi = _ComponentUtils.findNestingForm(component, context);
+                    FormInfo fi = RendererUtils.findNestingForm(component, context);
                     UIComponent form = fi.getForm();
                     //System.out.println("FOUND FORM: " + form);
                     if (form != null)

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java?view=diff&rev=478080&r1=478079&r2=478080
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRPanelGroupRenderer.java Wed Nov 22 00:16:34 2006
@@ -26,9 +26,9 @@
 import org.apache.myfaces.renderkit.html.util.AddResource;
 import org.apache.myfaces.renderkit.html.util.AddResourceFactory;
 import org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr;
+import org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils;
 import org.apache.myfaces.shared_tomahawk.renderkit.html.HTML;
 import org.apache.myfaces.shared_tomahawk.renderkit.html.util.FormInfo;
-import org.apache.myfaces.shared_tomahawk.util._ComponentUtils;
 
 import javax.faces.FacesException;
 import javax.faces.component.UIComponent;
@@ -63,7 +63,7 @@
 			return;
 		}
 
-		FormInfo fi = _ComponentUtils.findNestingForm(pprGroup, facesContext);
+		FormInfo fi = RendererUtils.findNestingForm(pprGroup, facesContext);
 		if (fi == null)
 		{
 			throw new FacesException("PPRPanelGroup must be embedded in an form.");