hi thomas,

it used to cause issues with some constellations/use-cases/component-libs/... .

before we do something about it:
it would be nice if you just remove the check of 'allowNavigation' in
SecurityUtils#processApplicationSecurityException and test it with
your application.

regards,
gerhard

2012/6/19, Thomas Andraschko <[email protected]>:
> Hi Gerhard,
>
> why isn't possible to redirect?
> I though it should be possible every time :)
>
> Currently i just throw my own RuntimeException in the AccessDecisionVoter
> and do an redirect in my ExceptionHandler.
> This works fine but it's only a workaround.
>
> Regards,
> Thomas
>
> 2012/6/19 Gerhard Petracek <[email protected]>
>
>> hi thomas,
>>
>> the ViewConfigAwareNavigationHandler will do the redirect (if needed).
>> however, a navigation isn't possible at any point in the lifecycle ->
>> depending on the value of 'allowNavigation' in
>> SecurityUtils#processApplicationSecurityException you can use it.
>>
>> regards,
>> gerhard
>>
>> 2012/6/19, Thomas Andraschko <[email protected]>:
>> > Hi Gerhard,
>> >
>> > yes i know but i mean:
>> >
>> > @Secured(value = LoginAccessDecisionVoter.class, errorView =
>> > SessionExpired.class)
>> >
>> > I can't define if redirect or forward should be used for this error
>> > view.
>> > Right?
>> > AFAICS CODI always use the NavigationHandler in
>> > Security.processApplicationSecurityException which does a forward.
>> >
>> > Thanks,
>> > Thomas
>> >
>> > 2012/6/19 Gerhard Petracek <[email protected]>
>> >
>> >> hi thomas,
>> >>
>> >> you can use:
>> >> @Page(navigation = Page.NavigationMode.REDIRECT) for any view-config.
>> >>
>> >> regards,
>> >> gerhard
>> >>
>> >> 2012/6/19, Thomas Andraschko <[email protected]>:
>> >> > Hi,
>> >> >
>> >> > is it possible to send a redirect instead of forward for the
>> ErrorView?
>> >> > We cache some of our pages and sometimes the ErrorView will be
>> >> > cached
>> >> > instead of the real view.
>> >> >
>> >> > Regards,
>> >> > Thomas
>> >> >
>> >>
>> >>
>> >> --
>> >>
>> >> http://www.irian.at
>> >>
>> >> Your JSF/JavaEE powerhouse -
>> >> JavaEE Consulting, Development and
>> >> Courses in English and German
>> >>
>> >> Professional Support for Apache MyFaces
>> >>
>> >
>>
>>
>> --
>>
>> http://www.irian.at
>>
>> Your JSF/JavaEE powerhouse -
>> JavaEE Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>>
>


-- 

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to