>-----Original Message-----
>From: Wes Wannemacher [mailto:w...@wantii.com]
>Sent: Friday, August 21, 2009 4:17 PM
>To: Struts Users Mailing List
>Subject: Re: s:actionmessage issue after upgrade to 2.1.6 (possible bug)
>
>You could just override the template for this tag. Just grab a copy of
>the current template for the theme you are using and copy to your app
>(outside of the struts jar), then update it to your heart's content.
>I'm sure there are a few tutorials out there that give a better
>step-by-step for overriding templates in struts2.
>
>BTW, here is the JIRA with patch that led to the current state of things
>-
>
>https://issues.apache.org/struts/browse/WW-2655
>
>
>On Fri, Aug 21, 2009 at 4:07 PM, Struts Two<struts...@yahoo.ca> wrote:
>> Thanks for the advice Wes. However; in this case I am bound to
>corporate provided style-sheet classes that I can not change. Based on
>your suggestion, I have to write a few lines of css to define my own
>classes and then go through every single page the uses <s:actionmessage
>... and <s:actionerror.. to update the css classes.
>>
>> I was just hoping there was a simpler way without me changing all
>those pages after the upgrade
>>
>> --- On Fri, 8/21/09, Wes Wannemacher <w...@wantii.com> wrote:
>>
>>> From: Wes Wannemacher <w...@wantii.com>
>>> Subject: Re: s:actionmessage issue after upgrade to 2.1.6 (possible
>bug)
>>> To: "Struts Users Mailing List" <user@struts.apache.org>
>>> Received: Friday, August 21, 2009, 7:40 PM
>>> Just add a selector so that your
>>> class applies to the span who's
>>> parent LI's parent UL has the class "alert-go" (or whatever
>>> class name
>>> you're specifying).
>>>
>>> -Wes
>>>
>>> On Fri, Aug 21, 2009 at 3:23 PM, Struts Two<struts...@yahoo.ca>
>>> wrote:
>>> > Before I migrate my struts application from 2.0.12 to
>>> 2.1.6
>>> >
>>> > The following
>>> >
>>> > <s:actionmessage cssClass="alert-go"/>
>>> >
>>> > would generate:
>>> >
>>> > <ul>
>>> >   <li>
>>> >      <span class="alert-stop">
>>> >         You can not change your role to Agent.
>>> >      </span>
>>> >   </li>
>>> > </ul>
>>> >
>>> > which would display the message in the appropriate
>>> color defined by style sheet class
>>> >
>>> > However, after I have migrated my code to 2.1.6, the
>>> generated code looks like the following
>>> >
>>> > <ul class="alert-stop">
>>> >   <li><span>You can not change your role
>>> to Agent.</span></li>
>>> > </ul>
>>> >
>>> > The style-sheet effect is gone and the text is always
>>> shown in black. The same thing happens for
>>> >
>>> > <s:actionerror cssClass="alert-stop"/>
>>> >
>>> > is there any way to fix this?
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>>  __________________________________________________________________
>>> > Ask a question on any topic and get answers from real
>>> people. Go to Yahoo! Answers and share what you know at
>http://ca.answers.yahoo.com
>>> >
>>> >
>>> ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> > For additional commands, e-mail: user-h...@struts.apache.org
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Wes Wannemacher
>>>
>>> Head Engineer, WanTii, Inc.
>>> Need Training? Struts, Spring, Maven, Tomcat...
>>> Ask me for a quote!
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>>
>>
> __________________________________________________________________
>> Make your browsing faster, safer, and easier with the new Internet
>Explorer® 8. Optimized for Yahoo! Get it Now for Free! at
>http://downloads.yahoo.com/ca/internetexplorer/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
>
>

http://mikeski.net/site/node/16

That should show you how to make a template do what you want.


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

Reply via email to