Author: jkuhnert
Date: Mon Apr 10 10:06:16 2006
New Revision: 392990

URL: http://svn.apache.org/viewcvs?rev=392990&view=rev
Log:
Added backwards compatible api fix

Modified:
    
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupport.java
    
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupportImpl.java
    jakarta/tapestry/branches/4.0/status.xml

Modified: 
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupport.java
URL: 
http://svn.apache.org/viewcvs/jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupport.java?rev=392990&r1=392989&r2=392990&view=diff
==============================================================================
--- 
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupport.java
 (original)
+++ 
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupport.java
 Mon Apr 10 10:06:16 2006
@@ -43,8 +43,30 @@
      *            the desired scheme for the generated URL, typically "http" 
or "https". If
      *            non-null, and the scheme does not match the current 
request's scheme, then an
      *            absolute URL with the specified scheme will be generated, 
rather than a URI.
+     * @param port
+     *            the desired port for the generated URL, typically "80", 
"443". If
+     *            non-null, and the port does not match the current request's 
port, then an
+     *            absolute URL with the specified port will be generated, 
rather than a URI.
      */
     public void render(String method, IRender informalParametersRenderer, 
ILink link, String scheme, Integer port);
+
+    /**
+     * Old interface left around for backwards compatibility.  Please use the 
second render method.
+     * 
+     * @param method
+     *            the HTTP method ("get" or "post")
+     * @param informalParametersRenderer
+     *            object that will render informal parameters
+     * @param link
+     *            The link to which the form will submit (encapsulating the 
URL and the query
+     *            parameters)
+     * @param scheme
+     *            the desired scheme for the generated URL, typically "http" 
or "https". If
+     *            non-null, and the scheme does not match the current 
request's scheme, then an
+     *            absolute URL with the specified scheme will be generated, 
rather than a URI.
+     * @deprecated To be removed in 4.1, see new render method that adds the 
Port parameter.
+     */
+    public void render(String method, IRender informalParametersRenderer, 
ILink link, String scheme);
 
     /**
      * Invoked to rewind the form, which renders the body of the form, 
allowing form element

Modified: 
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupportImpl.java
URL: 
http://svn.apache.org/viewcvs/jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupportImpl.java?rev=392990&r1=392989&r2=392990&view=diff
==============================================================================
--- 
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupportImpl.java
 (original)
+++ 
jakarta/tapestry/branches/4.0/framework/src/java/org/apache/tapestry/form/FormSupportImpl.java
 Mon Apr 10 10:06:16 2006
@@ -460,6 +460,13 @@
             _elementIdAllocator.allocateId(ids[i]);
     }
     
+    /**
+     * @deprecated Please use second render method.
+     */
+    public void render(String method, IRender informalParametersRenderer, 
ILink link, String scheme)
+    {
+       render(method, informalParametersRenderer, link, scheme, null);
+    }
     public void render(String method, IRender informalParametersRenderer, 
ILink link, 
                String scheme, Integer port)
     {
@@ -741,4 +748,4 @@
         _delegate.registerForFocus(field, priority);
     }
 
-}
\ No newline at end of file
+}

Modified: jakarta/tapestry/branches/4.0/status.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/tapestry/branches/4.0/status.xml?rev=392990&r1=392989&r2=392990&view=diff
==============================================================================
--- jakarta/tapestry/branches/4.0/status.xml (original)
+++ jakarta/tapestry/branches/4.0/status.xml Mon Apr 10 10:06:16 2006
@@ -65,6 +65,9 @@
                <action type="update" dev="JK" fixes-bug="TAPESTRY-901" 
due-to="Jun Tsai">
                        Chinese validation strings updated with new tapestry 4 
strings.
                </action>
+               <action type="fix" dev="JK" fixes-bug="TAPESTRY-880" 
due-to="Fernando Padilla">
+                       Added backwards compatible fix for new Form interfaces.
+               </action>
        </release>
     <release version="4.0.1" date="Mar 31 2006" >
       <action type="fix" dev="JK" fixes-bug="TAPESTRY-863" due-to="unknown 
contributor">



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to