Please give me an example how you would give a homepage parameters that come from a servlet init param
or xml params


Servlet.init()
{
var x = 10;
ApplicationSettings.setHomePage(MyHomePage.class);
// With the param map i can do this:
HashMap hm = new HashMap();
hm.put("x",x);
ApplicationSettings.setHomePageParameters(hm); }


Clean and simple.

How would you do that?

johan




Juergen Donnerstag wrote:

No, no need to use servlet context or inner classes. Just object
variables and x = "123"; There is nothing simpler than that. The
advantage I can think of is config parameters from xml config file or
such. But your approach does not allow that either. And
((MyApplication)getApplication()).getConfigValue() can do it as well.
Sorry, but I still understand the use case for your changes.

Juergen


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop








-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to