You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Nazar Stasiv <ns...@yahoo.com> on 2006/03/20 14:21:10 UTC

UPD Tobago sheet column occupies space beyound header boundaries

Sometimes I experience minor issue when resizing headers of sheet 
component in tobago. It leads to clumsy display of data because columns 
aren't scattered according to header boundaries. I can make it look all 
right expanding right-most column to occupy whole space available to the 
right. See attached screen shot.

Here goes the code

  <t:panel height="360" id="panel_2">
        <t:sheet value="#{instances.processInstances}" id="instances_sheet" columns="25px;1*;85px;145px;145px" var="instance" showRowRange="none" showPageRange="right" showDirectLinks="center" directLinkCount="10" forceVerticalScrollbar="false" pagingLength="#{instances.pagingLength}" stateChangeListener="#{instances.stateChangeListener}" pagingStart="#{instances.pagingStart}" sortActionListener="#{instances.onSort}"> 
            <t:column label="#{msgs.table_columns_selection}" sortable="false" align="center">
                <t:selectBooleanCheckbox value="#{instance.selected}" id="selected_instance"/>
            </t:column>
            <t:column label="#{msgs.table_columns_processName}" sortable="true" align="left" >                
		<t:link action="#{instance.details}" label="#{instance.processName}"/>                
            </t:column>
            <t:column label="#{msgs.table_columns_state}" sortable="true" align="left">
                <t:out value="#{instance.status}"/>
            </t:column>
            <t:column label="#{msgs.table_columns_started}" sortable="true" align="left">
                <t:out value="#{instance.started}">
			<f:convertDateTime pattern="yyyy-MM-dd hh:mm:ssa" type="both"/>
		</t:out>
            </t:column>
            <t:column label="#{msgs.table_columns_lastActive}" sortable="true"   align="left"  >
                <t:out value="#{instance.lastActive}" >
			<f:convertDateTime pattern="yyyy-MM-dd hh:mm:ssa" type="both"/>
		</t:out>
            </t:column>
        </t:sheet>
    </t:panel>