|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
<s:actionerror > Tag Data Rendering IssueWhen using <s:actionerror > tag, the first character of error message is
automatically getting converted to upper case. I haven't set any "text-transform" property in my CSS. If I do "View Source", I see proper text but on JSP its behaving weirdly. My CSS: .errorMessage { color: red; font: 10px verdana, arial, helvetica, sans-serif; } In "View Source" <ul> <li><span class="errorMessage">Please enter User Id</span></li> </ul> But on JSP, it is displayed as Please Enter User Id I have included struts.properties in my project classpath and have set * struts.ui.theme=simple* What could be the reason of this behaviour? |
|
|
Re: <s:actionerror > Tag Data Rendering IssueHimanshu Rathore wrote:
> When using <s:actionerror > tag, the first character of error message is > automatically getting converted to upper case. I haven't set any > "text-transform" property in my CSS. > > If I do "View Source", I see proper text but on JSP its behaving weirdly. > > My CSS: > ..errorMessage { > color: red; > font: 10px verdana, arial, helvetica, sans-serif; > } > > In "View Source" > <ul> > <li><span class="errorMessage">Please enter User Id</span></li> > </ul> > > But on JSP, it is displayed as > Please Enter User Id > > I have included struts.properties in my project classpath and have set * > struts.ui.theme=simple* > > What could be the reason of this behaviour? Sounds like *something* is applying a text-transform to the text. When you view source, what stylesheets do you see referenced? Are there any <style> blocks, or inline styles in the markup? You might try using the Web Developer or Firebug extensions for Firefox to examine the DOM and determine what styles are really being applied to that element of some additional insight into what's going on. L. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: <s:actionerror > Tag Data Rendering IssueHi Laurie,
A silly mistake at my end. Had included a TD in CSS wherein text-transform was set to capitalise. And I didn't pay much attention to this particular attribute assuming that nothing would be there. Thanks for your help On Tue, May 13, 2008 at 10:32 PM, Laurie Harper <laurie@...> wrote: > Himanshu Rathore wrote: > >> When using <s:actionerror > tag, the first character of error message is >> automatically getting converted to upper case. I haven't set any >> "text-transform" property in my CSS. >> >> If I do "View Source", I see proper text but on JSP its behaving weirdly. >> >> My CSS: >> ..errorMessage { >> color: red; >> font: 10px verdana, arial, helvetica, sans-serif; >> } >> >> In "View Source" >> <ul> >> <li><span class="errorMessage">Please enter User Id</span></li> >> </ul> >> >> But on JSP, it is displayed as >> Please Enter User Id >> >> I have included struts.properties in my project classpath and have set * >> struts.ui.theme=simple* >> >> What could be the reason of this behaviour? >> > > Sounds like *something* is applying a text-transform to the text. When you > view source, what stylesheets do you see referenced? Are there any <style> > blocks, or inline styles in the markup? You might try using the Web > Developer or Firebug extensions for Firefox to examine the DOM and determine > what styles are really being applied to that element of some additional > insight into what's going on. > > L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > |
| Free Forum Powered by Nabble | Forum Help |