--- Michael Jenik <[EMAIL PROTECTED]> wrote:
> Date: Mon, 12 Sep 2005 12:39:58 -0700 (PDT) > From: Michael Jenik <[EMAIL PROTECTED]> > Subject: duplicated messages useing addMessage and > aliasBean > To: [email protected] > > 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 > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
