Re: T4.1 : clientSideValidation
thx go to Ulrich - he's helped on many other issues as well On 2/14/08, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > I attached some minor documentation improvement to > http://issues.apache.org/jira/browse/TAPESTRY-1086 some time ago which > documents the need of a @Body component in order for client side > validation to work. Maybe someone could have a look at it and commit it... > > Uli > > Andreas Andreou schrieb: > > > Do you get any javascript errors? Are you using the @Body component in > > your page? > > > > On Thu, Feb 14, 2008 at 3:45 PM, KLessou <[EMAIL PROTECTED]> wrote: > >> I tryed this but without result anyway :-( : > >> > >> *html :* > >> clientValidationEnabled="true" > >> > > >> Task > >> Entry > >> >> field="component:descriptionField">Description > >> > >> >>action="listener:addTask" > >>async="true" updateComponents="taskForm" /> > >> > >> > >> *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 : > >> > > >> > > >> > >> > validators="validators:required"/> > >> > > >> > > >> > > >> > Thx in advance for you help. > >> > -- > >> > ~ > >> > | klessou | > >> > ~ > >> > >> > >> > >> > >> -- > >> ~ > >> | klessou | > >> ~ > >> > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4.1 : clientSideValidation
I attached some minor documentation improvement to http://issues.apache.org/jira/browse/TAPESTRY-1086 some time ago which documents the need of a @Body component in order for client side validation to work. Maybe someone could have a look at it and commit it... Uli Andreas Andreou schrieb: Do you get any javascript errors? Are you using the @Body component in your page? On Thu, Feb 14, 2008 at 3:45 PM, KLessou <[EMAIL PROTECTED]> wrote: I tryed this but without result anyway :-( : *html :* Task Entry Description *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 : > > >validators="validators:required"/> > > > > Thx in advance for you help. > -- > ~ > | klessou | > ~ -- ~ | klessou | ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4.1 : clientSideValidation
Yeah ! thanks you ! It works very well with : On Thu, Feb 14, 2008 at 3:27 PM, Andreas Andreou <[EMAIL PROTECTED]> wrote: > Do you get any javascript errors? Are you using the @Body component in > your page? > > On Thu, Feb 14, 2008 at 3:45 PM, KLessou <[EMAIL PROTECTED]> wrote: > > I tryed this but without result anyway :-( : > > > > *html :* > > clientValidationEnabled="true" > > > > > Task > > Entry > > > field="component:descriptionField">Description > > > > class="submitButton" > >action="listener:addTask" > >async="true" updateComponents="taskForm" /> > > > > > > *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 : > > > > > > > > >> > validators="validators:required"/> > > > > > > > > > > > > Thx in advance for you help. > > > -- > > > ~ > > > | klessou | > > > ~ > > > > > > > > > > -- > > ~ > > | klessou | > > ~ > > > > > > -- > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr > Tapestry / Tacos developer > Open Source / JEE Consulting > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ~ | klessou | ~
Re: T4.1 : clientSideValidation
Do you get any javascript errors? Are you using the @Body component in your page? On Thu, Feb 14, 2008 at 3:45 PM, KLessou <[EMAIL PROTECTED]> wrote: > I tryed this but without result anyway :-( : > > *html :* > clientValidationEnabled="true" > > > Task > Entry > field="component:descriptionField">Description > > action="listener:addTask" >async="true" updateComponents="taskForm" /> > > > *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 : > > > > > > > validators="validators:required"/> > > > > > > > > Thx in advance for you help. > > -- > > ~ > > | klessou | > > ~ > > > > > -- > ~ > | klessou | > ~ > -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4.1 : clientSideValidation
I tryed this but without result anyway :-( : *html :* Task Entry Description *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 : > > >validators="validators:required"/> > > > > Thx in advance for you help. > -- > ~ > | klessou | > ~ -- ~ | klessou | ~