Two Laptop Bag
The moose likes JSF and the fly likes how to align h:form to the right hand size of the screen? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "how to align h:form to the right hand size of the screen?" Watch "how to align h:form to the right hand size of the screen?" New topic
Author

how to align h:form to the right hand size of the screen?

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 234
I have a form which must always placed at the left, then I write another form and I want the form place in the right hand size of this form, by now the new form always placed under the left hand size form, any method (e.g. StyleClass....) can placed a form to the right hand size?

(the left hand size form is always reused and nearly included in every form, I want any new form placed in the right hand size of this form)

I have try


and then

but the form still show under the first form, which means it still align left!!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

In JSF, "form" is a logical construct, not a display construct. Actually, that's more or less true even in regular HTML.

What you need to do is embed the form in a display construct such as a JSF grid object. You can then supply the style info to the display construct.


Customer surveys are for companies who didn't pay proper attention to begin with.
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 234
assume I placed the h:form inside t:panelGrid tag, then how to use css to align the panelGrid to the right hand side?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to align h:form to the right hand size of the screen?
 
Similar Threads
Foreign key field population from datatable to textbox?
IExplorer and general troubles... like loss of sanity.
My bean doesn't quite work
My JSP page won't center!
css not working in JSF