Annotations and translators
Hi, I wan to to declare a DatePicker component with annotations. I just passed the component from .page, to java the corresponding java class, but I got a parse exception, because of the translators bindings... Here is the code on .page: component id=date type=DatePicker binding name=value value=date/ binding name=displayName value=literal:Data/ binding name=validators value=validators:required[É necessário uma data!]/ binding name=translator value=translator:date,pattern=dd/MM/,message=Data Inválida!/ /component And with annotation: @Component(id=date, type=DatePicker, bindings= {value=date, displayName=literal:Data, validators={validators:required[É necessário uma data!]}, translator={translator:date,pattern=dd/MM/,message=Data Inválida!}}) public abstract DatePicker getDateComponent(); Does anybody know a way to declare the component with annotation, and make some complex bindings like these, without error? Thank you!
Re: Annotations and translators
SORRY Such a dumb I'm! The binding declaration was wrong... ;) Mael On 10/4/06, Mael Caldas [EMAIL PROTECTED] wrote: Hi, I wan to to declare a DatePicker component with annotations. I just passed the component from .page, to java the corresponding java class, but I got a parse exception, because of the translators bindings... Here is the code on .page: component id=date type=DatePicker binding name=value value=date/ binding name=displayName value=literal:Data/ binding name=validators value=validators:required[É necessário uma data!]/ binding name=translator value=translator:date,pattern=dd/MM/,message=Data Inválida!/ /component And with annotation: @Component(id=date, type=DatePicker, bindings= {value=date, displayName=literal:Data, validators={validators:required[É necessário uma data!]}, translator={translator:date,pattern=dd/MM/,message=Data Inválida!}}) public abstract DatePicker getDateComponent(); Does anybody know a way to declare the component with annotation, and make some complex bindings like these, without error? Thank you!
Re: Annotations and translators
Not dumb, that's what this list is for. :) On 10/4/06, Mael Caldas [EMAIL PROTECTED] wrote: SORRY Such a dumb I'm! The binding declaration was wrong... ;) Mael On 10/4/06, Mael Caldas [EMAIL PROTECTED] wrote: Hi, I wan to to declare a DatePicker component with annotations. I just passed the component from .page, to java the corresponding java class, but I got a parse exception, because of the translators bindings... Here is the code on .page: component id=date type=DatePicker binding name=value value=date/ binding name=displayName value=literal:Data/ binding name=validators value=validators:required[É necessário uma data!]/ binding name=translator value=translator:date,pattern=dd/MM/,message=Data Inválida!/ /component And with annotation: @Component(id=date, type=DatePicker, bindings= {value=date, displayName=literal:Data, validators={validators:required[É necessário uma data!]}, translator={translator:date,pattern=dd/MM/,message=Data Inválida!}}) public abstract DatePicker getDateComponent(); Does anybody know a way to declare the component with annotation, and make some complex bindings like these, without error? Thank you! -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Annotations and translators
hehehehe thanks! :) On 10/4/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Not dumb, that's what this list is for. :) On 10/4/06, Mael Caldas [EMAIL PROTECTED] wrote: SORRY Such a dumb I'm! The binding declaration was wrong... ;) Mael On 10/4/06, Mael Caldas [EMAIL PROTECTED] wrote: Hi, I wan to to declare a DatePicker component with annotations. I just passed the component from .page, to java the corresponding java class, but I got a parse exception, because of the translators bindings... Here is the code on .page: component id=date type=DatePicker binding name=value value=date/ binding name=displayName value=literal:Data/ binding name=validators value=validators:required[É necessário uma data!]/ binding name=translator value=translator:date,pattern=dd/MM/,message=Data Inválida!/ /component And with annotation: @Component(id=date, type=DatePicker, bindings= {value=date, displayName=literal:Data, validators={validators:required[É necessário uma data!]}, translator={translator:date,pattern=dd/MM/,message=Data Inválida!}}) public abstract DatePicker getDateComponent(); Does anybody know a way to declare the component with annotation, and make some complex bindings like these, without error? Thank you! -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com