Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Removing the msgs of the required fields

 
Jyothi Sree
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai

I have a small problem in struts 2 application .
I have a Jsp Page with required feilds in it .which gives error messages, when i press submit with out entering the values in it .
those messages are displaying beside the text feilds ,

If i put the <s:actionerror />
<s:fielderror />
<s:actionmessage/> these tags ,messages is appearing at that position and aslo beside the text field , I dont want the messages to appear beside the textfeild ..


How should i do that ?

Thanks
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using simple theme is an option. I'm sure there are other solutions too but David might know more about them...
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the "simple" theme is one answer, otherwise you'd need to modify/extend an existing style to not display them at the field level.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use real words when posting to the forums. Abbreviations such as "msgs" in place of "messages" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please click this link ⇒ UseRealWords for more information.
 
Jyothi Sree
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have applied the simple theme to my struts-tag:form but the text feilds are appearing one after the other in a row .i want them one below the other .Can i get the detail information modifying the style ..

how do i do that .. I mean where can i get the css file to change the style ..

I m using struts2 .x

Thanks
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then put a <br/> tag between them, or put them in a table like the default theme does, or... there are any number of solutions.
 
Jyothi Sree
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Simple theme is not displaying the label for the feild . i have tried putting < s:label > but it is dispalying the ' key' attribute value as it is , i mean it is not reading frm the resoucebundle .
so i cannot use simple theme ,Then how to remove the Error messages appearing beside or above the feild ....


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Using the "simple" theme is one answer, otherwise you'd need to modify/extend an existing style to not display them at the field level.
 
Jyothi Sree
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi

I m still waiting for the answer ,,,,

How do i remove the error messages at the field level ....


Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic