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
> > >
> >
>
>
>

Reply via email to