On Thu, Feb 19, 2009 at 10:45 AM, Davor Miku <davorm...@gmail.com> wrote:
> Are you sure this is going to work?

Ooops, I've found an error: it should be <t:if test="instanceOfA">
.... </t:if>, not test="isInstanceOfA"

> 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?

False, the If component will call isInstanceOfA() in the page. Java's
instanceof operator does not throw exceptions: it returns a boolean
value.

My solution is the best one only if you have one or two of this tests.
Otherwise, Ulrich's solution is the recommended one.

-- 
Thiago

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

Reply via email to