Nevermind I guess... I discovered I could just render like this:

<table>
<tr><td>#business</td><td><a href="
/discoveryassistant/refine:addyesterm/#business<http://localhost:8082/discoveryassistant/refine:addyesterm/#business>
">yes</a></td><td><a
href="/discoveryassistant/refine:addnoterm/#business<http://localhost:8082/discoveryassistant/refine:addnoterm/#business>
">no</a></td></tr>
</table>

On Tue, Jul 31, 2012 at 5:43 PM, George Ludwig <georgelud...@gmail.com>wrote:

> I'm trying to use outputraw to render eventlinks, however when I do this
> tapestry does not appear to bind the event on the client to the event on
> the server. Is there a way to make this work?
>
> I use outputraw because it would be unwieldy to use Tapestry's <t:if>
> construct to control the rendering. Here's a simplified example with a
> single row:
>
> <table>
> <tr><td>#business</td><td><a t:type="eventlink" t:event="addYesTerm"
> t:context="literal:#business" href="#">yes</a></td><td><a
> t:type="eventlink" t:event="addNoTerm" t:context="literal:#business"
> href="#">no</a></td></tr>
> </table>
>
> If I click on the "yes" eventlink, the table should re-render like this:
>
> <table>
> <tr><td>#business</td><td>yes!</td><td><a t:type="eventlink"
> t:event="addNoTerm" t:context="literal:#business" href="#">no</a></td></tr>
> </table>
>
> If I then clicked on the "no" eventlink, the table should re-render like
> this:
>
> <table>
> <tr><td>#business</td><td><a t:type="eventlink" t:event="addYesTerm"
> t:context="literal:#business" href="#">yes</a></td><td>no!</td></tr>
> </table>
>
> As I said, I think I can make this work with the <t:if> construct, but it
> would take a lot of extra coding!
>

Reply via email to