Re: How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-06-13 Thread Bharath Kumar
dvance. > > > Regards, > - > Girish Naik > Mobile:-+91-09740091638 > girish.n...@gmail.com > Mitch > Hedberg<http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html> > - "My fake plants died be

Re: How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-05-31 Thread Girish Naik
I have achieved this by use of JavaScript as follows: //2009-06-05T00:00:00 var validDate = /^([\d]{4})-([\d]{2})-([\d]{2})T([\d]{2})\:([\d]{2})\:([\d]{2})$/i; var elements = document.getElementsByName('dateOfBirth'); for(var i = 0; i < elements.length; i++){ //alert

Re: How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-05-29 Thread Girish Naik
There is no readonly attribute in s:datetimepicker tag. I am using the following tag PFA for the rendered UI for the above tag. Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com Frank Lloyd Wright

Re: How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-05-29 Thread Jim Collings
I just did this a while ago. All I had to do was set: readonly="true" on the struts textfield tag. Mine doesn't have an icon though. On Fri, May 29, 2009 at 2:00 PM, Girish Naik wrote: > Hi, > I have used struts2-core-2.0.11.2 in My Application. And intend to use the > Struts date time picker,

How to make readonly textfield in Struts 2.0.11.2 datetimepicker

2009-05-29 Thread Girish Naik
Hi, I have used struts2-core-2.0.11.2 in My Application. And intend to use the Struts date time picker, but the text field is coming as an editable field. I want to make it as a readonly textbox. The funny thing is that the dojo is not ready to pass my id to the textbox. Only name is supplied to t