• Post Reply Bookmark Topic Watch Topic
  • New Topic

label JSF tag

 
greeshma silam
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

What is alternative to use html label tag in JSF ...As my application needs to be 508 compliant I have to associate a label to each form element...how can I do that in JSF


Thanks
 
Bajrang Asthana
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use hutputLabel and use "for" attribute to associate this label to its corresponding element.

Hope it will work for you
 
greeshma silam
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome thank you... but how can we display a static field in JSF that is not editable but should be readable by screen reader(508 compliant)

Example:
First Name : John
Last Name: Smith

Thanks
 
Tim Holloway
Bartender
Posts: 18417
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
greeshma silam wrote:Awesome thank you... but how can we display a static field in JSF that is not editable but should be readable by screen reader(508 compliant)

Example:
First Name : John
Last Name: Smith

Thanks


Same way you would in raw HTML. JSF's UI controls all pass those properties through.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!