Re: How to validate TextBox fields?

2013-01-08 Thread membersound
I was not aware of the editor framework. This looks very promising! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9qGf8hGJ1ZwJ. To post to this

How to validate TextBox fields?

2013-01-07 Thread membersound
I'm having problems in getting started with GWT Validation. I just want to validate some form fields on a page. I started like this, but don't know how to go on: class Person { @Size(min = 4, message = Name too short.) private String name; Person(name) { this.name = name; } }

Re: How to validate TextBox fields?

2013-01-07 Thread Jens
Take a look at: https://developers.google.com/web-toolkit/doc/latest/DevGuideValidation The GWT SDK also contains a small validation example project that validates a Person before sending it to the server. -- J. -- You received this message because you are subscribed to the Google Groups

Re: How to validate TextBox fields?

2013-01-07 Thread membersound
Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a valid age before creating the person object) - how to display an

Re: How to validate TextBox fields?

2013-01-07 Thread Jens
Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a valid age before creating the person object) Your validation

Re: How to validate TextBox fields?

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a

Re: How to validate TextBox fields?

2013-01-07 Thread Nick Chalko
On Mon, Jan 7, 2013 at 7:42 AM, Thomas Broyer t.bro...@gmail.com wrote: On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of

Re: How to validate TextBox fields?

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 4:50:03 PM UTC+1, Nick Chalko wrote: On Mon, Jan 7, 2013 at 7:42 AM, Thomas Broyer t.br...@gmail.comjavascript: wrote: On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate