displaying errors in jsf fragment with <t:message> tag
Joined: Jun 13, 2009
I was just wondering if I could display errors on a separate jsp fragment.
I have a requirement where I have to display hyperlink erros(i.e clicking any error would focus to respective input field)
For example, if I have a form and there are 20 fields, then I am suppose to use 20 times <t:message> tag. I know I can use single <t:messages> tag for all errors, but I have a requirement to focus individual field and I am not sure How we implement this using single<t:messages> tag. However onclick event from <t:message> tag solves my issue but using 20 tags leave a big space under heading and page doesnot look nice.
So I was thinking if I could put all the errors tag on seperate jsf fragment and later do jsp include on the main page.
I tried, but error messages are not being displayed.
DOes any body have any idea, How do I accomplish this.