wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: http/https in wicket 1.5
Date Fri, 02 Mar 2012 07:50:44 GMT
On Fri, Mar 2, 2012 at 2:51 AM, Douglas Ferguson <thedug@gmail.com> wrote:
> Wow.. that is much easier
>
> :)
>
> Is there a way to set a default for the entire app?
> I assume if I have a base class for a bunch of pages I only need to define it in the
parent class?

Yes. On an interface as well.

>
> Douglas
>
> On Mar 1, 2012, at 10:04 AM, Fergal Keating wrote:
>
>>    You can mark specific pages as HTTPS specific using @requiresHttps.
>>
>>           Then just set the ports in your application class.
>>
>>     setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new
>> HttpsConfig(80, 443)));
>>
>>
>> On 1 March 2012 14:10, Douglas Ferguson <thedug@gmail.com> wrote:
>>
>>> In 1.4 I had ao code up some interesting work arounds to get my app to
>>> redirect between http and https based on which page you are requesting.
>>>
>>> I remember at the time Igor told me that it would be much easer in 1.5.
>>> Can anybody point me in the redirection?
>>>
>>> I'm considering 2 schemes.
>>>
>>> 1) Running the entire app over ssl (then I just need to detect http and
>>> redirect to https)
>>> 2) Keep it as is, Only have the login, signup and payment screens be https
>>> and then redirect to http.
>>>
>>> Regardless I'll need to detect http/https and then redirect if necessary.
>>> Would this still be done in the AuthorizationStrategy?
>>>
>>> I've noticed that RequestCycle has changed, and many methods I used are
>>> gone.
>>> I.E. I used to use requestCycle.getPageParameters() to get the parameters
>>> do that I when I redirected to login I would retain the params,
>>> so after logging in the user could be sent to their original page.
>>>
>>> Douglas
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>> --
>> Fergal Keating
>> IT Senior Engineer
>> -----------------------------------------------
>> e. fergal.keating@directski.com
>> p. NA
>> w. www.directski.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message