• Post Reply Bookmark Topic Watch Topic
  • New Topic

Needs to Resize the <t:dataTable>

 
Balaji Soundarajan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • 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
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • 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
  • 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">
<hutputText value="#{text['identifier.pos']}" />
</f:facet>
<hutputText value="#{identifier.position}" />
<br></br>
</t:column>

<t:column width="20%" style="width:10px; padding-left: 5px;" headerstyle="width:150px;">
<f:facet name="header">
<hutputText value="#{text['identifier.tableName']}" />
</f:facet>
<hutputText 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
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!