I tryed this but without result anyway :-( : *html :* <form jwcid="[EMAIL PROTECTED]" class="container" clientValidationEnabled="true" > <h3><span jwcid="@Insert" value="message:new.task">Task Entry</span></h3> <label jwcid="@FieldLabel" field="component:descriptionField">Description</label> <div class="field required"><input jwcid="descriptionField" /></div> <input jwcid="@Submit" value="message:button.add" class="submitButton" action="listener:addTask" async="true" updateComponents="taskForm" /> </form>
*java :* @Component(bindings = { "value=description", "displayName=message:task.description", "validators=validators:required,maxLength=20"}) public abstract TextField getDescriptionField(); public abstract String getDescription(); public abstract ResponseBuilder getBuilder(); @InjectComponent("testDialog") public abstract Dialog getTestDialog(); /** * Invoked by form to add a new task. */ public void addTask() { On Wed, Feb 13, 2008 at 11:05 PM, KLessou <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to use a Client side Validation, but I don't understand why > this simple example does not work : > > <form jwcid="[EMAIL PROTECTED]" clientValidationEnabled="true"> > <input jwcid="[EMAIL PROTECTED]" value="" > validators="validators:required"/> > <input jwcid="@Submit" /> > </form> > > Thx in advance for you help. > -- > ~~~~~ > | klessou | > ~~~~~ -- ~~~~~ | klessou | ~~~~~