myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bastet <catman...@gmail.com>
Subject Trinidad 1.2.9 : message problem
Date Mon, 16 Mar 2009 13:23:09 GMT
Hello ,
I have some problem with tag <message/>
on jsp  I have
<messages/>                                                            //
message is displayed
<message for="tableid:0:saveCode"/>                // message is displayed
<tr:table id="tableid">
<tr:colomn>
.......
<tr:message for="saveCode"/>
                                <tr:commandLink text="save" id="saveCode"

actionListener="#{bean.saveOrUpdateCode}">
                                    <f:facet name="extraParameter">
                                        <f:param name="commandLinkParam"
value="#{code}" />
                                    </f:facet>
                                </tr:commandLink>
</tr:column>
</table>
public void saveOrUpdateTranCode(ActionEvent e) {
  FacesContext facesContext = FacesContext.getCurrentInstance();
   if (validatecode(code)) {

facesContext.addMessage(e.getComponent().getClientId(facesContext),
//clientid is tableid:0:saveCode
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, "some
message", null));
        }
}
when i use message tag in table i.m getting error
[lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have
been displayed.
sourceId=codeId:0:saveCode[severity=(ERROR 2), summary=(some message ),
detail=(some message )] and message is not displayed, but outside the table
message has been displayed
please help me, I have tried version 1.29, 1.2 11 but same is happening
thank in advance
Natia G.

Mime
View raw message