I am using loadableDetachableModel to show some components and it gets the
data that I wanted first time by calling webservice in load method. But
users do some operations like insert or delete to that model. So I don't
wanna call that webservice except first time.

So the code be like:

myLoadableDetachablModel = new LoadableDetachableModel<List&lt;MyType>>() {
private static final long serialVersionUID = 1L;

@Override
protected List<MyType> load() {
    // I don't want to touch DB except very first time
    List<MyType> neededObjects = myService.getMyMethod();
    return neededObjects;
}};

Do you have any suggestions for me? thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-edit-LoadableDetachableModel-in-Apache-Wicket-tp4675238.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to