You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Derek Brown <ze...@yahoo.com> on 2005/01/01 01:04:39 UTC
Re: TableView Component with Links
Oops,
Figured it out, "actions" was lower case in the html
template.
Happy New Year
--- Derek Brown <ze...@yahoo.com> wrote:
> Hello,
>
> I am trying to get a link into the actions column.
> All
> the examples I found use contrib:Table and not
> contrib:TableView. I can get the Actions column to
> appear, but I can't get the links to appear in this
> column. It will be a DirectLink but I am testing
> with
> GenericLink for ease now.
>
> Also, If I have a surrogate database key column
> (id),
> I don't want it to be visible in the table, so I
> didn't declare it in the Columns, can I still use
> the
> "id" as a parameter for DirectLink?
>
> Thanks.
>
>
> ## Begin JWC Snippet
> <component id="tableview" type="contrib:TableView">
> <binding name="source"
> expression="assemblyDistricts"/>
> <static-binding name="columns"
> value="FirstName,
> LastName,
> Gender,
> Phone1,
> Phone2,
> Email,
> Code,
> !Actions"/>
> <binding name="pageSize" expression="6"/>
> <static-binding name="initialSortColumn"
> value="FirstName"/>
> <static-binding name="cellpadding" value="2"/>
> <static-binding name="cellspacing" value="0"/>
> </component>
>
> <component id="tablecolumns"
> type="contrib:TableColumns">
> <static-binding name="class"
> value="columnheader"/>
> </component>
>
> <component id="tablerows" type="contrib:TableRows">
> <binding name="class"
> expression="beans.evenOdd.next"/>
> </component>
>
> <component id="tablevalues"
> type="contrib:TableValues"/>
> <component id="tablepages"
> type="contrib:TablePages"/>
>
>
>
> ##Begin HTML Snippet
> <table class="table" jwcid="tableview">
> <span jwcid="actionsColumnValue@Block">
> <a jwcid="@GenericLink" href="#">View</a>
> </span>
> <span jwcid="tablecolumns"/>
> <span jwcid="tablerows">
> <span jwcid="tablevalues"/>
> </span>
> <tr>
> <td colspan="8" class="tablepager">
> <span jwcid="tablepages"/>
> </td>
> </tr>
> </table>
>
>
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
>
> http://promotions.yahoo.com/new_mail
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
>
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org