• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Message issue

 
Vanderson Assis
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ya'll!!

How can I place the h:message tag below the field "Nome" and above the inputText? I've tried the way shown below but it didin't worked out .. because the tag <br /> does her job even when the h:message is not displayed (that's what it should happens anyway ¬¬) and it messed with the interface.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't recommend mixing raw HTML and JSF. Here's a JSF-only way of doing this.


You may or may not get better results this way, since what's actually being generated is a 3-row single-column table, but if there's no message, the "empty" cell should not be full height, and that can probably be further tweaked via things such as the cell-spacing and cell-padding options.

In practical terms, I prefer keeping the message row height constant, message or no, since otherwise the page content tends to bounce up and down.

 
Vanderson Assis
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:I don't recommend mixing raw HTML and JSF. Here's a JSF-only way of doing this.


You may or may not get better results this way, since what's actually being generated is a 3-row single-column table, but if there's no message, the "empty" cell should not be full height, and that can probably be further tweaked via things such as the cell-spacing and cell-padding options.

In practical terms, I prefer keeping the message row height constant, message or no, since otherwise the page content tends to bounce up and down.


That should solve my problem. I'll try it, thank you very much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic