File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF Message issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Message issue" Watch "JSF Message issue" New topic
Author

JSF Message issue

Vanderson Assis
Greenhorn

Joined: Jun 27, 2012
Posts: 5
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

Joined: Jun 25, 2001
Posts: 16305
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Vanderson Assis
Greenhorn

Joined: Jun 27, 2012
Posts: 5
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF Message issue