How to edit LoadableDetachableModel in Apache Wicket

2016-07-29 Thread bilguun
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>() {
private static final long serialVersionUID = 1L;

@Override
protected List load() {
// I don't want to touch DB except very first time
List 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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to test drop down by changing value multiple times?

2016-01-29 Thread bilguun
Thank you Martin, 

Yeah, that was absolutely one that I needed. It works great now!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-test-drop-down-by-changing-value-multiple-times-tp4673468p4673473.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



How to test drop down by changing value multiple times?

2016-01-28 Thread bilguun
Hi, I am testing Drop down by selecting different values couple of times.
Here is my code:

FormTester formTester = tester.newFormTester("panel:form");
// 0 - 2014; 1 - 2015; 2 - 2016
formTester.select("year", 1);
tester.assertLabel("panel:form:subAccounts:0:accounts:0:budgeted",
"$2,115");
//

formTester.select("year", 2);
tester.assertLabel("panel:form:subAccounts:0:accounts:0:budgeted",
"$2,115");

In this case, second one should be failed because of that it supposed to
show $2,116 instead of $2,115 but it's not. I guess second select("year", 2)
is not working. Do you have any idea how to do this kind of test?

Thank you

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-test-drop-down-by-changing-value-multiple-times-tp4673467.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



Re: Lots of files in temp folder

2016-01-21 Thread bilguun
Hello, 

I realized those files are removed when session is expired due to the user
inactivity and main method that removes those files is a method unbind() of
static inner class
org.apache.wicket.protocol.http.pagestore.DiskPageStore.SessionEntry. But if
user explicitly logout, it does not delete those files using only
invalidateNow(). So do I have to call that unbind() method manually to
delete those files? 

Thanks,

Bill

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Lots-of-files-in-temp-folder-tp4673379p4673390.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