• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

validation messages to different parts of the page

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello i am using an email validation, the codes are below




The first validation is obviously to avoid blank submissions and it should be "*" next to the inputtextbox , which works fine .
However i want to make a validation for the email string also , and i want to give the validation message somewhere else in the page. But the message also appears next to the text box.
How can i make it appear somewhere else in the page?. Thanks

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just give it another clientid or specify null as clientid and use <h:messages globalOnly="true">.

By the way, the HTML <font> tag is deprecated since 1998 (yes, that's 11 years ago!!). You should be using CSS for styling.
 
baran tamer
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

This one works, thanks a lot..

By the way can you suggest me a book or a tutorial so that i can understand it clearly what i am doing ?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JSR252 JSF Specification document explains in detail why JSF is there, what it all provides and how it works.
The JSF API and JSF TLD documentation explains how to use the API and the tags.
The Sun Java EE tutorial part II chapter 10 covers JSF.
The "JSF: The Complete Reference" is a book I can recommend.
 
reply
    Bookmark Topic Watch Topic
  • New Topic