thanx On Sat, Dec 10, 2011 at 11:21 PM, Dave Newton-6 [via Struts] < ml-node+s1045723n5064728...@n5.nabble.com> wrote:
> On Sat, Dec 10, 2011 at 12:02 PM, xcoder wrote: > > suppose there is a <s:form> within which there is a <s:textfield > > cssErrorClass="myerrorclass" name="name" label="Enter your name"/> > > > > When the form is submitted and there is a validation error, which > results in > > adding a fielderror associated with the name field, then the css of that > > fielderror is errorMessage rather that what I have specified > "myerrorclass". > > > > I guess this is a bug in struts2.2.3. Any help is appreciated on why the > > cssErrorClass is not working. > > As currently implemented, the `cssErrorClass` attribute is meant for > the input element itself, not the error message. > > IMO having them be the same class could lead to issues; for example, > it's common to outline the input element in red, but outlining the > message itself in red would be undesirable. > > Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5064728&i=0> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5064728&i=1> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://struts.1045723.n5.nabble.com/cssErrorClass-not-working-tp5064663p5064728.html > To unsubscribe from cssErrorClass not working, click > here<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5064663&code=bml0aW4uY29vbDR1cmNoYXRAZ21haWwuY29tfDUwNjQ2NjN8LTE4OTY0NjIxODE=> > . > NAML<http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Regards Nitin XCoderZ~~ -- View this message in context: http://struts.1045723.n5.nabble.com/cssErrorClass-not-working-tp5064663p5064771.html Sent from the Struts - Dev mailing list archive at Nabble.com.