Validation messages are displaying at the bottom of the page JSF - javax faces developmentstage messages -
i stuck displaying error message in jsf. requirement given below: i have user form, user has enter details firstname, lastname, username , emailaddress. these fields mandatory, among these fields, username , emailaddress unique. when user enters fields, , if clicks save @ backend have check whether username , email address exists in db, if exists have show error message on top of page saying "the data entered exists, please reenter again". and validation messages firstname , lastname should display on side of each field. can't use <h:messages> because displays validation messages @ once. so populating hidden field in form message using following code: context.addmessage("addusererrormessage", new facesmessage("the data entered exists, please reenter again")); addusererrormessage id of hidden form field. but when displaying message @ top of page <h:message for="adduserformmessage"> the message being displa...