Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Melinda Dweer
I will give it a try. Thanks!

Melinda

On Fri, Oct 8, 2010 at 5:51 PM, Igor Vaynberg wrote:

> you can try tweaking the form so that its action is https, so
>
> class httpsform extens form {
>  oncomponenttag(tag) {
> super.oncomponenttag(tag);
> string action=tag.get("action");
> action=requestutils.toabsoluteurl(action);
> action="https"+action.substring(4);
> tag.put("action", action);
>  }}
>
> -igor
>
> On Fri, Oct 8, 2010 at 2:44 AM, Melinda Dweer 
> wrote:
> > Hi,
> >
> > I has the following use case: I have some public pages (should be served
> > over HTTP)  containing a sign in "panel" which must be submitted over
> HTTPs.
> > I have though of doing this as follows:
> >
> > -use an iframe to host the sign in "panel": actually it would be a page
> > served over HTTPs to the iframe.
> > -once the user signs in serve a page to the iframe that contains
> JavaScript
> > to get parent page to be redirected to the private area (served over
> HTTPs).
> >
> > I do not tried the above but I assume it might work. My question is if
> there
> > is a cleaner/cleverer way to do this in wicket?
> >
> > Thanks in advance,
> >
> > Melinda
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Melinda Dweer
Martin,

Thanks for your answer! Yes, I know about that class: my questions was more
how to have a form submitted over HTTPs on a page served over HTTP.

Regards,

Ernesto

On Fri, Oct 8, 2010 at 5:34 PM, Martin Grigorov wrote:

> See org.apache.wicket.protocol.https.HttpsRequestCycleProcessor
>
> On Fri, Oct 8, 2010 at 11:44 AM, Melinda Dweer  >wrote:
>
> > Hi,
> >
> > I has the following use case: I have some public pages (should be served
> > over HTTP)  containing a sign in "panel" which must be submitted over
> > HTTPs.
> > I have though of doing this as follows:
> >
> > -use an iframe to host the sign in "panel": actually it would be a page
> > served over HTTPs to the iframe.
> > -once the user signs in serve a page to the iframe that contains
> JavaScript
> > to get parent page to be redirected to the private area (served over
> > HTTPs).
> >
> > I do not tried the above but I assume it might work. My question is if
> > there
> > is a cleaner/cleverer way to do this in wicket?
> >
> > Thanks in advance,
> >
> > Melinda
> >
>


Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Igor Vaynberg
you can try tweaking the form so that its action is https, so

class httpsform extens form {
  oncomponenttag(tag) {
 super.oncomponenttag(tag);
 string action=tag.get("action");
 action=requestutils.toabsoluteurl(action);
 action="https"+action.substring(4);
 tag.put("action", action);
  }}

-igor

On Fri, Oct 8, 2010 at 2:44 AM, Melinda Dweer  wrote:
> Hi,
>
> I has the following use case: I have some public pages (should be served
> over HTTP)  containing a sign in "panel" which must be submitted over HTTPs.
> I have though of doing this as follows:
>
> -use an iframe to host the sign in "panel": actually it would be a page
> served over HTTPs to the iframe.
> -once the user signs in serve a page to the iframe that contains JavaScript
> to get parent page to be redirected to the private area (served over HTTPs).
>
> I do not tried the above but I assume it might work. My question is if there
> is a cleaner/cleverer way to do this in wicket?
>
> Thanks in advance,
>
> Melinda
>

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



Re: page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Martin Grigorov
See org.apache.wicket.protocol.https.HttpsRequestCycleProcessor

On Fri, Oct 8, 2010 at 11:44 AM, Melinda Dweer wrote:

> Hi,
>
> I has the following use case: I have some public pages (should be served
> over HTTP)  containing a sign in "panel" which must be submitted over
> HTTPs.
> I have though of doing this as follows:
>
> -use an iframe to host the sign in "panel": actually it would be a page
> served over HTTPs to the iframe.
> -once the user signs in serve a page to the iframe that contains JavaScript
> to get parent page to be redirected to the private area (served over
> HTTPs).
>
> I do not tried the above but I assume it might work. My question is if
> there
> is a cleaner/cleverer way to do this in wicket?
>
> Thanks in advance,
>
> Melinda
>


page over HTTP with sign in panel over HTTPs

2010-10-08 Thread Melinda Dweer
Hi,

I has the following use case: I have some public pages (should be served
over HTTP)  containing a sign in "panel" which must be submitted over HTTPs.
I have though of doing this as follows:

-use an iframe to host the sign in "panel": actually it would be a page
served over HTTPs to the iframe.
-once the user signs in serve a page to the iframe that contains JavaScript
to get parent page to be redirected to the private area (served over HTTPs).

I do not tried the above but I assume it might work. My question is if there
is a cleaner/cleverer way to do this in wicket?

Thanks in advance,

Melinda