I have a navigation bar like:
<nav>
<ul>
<wicket:link>
<li><a href="Page1.html">Page1</a></li>
<li><a href="Page2.html">Page2</a></li>
<li><a href="Page3.html">Page3</a></li>
</wicket:link>
</ul>
</nav>
This panel works really well (with the matching css).
But, Page3
is only accessible for users logged in.
@AuthorizeInstantiation("SIGNED_IN")
public class Page3 extends MyPage {
// ...
}
When a user is logged in, everything is as expected.
Navigation: Page1 Page2 Page3
But when the user is not logged in, I expect Page3
not to be part of the navigation bar (because it is not accessible).
Navigation: Page1 Page2
How can I do this? TIA!