<?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>Fri, 04 Oct 2019 02:16:44 -0400</lastBuildDate><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></channel></rss>