Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

for attribute of h:message

 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Suppose I have two h:forms each with one h:command button, all of which are on a jsf page. I would like to find a way to display error messages with two h:message components each working for a given h:command button but it seems that the for attribute of a h:message can't point to a h:command button. What is the best way of achieving the desired behavior?
Julien.

 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What form button can have an error message?

error messages can occur from validation and conversion, which don't occur on buttons. There is nothing to validate or convert, so therefore no error messages. If you want your general all error messages for the form to be near the button, you can do that, but it doesn't change the button tag or uses the "for" attribute.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic