Well One can inject their own version of those pages, for the framework to
redirect to by using
getApplicationSettings().setPageExpiredErrorPage(MYPageExpiredErrorPage.class);
getApplicationSettings().setAccessDeniedPage(MYAccessDeniedPage.class);
getApplicationSettings().setInternalErrorPage(MYInternalErrorPage.class);
But as i mentioned in my earlier email, the html pages i would want the
framework to redirect to, are all non -wicket based and are part of another
(non-wicket) application i am integrating with...The only solution i see
(which isn't bad, but i thought there would be a better way) is to provide
my own wicket-version of these pages as above and do a
getRequestCycle.setTargetURL() in there..
Please comment..
mfs wrote:
>
> No i have a static html page against each of the above (AccessDenied.html,
> SessionExpiry.html and Error.html) but these pages are not defined in
> wicket and are part of another external application i am integrating my
> wicket application with, and want to use the same pages for the error
> scenarios.
>
>
>
>
> Johan Compagner wrote:
>>
>> What do you mean? You have more then 1 type of accessdenied page?
>> And why would you redirect your self to those pages? They are used by
>> the framework. You can use them yourself ofcourst. Just get the class
>> from the settings and set that as a response page.
>>
>> On 4/25/08, mfs <[EMAIL PROTECTED]> wrote:
>>>
>>> Guys,
>>>
>>> I was wondering, if i were to redirect to external error, expiry and
>>> access-denied page. Is there a better solution then to make individual
>>> page-class for above and do a redirect to the corresponding pages in
>>> their
>>> constructor? Since setAccessDeniedPage, setInternalErrorPage (in
>>> ApplicationSettings) all take Class class as argument..
>>>
>>> Thanks in advance
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/External-Error%2C-Expiry-%2C-AccessDenied-Pages-tp16885052p16885052.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/External-Error%2C-Expiry-%2C-AccessDenied-Pages-tp16885052p16898373.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]