incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Robinson (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Updated: (ADFFACES-391) Client-side validation - enhance to match server-side
Date Fri, 16 Mar 2007 16:01:21 GMT

     [ 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.


Mime
View raw message