Skip to content
Advertisement

Wicket 9.0 can’t figure out how to redirect to other page

How to redirect to other wicket page from onEvent(String event) method?

All that which I’ve tried is commented out, so far nothing seems to work, tried mounting pages using mountPage method, yet no change. Is it event possible to redirect to other page from ajaxBehavior?

JavaScript

Advertisement

Answer

After some time, I realized that this was Authorization issue and that redirect works as per this code (I’ve used a different role than was defined on HomePage.java.

i.e

@AuthorizeInstantiation(“USER”), but the role after signing was @AuthorizeInstantiation(“ADMIN”))

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement