what type is "aModel.id"?

maybe you have to register an own ValueEncoder to 
convert "aModel.id" to a valid client representation
and vice versa. 

just out of curiosity: why dont you define a .btn_delete
css class? should be easier.

g,
kris





Sebastian Hennebrueder <use...@laliluna.de> 
03.09.2009 11:39
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
Tapestry users <users@tapestry.apache.org>
Kopie

Thema
Extending ActionLink







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