Hello,
I try to extend ActionLink in order to get rendered the following code.

<t:actionlink t:id="delete" context="aModel.id">
<img src="${context:images/delete.png}" alt="Delete image" title="message:icon_delete"/>
</t:actionlink>

using something like this in my template

<t:delete context="aModel.id"/>

My first try had the effect that the actionlink rendered like this inside of a loop.
http://localhost:8080/content/editreadlist.delete_0.delete/$005bLjava.lang.Object$003b$00407369f6b9?t:ac=770671

Do you have any ideas, how I can achieve what I wanted?

I used the following class
public class Delete {

@Parameter
   private Object[] context;

   public Object[] getContext() {
       return context;
   }


}
with the following template.
<body xmlns="http://www.w3.org/1999/xhtml";
           xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>

<t:actionlink t:id="delete" context="${context}">
<img src="${context:images/delete.png}" alt="Delete image" title="message:icon_delete"/>
</t:actionlink>

</body>

--
Best Regards / Viele Grüße

Sebastian Hennebrueder
-----
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to