Package org.apache.wicket.resource.loader

Examples of org.apache.wicket.resource.loader.IStringResourceLoader.loadStringResource()


    DummySubClassPage p = new DummySubClassPage();
    IStringResourceLoader loader = new ComponentStringResourceLoader();
    Assert.assertEquals("Valid resource string should be found", "SubClass Test String",
        loader.loadStringResource(p.getClass(), "subclass.test.string", Locale.getDefault(), null));
    Assert.assertEquals("Valid resource string should be found", "Another string",
        loader.loadStringResource(p.getClass(), "another.test.string", Locale.getDefault(), null));
  }
}
View Full Code Here


      Iterator iter = resourceSettings.getStringResourceLoaders().iterator();
      while (iter.hasNext())
      {
        IStringResourceLoader loader = (IStringResourceLoader)iter.next();
        string = loader.loadStringResource(component, key);
        if (string != null)
        {
          break;
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.