You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Brian Relph <re...@gmail.com> on 2008/03/27 19:32:31 UTC

s:submit and cssStyle

Hello,

I am trying to add a cssStyle to my <s:submit> button - that includes an
<s:url> :

<s:submit value="%{getText('healthe.admin.edit.template')}"
cssClass="previewToggle" cssStyle="background: #F6F6F6 url(<s:url
value="/images/edit-small.png" />) no-repeat;" action="cancelPreview"
onclick="skipAlert(this);" />

However, it appears that the <s:submit> tag does not like the <s:url> inside
the cssStyle property ... if this is the case, could anyone point me to the
where i would modify the tag to support this?

-- 
Brian

Re: s:submit and cssStyle

Posted by Okan Özeren <ok...@gmail.com>.
Try this:
<s:url id="*myUrl*" value="/images/edit-small.png" />
<s:submit value="%{getText('healthe.admin.edit.template')}"
cssClass="previewToggle" cssStyle="background: #F6F6F6 url(*%{myUrl}*)
no-repeat;" action="cancelPreview"
onclick="skipAlert(this);" />

On Thu, Mar 27, 2008 at 8:32 PM, Brian Relph <re...@gmail.com> wrote:

> Hello,
>
> I am trying to add a cssStyle to my <s:submit> button - that includes an
> <s:url> :
>
> <s:submit value="%{getText('healthe.admin.edit.template')}"
> cssClass="previewToggle" cssStyle="background: #F6F6F6 url(<s:url
> value="/images/edit-small.png" />) no-repeat;" action="cancelPreview"
> onclick="skipAlert(this);" />
>
> However, it appears that the <s:submit> tag does not like the <s:url>
> inside
> the cssStyle property ... if this is the case, could anyone point me to
> the
> where i would modify the tag to support this?
>
> --
> Brian
>

Re: submit and cssStyle

Posted by Brian Relph <re...@gmail.com>.
that does work, thanks for the idea

On Thu, Mar 27, 2008 at 2:04 PM, Michael Gagnon <
mgagnon@genome.med.harvard.edu> wrote:

> Would:
>
>
> <s:url id="editSmall" value="/images/edit-small.png" />
>
> <s:submit value="%{getText('healthe.admin.edit.template')}"
> cssClass="previewToggle" cssStyle="background: #F6F6F6 url(%{editSmall})
> no-repeat;" action="cancelPreview"
> onclick="skipAlert(this);" />
>
>
> not work?
>
> -----Original Message-----
> From: Brian Relph [mailto:relphie@gmail.com]
> Sent: Thursday, March 27, 2008 2:33 PM
> To: Struts Users Mailing List
> Subject: s:submit and cssStyle
>
> Hello,
>
> I am trying to add a cssStyle to my <s:submit> button - that includes an
> <s:url> :
>
> <s:submit value="%{getText('healthe.admin.edit.template')}"
> cssClass="previewToggle" cssStyle="background: #F6F6F6 url(<s:url
> value="/images/edit-small.png" />) no-repeat;" action="cancelPreview"
> onclick="skipAlert(this);" />
>
> However, it appears that the <s:submit> tag does not like the <s:url>
> inside
> the cssStyle property ... if this is the case, could anyone point me to
> the
> where i would modify the tag to support this?
>
> --
> Brian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Brian

RE: submit and cssStyle

Posted by Michael Gagnon <mg...@genome.med.harvard.edu>.
Would:


<s:url id="editSmall" value="/images/edit-small.png" />

<s:submit value="%{getText('healthe.admin.edit.template')}"
cssClass="previewToggle" cssStyle="background: #F6F6F6 url(%{editSmall})
no-repeat;" action="cancelPreview"
onclick="skipAlert(this);" />


not work?

-----Original Message-----
From: Brian Relph [mailto:relphie@gmail.com] 
Sent: Thursday, March 27, 2008 2:33 PM
To: Struts Users Mailing List
Subject: s:submit and cssStyle

Hello,

I am trying to add a cssStyle to my <s:submit> button - that includes an
<s:url> :

<s:submit value="%{getText('healthe.admin.edit.template')}"
cssClass="previewToggle" cssStyle="background: #F6F6F6 url(<s:url
value="/images/edit-small.png" />) no-repeat;" action="cancelPreview"
onclick="skipAlert(this);" />

However, it appears that the <s:submit> tag does not like the <s:url> inside
the cssStyle property ... if this is the case, could anyone point me to the
where i would modify the tag to support this?

-- 
Brian



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org