You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Julien Martin <ba...@gmail.com> on 2007/12/10 14:33:48 UTC
Question about "h:message" and usage of its "for" attribute
Hello,
I have the following jsf page with two forms each of which launches a
process through a command button. When a problem occurs on the server side
for one of the command buttons (e.g. an exception) BOTH my h:message buttons
display the info for the exception/problem that occurred. I would like for
each of the h:message to diplay only the info it is supposed to take care
of. Any idea?
Thanks in advance,
Julien.
[code]
<h:form id="companies-netting-process-form">
<a4j:region id="companies-netting-process">
<rich:message showDetail="true" showSummary="true"
for="companies-netting-process-form"/>
<a4j:commandButton id="companies-netting-process-button"
action="#{NettingManagedBean.copyCompanies}" value="Traitement netting
companies" />
<a4j:status id="companies-netting-process-status"
for="companies-netting-process">
<f:facet name="start">
<h:graphicImage value="images/start.gif"/>
</f:facet>
<f:facet name="stop">
<h:graphicImage value="images/stop.gif"/>
</f:facet>
</a4j:status>
</a4j:region>
</h:form>
<f:verbatim>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</f:verbatim>
<h:form id="amounts-netting-process-form">
<a4j:region id="amounts-netting-process">
<rich:message showDetail="true" showSummary="true"
for="amounts-netting-process-form"/>
<a4j:commandButton id="amounts-netting-process-button"
action="#{NettingManagedBean.copyAmounts}" value="Traitement netting
amounts" />
<a4j:status id="amounts-netting-process-status"
for="amounts-netting-process">
<f:facet name="start">
<h:graphicImage value="images/start.gif"/>
</f:facet>
<f:facet name="stop">
<h:graphicImage value="images/stop.gif"/>
</f:facet>
</a4j:status>
</a4j:region>
</h:form>
[/code]
Re: Question about "h:message" and usage of its "for" attribute
Posted by Andrew Robinson <an...@gmail.com>.
You are using rich:message. This is a JBoss component, not a MyFaces
component. Please bring this issue to the appropriate JBoss support
forum
On Dec 10, 2007 6:33 AM, Julien Martin <ba...@gmail.com> wrote:
>
> Hello,
> I have the following jsf page with two forms each of which launches a
> process through a command button. When a problem occurs on the server side
> for one of the command buttons (e.g. an exception) BOTH my h:message buttons
> display the info for the exception/problem that occurred. I would like for
> each of the h:message to diplay only the info it is supposed to take care
> of. Any idea?
> Thanks in advance,
> Julien.
>
>
> [code]
> <h:form id="companies-netting-process-form">
> <a4j:region id="companies-netting-process">
> <rich:message showDetail="true" showSummary="true"
> for="companies-netting-process-form"/>
> <a4j:commandButton id="companies-netting-process-button"
> action="#{NettingManagedBean.copyCompanies}" value="Traitement netting
> companies" />
> <a4j:status id="companies-netting-process-status"
> for="companies-netting-process">
> <f:facet name="start">
> <h:graphicImage value="images/start.gif"/>
> </f:facet>
> <f:facet name="stop">
> <h:graphicImage value="images/stop.gif"/>
> </f:facet>
> </a4j:status>
> </a4j:region>
> </h:form>
>
>
> <f:verbatim>
> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
> </f:verbatim>
>
>
> <h:form id="amounts-netting-process-form">
> <a4j:region id="amounts-netting-process">
> <rich:message showDetail="true" showSummary="true"
> for="amounts-netting-process-form"/>
> <a4j:commandButton id="amounts-netting-process-button"
> action="#{NettingManagedBean.copyAmounts}" value="Traitement netting
> amounts" />
> <a4j:status id="amounts-netting-process-status"
> for="amounts-netting-process">
> <f:facet name="start">
> <h:graphicImage value="images/start.gif"/>
> </f:facet>
> <f:facet name="stop">
> <h:graphicImage value="images/stop.gif"/>
> </f:facet>
> </a4j:status>
> </a4j:region>
> </h:form>
> [/code]