You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Nick Westgate (JIRA)" <de...@tapestry.apache.org> on 2007/07/26 05:24:31 UTC

[jira] Created: (TAPESTRY-1672) The Submit component doesn't need validation decoration.

The Submit component doesn't need validation decoration.
--------------------------------------------------------

                 Key: TAPESTRY-1672
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1672
             Project: Tapestry
          Issue Type: Improvement
    Affects Versions: 5.0.5
            Reporter: Nick Westgate
            Priority: Minor


Currently, each form field, including submits, is wrapped with validation decoration. Eg.:
<input id="itemEdit" name="itemEdit" type="submit" value="Edit">
<img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">

If this behavior (in AbstractField) was split out into overridable methods, components like Submit could suppress it.

Cheers,
Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (TAP5-200) The Submit component doesn't need validation decoration.

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-200:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> The Submit component doesn't need validation decoration.
> --------------------------------------------------------
>
>                 Key: TAP5-200
>                 URL: https://issues.apache.org/jira/browse/TAP5-200
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Nick Westgate
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>         Attachments: TAPESTRY-1672.patch
>
>
> Currently, each form field, including submits, is wrapped with validation decoration. Eg:
> <input id="itemEdit" name="itemEdit" type="submit" value="Edit">
> <img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">
> Submit should suppress it by eg:
>     @Override
>     public void beforeDecorator(MarkupWriter writer)
>     {
>     }
>     
>     @Override
>     public void afterDecorator(MarkupWriter writer)
>     {
>     }
> Cheers,
> Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAPESTRY-1672) The Submit component doesn't need validation decoration.

Posted by "Nick Westgate (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Westgate updated TAPESTRY-1672:
------------------------------------

    Attachment: TAPESTRY-1672.patch

Here's a patch that adds these overrides to omit decoration.

NOTE: This means changing 2 method signatures on the AbstractField superclass.
Methods beforeDecorator and afterDecorator go from final to public.
It seems reasonable that subclasses would want to override the decoration somehow.

Cheers,
Nick.

> The Submit component doesn't need validation decoration.
> --------------------------------------------------------
>
>                 Key: TAPESTRY-1672
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1672
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: Nick Westgate
>            Priority: Minor
>         Attachments: TAPESTRY-1672.patch
>
>
> Currently, each form field, including submits, is wrapped with validation decoration. Eg:
> <input id="itemEdit" name="itemEdit" type="submit" value="Edit">
> <img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">
> Submit should suppress it by eg:
>     @Override
>     public void beforeDecorator(MarkupWriter writer)
>     {
>     }
>     
>     @Override
>     public void afterDecorator(MarkupWriter writer)
>     {
>     }
> Cheers,
> Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-1672) The Submit component doesn't need validation decoration.

Posted by "Nick Westgate (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560984#action_12560984 ] 

Nick Westgate commented on TAPESTRY-1672:
-----------------------------------------

That's a fair question, though it's something I've never wanted/needed to do. Conversely, it is necessary for every submit to include the extra content? If one wants to disable it, there should be a way.

Cheers,
Nick.

> The Submit component doesn't need validation decoration.
> --------------------------------------------------------
>
>                 Key: TAPESTRY-1672
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1672
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: Nick Westgate
>            Priority: Minor
>         Attachments: TAPESTRY-1672.patch
>
>
> Currently, each form field, including submits, is wrapped with validation decoration. Eg:
> <input id="itemEdit" name="itemEdit" type="submit" value="Edit">
> <img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">
> Submit should suppress it by eg:
>     @Override
>     public void beforeDecorator(MarkupWriter writer)
>     {
>     }
>     
>     @Override
>     public void afterDecorator(MarkupWriter writer)
>     {
>     }
> Cheers,
> Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Closed: (TAP5-200) The Submit component doesn't need validation decoration

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-200.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.16

