Hi,

after a bit of research I managed to show the field and calendar with time.
What I did was setting in page the Calendar.setup like this:

 Calendar.setup({inputField: "refeicaoForm_refeicao_dataHora", ifFormat:
"%d/%m/%Y %H:%M", button: "refeicao.dataHoraDatePicker", showsTime:true,
time: "24"});

That's was great and easy to managed. 

My problem now is the fact that in DataBase The date is allways being
persisted with 00:00:00 for time.

Looking at mysql database the persisted row looks like: 

1, '2008-11-26 00:00:00', 1, -3

So what should I do to make  the correct time to be persisted?

regards,
Marcos Maia. 



mmaia wrote:
> 
> Hi,
> 
> After a bit of research I find out that the default calendar wich cames
> packaged with appfuse using struts2 also gives support for picking a time.
> I'd like to enable or disable this feature deppending on wich app screen I
> show the date picker. 
> 
> Any suggestions on what to do to achieve this goal? 
> 
> I've been trying to understand how does it work in appfuse. I can see the
> appfuse tag is like: 
> 
> <s:textfield key="refeicao.dataHora" required="false" maxlength="255"
> cssClass="text" size="11" title="date"/>
> 
> how does this get associated with calendar.js or calendar-setup.js?
> 
> regards,
> Marcos Maia. 
> 
> 
> mmaia wrote:
>> 
>> Hi,
>> 
>> I've tryied all I can think of trying to make s:dateTimePicker to work
>> with appfuse. I can't find a way. Anyone has ever managed to use it
>> correctly?  
>> Anyone has some suggestion on some Javascript component to use to set
>> Date and Time???
>> 
>> []s
>> Marcos Maia.
>> 
>> P.S - I've set the ajax theme and tryied many things, no success.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/s%3AdateTimePicker---Struts-2-can%27t-make-it-work%21%21%21-tp20506965s2369p20508163.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


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

Reply via email to