lazily loaded table structure?
Hi, I want to display a table structure, however the data retrieving takes a certain time. Currently I use the AjaxLazyLoadPanel to display all results at once. But in future I'd like to to immediately display it on the page when it is retrieved. So I need some kind of table where I can add rows via Ajax *AND* reorder the items (because they are not retrieved in the final order). Do you know of any components that can be helpful for this task? Thanks, Jan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Application scope vs Singleton
Alfredo Aleandri wrote: > I have a doubt about application-scoped objects. > What's the pro and cons of setting an object instance into my > WebApplication class or define that class as singleton (using a static > method to access it) ? Pro: Singletons are easy to use Contra: They make Unit tests and re-usability difficult. I personally use dependency-injection with wicket-guice. Jan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket-Guice: Inject into Session
Jeremy Thomerson wrote: > You shouldn't be using database connections. Use a service from your > service layer. Inject the service with wicket-ioc / wicket-guice - it > will insert a serializable proxy. It is a controller class that hides the database implementation details and it is injected by guice. It is not a connection in terms of a tcp connection to a mysql database or alike. Cheers, Jan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket-Guice: Inject into Session
Marc Ende wrote: > webapps do. In this case you've got to serialize the connection. I don't > think that's easy/possible to seralize a database connection. > I would go another approach which uses the session only as a > information-container and get those needed information from the > database in the page-lifecycle. That keeps the session-object small > (which is also an aspect). Hmm, following your argumentation, would you say that the AuthenticatedWebSession is implemented wrong because it contains a #authenticate method (which clearly needs a reference to some kind of database)? Or would marking the field as "transient" be fine? Cheers, Jan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket-Guice: Inject into Session
Hi, I'm a Wicket and Guice beginner. I successfully managed Guice to Inject my dependency into a WebPage. Can Guice also inject the dependency into an AuthenticatedWebSession? I'd need a reference to my database in the #authenticate(String, String) method. Jan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Register -> activate account -> login
Hi, Is there a component that handles user registration, email verification (account activation) and login stuff? I currently use the classes org.apache.wicket.authentication.AuthenticatedWebApplication; org.apache.wicket.authentication.AuthenticatedWebSession; org.apache.wicket.authentication.panel.SignInPanel.SignInPanel which work well in my project. Thanks, Jan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org