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