[jboss-user] [JBoss Seam] - Displaying a Message for a specific component using id

mikeeprice do-not-reply at jboss.com
Fri Jul 20 14:10:10 EDT 2007


Still learning and have looked a lot places for answer. 

>From some things I have read it looks like I should be able to display a message on a web page for a specific component using the id.

I saw this somewhere <h:message for="loginName"/> where loginName is the id of an h:inputText component.

Unfortunately, I can't find an example of any Java code for the action bean to go along with this.

I keep thinking I should be able to find something like

facesMessages.add("loginName", "User #{user.loginName} already exists") where loginName is the component id on the web page

but I can't. Any help would be appreciated.

I have studied the books, Core Java Server Faces, Beginning JBoss Seam, and JBoss Seam. Also the Java Server Faces and SEAM documentation, searched forums and searched with google. I have also looked at the source code for FacesMessages.java. This stuff is still pretty new to me though.

Thanks, Mike Price

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066301#4066301

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066301



More information about the jboss-user mailing list