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.2019 at 02:59

peterw81's gravatar image

peterw81
(suspended)
accept rate: 0%

edited 04.10.2019 at 04:42

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958

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

(01.10.2019 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.2019 at 02:16

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

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

(09.10.2019 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:

×58

Asked: 15.08.2019 at 02:59

Seen: 4,610 times

Last updated: 09.10.2019 at 04:19