Hi,
Instead of MessageFactory.getMessage(context,"myMessageID")
you can use new FacesMessage("Message to print", "")
Thanx and Regards
Rashmi
Michael Jenik
<[EMAIL PROTECTED] To: [email protected]
ahoo.com> cc:
Subject: duplicated messages
useing addMessage and aliasBean
09/13/2005
01:09 AM
Please respond
to "MyFaces
Discussion"
hello,
I have a problem.
I have a bean "SmallBean" which performs this:
FacesContext context =
FacesContext.getCurrentInstance();
context.addMessage(null,MessageFactory.getMessage(context,"myMessageID"));
The bean is used into a Tagfile called in this way.
<TABLE>
<TR><TD>
<x:aliasBean id="alias1" alias="#{laBean}"
value="#{BigBean.desde}">
<f:subview id="sub1">
<mistags:untag/>
</f:subview>
</x:aliasBean>
</TD><TD>
<x:aliasBean id="alias2" alias="#{laBean}"
value="#{BigBean.hasta}">
<f:subview id="sub2">
<mistags:untag/>
</f:subview>
</x:aliasBean>
</TD></TR>
</TABLE>
Note that BigBean has two properties : desde and hasta
of type SmallBean.
And the file untag.tag has a <h:messages
id="menssageLabel" style="color: red"/> tag in
somewhere.
The problem Is that the messages generated by both
SmallBean are rendered together and duplicated in the
"desde" rendered part and in the "hasta" rendered
part.
Is the first parameter of addMessage useful to aboid
this behaviour ? How can I workarround this problem?
Thanks in Advance.
Michael
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com