There is no logical relationship between the link and the Grid. I
guess you want to display a link in one of your tabel cells right?
if so, you need to add this in your grid:
<table t:type="grid" source="Urls" row="url" add="delete" rowsPerPage="15">
<p:nameOfYourColumnPropertyCell>
<a href="${url}">link</a>
</p:nameOfYourColumnPropertyCell>
</table>
assuming that your component/page has a property getUrl() returning the url as
a String.
by defining<p:nameOfYourColumnPropertyCell>...<p:nameOfYourColumnPropertyCell>
you overwrite the default markup that tapestry generates for your table cell. Readup on the
documentation as all of this is covered there eg:
http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html
Cheers,
Joost
On 17/05/11 5:03 PM, TG wrote:
Thanks for the prompt response. Actually I meant url as part of tapestry grid
component. So I tried this -
<html t:type="layout"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
xmlns:p="tapestry:parameter">
...
<table t:type="grid" source="Urls" row="url" add="delete" rowsPerPage="15">
...
<p:url>
${url.endpoint} Link
</p:url>
...
and it does not work. Any idea how to make the endpoint clickable URL
automagically?
Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Hyperlink-not-becoming-hyperlink-tp4403607p4403743.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org