• Post Reply Bookmark Topic Watch Topic
  • New Topic

Textbox width  RSS feed

 
Joe Kidd
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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.
 
Walter Krawiec
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
check my post with dynamic table columns I was using there value expressions for static text
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!