Hi Gurus
I am new to SmartGWT and so far I am really enjoying it. I am trying to write a custom validator but couldnt get it working.
Background of my application:
I have a form to collect user information. This form is linked to a Data Source for persisting data. I am using Grails as back-end and using RestDataSource to write and retrieve data in my application.
What I want:
In this form, there is a "ID" field which should be unique. This uniqueness should be checked as soon as the form text field looses focus. For this in Grails I have created a URL which will check "success" or "failure" after checking for the "ID" in the DB.
My approach till now:
Coming from a JSF background, I was planning on creating a Custom Validator and attach it to the field so that it gets validated onblur.
However when I started, I could not get the exact things I would need to get it working.
Can someone please point me in the correct direction as to how this can be done? Any help appreciated! and thanks in advance.
I am new to SmartGWT and so far I am really enjoying it. I am trying to write a custom validator but couldnt get it working.
Background of my application:
I have a form to collect user information. This form is linked to a Data Source for persisting data. I am using Grails as back-end and using RestDataSource to write and retrieve data in my application.
What I want:
In this form, there is a "ID" field which should be unique. This uniqueness should be checked as soon as the form text field looses focus. For this in Grails I have created a URL which will check "success" or "failure" after checking for the "ID" in the DB.
My approach till now:
Coming from a JSF background, I was planning on creating a Custom Validator and attach it to the field so that it gets validated onblur.
However when I started, I could not get the exact things I would need to get it working.
Can someone please point me in the correct direction as to how this can be done? Any help appreciated! and thanks in advance.
Comment