• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Tim Holloway !
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic