Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-07-20


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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.