If you mean "get the key from ResourceModel, or ..." then the answer is
no not directly.
An ugly solution could be - extend ResourceModel and memorize the key in
a second attribute.
But that's realy ugly.
class MyResourceModel extends ResourceModel {
private String key;
public MyResourceModel(String key) {
super(key);
this.key = key;
}
public String getTheKeyOnUglyWay() {
return this.key;
}
}
But i would do this only if no other solution is possible.
Cheers
Per
Am 10.02.2012 14:43, schrieb cosmindumy:
Hello,
My displayed texts are localized using ResourceModel('my.key').
Is it posible to get the key for ResourceModel, or an object from whom I can
extract the key?
Thanks.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/get-key-from-resource-model-tp4376269p4376269.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org