You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by dr...@apache.org on 2009/02/18 23:47:05 UTC

svn commit: r745681 - /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java

Author: drobiazko
Date: Wed Feb 18 22:47:05 2009
New Revision: 745681

URL: http://svn.apache.org/viewvc?rev=745681&view=rev
Log:
Fixing the documentation

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java?rev=745681&r1=745680&r2=745681&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java Wed Feb 18 22:47:05 2009
@@ -54,9 +54,11 @@
     private boolean disabled;
     
     /**
-     * The context for the link (optional parameter). This list of values will be converted into strings and included in
-     * the URI. The strings will be coerced back to whatever their values are and made available to event handler
-     * methods.
+     * The list of values that will be converted into strings when the form is submitted. 
+     * The strings will be coerced back to whatever their values are and made available to event 
+     * handler method of this component. 
+     * 
+     * @since 5.1.0.0
      */
     @Parameter
     private Object[] context;



Re: svn commit: r745681 - /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java

Posted by Howard Lewis Ship <hl...@gmail.com>.
The comment is still innaccurate; as coded, the context is accessed
via the parameter when the form is submitted. The values are never
coerced to or from strings.  I would say that the value of this
component would be significantly increased if the values were encoded
to strings (via the ValueEncoder service) and then stored into the
form data.

On Wed, Feb 18, 2009 at 2:47 PM,  <dr...@apache.org> wrote:
> Author: drobiazko
> Date: Wed Feb 18 22:47:05 2009
> New Revision: 745681
>
> URL: http://svn.apache.org/viewvc?rev=745681&view=rev
> Log:
> Fixing the documentation
>
> Modified:
>    tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java
>
> Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java
> URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java?rev=745681&r1=745680&r2=745681&view=diff
> ==============================================================================
> --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java (original)
> +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Submit.java Wed Feb 18 22:47:05 2009
> @@ -54,9 +54,11 @@
>     private boolean disabled;
>
>     /**
> -     * The context for the link (optional parameter). This list of values will be converted into strings and included in
> -     * the URI. The strings will be coerced back to whatever their values are and made available to event handler
> -     * methods.
> +     * The list of values that will be converted into strings when the form is submitted.
> +     * The strings will be coerced back to whatever their values are and made available to event
> +     * handler method of this component.
> +     *
> +     * @since 5.1.0.0
>      */
>     @Parameter
>     private Object[] context;
>
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org