Re: GWT Validator with Editor Framework
Have anybody realized how editors and jsr 303 validation work with GWT 2.3 coming? Validation API was add to gwt sdk. But when I try to make validation like in "keyvez ...@gmail.com> " example code, the rezult is the same "he errors are never thrown from client side or server side." Thank for any help. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Validator with Editor Framework
On Fri, Mar 11, 2011 at 10:17 AM, keyvez wrote: > Hi, > > I just found the DynaTableRf sample and see that onViolation is fired > there. Going through its setup I realized that I was missing the > hibernate-validator jar, so I put it in my libs and build path, but still no > entity property violations are caught. Any help is greatly appreciated. > > The client side validation is working somewhat now if your are using SVN head. Take a look at http://code.google.com/p/google-web-toolkit/wiki/BeanValidation r, Nick -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Validator with Editor Framework
Hi, I just found the DynaTableRf sample and see that onViolation is fired there. Going through its setup I realized that I was missing the hibernate-validator jar, so I put it in my libs and build path, but still no entity property violations are caught. Any help is greatly appreciated. Thank you, Gaurav -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Validator with Editor Framework
Hi, I am unable to validate entities using the editor framework. No matter what I do the errors are never thrown from client side or server side. Here is a code snippet: -- public class P { public P() { } @Size(min=4) private String name; public void setName(String name) { this.name = name; } public String getName() { return name; } } - // PEditor public class PEditor extends Composite implements Editor { private static PEditorUiBinder uiBinder = GWT.create(PEditorUiBinder.class ); interface PEditorUiBinder extends UiBinder { } @UiField TextBox name; public PEditor() { initWidget(uiBinder.createAndBindUi(this)); } } --- PEditor pEditor; interface Driver extends SimpleBeanEditorDriver {} Driver driver = GWT. create(Driver.class); public void onModuleLoad() { pEditor = new PEditor(); driver.initialize(pEditor); P p = new P(); driver.edit(p); pEditor.name.setText("G"); driver.flush(); if(driver.hasErrors()) { List errors = driver.getErrors(); for (EditorError error : errors) { System.out.println(error.getMessage()); } } } -- Thanks for your help -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.