Hi, I have two entities which extends entity called Article. Now I call article and I want based on what type of object is it to call properties for that specific object. How should I get this? Should I use some sort of <t:if test="returnWhatTypeIsiT"></t:if> in tml and checking what type it is by public Object returnWhatTypeIsiT(Article article) { // fruit is declared as Fruit fruit; if(article.equals(fruit)){ return fruit; else if(article.equals(vegetable)){ return vegetable; } else { return null; } }
I would like your opinion about this, or some guidance how is best way to solve this problem. Thanks in advance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Calling-specific-object-tp5717114.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org