struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lei.java@gmail.com" <lei.j...@gmail.com>
Subject Re: validation and CSS
Date Thu, 20 Dec 2007 03:07:13 GMT
Thanks Alberto.

Which class contains style for <s:textfield .../>? I need to customize it so
that no <span ../> is around it and the text associated with it is in bold.

e.g., <s:text field key="some key"/>

If the value of the "some key" is Password, I want the "Password" is in
bold.

Any suggestion?

Thanks again.

On Dec 19, 2007 10:00 PM, Alberto A. Flores <aaflores@gmail.com> wrote:

> I believe the errors are within a "span" with class "errorField" (it may
> be something else). Custom CSS can make you look like whatever you want.
>
>
> lei.java@gmail.com wrote:
> > Thanks Dave. It seems the simple theme is used so the message is in
> black.
> >
> > I overrode the ..errorMessage style in JSP which solved my problem but
> I'm
> > not sure if it's a right way to do that.
> >
> > Thanks again.
> >
> >
> > On Dec 19, 2007 8:09 PM, Dave Newton <newton.dave@yahoo.com> wrote:
> >
> >> Er, the default stylesheet *does* make it show up in read. Are you
> using
> >> the
> >> <s:head/> tag? IIRC that is what includes the CSS file.
> >>
> >> d.
> >>
> >> --- "lei.java@gmail.com" <lei.java@gmail.com> wrote:
> >>
> >>> Is there a way to apply style sheet (CSS) to the message validator
> >>> generates? For example, how to make the "Color me red" message in red
> >> when
> >>> it is shown up?
> >>>
> >>>
> >>> <validators>
> >>>
> >>> <field name="pin">
> >>>
> >>> <field-validator type="requiredstring">
> >>>
> >>> <message>*Color me red*</message>
> >>>
> >>> </field-validator>
> >>>
> >>> </field>
> >>>
> >>> </validators>
> >>>
> >>> Many thanks.
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
>
> --
>
> Alberto A. Flores
> http://www.linkedin.com/in/aflores
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message