You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eng Lark Eric Tan <ne...@yahoo.com.hk> on 2005/09/16 03:58:06 UTC

Table Column width

Dear all,

    Thank you. But this will end up with a
long-long-long CSS file.

    I've tried to add "width="200"" into the html but
it fail and I don't under what's the problem.

Best regards,
    Eric Tan

 :( ??

org.apache.tapestry.BindingException 
Unable to update expression 'tableColumn' for
org.apache.tapestry.contrib.table.components.TableColumns$Enhance_288@a1364a[UsrView/colUser]
to
org.apache.tapestry.contrib.table.model.ognl.ExpressionTableColumn@1f36af6.

binding: ExpressionBinding[UsrView/colUser
tableColumn] 
location:
classpath:/org/apache/tapestry/contrib/table/components/TableColumns.jwc,
line 68, column 51 
   
ognl.MethodFailedException 
Method "setTableColumn" failed for object
org.apache.tapestry.contrib.table.components.TableColumns$Enhance_288@a1364a[UsrView/colUser]

   
org.apache.tapestry.BindingException 
Binding value may not be updated. 
binding: StaticBinding[userName] 
location: context:/WEB-INF/UsrView.page, line 61,
column 57 

--------------------------------------------------------------------------
.html (esp. width="200")
      <table jwcid="tblUser" class="mytable"
width="89%" cellpadding="2" cellspacing="0" border="1"
align="center" bordercolor="#FFFFFF">
        <span jwcid="colUserName" class="columnHeader"
align="left" width="200"/>
        <span jwcid="colActiveDate"
class="columnHeader" align="left" width="100"/>
        <span jwcid="colExpiryDate"
class="columnHeader" align="left" width="100"/>
        <span jwcid="colActive" class="columnHeader"
align="left" width="50"/>
        <span jwcid="rowUser">
          <span
jwcid="tableValues@contrib:TableValues"/>
        </span>
        <tr>
          <td colspan="4" class="tablepager">
            <span
jwcid="tablePages@contrib:TableFormPages"/>
          </td>
        </tr>
      </table>

--------------------------------------------------------------------------
.page      
    <component id="tblUser" type="contrib:TableView">
        <binding name="source" expression="userList"/>
		<static-binding name="columns"
            value="
        userName:Username:userName, 
        activeDate:Active Date:activeDate, 
        expiryDate:Expiry Date:expiryDate, 
        f:Active:active"/>

        <binding name="pageSize" expression="10"/>
        <static-binding name="initialSortColumn"
value="userName"/>
    </component>
    
    <!--<component id="colUser"
type="contrib:TableColumns"/>-->
    <component id="colUserName"
type="contrib:TableColumns">
        <static-binding name="column"
value="userName"/>
	</component>	
    <component id="colActiveDate"
type="contrib:TableColumns">
        <static-binding name="column"
value="activeDate"/>
	</component>	
    <component id="colExpiryDate"
type="contrib:TableColumns">
        <static-binding name="column"
value="expiryDate"/>
	</component>	
    <component id="colActive"
type="contrib:TableColumns">
        <static-binding name="column" value="active"/>
	</component>	

    <component id="rowUser" type="contrib:TableRows"> 
      
        <binding name="class"
expression="beans.evenOdd.next"/>
	</component>


_______________________________________
 想即時收到新 email 通知?
 下載 Yahoo! Messenger http://messenger.yahoo.com.hk 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org