Thanks! That is something that I will look at.
Dan Labrecque wrote:
> Actually, there is an extraHeaderHtml attribute for the tableColumn
> tag. I believe you can apply a CSS style directly to the TH tag used
> for the header. The TLD docs say:
>
> "Extra HTML code to be appended to the |<th>| HTML element that is
> rendered for the column header. Use only code that is valid in an HTML
> |<td>| element. The code you specify is inserted in the HTML element,
> and is not checked for validity. For example, you might set this
> attribute to |"nowrap=`nowrap'"|."
>
> Dan
>
> Brett M. Bergquist wrote:
>> I typically do not set the width as an attribute of the column but
>> rather try to do everything that I can through CSS. Maybe more
>> thought needs to be done on this. It's ugly the way it works now
>> with the columns resizing when the table has no data.
>> I will probably have to use relative CSS child selectors
>> (xxx:first-child + th) type of selection to set the width.
>> Maybe just filing a RFE and thinking about the best solution is all
>> that can be done now.
>>
>> Dan Labrecque wrote:
>>> I won't be able to apply the same tableColumn styleClass attribute
>>> to the header -- it's not even the same HTML element. However, I can
>>> modify the table to ensure the same tableColumn width attribute is
>>> used for the header. Unfortunately, you won't see that unless you're
>>> willing to take a 4.2 milestone build?
>>>
>>> Dan
>>>
>>> Brett M. Bergquist wrote:
>>>> Dan, I just went to implement this and realized that this will set
>>>> the width for all columns of the table and not a specific column.
>>>> In my table, each of the columns has a specific width. So how
>>>> would one set the width of a specific column? It sure would be
>>>> much easier if the one could assign a class to the columns in the
>>>> table row header.
>>>> 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
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>
>