You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2007/09/20 23:04:34 UTC

svn commit: r577915 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java

Author: imario
Date: Thu Sep 20 14:04:33 2007
New Revision: 577915

URL: http://svn.apache.org/viewvc?rev=577915&view=rev
Log:
avoid rendering of unnecessary scriptlet

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java?rev=577915&r1=577914&r2=577915&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java Thu Sep 20 14:04:33 2007
@@ -37,9 +37,10 @@
  */
 public class SubFormRenderer extends HtmlRenderer
 {
-    private static final String SUBMIT_FUNCTION_SUFFIX = "_submit";
+    // private static final String SUBMIT_FUNCTION_SUFFIX = "_submit";
     private static final String HIDDEN_PARAM_NAME = "org.apache.myfaces.custom.subform.submittedId";
 
+	/*
     public void encodeBegin(FacesContext context, UIComponent component) throws IOException
     {
         super.encodeBegin(context, component);
@@ -50,7 +51,7 @@
         writer.startElement(HTML.SCRIPT_ELEM, null);
         writer.writeAttribute(org.apache.myfaces.shared_tomahawk.renderkit.html.HTML.SCRIPT_TYPE_ATTR, org.apache.myfaces.shared_tomahawk.renderkit.html.HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT, null);
 
-        FormInfo parentFormInfo = RendererUtils.findNestingForm(component,context);
+		FormInfo parentFormInfo = RendererUtils.findNestingForm(component,context);
         if(parentFormInfo!=null)
         {
             writer.writeText(createPartialSubmitJS(component.getId(), parentFormInfo.getFormName()), null);
@@ -59,6 +60,7 @@
         writer.endElement(org.apache.myfaces.shared_tomahawk.renderkit.html.HTML.SCRIPT_ELEM);
         HtmlRendererUtils.writePrettyLineSeparator(context);
     }
+    */
 
     public void decode(FacesContext context, UIComponent component)
     {
@@ -72,9 +74,7 @@
         }
     }
 
-    /**
-     *
-     */
+    /*
     protected String createPartialSubmitJS(String subFormId, String parentFormClientId)
     {
         StringBuffer script = new StringBuffer();
@@ -92,5 +92,6 @@
 
         return script.toString();
     }
+     */
 
 }