Java Mailing List Archive

http://www.junlu.com/

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

[jboss-user] [JBoss Seam] - facesMessages and element id

scott.stark@jboss.org

2007-06-07


I want add error message to a html input, but without success:

|  @In
|  private FacesMessages facesMessages;
|
| this.facesMessages.addFromResourceBundle(
|  "testInputID",
|  "value.missing",
|  (Object[]) null
| );
|
| <h:selectOneMenu value="#{someValue}" id="testInputID">
|  <f:selectItems value="#{someSelectItems}"/>
| </h:selectOneMenu>
| <h:message for="testInputID" styleClass="error"/>

something wrong?

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052042
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.