You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by lucas owen <sr...@gmail.com> on 2010/06/22 12:53:54 UTC
sx:dateTimePicker disable textfield
Hi Struts 2 users!
I have a jsp in which I allow the users to enter a date:
<sx:datetimepicker name=*"dDate"* label=*"Date"* iconPath=*
"/images/ico-calendar.gif"* displayFormat=*"dd/MM/yyyy"*/>
If the user enters anything with wrong format (for instance, AAAA), the
datetimepicker changes this value to 01/01/1970
(I dont know why!!)
so I want to disable the textbox so that the user only can introduce a date
when she clicks on the calendar icon.
Any ideas?
Thanks in advance!