• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

label JSF tag

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use h:outputLabel 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 23285
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic