Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
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:

 
Saloon Keeper
Posts: 22498
151
Android Eclipse IDE Tomcat Server Redhat Java 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 !
 
Tell me how it all turns out. Here is a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic