myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Wessendorf <mat...@apache.org>
Subject Re: [Trinidad] custom message problem trinidad 1.2.10
Date Wed, 18 Mar 2009 05:58:58 GMT
what happens with 1.2.8 ?
(since you are saying 1.0.8 works)

-Matthias

On Tue, Mar 17, 2009 at 9:54 AM, Natia Gdzelishvili
<ngdzelishvili@gmail.com> wrote:
> Hello ,
> I have some problem with tag <message/>
> I need to display custom message in table row but it doesnt work, in
> trinidad 1.0.8 it was working
> 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
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Mime
View raw message