You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Danny Robinson (JIRA)" <ad...@incubator.apache.org> on 2007/03/01 17:29:50 UTC

[jira] Created: (ADFFACES-391) Client-side validation - enhance to match server-side

Client-side validation - enhance to match server-side
-----------------------------------------------------

                 Key: ADFFACES-391
                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
             Project: MyFaces ADF-Faces
          Issue Type: Improvement
          Components: Components
            Reporter: Danny Robinson
            Priority: Minor


Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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


[jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side

Posted by "Danny Robinson (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danny Robinson updated ADFFACES-391:
------------------------------------

    Attachment: inlineValidationPatch.patch

Updated patch, removed stray code snippet from Core.js, left behind when I reworked _multiValidate().

> Client-side validation - enhance to match server-side
> -----------------------------------------------------
>
>                 Key: ADFFACES-391
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: inlineValidationPatch.patch, inlineValidationPatch.patch
>
>
> Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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


[jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side

Posted by "Danny Robinson (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danny Robinson updated ADFFACES-391:
------------------------------------

    Attachment: inlineValidationPatch.patch

Attached patch file will provide an alternative client-side validation mode where message layout and appearance exactly follows the server-side mode.  It renders hidden (skinned) elements that are dynamically populated with error text and displayed if c/s validation fails for a given component.  The 'X' icon is also dynamically displayed.  This works for input fields rendered inside or outside of panelForm.

It contains certain changes to FormRenderer so that is will render a different validation method depending on the setting below.  _multiValidate method was modified so it returns a 2d array of id, message which is then processed by either _validateAlert() or  _validateInline.  FormRenderer now uses the return value of the above methods to determine if submit can occur.

Outstanding features:
* Public js method that can be added to onblur (eg. onblur="validateField(this);") to enable immediate validation of fields.
* Test with fields in tables

I guess this setting would be more at home in trinidad-config.xml though.
	<context-param>
		<param-name>
			org.apache.myfaces.trinidadinternal.renderkit.INLINE_JS_VALIDATION
		</param-name>
		<param-value>true</param-value>
	</context-param>


> Client-side validation - enhance to match server-side
> -----------------------------------------------------
>
>                 Key: ADFFACES-391
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: inlineValidationPatch.patch
>
>
> Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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


[jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side

Posted by "Danny Robinson (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danny Robinson updated ADFFACES-391:
------------------------------------

    Attachment: inlineValidationPatch.patch

Validated against latest revision in myfaces svn.

> Client-side validation - enhance to match server-side
> -----------------------------------------------------
>
>                 Key: ADFFACES-391
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: inlineValidationPatch.patch, inlineValidationPatch.patch, inlineValidationPatch.patch, inlineValidationPatch.patch
>
>
> Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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


[jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-391:
----------------------------------------

    Affects Version/s: 1.0.1-incubating-core-SNAPSHOT

> Client-side validation - enhance to match server-side
> -----------------------------------------------------
>
>                 Key: ADFFACES-391
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Danny Robinson
>            Priority: Minor
>
> Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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


[jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side

Posted by "Danny Robinson (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danny Robinson updated ADFFACES-391:
------------------------------------

    Status: Patch Available  (was: Open)

> Client-side validation - enhance to match server-side
> -----------------------------------------------------
>
>                 Key: ADFFACES-391
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Danny Robinson
>            Priority: Minor
>
> Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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


[jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side

Posted by "Adam Winer (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer updated ADFFACES-391:
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.1-incubating-core-SNAPSHOT
         Assignee: Adam Winer
           Status: Resolved  (was: Patch Available)

Checked in patch, after:
 - Used trinidad-config.xml instead of web.xml with new <client-validation> element
  and RequestContext.getClientValidation() method
 - Fixed rendering to support table messages
 - Don't change rendering unless inline validation is on
 - Temporarily made the validateInput() method private until
  we have a good strategy for namespacing JS

> Client-side validation - enhance to match server-side
> -----------------------------------------------------
>
>                 Key: ADFFACES-391
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Danny Robinson
>         Assigned To: Adam Winer
>            Priority: Minor
>             Fix For: 1.0.1-incubating-core-SNAPSHOT
>
>         Attachments: inlineValidationPatch.patch, inlineValidationPatch.patch, inlineValidationPatch.patch, inlineValidationPatch.patch
>
>
> Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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


[jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side

Posted by "Danny Robinson (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danny Robinson updated ADFFACES-391:
------------------------------------

    Attachment: inlineValidationPatch.patch

Updated patch against latest revision.
Also included to allow  onchange="validateInput(this);" on any input component, which will perform inline validation against that specific component on a value change.


> Client-side validation - enhance to match server-side
> -----------------------------------------------------
>
>                 Key: ADFFACES-391
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-391
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 1.0.1-incubating-core-SNAPSHOT
>            Reporter: Danny Robinson
>            Priority: Minor
>         Attachments: inlineValidationPatch.patch, inlineValidationPatch.patch, inlineValidationPatch.patch
>
>
> Enhance the current client-side validation mechanism to emulate the server-side.  Instead of poping the javascript alert, instead dyamically insert the error messages into the page in the same way it appears when server-side validation is used.

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