struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: S2 Action Validation
Date Tue, 10 Apr 2007 14:18:16 GMT
--- stanlick@gmail.com wrote:
> addFieldError("course.text"...
> I really do not like placing a jsp field 
> name name in Java source code, but I could 
> not find another way to correlate the
> message to the field.

No, I think that's how it works. Technically
you already have the field name in the java
code since you're using a Java object. I'm
not really sure what the alternatices would be.

> is there an easy way to get the messages to 
> appear to the right of the field as opposed 
> to the top?

There's a "labelposition" parameter but I don't recall
what the options are; I think if you want any "major"
changes you'd have to modify the theme.

A general comment (not directed specifically at you):
my view is that the default themes and templates are
intended to serve as a launching point: they cover
simple use cases, but if your pages have a specific
layout then extension, modification, and/or creation
of existing or new templates is almost certain to be
required.

> And lastly, can I specify the color I would 
> like the messages to be.

CSS-ily, "errorMessage" class.

d.



       
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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


Mime
View raw message