Re: The wicket way of getting application base URL

2014-04-20 Thread Maxim Solodovnik
> Chris > > > On Thu, Mar 13, 2014 at 9:22 AM, jchappelle wrote: > > > We just use a configuration property in our application that is stored in > > our > > "properties" database table. So our solution really doesn't involve > wicket > > at al

Re: The wicket way of getting application base URL

2014-03-13 Thread Chris Snyder
roperties" database table. So our solution really doesn't involve wicket > at all. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/The-wicket-way-of-getting-application-base-URL-tp4664925p4664938.html > Sen

Re: The wicket way of getting application base URL

2014-03-13 Thread jchappelle
We just use a configuration property in our application that is stored in our "properties" database table. So our solution really doesn't involve wicket at all. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/The-wicket-way-of-getting-appli

Re: The wicket way of getting application base URL

2014-03-12 Thread Maxim Solodovnik
The reason I have implemented the hook: Our users are using mod_proxy all the time So port and context are might be changed and I need to get the base URL after all these modifications (to create emails with links etc.) On Wed, Mar 12, 2014 at 11:24 PM, Sebastien wrote: > Hi Maxim, > > Maybe y

Re: The wicket way of getting application base URL

2014-03-12 Thread Sebastien
Hi Maxim, Maybe you might use something like this: Url baseUrl = new Url(page.getRequestCycle().getUrlRenderer().getBaseUrl()); I used it to retrieve the relative url: private static String getUrl(WebPage page) { Url pageUrl = Url.parse(page.urlFor(page.getClass(), null).toString

The wicket way of getting application base URL

2014-03-12 Thread Maxim Solodovnik
Hello, I'm currently using SelfUpdatingAjaxBehavior [1] to get application base URL used by the end user. Maybe there is more standard way of doing this? Or maybe code like this can be added to ClientInfo? Thanks in advance! [1] https://svn.apache.org/viewvc/openmeetings/trunk/singlewebapp/src/