|
Mike, From
a UI-perspective, I see two ways of doing this. One way is to perform
client-side validation immediately after the control has lost focus (the
default behavior of a validator) and then trigger server-side validation off of
some event (ie. Pressing the submit button). For the server-side validation,
you can directly pass a ValidationResultEvent to the component using the UIComponent.validationResultHandler
function. It doesn’t make sense to subclass Validator in this situation. The
other way is to perform client-side and server-side validation at the same
time. Right now it is not possible to incorporate server-side validation into a
Validator subclass. We’d have to modify the validator infrastructure to
get this to work properly. I’ve gone ahead and filed a feature request
for this functionality. Jason From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of Mike Nimer So
I recently came upon an interesting situation. I needed to validate a form
entry against data on the server. For example, I wanted to query the db to make
sure the quantity that the user typed in was a valid amount with the stock
on hand. My
initial thought was that I could just extend the Validator class (so I get all
of the validation triggers) and write a flash remoting server side call to
validate the data. However, that doesn't seem possible because the doValidation( It
seems like server side validation is a common enough thing. Has anyone else
tried to do this? How did you get it to work? thanks, --nimer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |

