• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i reisize h:inputTex inside h:panelGrid ?  RSS feed

 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a little problem, when I change the resolution (800 x 600, 640 x 480), the components inside a h:panelGrid don´t resizing, are there a way for me to change the resolution and the components resize their size ?






Thanks in advance !
 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found some solutions :

How can I change column width of panel grid in PrimeFaces

I need a colspan

However, what really works was this:

 
Tim Holloway
Bartender
Posts: 18713
71
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF doesn't support rowspan or colspan, much to many people's annoyance. There was an extension tagset that did, but the common approach is to define one's grids or tables according to their maximum spans and then embed sub-tables/grid within them.

The preferred way to set physical size and location of elements in JSF is via CSS, the way your second example did. You can do it by "brute force" (style=), by CSS class, by element type, or by ID, although the CSS ID will only pair up if you use the generated HTML ID of the object in question, not the JSF (short) ID.

You don't need all those div elements. A raw HTML div is functionally equivalent to a 1-column panelGrid with one element in it.

Finally, don't forget that when using extension tagsets, that often there are special CSS classes defined for the extension tags, so you can override those if you want a consistent appearance of similar components.
 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Tim Holloway !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!