Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 xml validator error message placement?

 
Tudor Raneti
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of struts 2, how would i make the validation message appear after the username or password field if using xml -validator?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the template (or, more cleanly, create a new theme), or do it manually using the "simple" theme.

Although there might be an attribute to control where the error message is displayed; I don't recall.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"an wolf", please check your private messages for an important administrative matter.
 
Tudor Raneti
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the notice. Can someone answer my question?
Also i've just started on struts, don't know about themes, got an example?

this produces the error message above the field targeted ( i actually want the error message to share same line after the field, and done with struts 2 xml validation if possbile):
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My answer is still the same...
 
Tudor Raneti
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry didn't see your answer there. Also i've just started on struts, don't know about themes, anyone got an example on how does a theme change this (i want server side please, no javascript)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic