So i will wait patiently :)
Thanks!

On 5/25/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]>
wrote:

I don't know what will be needed in T5, but in T4 everything is plain and
easy. Three PropertySelection components, three simple models for them and a
trivial wire-up. You'll see it soon.

-----Original Message-----
From: Juan Maya [mailto:[EMAIL PROTECTED]
Sent: 25 May 2007 16:01
To: Tapestry users
Subject: Re: t5: Date input component


My only concern with the Translators is that they only transalate "one
value" and to translate the date i need 3 values (month, day, year)

public Double parseClient(String clientValue, Messages messages) throws
ValidationException

so, is it possible to obtain the 3 values within the translator?


On 5/25/07, Juan Maya <[EMAIL PROTECTED]> wrote:
>
> Thanks!
> I think translators are way to go. I will try it and tell u how it
> goes.
>
>
>
> On 5/25/07, 蝈蝈龙 <[EMAIL PROTECTED] > wrote:
> >
> > I want to give you a attachement size is not greater than 4k. But
> > SMTP server always give me a error
> >
> > The following is the text
> >
> > I think if you would like to your html look like
> > <select id="month"..../><select id="day"..../><select
> > id="year"..../> It's right way to render 3 selectc component.
> >
> > If you just want to render a component ,the html should look like
> > <select t:id="mydate" .......>
> >
> > Suppose my point is right, you have to know translator concept that
> > is reponsible for the translation between the server-side and client
> > -side 1. Here you first need to create a translator class implment
> > the translation between Date and String
> >    see the attached file org/opend/bogo/translator/DateTranslator
> > 2. create you own module for your application
> >    see the attached file org/opend/bogo/module/MyAppModule to register
> > the
> > translaor
> > 3. Register the Module to let the module start when staring your
> > application
> >    see the attached file MEAT-INF/MANIFEST.MF
> > 4. Open the attached Page class name Login to see how the date be
> > invoked
> >
> >
> >
> > 2007/5/25, 蝈蝈龙 <[EMAIL PROTECTED]>:
> > >
> > > I think if you would like to your html look like
> > >  <select id="month"..../><select id="day"..../><select
> > > id="year"..../> It's right way to render 3 selectc component.
> > >
> > > If you just want to render a component ,the html should look like
> > > <select t:id="mydate" .......>
> > >
> > > Suppose my point is right, you have to know translator concept
> > > that is
> >
> > > reponsible for the translation between the server-side and client
> > -side
> > > 1. Here you first need to create a translator class implment the
> > > translation between Date and String
> > >    see the attached file org/opend/bogo/translator/DateTranslator
> > > 2. create you own module for your application
> > >    see the attached file org/opend/bogo/module/MyAppModule to
> > > register
> > the
> > > translaor
> > > 3. Register the Module to let the module start when staring your
> > > application
> > >    see the attached file MEAT-INF/MANIFEST.MF
> > > 4. Open the attached Page class name Login to see how the date be
> > invoked
> > >
> > >
> > > 2007/5/25, Juan Maya < [EMAIL PROTECTED] >:
> > > >
> > > > Thank for u help, marcelo,  but what i need it's something
> > > > different The component i want would be use like this:
> > > >
> > > > <t:date value="date"/>
> > > >
> > > > and t:date has:
> > > > <select id="month"..../><select id="day"..../><select
> > id="year"..../>
> > > >
> > > > The component renders 3 selects with the day month and year.
> > > > That's already done, what i don't know is how to create a new
> > > > java.util.Date()
> > inside
> > > > my
> > > > date component and transfer it as the value entered to my page.
> > > > I
> > could
> > > > transfer to my page day, month and year and then build the
> > > > entered
> > Date
> > > > but
> > > > it's not a clean solution.
> > > >
> > > >
> > > >
> > > >
> > > > On 5/25/07, Marcelo lotif <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > Juan, i have an simple component that maybe can help you. It
> > > > dinamically
> > > > > grabs information from the database and put into a
> > PropertySelection.
> > > > It's
> > > > > quite simple, but you may have problems because it's not
> > documented
> > > > --and
> > > > > i'ts in portuguese, but still is java syntax :-). For your
> > > > information, I
> > > > > followed an example that Warner Onstine put on his book
> > > > > (Tapestry
> > > > 101),
> > > > > maybe taking a look on it you can get more useful information.
> > > > >
> > > > > 2007/5/24, Juan Maya < [EMAIL PROTECTED]>:
> > > > > >
> > > > > > Does any body know the best way to implement this type of
> > component?
> > > > > >
> > > > > > On 5/23/07, Juan Maya < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > Hi all,
> > > > > > > i have been trying to create a new Date component that
> > > > > > > would
> > help
> > > > to
> > > > > > enter
> > > > > > > dates using 3 select components. It would be something
> > > > > > > like
> > this:
> > > > > > > <select id="month"..../><select id="day"..../><select
> > > > id="year"..../>
> > > > > > >
> > > > > > > However i don't know how to accomplish this.
> > > > > > > I have seen that i can do it creating a
> > ProcessSubmissionAction on
> > > > my
> > > > > > > component that would take the values of the select
> > > > > > > components
> > but
> > > > i
> > > > > want
> > > > > > to
> > > > > > > be sure that there isn't a cleaner way to do it.
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > Best Regards,
> > > > > --
> > > > > Atenciosamente,
> > > > > Marcelo Lotif
> > > > >
> > > >
> > >
> > >
> > >
> >
>
>


------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this email in error, please
immediately notify the sender by e-mail at the address shown.  This email
transmission may contain confidential information.  This information is
intended only for the use of the individual(s) or entity to whom it is
intended even if addressed incorrectly.  Please delete it from your files if
you are not the intended recipient.  Thank you for your
compliance.  Copyright 2007 CIGNA

==============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to