PDA

View Full Version : How validate a texfield with a rpc call



cgraf
26 Jun 2008, 10:06 AM
Hi, we are using gxt rc1

what the best way to validate a textfield that calls a rpc to ckeck a table?

Is it possible to use a class that implements Validator?

Thanks in advance

Clayton

gslender
26 Jun 2008, 2:25 PM
ya probably gonna have to ellaborate... not sure what you need to do...

but yes, any object that implements the Validator class (and methods) can be used in TextField. As far as how to call RPC and validate - it will depend on what you are trying to do... I'd be careful as RPC round-trips can be slow and the user could be typing way ahead before you respond/update