Oops.   I just posted the answer to this on dev.   Please don't
cross-post your questions, and don't post questions about using
MyFaces on the dev list.   The dev list is for discussing changes to
the MyFaces project, not for discussion on how to use it in your own
projects.

Thanks,

-Mike

On 9/12/05, Michael Jenik <[EMAIL PROTECTED]> wrote:
> 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
>

Reply via email to