Dear All

We are having problems with FacesMessages. Something like the below is working fine unless we use it within a component.

FacesMessage msg = new FacesMessage(in.steuerung.fehler.ErrorNachricht);
msg.setSeverity(javax.faces.application.FacesMessage.SEVERITY_ERROR);
FacesContext.getCurrentInstance().addMessage("form:idIcBanfLieferungen:idFsLieferungen",msg);

Then we are getting an error, instead of a message on the UI.

There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered. These unhandled FacesMessages are: - Bitte geben Sie ein Lieferdatum an.

Why is this not working?

Many thanks in advance for your advice.

Regards, P

asked 15.08 at 02:59

peterw81's gravatar image

peterw81
166
accept rate: 0%

edited 04.10 at 04:42

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
8.5k21851

A tiny demo project with the problem would help us to reproduce and give you an advice...

(01.10 at 08:27) SupportIvyTeam ♦♦ SupportIvyTeam's gravatar image

ensure that you update the part that should render the faces message in your request. e.g. via update="@form"

link

answered 04.10 at 02:16

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
8.5k21851
accept rate: 69%

@peterw81 did this work? please drive the thread: either accept the answer or provide further evidence for your issue.

(09.10 at 04:19) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×54

Asked: 15.08 at 02:59

Seen: 180 times

Last updated: 09.10 at 04:19