You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Danny Robinson (JIRA)" <de...@myfaces.apache.org> on 2007/05/23 00:51:16 UTC

[jira] Created: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Client-side validation should support  onblur/onchange validation when set to 'inline'
--------------------------------------------------------------------------------------

                 Key: TRINIDAD-37
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
             Project: MyFaces Trinidad
          Issue Type: Improvement
          Components: Components
            Reporter: Danny Robinson
            Priority: Minor


The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.

Just created this email to keep track of the issue.

Pasted from email:

Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Carsten Pieper (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799205#action_12799205 ] 

Carsten Pieper commented on TRINIDAD-37:
----------------------------------------

Hi, may I inquire about the status of this issue? I have been searching the Jira for something like this, found this issue and boldly tried onblur="_validateInput(event);" in my code (we're on Trinidad 1.0.10). It worked as desired, which is nice, but as this issue's official status still is "open" I'm wondering if it's a good idea to rely on this "hidden" feature...

> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: autoSubmit.patch
>
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Carsten Pieper (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799224#action_12799224 ] 

Carsten Pieper commented on TRINIDAD-37:
----------------------------------------

Ups, I only tested this onblur="_validateInput(event);"  Firefox (3.5). Doesn't seem to work in any other browser available to me (IE 6 - 8, Chrome 3.0)  :-(

Any insight appreciated!

> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: autoSubmit.patch
>
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Carsten Pieper (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799713#action_12799713 ] 

Carsten Pieper commented on TRINIDAD-37:
----------------------------------------

If anyone else than me is listening, this is what I found out:

The patch made it into the code base but hasn't been made public. This might be the reason why it hasn't been made browser-safe... The situation for the browsers available to me:

onblur="_validateInput(event);" works for Firefox
onblur="_validateInput(window.event);" works for IE (6 to 8) and Google Chrome

> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: autoSubmit.patch
>
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Danny Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523315 ] 

Danny Robinson commented on TRINIDAD-37:
----------------------------------------

Not publicly enabled yet, but hooks are present to allow testing, by adding
<script type="text/javascript">_TrEventBasedValidation=true;</script>
to top of page.
Rev 570239.

> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799211#action_12799211 ] 

Matthias Weßendorf commented on TRINIDAD-37:
--------------------------------------------

can you check if the patch still works (e.g. has no conflicts etc)

> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: autoSubmit.patch
>
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498103 ] 

Adam Winer commented on TRINIDAD-37:
------------------------------------

What would be best is if inline validation always fired with onblur/onchange, and it got set up without requiring users to explicitly set any onchange or onblur on the input components.

> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Danny Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530146 ] 

Danny Robinson commented on TRINIDAD-37:
----------------------------------------

It's intention is to move the autosubmit javascript method into TrPage and invoke c/s validation prior to the partial submit.  It should work exactly as it does today, but it obviously really starts to be important as I refine the onchange/tab-out style validation.  note the patch doesn't fix the golden files yet.

> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: autoSubmit.patch
>
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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


[jira] Commented: (TRINIDAD-37) Client-side validation should support onblur/onchange validation when set to 'inline'

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801190#action_12801190 ] 

Matthias Weßendorf commented on TRINIDAD-37:
--------------------------------------------

Carsten,

what revision ? Is the patch completely inside of the code? Is there something missing?
If so, do you mind to provide an additional patch agains Trinidad (trunk and the 1.0.x-branch)?



> Client-side validation should support  onblur/onchange validation when set to 'inline'
> --------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-37
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-37
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: autoSubmit.patch
>
>
> The 'inline' client-side validation should support the ability to validate fields on-the-fly when the user navigates away from the field.  This was provided in the recent 'inline' patch using the validateInput() method, but was made private until we make some further improvements.
> Just created this email to keep track of the issue.
> Pasted from email:
> Adam said: The JS validateInput() method has been made private,  because I'd like to start putting JS methods on namespace objects instead of putting it in the window object - and it only supports inline validation.

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