There are a few ways, but the easiest is to use the css class names that are
automatically created based on the columns you have given it.

In your case you should be able to view the source of the rendered table and
see that you have the css classes "ramountColumnHeader" and
"indateColumnHeader" defined. .It's then a matter of doing something along
the lines of:

<style>
  .ramountColumnHeader { width: 40%; }
  .indateColumnHeader { width:10%; }
</style>

On 4/28/07, 王文楠 <[EMAIL PROTECTED]> wrote:

when i use a Tableview component ,how can i customize the width of some
column

here is some code fragment
<span jwcid="@Contrib:TableView"  source="ognl:model"  columns="literal:
ramount, indate">
      <table width="800" >
        <tr> <th  jwcid="@Contrib:TableColumns" ></th> </tr>
        <tr jwcid="[EMAIL PROTECTED]:TableRows"><td
jwcid="@Contrib:TableValues"  align="center"></td></tr>
      </table>
</span>
how can i specify the width of column "indate"




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to