<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: FacesMessages within a html component</title><link>https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component</link><description>&lt;p&gt;Dear All&lt;/p&gt;
&lt;p&gt;We are having problems with FacesMessages. Something like the below is working fine unless we use it within a component. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FacesMessage msg = new FacesMessage(in.steuerung.fehler.ErrorNachricht);
msg.setSeverity(javax.faces.application.FacesMessage.SEVERITY_ERROR);
FacesContext.getCurrentInstance().addMessage("form:idIcBanfLieferungen:idFsLieferungen",msg);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then we are getting an error, instead of a message on the UI.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Why is this not working?&lt;/p&gt;
&lt;p&gt;Many thanks in advance for your advice.&lt;/p&gt;
&lt;p&gt;Regards, P&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 09 Oct 2019 04:19:36 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component#4083</link><description>&lt;p&gt;&lt;a href="https://answers.axonivy.com/users/1188/peterw81"&gt;&lt;a href="https://answers.axonivy.com/users/1188/peterw81"&gt;@peterw81&lt;/a&gt;&lt;/a&gt; did this work? please drive the thread: either accept the answer or provide further evidence for your issue.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 09 Oct 2019 04:19:36 -0400</pubDate><guid>https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component#4083</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component/4067</link><description>&lt;p&gt;ensure that you update the part that should render the faces message in your request. e.g. via update="@form"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 04 Oct 2019 02:16:44 -0400</pubDate><guid>https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component/4067</guid></item><item><title>Comment by SupportIvyTeam on peterw81's question</title><link>https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component#4042</link><description>&lt;p&gt;A tiny demo project with the problem would help us to reproduce and give you an advice...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SupportIvyTeam</dc:creator><pubDate>Tue, 01 Oct 2019 08:27:37 -0400</pubDate><guid>https://answers.axonivy.com/questions/3921/facesmessages-within-a-html-component#4042</guid></item></channel></rss>