You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/01/12 18:47:54 UTC

[jira] Created: (TAP5-979) Form component should be more careful with the validation tracker to ensure that a session is not created unless needed

Form component should be more careful with the validation tracker to ensure that a session is not created unless needed
-----------------------------------------------------------------------------------------------------------------------

                 Key: TAP5-979
                 URL: https://issues.apache.org/jira/browse/TAP5-979
             Project: Tapestry 5
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.2.0
            Reporter: Howard M. Lewis Ship


Currently, the Form component will create a ValidationTracker instance if one does not already exist when rendering or when handling a form submission.  Since, typically, it is using the defaultValidator property, this creates a session to store the ValidationTracker.

A little more work can yield a ValidationTracker that doesn't uπdate the Form.validator property until an *error* is recorded. If no errors are recorded for the Form during a submission, then the ValidationTracker is discarded anyway ... this change will just ensure that no session is created unless the tracker is being kept around (for a re-render of the page, to present errors to the user).

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


[jira] Assigned: (TAP5-979) Form component should be more careful with the validation tracker to ensure that a session is not created unless needed

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

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

    Assignee: Howard M. Lewis Ship

> Form component should be more careful with the validation tracker to ensure that a session is not created unless needed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-979
>                 URL: https://issues.apache.org/jira/browse/TAP5-979
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>
> Currently, the Form component will create a ValidationTracker instance if one does not already exist when rendering or when handling a form submission.  Since, typically, it is using the defaultValidator property, this creates a session to store the ValidationTracker.
> A little more work can yield a ValidationTracker that doesn't uπdate the Form.validator property until an *error* is recorded. If no errors are recorded for the Form during a submission, then the ValidationTracker is discarded anyway ... this change will just ensure that no session is created unless the tracker is being kept around (for a re-render of the page, to present errors to the user).

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


[jira] Assigned: (TAP5-979) Form component should be more careful with the validation tracker to ensure that a session is not created unless needed

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

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

    Assignee: Howard M. Lewis Ship

> Form component should be more careful with the validation tracker to ensure that a session is not created unless needed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-979
>                 URL: https://issues.apache.org/jira/browse/TAP5-979
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>
> Currently, the Form component will create a ValidationTracker instance if one does not already exist when rendering or when handling a form submission.  Since, typically, it is using the defaultValidator property, this creates a session to store the ValidationTracker.
> A little more work can yield a ValidationTracker that doesn't uπdate the Form.validator property until an *error* is recorded. If no errors are recorded for the Form during a submission, then the ValidationTracker is discarded anyway ... this change will just ensure that no session is created unless the tracker is being kept around (for a re-render of the page, to present errors to the user).

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


[jira] Closed: (TAP5-979) Form component should be more careful with the validation tracker to ensure that a session is not created unless needed

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

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

       Resolution: Fixed
    Fix Version/s: 5.2.0

> Form component should be more careful with the validation tracker to ensure that a session is not created unless needed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-979
>                 URL: https://issues.apache.org/jira/browse/TAP5-979
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.0
>
>
> Currently, the Form component will create a ValidationTracker instance if one does not already exist when rendering or when handling a form submission.  Since, typically, it is using the defaultValidator property, this creates a session to store the ValidationTracker.
> A little more work can yield a ValidationTracker that doesn't uπdate the Form.validator property until an *error* is recorded. If no errors are recorded for the Form during a submission, then the ValidationTracker is discarded anyway ... this change will just ensure that no session is created unless the tracker is being kept around (for a re-render of the page, to present errors to the user).

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


[jira] Closed: (TAP5-979) Form component should be more careful with the validation tracker to ensure that a session is not created unless needed

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

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

       Resolution: Fixed
    Fix Version/s: 5.2.0

> Form component should be more careful with the validation tracker to ensure that a session is not created unless needed
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-979
>                 URL: https://issues.apache.org/jira/browse/TAP5-979
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.0
>
>
> Currently, the Form component will create a ValidationTracker instance if one does not already exist when rendering or when handling a form submission.  Since, typically, it is using the defaultValidator property, this creates a session to store the ValidationTracker.
> A little more work can yield a ValidationTracker that doesn't uπdate the Form.validator property until an *error* is recorded. If no errors are recorded for the Form during a submission, then the ValidationTracker is discarded anyway ... this change will just ensure that no session is created unless the tracker is being kept around (for a re-render of the page, to present errors to the user).

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