Stupid = my question not yours :-). Only for clearify it :-)

Am 14.01.2012 19:05, schrieb Per Newgro:
Stupid question. Is @RequireHttps at Form class working?

Cheers
Per

Am 14.01.2012 17:44, schrieb armhold:
Assuming that the http/https port number have been set in WicketApplication
with the following:

setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new
HttpsConfig(8080, 8443)));

... is there any way to get access to the port numbers from components? One
obvious solution is something like:

         public class WicketApplication {
              public int getHttpPort() { return 8080; }
              public int getHttpsPort() { return 8443; }

              public void init () {
                       // ...
                       setRootRequestMapper(new
HttpsMapper(getRootRequestMapper(), new HttpsConfig(getHttpPort(),
getHttpsPort())));
              }
             }

And then in my components:

           ((WicketApplication) getApplication()).getHttpsPort();

But I am wondering if there is a cleaner way to get this information,
perhaps from the RequestCycle.

Why am I asking? I'd like to create a Form subclass that always uses https.

Thanks


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-https-port-number-in-Wicket-1-5-tp4295139p4295139.html
Sent from the Users forum 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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to