You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michael Engelhart <mo...@gmail.com> on 2005/06/03 21:30:06 UTC
render block for contrib:table
Hi -
I'm running into LazyLoadExceptions using contrib:table so I had to
create my own TableModel to allow my code to reattach the data in the
model to hibernate.
Anyway, when I was using the columns/source method of contib:table, I
had a block like this:
<span jwcid="nameColumnValue@Block">
<a jwcid="@DirectLink"listener="ognl:listeners.goProductPage"
parameters="ognl:{components.table.tableRow.id}"><span jwcid="@Insert"
value="ognl:components.table.tableRow.name">Product Name</span></a>
</span>
which worked fine.
Now that I'm using the tableModel method instead, how do I get the
same functionality to generate one of the column values as a
DirectLink.
Thanks
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: render block for contrib:table
Posted by Mind Bridge <mi...@yahoo.com>.
Hi,
Please call loadSettings() on your columns when creating them. That will
look at the blocks in the provided component and adjust renderers if needed,
-mb
----- Original Message -----
From: "Michael Engelhart" <mo...@gmail.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Friday, June 03, 2005 10:30 PM
Subject: render block for contrib:table
Hi -
I'm running into LazyLoadExceptions using contrib:table so I had to
create my own TableModel to allow my code to reattach the data in the
model to hibernate.
Anyway, when I was using the columns/source method of contib:table, I
had a block like this:
<span jwcid="nameColumnValue@Block">
<a jwcid="@DirectLink"listener="ognl:listeners.goProductPage"
parameters="ognl:{components.table.tableRow.id}"><span jwcid="@Insert"
value="ognl:components.table.tableRow.name">Product Name</span></a>
</span>
which worked fine.
Now that I'm using the tableModel method instead, how do I get the
same functionality to generate one of the column values as a
DirectLink.
Thanks
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org