• 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

Needs to Resize the <t:dataTable>

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi...

I am using <t:dataTable> for displaying some data. When the window is re-sized the data table does not resize correctly with the window. I need to resize the data table size depends on the window size.

Please do the needful.

Thanks,
Balaji
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Assign it a relative width instead of a fixed width.
 
Balaji Soundarajan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply....

Please find out the following code for your reference. I have tried relative width.

<t:column width = "5%" style="width:10px; padding-left: 5px;" headerstyle="width:0px;">
<f:facet name="header">
<h:outputText value="#{text['identifier.pos']}" />
</f:facet>
<h:outputText value="#{identifier.position}" />
<br></br>
</t:column>

<t:column width="20%" style="width:10px; padding-left: 5px;" headerstyle="width:150px;">
<f:facet name="header">
<h:outputText value="#{text['identifier.tableName']}" />
</f:facet>
<h:outputText value="#{identifier.tableName}" />
<br></br>
</t:column>


But there is no changes in the re size.

Thanks
-Balaji
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the generated HTML output. This is not correct. Learn HTML/CSS properly before playing with JSF.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic