Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
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

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
The more I look at and play with this scenario, the more I am starting to thing that using the default XHTML theme is not the way to go. I would be much better served, I think to use the simple theme, giving me much more control over layout and additional tags around my form fields. Is that

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Dave Newton
--- Skip Hollowell [EMAIL PROTECTED] wrote: The more I look at and play with this scenario, the more I am starting to thing that using the default XHTML theme is not the way to go. I would be much better served, I think to use the simple theme, giving me much more control over layout and

RE: [S2] Adding Calendar function to a form.

2007-04-11 Thread Fogleson, Allen
need to. Check out http://www.vitarara.org/cms/node/86 for the example. Al From: Skip Hollowell [mailto:[EMAIL PROTECTED] Sent: Wed 4/11/2007 9:10 AM To: user@struts.apache.org Subject: Re: [S2] Adding Calendar function to a form. The more I look at and play

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
Dave Newton-4 wrote: So far I've found the xhtml theme to work for me almost everything with the occasional dip in to simple land, but my projects have fairly basic input needs (except for one horribly difficult page :/ d. I too am starting to see this. Yes, simple will be the way to go when

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread Skip Hollowell
Fogleson, Allen wrote: Skip, There is a pretty good tutorial out there to create a component using the struts tags - this is what I did for exactly what you are doing. Granted it is not as pretty as s:text ...stuff here/s:text but it does the job and now that I have it written I can use

RE: [S2] Adding Calendar function to a form.

2007-04-11 Thread Fogleson, Allen
Not my site, but I had the exact same problem as you and that's where I went. It does have pretty solid, and concise examples. Al From: Skip Hollowell [mailto:[EMAIL PROTECTED] Sent: Wed 4/11/2007 10:05 AM To: user@struts.apache.org Subject: Re: [S2] Adding

Re: [S2] Adding Calendar function to a form.

2007-04-11 Thread cilquirm
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

Re: [S2] Adding Calendar function to a form.

2007-04-10 Thread cilquirm
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','ddmmm',true,24) images/cal.gif Skip