myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Martin" <>
Subject for attribute of h:message
Date Tue, 11 Dec 2007 08:59:08 GMT

Suppose I have two h:forms each with one h:command button, all of which are
on a jsf page. I would like to find a way to display error messages with two
h:message components each working for a given h:command button but it seems
that the for attribute of a h:message can't point to a h:command button.
What is the best way of achieving the desired behavior?

<h:form id="companies-netting-process-form">
<h:message showDetail="true" showSummary="true"
<h:commandButton id="companies-netting-process-button" action="#{
NettingManagedBean.copyCompanies}" value="Traitement netting companies" />


<h:form id="amounts-netting-process-form">
<h:message showDetail="true" showSummary="true"
<h:commandButton id="amounts-netting-process-button" action="#{
NettingManagedBean.copyAmounts}" value="Traitement netting amounts" />

View raw message