Wednesday, December 19, 2012

Re: client-side validation with request factory

all the validations you put on the pojo's can be applied on the proxies. 

example:

let's say you have a pojo named guest

Guest {

@NotNull
String name;

}

now the same validation you will have to apply on your proxy as well

GuestProxy {

@NotNull
String getName();
SetName(String name);

}

As defined in the sample, create a validatorFactory. Instead of assigning the pojo.class use the pojoProxy.class to @GwtValidation Annotation.

regards
Ashwin


On Wed, Dec 19, 2012 at 1:55 PM, kim young ill <khiemu@googlemail.com> wrote:
Hi there,
how can i use client-side validation with rf ?
in the sample project of gwt-2.5, the client-pojos are annotated directly, but what about proxies ?

thanx 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate