You do realize that there is a single instance of the Application, not one per user, right? Your application holds an OrderDatabase and whenever a user enters a new date range they are altering the contents of the Map in that OrderDatabase. So user A sets a date range and fetch is called, updating the single OrderDatabase. User B logs in and his OrderDataProvider pulls items from the same OrderDatabase instance. You need to have an instance of this per user in the session instead of a single instance in the application. Or better would probably be to put it in the HomePage or somewhere else.
Craig Open Roads Consulting, Inc. 757-546-3401 http://www.openroadsconsulting.com _____ From: jcinit [mailto:ran...@goodsmillwork.com] To: users@wicket.apache.org Sent: Wed, 16 Sep 2009 15:46:59 -0400 Subject: Re: same data set shows for all users Okay. I'm reading about models, but no progress yet. Abridged code attached. http://www.nabble.com/file/p25479235/CodeSample.java CodeSample.java jthomerson wrote: > > You're not using models properly, but there's no way we can help without > seeing code. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Wed, Sep 9, 2009 at 4:18 PM, Randy <ran...@goodsmillwork.com> wrote: > >> >> I have my first wicket application running which allows the user to >> specify >> a date range and see a list of items from a database. The problem is >> that >> all users see the same set of items for the same date range. User A >> enters >> Tuesday through Friday, and user B runs the app and sees the same data >> set. >> User B changes the range and user A sees it as well. The app is based on >> the wicket repeater examples, and there are JDBC calls in the equivalent >> of >> ContactsDatabase.java. Looking for suggestions on what to look into to >> give >> each user their own data set. (using Tomcat 6; Derby DB; Wicket 1.4; a >> little Wicket Stuff) >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > -- View this message in context: http://www.nabble.com/same-data-set-shows-for-all-users-tp25373324p25479235.html Sent from the Wicket - User 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