This content has been marked as final.
Show 2 replies
-
1. Re: how to use facesMsgs.addToControl with table?
wilczarz.wilczarz.gmail.com Sep 2, 2009 12:01 PM (in response to deanhiller2000)Last time I checked, the jira issue was open (you can check it here). The problem is that FacesMessages contract states that messages are applied to controls by the component id (the jsf tree component), and NOT the client id (the generated HTML id). In case of a list this approach fails, since many components share the same component id. Try using this instead:
FacesMessage msg = new FacesMessage( SEVERITY_ERROR, msgTxt, msgTxt ); FacesContext.getCurrentInstance().addMessage( clientId, msg );
-
2. Re: how to use facesMsgs.addToControl with table?
deanhiller2000 Sep 2, 2009 4:03 PM (in response to deanhiller2000)thanks much, that worked...added my vote to the jira issue as well.
thanks,
Dean