> The Submit component doesn't need validation decoration
> -------------------------------------------------------
>
>                 Key: TAP5-200
>                 URL: https://issues.apache.org/jira/browse/TAP5-200
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Nick Westgate
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>         Attachments: TAPESTRY-1672.patch
>
>
> Currently, each form field, including submits, is wrapped with validation decoration. Eg:
> <input id="itemEdit" name="itemEdit" type="submit" value="Edit">
> <img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">
> Submit should suppress it by eg:
>     @Override
>     public void beforeDecorator(MarkupWriter writer)
>     {
>     }
>     
>     @Override
>     public void afterDecorator(MarkupWriter writer)
>     {
>     }
> Cheers,
> Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (TAPESTRY-1672) The Submit component doesn't need validation decoration.

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560900#action_12560900 ] 

Howard M. Lewis Ship commented on TAPESTRY-1672:
------------------------------------------------

Is this necessary?  Is there any harm in the Submit component rendering itself?  What if the operation triggered by the Submit is considered a validation failure?

> The Submit component doesn't need validation decoration.
> --------------------------------------------------------
>
>                 Key: TAPESTRY-1672
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1672
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: Nick Westgate
>            Priority: Minor
>         Attachments: TAPESTRY-1672.patch
>
>
> Currently, each form field, including submits, is wrapped with validation decoration. Eg:
> <input id="itemEdit" name="itemEdit" type="submit" value="Edit">
> <img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">
> Submit should suppress it by eg:
>     @Override
>     public void beforeDecorator(MarkupWriter writer)
>     {
>     }
>     
>     @Override
>     public void afterDecorator(MarkupWriter writer)
>     {
>     }
> Cheers,
> Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAP5-200) The Submit component doesn't need validation decoration

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-200:
--------------------------------------

    Summary: The Submit component doesn't need validation decoration  (was: The Submit component doesn't need validation decoration.)

As part of the fix, the Submit no longer extends from AbstractField, and no longer implements Field.  It does still implement ClientId.  The ClientId is allocated lazily, as with the link components.

> The Submit component doesn't need validation decoration
> -------------------------------------------------------
>
>                 Key: TAP5-200
>                 URL: https://issues.apache.org/jira/browse/TAP5-200
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Nick Westgate
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>         Attachments: TAPESTRY-1672.patch
>
>
> Currently, each form field, including submits, is wrapped with validation decoration. Eg:
> <input id="itemEdit" name="itemEdit" type="submit" value="Edit">
> <img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">
> Submit should suppress it by eg:
>     @Override
>     public void beforeDecorator(MarkupWriter writer)
>     {
>     }
>     
>     @Override
>     public void afterDecorator(MarkupWriter writer)
>     {
>     }
> Cheers,
> Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (TAPESTRY-1672) The Submit component doesn't need validation decoration.

Posted by "Nick Westgate (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Westgate updated TAPESTRY-1672:
------------------------------------

    Component/s: tapestry-core
    Description: 
Currently, each form field, including submits, is wrapped with validation decoration. Eg:
<input id="itemEdit" name="itemEdit" type="submit" value="Edit">
<img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">

Submit should suppress it by eg:
    @Override
    public void beforeDecorator(MarkupWriter writer)
    {
    }
    
    @Override
    public void afterDecorator(MarkupWriter writer)
    {
    }


Cheers,
Nick.

  was:
Currently, each form field, including submits, is wrapped with validation decoration. Eg.:
<input id="itemEdit" name="itemEdit" type="submit" value="Edit">
<img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">

If this behavior (in AbstractField) was split out into overridable methods, components like Submit could suppress it.

Cheers,
Nick.


> The Submit component doesn't need validation decoration.
> --------------------------------------------------------
>
>                 Key: TAPESTRY-1672
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1672
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: Nick Westgate
>            Priority: Minor
>
> Currently, each form field, including submits, is wrapped with validation decoration. Eg:
> <input id="itemEdit" name="itemEdit" type="submit" value="Edit">
> <img alt="[Error]" class="t-error-icon t-invisible" id="itemEdit:icon" src="/myapp/assets/tapestry/field-error-marker.png">
> Submit should suppress it by eg:
>     @Override
>     public void beforeDecorator(MarkupWriter writer)
>     {
>     }
>     
>     @Override
>     public void afterDecorator(MarkupWriter writer)
>     {
>     }
> Cheers,
> Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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