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 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:
> 
>  javascript:NewCal('demo1','ddmmm',true,24)  images/cal.gif  
> 
> 
> Where I want to add it is next to my input box on my form for the 
> datePaid field:
> 
> 
> 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]



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 Calendar function to a form.




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 stuff
> here but it does the job and now that I have it written I can
> use it in all the places I need to. Check out
> http://www.vitarara.org/cms/node/86 for the example.
> 
> Al
> 
Al,

I am surprised I didn't remember seeing this on your site, as it is one
of only a handful of Struts 2 sites I have bookmarked.  Thanks for the
indepth explanations along with the solid examples.

Skip.


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




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

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 stuff 
here but it does the job and now that I have it written I can 
use it in all the places I need to. Check out 
http://www.vitarara.org/cms/node/86 for the example.
 
Al
 

Al,

I am surprised I didn't remember seeing this on your site, as it is one 
of only a handful of Struts 2 sites I have bookmarked.  Thanks for the 
indepth explanations along with the solid examples.


Skip.


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



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 I 
need to get out of the realm of columnar Label/Data presentations.  We 
actually have the 'luxury' of a presentation team here, so they will 
design the look and feel, and I will get to plug things in so as to fit 
into their vision.  Not too shabby a way to work, sometimes.



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



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

2007-04-11 Thread Fogleson, Allen
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 stuff here but it does the job and now 
that I have it written I can use it in all the places I 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 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 a proper assumption, and a more 'struts2-ish' way of
approaching things?

Thanks,
Skip

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:
> 
>  src="images/cal.gif" width="16" height="16" border="0" alt="Pick a
> date">
> 
>
> Where I want to add it is next to my input box on my form for the
> datePaid field:
> 
>
> 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]
> <http://www.nabble.com/user/SendEmail.jtp?type=post&post=9938513&i=0>
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://www.nabble.com/user/SendEmail.jtp?type=post&post=9938513&i=1>
>



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




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

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 
> additional tags around my form fields.  
> Is that a proper assumption, and a more
'struts2-ish'
> way of approaching things?

I feel the supplied themes are starting points--they
may work great for many cases, but as soon as you need
something different, I think you're better off either
extending an existing theme or creating your own.

If you're doing enough different things on all your
pages then using the "simple" theme might be a good
idea, but as soon as you find yourself inserting the
same chunks of markup over and over then I think you'd
be creating more work in the long run than extending
or creating.

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.



   

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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



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 a proper assumption, and a more 'struts2-ish' way of 
approaching things?


Thanks,
Skip

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:




Where I want to add it is next to my input box on my form for the
datePaid field:


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] 







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



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 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:


src="images/cal.gif" width="16" height="16" border="0" alt="Pick a 
date">



Where I want to add it is next to my input box on my form for the 
datePaid field:



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]



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 :


javascript:NewCal('myfield','ddmmm',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','ddmmm',true,24)  images/cal.gif  
> 
> Where I want to add it:
> 
> 
> 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]