• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
assume I placed the h:form inside t:panelGrid tag, then how to use css to align the panelGrid to the right hand side?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!