• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Textbox width

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way to make a textbox "fill" it's parent component. Let's say I'm using h:panelGrid with columns set to 2. First column contains a label and second a textbox. What I want is to have the panel grid to be a certain length on the page and within it first column to be the length of the label (so label is "snug" in the column) and the textbox width to expand/shrink based on the width of the second column (as I said I want the text box to fill the second column).
I'm not sure if this can be achieved by setting the style of the textbox or setting columnclasses of panelGrid. Either way, I don't know what the CSS should be.
Thank you for your suggestions ahead of time.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Kidd wrote:Is there a way to make a textbox "fill" it's parent component. Let's say I'm using h:panelGrid with columns set to 2. First column contains a label and second a textbox. What I want is to have the panel grid to be a certain length on the page and within it first column to be the length of the label (so label is "snug" in the column) and the textbox width to expand/shrink based on the width of the second column (as I said I want the text box to fill the second column).
I'm not sure if this can be achieved by setting the style of the textbox or setting columnclasses of panelGrid. Either way, I don't know what the CSS should be.
Thank you for your suggestions ahead of time.



try to experiment with the styles, you can add style in visual UI and after check in JSP code, while you will find all css attributes you can create methods in backing bean for shrinking text box.
 
Walter Krawiec
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check my post with dynamic table columns I was using there value expressions for static text
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic