I'm trying to upgrade an application from 1.2.6 to 1.3.0-rc1. I've read the
documentation, upgrade guide and mailing list archives. However, I don't
seem to grasp how to upgrade the following class to 1.3.0:
import org.apache.wicket.Component;
import org.apache.wicket.model.AbstractReadOnlyModel;
/**
* A simple model that represents a resource by its key
*
* @author ivaynberg
*/
public class ResourceModel extends AbstractReadOnlyModel {
private String key;
/**
* Constructor
*
* @param key of the resource this model represents
*/
public ResourceModel(String key) {
this.key = key;
}
/**
* @see wicket.model.AbstractReadOnlyModel#getObject(wicket.Component)
*/
public Object getObject(Component component) {
return component.getLocalizer().getString(key, component);
}
}
Most of the documentation seems to indicate I don't need this class anymore.
Is that true?
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/Upgrading-ResourceModel-to-1.3.0-rc1-tf4880269.html#a13966244
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]