Re: Properties file

2008-11-21 Thread Srikanth.NT
I think you could use setStyle of Session object with a text test, prod. And rename your files into MyApplication.properties (default when you dont set the style), MyApplication_test.properties(when style = test) and MyApplication_prod.properties (when style=prod) Regards, Srikanth NT -

Re: mount outside init

2008-11-21 Thread Srikanth.NT
I think you can have the homepage handle that for you. As Micheal said, you can use Index url strategy on the home page class. So when you access the http://sub.domain.com/, HomePage.class will know that no parameter is passed. And if http://sub.domain.com/customer1 is accessed, then

Re: session.setStyle and resources?

2008-09-26 Thread Srikanth.NT
Hi What we do in our project is to add public AbstractShopWebPage() { super(); add(HeaderContributor.forCss(ResourceHelper.getBrandOverrideCss(site.getBrandName(; } in the abstract web page. So that it gets attached to all the pages. And have a static helper method

Validation on Custom Panel

2008-10-08 Thread Srikanth.NT
Hi I have built a new custom panel(custompanel.java) with 12 text fields. It has a configuration file called custompanel.properties which has something like component1.required=true component2.required=true component1.maxlength=200 These properties can be overridden by page.properties. When I

Re: javascript error in internet explorer

2008-10-21 Thread Srikanth.NT
My IE version is 6.0.2900.2180.xpxp_sp2_gdr.050301-1519 In wicket-ajax.js, I replaced t.setRequestHeader(Wicket-FocusedElementId, Wicket.Focus.lastFocusId || ); with if (Wicket.Focus Wicket.Focus.lastFocusId) { t.setRequestHeader(Wicket-FocusedElementId, Wicket.Focus.lastFocusId || ); }

Re: adding favicon using behavior

2008-11-09 Thread Srikanth.NT
Here is a simple example to add favicon. http://ntsrikanth.blogspot.com/2008/11/add-favicon-to-your-page_05.html - http://ntsrikanth.blogspot.com/ -- View this message in context: http://www.nabble.com/adding-favicon-using-behavior-tp20337307p20410246.html Sent from the Wicket - User

Re: How to use TextTemplateHeaderContributor.forCss method?

2008-11-12 Thread Srikanth.NT
Check whether you get some value from getStyle() method. If it is null, then the variable ${brand} wont be substituted. shetc wrote: I created a QuickStart project and TextTemplateHeaderContributor.forCss doesn't work in there either. - http://ntsrikanth.blogspot.com/ -- View

Re: How to use TextTemplateHeaderContributor.forCss method?

2008-11-12 Thread Srikanth.NT
Try... IModel skinModel = new AbstractReadOnlyModel() { private static final long serialVersionUID = 1L; @Override public Map getObject() { MapString, CharSequence variables =

Re: Getting localized string in constructor.

2009-04-14 Thread Srikanth.NT
We use a static method to make this work without warning. public static String getResourceString(final Class clazz, final String propertyName) { ListIStringResourceLoader loaderList = Application.get().getResourceSettings().getStringResourceLoaders(); for (IStringResourceLoader loader :

ActiveRequest in RequestLogger

2012-10-29 Thread Srikanth.NT
Hi, In production we are logging the active requests into the log file using RequestLogger. Intersestingly we are seeing the value of active requests always increasing.For example, between 20:00 to 22:00 we are seeing the following values for active