[Wicket-user] How to get a dynamic home page?

2007-03-09 Thread Pierre Métras
Hi, I face a small problem: the first page of my application must display data coming from the Wicket filter initialization parameters in web.xml. So I redefined WebApplication.init() to read the parameters. But now, how can these values be used in WebApplication.getHomePage() or as the

Re: [Wicket-user] How to get a dynamic home page?

2007-03-09 Thread Eelco Hillenius
You can read them in in your home page's constructor ((WebApplication)Application.get()).getInitParameter(foo) Eelco On 3/9/07, Pierre Métras [EMAIL PROTECTED] wrote: Hi, I face a small problem: the first page of my application must display data coming from the Wicket filter initialization

Re: [Wicket-user] How to get a dynamic home page?

2007-03-09 Thread genepi
Hi, Eelco Hillenius wrote: You can read them in in your home page's constructor ((WebApplication)Application.get()).getInitParameter(foo) I forgot to tell that there is no difference between the home page and secondary pages. In secondary pages, I can obtain dynamic information from

Re: [Wicket-user] How to get a dynamic home page?

2007-03-09 Thread Eelco Hillenius
You only have to code it once, if you share a base page. Alternatively (or additionally), take a look at IPageFactory. Eelco On 3/9/07, genepi [EMAIL PROTECTED] wrote: Hi, Eelco Hillenius wrote: You can read them in in your home page's constructor