myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r642516 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
Date Sat, 29 Mar 2008 07:56:33 GMT
Author: imario
Date: Sat Mar 29 00:56:33 2008
New Revision: 642516

URL: http://svn.apache.org/viewvc?rev=642516&view=rev
Log:
removed unused code

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java?rev=642516&r1=642515&r2=642516&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/ppr/PPRSubmitRenderer.java
Sat Mar 29 00:56:33 2008
@@ -36,20 +36,10 @@
  */
 public class PPRSubmitRenderer extends Renderer
 {
-
-    public static final String TRANSIENT_MARKER_ATTRIBUTE = "org.apache.myfaces.PPRPanelGroup.transientComponent";
-
     public void encodeEnd(FacesContext context, UIComponent component) throws IOException
     {
-        //if(PPRSupport.isPartialRequest(context)) {
-        //    return;
-        //}
         UIComponent parent = component.getParent();
         if (parent instanceof UICommand) {
-            FormInfo fi = RendererUtils.findNestingForm(component, context);
-            if (fi == null) {
-                throw new FacesException("PPRPanelGroup must be embedded in a form.");
-            }
             PPRSupport.initPPR(context, component);
             List panelGroups = new ArrayList(5);
             String id = parent.getId();
@@ -66,7 +56,7 @@
             }
         }
         else {
-            // TODO warning
+            throw new FacesException("PPRSubmitRenderer must be embedded in a command component.");
         }
     }
 



Mime
View raw message