Hi, the If component doesn't have a parameter "context". What you need to do is the following:
1) set parameter "row" in your grid component (which you probably already did with property "bestellung"): <t:grid t:row="bestellung" ... /> @Property private Bestellung bestellung; 2) create a property in your page class: public boolean isGebucht() { return bestellung.getBestNr().equals(100); } 3) Use the if component like this: <p:gebuchtCell> <t:if t:test="gebucht"> <a t:type="eventLink" t:event="buchen" t:context="tachyonbestellung.bestnr">buchen</a> </t:if> </p:gebuchtCell> I hope this is what you were asking for. Nathan On 27/10/13 15:00, Andreas Ernst wrote: > Hi, > > i got a grid from a database. Now i want that the eventlink is only > shown if the status is 100. i.e. > > <p:gebuchtCell> > <t:if test="gebucht" t:context="bestellung.bestnr"> > <a t:type="eventLink" t:event="buchen" > t:context="tachyonbestellung.bestnr">buchen</a> > </t:if> > </p:gebuchtCell> > > At the moment i do not see an easy way to do that. > > Any hints? > > Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org