Thanks a lot for this idea! The call of:componentSource.getPage(Registered.class).getClass().equals(CurrentPage.class)
works fine!
On 18.08.2010 17:51, Thiago H. de Paula Figueiredo wrote:
On Wed, 18 Aug 2010 12:31:15 -0300, Alexander Muthmann <amuthm...@dev-eth0.de> wrote:I just refer to this article about class-comparison:https://www.securecoding.cert.org/confluence/display/java/OBJ06-J.+Compare+classes+and+not+class+namesBut if you say it's ok, I trust you ;)Another option is to get the transformed page instance from ComponentSource, get its class from getClass() and then use equals() for comparison.Please try this and post the result.
smime.p7s
Description: S/MIME Cryptographic Signature