users@woodstock.java.net

Re: Question on how to get fixed sized columns in a Table

From: Dick Spellman <Richard.Spellman_at_Sun.COM>
Date: Tue, 04 Dec 2007 11:27:19 -0500

Here is the link to Rick's Theme App and doc from the Woodstock home page.

http://webdev2.sun.com/woodstock-theme-doc/

Dick

Dan Labrecque wrote:
> There may be a theme document out there, but I don't know where that
> is located off the top of my head. (Rick may know?) In the mean time,
> you can look at the css_master.css file included in your page --
> search for styles labeled with the "table" prefix. You're probably
> interested in the section included by the layout.css file.
>
> Dan
>
> Brett M. Bergquist wrote:
>> Thanks Dan for getting back. You are quite the resource of
>> information :)
>> A follow up question. Is there some document that describes the
>> styles that are assigned to the various pieces of the rendered
>> component or is reverse engineering via Firebug the way that it needs
>> to be done?
>>
>> Dan Labrecque wrote:
>>> The table uses different styles for the column header Vs a table
>>> cell, but you may be able to override them. For example, you could try:
>>>
>>> <style type="text/css">
>>> .MyTbl table.Tbl_sun4 th { width:100px }
>>> </style>
>>>
>>> <webuijsf:table id="table1" styleClass="MyTbl">
>>>
>>> Dan
>>>
>>> Brett M. Bergquist wrote:
>>>> We are using the Table widget. We have tables that might not have
>>>> any rows so when the table is displayed, it displays the message
>>>> indicating that there are no rows. The problem is that this still
>>>> renders the table header row with the <th> tags. We size the
>>>> columns by assigning a style to the columns and then assign a width
>>>> in the style. The problem is that this style is not associated
>>>> with the table header columns. So when the table is displayed with
>>>> no rows, the size of these columns is not set properly.
>>>>
>>>> What is the best way to assign a width that will work for both the
>>>> data rows as well as the header rows? We would really like to not
>>>> embed width attributes but rather use CSS to apply the width.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>>>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>