You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Michael McGrady <mi...@michaelmcgrady.com> on 2004/08/31 18:45:02 UTC
images
PROJECT
I am trying to build an imaging "module" for Struts, etc, buttons. What
this does is to use dynamic data on buttons, e.g. color, size, style,
font, language, etc., and to create the buttons on the fly. This is, of
course, done with JSP taglibs.
PROBLEM
My problem is that I extend the Struts SubmitTag and add various
properties, very much akin to the ImageTag in Struts. Additional to the
ImageTag properties, I add txtClr and bgClr properties as well as
txtClrCode and bgClrCode properties. The former allow us to hardcode
colors of images (buttons) and the latter to provide a dynamic value
depending on what is in a container referenced with a mapBean property
that is saved in session scope. When I use the code (txtClrCode and
bgClrCode) properties, I eventually set them to txtClr and bgClr before
writing to the response object. Also, I only use txtClrCode and
bgClrCode is txtClr and bgClr are null.
ANOMALY
All the properties are set to null in my ImageTag class. Yet, after the
initial value of a tag is set, changing the value of either the
txtClrCode or the bgClrCode is not working because somehow txtClr and
bgClr are not being reset to null as expected.
QUESTION
The computer is always right, so anyone know what I am doing wrong here?
Thanks
Michael McGrady
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: images or dynamic buttons
Posted by Michael McGrady <mi...@michaelmcgrady.com>.
Sorry, should have put buttons in the subject
Michael McGrady wrote:
> PROJECT
>
> I am trying to build an imaging "module" for Struts, etc, buttons.
> What this does is to use dynamic data on buttons, e.g. color, size,
> style, font, language, etc., and to create the buttons on the fly.
> This is, of course, done with JSP taglibs.
> PROBLEM
>
> My problem is that I extend the Struts SubmitTag and add various
> properties, very much akin to the ImageTag in Struts. Additional to
> the ImageTag properties, I add txtClr and bgClr properties as well as
> txtClrCode and bgClrCode properties. The former allow us to hardcode
> colors of images (buttons) and the latter to provide a dynamic value
> depending on what is in a container referenced with a mapBean property
> that is saved in session scope. When I use the code (txtClrCode and
> bgClrCode) properties, I eventually set them to txtClr and bgClr
> before writing to the response object. Also, I only use txtClrCode
> and bgClrCode is txtClr and bgClr are null.
>
> ANOMALY
>
> All the properties are set to null in my ImageTag class. Yet, after
> the initial value of a tag is set, changing the value of either the
> txtClrCode or the bgClrCode is not working because somehow txtClr and
> bgClr are not being reset to null as expected.
> QUESTION
>
> The computer is always right, so anyone know what I am doing wrong here?
>
> Thanks
>
> Michael McGrady
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org