Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

customizing error messages in struts2

 
Aarthy Vijay
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I would like to change the color of my validation error message displayed in color red to some other color without bullets.Also would like to highlight the textfield name which was left empty.Kindly advise.
thanks,
Aarthy
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Arathy", you have previously been warned on multiple occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional, and this is your final warning. Adjust your display name to comply with the required standards prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Failure to comply will result in the removal of your account.

bear
JavaRanch Sheriff
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Changing the color is a matter of overriding the default S2 CSS styles.

Adding further styling implies modifying the FreeMarker templates S2 uses to generate the form controls. There's a patch going in that will make some of this easier, but in the currently-released versions you'll have to do that work yourself.

Dave
 
Aarthy Vijay
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to override struts2 css styles?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Load you own stylesheet with style definitions the same name as the S2-provided styles after the S2 stylesheets are loaded.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic