On Tue, 26 Jul 2011 11:29:31 -0300, George Christman
wrote:
Hi guys, where does AccessDeniedException exist?
I guess it was just one fictional example . ..
Thiago, love the mixin
approach, not entirely sure how to create one though.
To begin with, if you haven't yet, you need to underst
AccesDeniedException comes from tapestry-spring-security
(http://people.apache.org/~uli/tapestry-site/spring-security.html) which is
what our company (sites) uses for identification. But you are free to choose
whatever security framework you like or need.
--
View this message in context:
http://t
Hi guys, where does AccessDeniedException exist? Thiago, love the mixin
approach, not entirely sure how to create one though.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-Zone-and-Expired-Session-tp4634714p4635001.html
Sent from the Tapestry - User mailing list
On Tue, 26 Jul 2011 10:57:22 -0300, antalk wrote:
I'm using an onException method in a 'base' page class (from which all
pages extend):
You can easily turn this nice code into a mixin and not-so-easily apply it
to all pages implementing a ComponentClassTransformWorker (get the
MutableCom
I'm using an onException method in a 'base' page class (from which all pages
extend):
Object onException(Throwable cause) {
if (cause.getCause() instanceof AccessDeniedException) {
if (request.isXHR()) {
return loginPa
Thanks guys, I'd like to test both approaches. I like how Taha's approach at
least gives the user a warning before automatically redirecting. However,
I'm not sure how to get to the tap js file and would this break when making
framework upgrades?
--
View this message in context:
http://tapestry.1
On Tue, 26 Jul 2011 10:19:24 -0300, Josh Canfield
wrote:
I believe you can return a Link from the event handler and tapestry will
redirect the whole page.
A page instance or Class instance will work too. To check the lack of
session, @Inject Request and check if getSession(false) returns
Hi
I was facing the same problem. What I did is a hack but it works wonders for me
In the tapestry.js file
onSuccess : function(response, jsonResponse) {
/*
* When the page i
I believe you can return a Link from the event handler and tapestry will
redirect the whole page.
On Jul 26, 2011 6:15 AM, "George Christman" wrote:
> Hello, I'm looking to redirect my page to the login page when the user
tries
> to render a Tapestry Zone with an expired session. Does anybody have