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
[EMAIL PROTECTED]/colUser]
to
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]/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="[EMAIL PROTECTED]:TableValues"/>
</span>
<tr>
<td colspan="4" class="tablepager">
<span
jwcid="[EMAIL PROTECTED]: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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]