I&#39;ve run into the same problem every time I get to polishing a JSF application. My thought is that there should be a new positional replacement value in message templates that allows you to plug in the value of the correlated output label. (If there are multiple, the first would be selected).<br>
<br>In general, the position replacements are:<br><br>0 = invalid value<br>1 = example value (sometimes this applicable, in which case the positional parameters shift)<br>2 = client id<br><br>We could add<br><br>3 = label value<br>
<br> It&#39;s debatable whether the HTML should be stripped from the value.<br><br>javax.faces.converter.DateTimeConverter.DATE={3}: &#39;&#39;{0}&#39;&#39; could not be understood as a date. Example: {1}<br><br>-Dan<br><br>
<div class="gmail_quote">On Sat, Sep 12, 2009 at 9:24 AM, Damien Gouyette <span dir="ltr">&lt;<a href="mailto:damien.gouyette@gmail.com">damien.gouyette@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Hello,<div><br></div><div>I have a lot of forms to do and i don&#39;t understand a point</div><div><br></div><div>&lt;h:outputLabel value=&quot;<b>client&#39;s birthdate</b>&quot; for=&quot;birthDateField&quot;/&gt;</div>
<div><br></div><div>&lt;h:inputText id=&quot;birthDateField&quot; label=&quot;client&#39;s birthdate&quot;/&gt;</div><div><br></div><div>&lt;h:message for=&quot;birthDateField&quot;/&gt;</div><div><br></div><div>if i don&#39;t set label on inputText, i have an error message like :</div>
<div><br></div><div><span><i>formNew:birthDate: &#39;a&#39; could not be understood as a date. Example: 12/09/2009 instead of </i></span></div><div><br></div><div><div><span><b>client&#39;s birthdate </b>: &#39;a&#39; could not be understood as a date. Example: 12/09/2009</span></div>
<div><br></div><div>Can you reuse outputLabel value if exists ?</div><div><br></div><div>Just for information, this message is the french error message when i set a dateConverter on my inputText. (little bug)</div><div><br>
</div><font color="#888888"><div><br></div><div>Damien GOUYETTE</div></font></div></div></blockquote></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br>
<br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://www.google.com/profiles/dan.j.allen">http://wwwgoogle.com/profiles/dan.j.allen</a><br>