struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: S2 Action Validation
Date Wed, 11 Apr 2007 22:02:15 GMT
I think labelPosition will only affect the field label, not the error 
message placement. You'll probably have to go with customizing the theme 
for that.

L.

stanlick@gmail.com wrote:
> I can't get labelposition or requiredposition to do anything!
> top/bottom/right/left/*random* -- I tried them all.
> 
> On 4/10/07, Dave Newton <newton.dave@yahoo.com> wrote:
>>
>> --- 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
>>
>>
> 
> 


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


Mime
View raw message