it is possible, if you extend and modify whatever theme you're using. Then you can put that code wherever you want it to show up right inside the freemarker template that renders it. http://struts.apache.org/2.x/docs/extending-themes.html
hth, -a Skip Hollowell wrote: > > Trying again, due to bad formatting on Nabble... > I saw cilquirms reply, but I don't think I phrased my problems > correctly. I understand that the tag libraries are very accomodating, > but I am at a loss as to how to insert this code. This little calendar > image and the associated href for clickability would need to go > somewhere inside the generated code that the tag outputs. Is that even > possible? I want to have the little calendar icon be next to the field > input, so user's can use it instead of typing in a date by hand. > > Hopefully that is a bit more clear on my issues. > > Any ideas? > > ------------------------------------------------------- > > 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 is this calendar clickable icon that brings up a date > picker: > <pre> > javascript:NewCal('demo1','ddmmmyyyy',true,24) images/cal.gif > </pre> > > Where I want to add it is next to my input box on my form for the > datePaid field: > <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#a9946512 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]