Struts 2 tags support pretty much all the attributes that their html
counterparts do.
I haven't used NewCal ( seen it, but not used it )

but you can try something like this :

<s:textfield id="myfield" key="p.datePaid"/>
javascript:NewCal('myfield','ddmmmyyyy',true,24)  images/cal.gif  


Skip Hollowell wrote:
> 
> I tried the s:datetimepicker to work on things, but since I am not using 
> AJAX, I believe that is a dead end, no?  There'd be no point in bringing 
> in the ajax theme if I wasn't using AJAX.
> 
> So how do I incorporate a standard js calendar routine into a field on 
> my form?
> 
> What I want to add:
>  javascript:NewCal('demo1','ddmmmyyyy',true,24)  images/cal.gif  
> 
> Where I want to add it:
> <s:textfield key="p.datePaid"  />
> 
> I am just missing the concept here on how to plug custom code into the 
> s: tags.  I am trying very hard not to hack this thing to bits with 
> tricks and cheats.
> 
> Skip Hollowell
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Adding-Calendar-function-to-a-form.-tf3555209.html#a9929125
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to