is the string key 3 time exactly the same?
or is the locale added to it and then stripped down?
On 7/9/07, Murat Yücel <[EMAIL PROTECTED]> wrote:
Hi All,
I have some problems when using StringResourceModel. It seems like it is
calling the IStringResourceLoader 3 times.
I am currently using wicket 1.3.0-incubator.
Here is an example:
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.publicString
loadStringResource(final Component component, final String key)
Trigger the webpage and you will see it be triggered 3 times.
/Murat
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user