message « Exception « JSF Q&A

1. Showing the JSF Error Messages

I am using JSF Myfaces Impl 1.2 without tomahawk and other libs : I am using different styles + images to show JSF Error messages, find below a sample.

<h:panelGroup rendered="${adminBean.showErrorIcon==2}">
<table width="375" align="center" ...

2. Grouping JSF error messages

I have to break the date input in a form into 3 different parts, the day, month and year. At the moment whenever there is an error in all three fields, ...

3. JSF Message: un-localize?

I have a simple form with a <h:message> next to each <h:inputText> to display validation messages. I want a particular field to be a number between 1 and 999999, and this is ...

4. Duplicate error messages in JSF2 using Development stage and templating

I'm new to JSF2 and am setting up a test project. I'm currently getting duplicate error messages. I think it's because i'm running in Development stage and using a template (with a ...

5. "Can't find bundle for base name messages" error

while running my application I get the following error:

javax.el.ELException: /view/doi/common/navigation.xhtml: Can't find bundle for base name messages, locale de_CH
at com.sun.faces.facelets.compiler.TextInstruction.write(
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(
at javax.faces.component.UIComponentBase.encodeChildren(
In my faces-config I specified this:

6. Message error

7. h:message for non errors

This is something that has bugged me for some time now, but I haven't quite figured out the proper way to address the issue. I have a JSF page that calls method on a Managed Bean. The bean stores information in the database and retuns to the orignating page. I would like to be able to let the user know that ...

8. error message

10. Checking for error messages

11. using h:message for non error

12. how to customize error messages

13. JSF error message - retain ?

HI all, i am using jsf . its getting cleared, if i click a commandlink which shows a popup div. That popup div is rendered in a bean. How to retain the error messages after getting the response. Samething happened when i change a select option which processes in valueChangeListener. After Changes made in Select option (getting the response) how ...

14. error messages

15. When i try to open pdf, it shows 'There was an error opening this document.' message

Welcome to the JavaRanch! I think what you're describing is a bug with Acrobat on a certain browser/OS. At least it sounds familiar. If that's true, there's nothing you can do about it. The cure was to have the user download the file and then open the downloaded copy. The problem seems to be that the attachment went into the temporary ...

16. Customized error messages for validateLength

Can I display a customized error message for the ? The error message that is displayed is "testForm:nameField: Validation Error: Value is greater than allowable maximum of '6'". Is there any way I can change the error message being displayed? [ November 08, 2008: Message edited by: Rishidharan Somu ]

17.  Error message with JSF Code

The stock error message is really yucky. You can override it (it's a resource), but the override is done for all validation messages of that type, which is also yucky. In newer JSF implementations, you can assign a label to the controls that will be used instead of the control ID when formatting the message.

18. Formatting error message

20. Error message: Cannot forward after response has been commited

public void download(){ FacesContext context = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest(); // request.setAttribute("selected",getSelected()); // HttpSession session = request.getSession(); // session.setAttribute("selected", selected); request.setAttribute("selected", selected); HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse(); try { //context.getExternalContext().redirect(request.getContextPath()+"/FileServlet"); request.getRequestDispatcher("/DownloadServlet").forward(request, response); }catch (ServletException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } This is the error message ...

21. JSF Error Messages

22. how remove dot from error message

23. need help on jsf error message

hi, i am using jsf+xhtml. there are some input fields, and when i enter some junk characters it shows error message like "please entere valid value". but i when i enter junk characters into two three fields it shows same error message for all of them..but i want to show that error msgs for each individual input "please entere valid ...