You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sandro Böhme <Sa...@1und1.de> on 2009/02/19 09:50:23 UTC

ListView within a stateless form

Hello,

first of all I can say that I very much like the concepts of wicket. This is basically the first web framework whose concepts align with my understanding of how a web framework should separate the view, the business logic and the model.
In a large web application we would like to work with a stateless form that includes a ListView. But if I don't miss something this doesn't seem to work out of the box because the list view is neither a IFormModelUpdateListener nor a IFormVisitorParticipant and thus it never gets reconstructed when wicket starts to rebuild the stateless form.
After letting our subclassed ListView and ListItem implement these interfaces we recognized, that the list items do not get reconstructed because there aren't yet any. The reason is, that the populateItem() method has not yet been called to create them but will be called later on rendering time. To get around this we called onPopulate() within the constructor. Now everything works as expected. But of course we wonder if this will cause any side effects and if there isn't any standard way to use a ListView within a stateless form. Any information on how to handle that is very much appreciated.

Best,

Sandro

--
Sandro Böhme 

1&1 Internet AG
Brauerstraße 48 · D-76135 Karlsruhe
fon  +49-721-91374-8260
fax  +49-721-91374-2716
Mail: sandro.boehme@1und1.de
Xing: https://www.xing.com/profile/Sandro_Boehme

Amtsgericht Montabaur HRB 6484 

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim Weiss

Aufsichtsratsvorsitzender: Michael Scheeren  

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org