Are you sure this is going to work? If Foo is B, and I'm:
<t:if test="isInstanceOfA"> .... </t:if> B doesn't have isInstanceOfA(). Is it going to false that or to throw exception? On Thu, Feb 19, 2009 at 8:41 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, Feb 19, 2009 at 10:37 AM, Davor Miku <davorm...@gmail.com> wrote: > > So, how could I accomplish this? > > Add methods to your page or component class: > > public boolean isInstanceOfA() { > return item instanceof A; > } > > public boolean isInstanceOfB() { > return item instanceof B; > } > > <t:if test="isInstanceOfA"> .... </t:if> > > -- > Thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >