wood burning stoves 2.0*
The moose likes JSF and the fly likes displaying errors in jsf fragment with <t:message> tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "displaying errors in jsf fragment with <t:message> tag" Watch "displaying errors in jsf fragment with <t:message> tag" New topic
Author

displaying errors in jsf fragment with <t:message> tag

triyoggg Reddy
Greenhorn

Joined: Jun 13, 2009
Posts: 4
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.

Thanks.



 
wood burning stoves
 
subject: displaying errors in jsf fragment with <t:message> tag