[ https://issues.apache.org/jira/browse/WICKET-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Murat Yücel resolved WICKET-742. -------------------------------- Resolution: Invalid Fix Version/s: 1.3.0-beta2 The issue is not relevant. This error only occurs on development when debug is activated. The reason for this is that the StringResourceModel.toString is calling getObject. > StringResourceModel makes 3 calls to IStringResourceLoader > ---------------------------------------------------------- > > Key: WICKET-742 > URL: https://issues.apache.org/jira/browse/WICKET-742 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.3.0-beta2 > Environment: Windows XP, JDK 1.4 > Reporter: Murat Yücel > Fix For: 1.3.0-beta2 > > > When using StringResourceModel, the class IStringResourceLoader is being > called 3 times. > Here is an example to how to trigger the error: > CLASS: TestPage.java > public class TestPage extends WebPage { > public TestPage() { > StringResourceModel model = new StringResourceModel("myresourcekey", > this, null); > add(new Label("label", model)); > } > } > MARKUP:TestPage.html > <html> > <head> > <title>Test Page</title> > </head> > <body> > <h1>This is a test page...</h1> > <span wicket:id="label"></span> > </body> > </html> > PROPERTY FILE:TestPage.properties > myresourcekey=label > Add a breakpoint in the wicket class ComponentStringResourceLoader.public > String loadStringResource(final Component component, final String key) > Trigger the webpage and you will see it be triggered 3 times. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.