I have tapestry-security integrated and working in my project. Page
classes annotated with shiro such as @RequiresAuthentication get
intercepted with the login page.
What is the best way to create a link on my page that redirects to tap
security login page?
In my Laout.java I tried this:
@Property
@Inject
private SecurityService securityService;
@Property
@InjectPage
private org.tynamo.security.pages.Login loginPage;
then in my Layout.tml I have this:
<t:if test="securityService.authenticated">
${securityService.subject.principal}
<p:else>
Guest (<t:pagelink page="loginPage">Sign In</t:pagelink>)
</p:else>
</t:if>
But Tapestry is unable to find this Tynamo page, even though it is
clearly there:
Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: Unable
to resolve 'loginPage' to a known page name
What is the accepted (or recommended) way to bring up the login page
in such a setup?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]