Hi,
I have another problem with localization. I have stored some names in
database. And I need to get them from database localize them and then render as
some tab menu.
here is the code:
HTML:
<div id="navigation">
<table border="0" >
<tr ><td wicket:id="navigationlist">
<a id="link" wicket:id="link">link</a>
</td></tr>
</table>
</div>
JAVA:
...
Iterator it = user.getDataCollection().iterator();
while (it.hasNext()){
Data d = it.next();
NavigationItem i = new NavigationItem(new StringResourceModel(d.getName(),
this, null).getString(), d.getUrl());
navigationList.add(i);
}
add(new ListView("navigationlist", navigationList){
@Override
public void populateItem (final ListItem listItem){
final NavigationItem navigationItem = (NavigationItem)
listItem.getModelObject();
listItem.add(new ExternalLink("link",navigationItem.url,
navigationItem.name));
}
});
...
When I create new navigation Item I take the right locale name, but when I
change the localization. This items never changed its value. I do not know why?
Please do somebody see where is the problem?
Thanks for any advice.
Milan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]