This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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

Win a copy of Building Microservices this week in the Design forum!
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

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

triyoggg Reddy

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.


Have you checked out Aspose?
subject: displaying errors in jsf fragment with <t:message> tag
It's not a secret anymore!