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
-
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
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
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
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
|| );
}
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
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
Try...
IModel skinModel = new AbstractReadOnlyModel() {
private static final long serialVersionUID = 1L;
@Override
public Map getObject() {
MapString, CharSequence variables =
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 :
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
10 matches
Mail list logo