As has been mentioned, tapestry transforms component classes and loads
component instances with a different classloader to the rest of your app.
Therefore Form.class in your AppModule will NEVER be equals() to
someComponentInstance.getClass() at runtime (a class is only equal to
another class if the classloader is equal).

Since ClientElement is NOT a component class, it is loaded by the same
classloader as the rest of your app and will be equals() to
CLientElement.class in your AppModule.

In this case, it might be sufficient to match by Form.class.getName() since
this will be the same.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/StrategyBuilder-Service-and-Components-tp5719036p5719050.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

Reply via email to