-Igor
On 11/21/05, Christian Essl <[EMAIL PROTECTED]> wrote:
> dont know how useful an ordered repeating view would be for database
> driven
> lists since it doesnt refresh its children every request like dataview,
> so
> be careful there.
I have my own subclass:
MyORView extends OrdereredRepeatingView{
void internalOnBeginRequest(){
removeAll();
populate();
}
abstract populate();
WebMarkupContainer addContainer(IModel model){
WebMarkupContainer cont = new WebMarkupContainer(newChildId(),model);
add(cont);
return cont;
}
}
And than it is easy:
add(new MyORView("id"){
void populate(){
List<Product> list = _productsDAO.loadProducts();
for(Product prod:list){
Model model = new HibernateModel(prod,_hibernateDAO);
WebMarkupContainer cont = addContainer(new
CompoundPropertyModel(model));
cont.add(new Label("name"));
}
}
});
>
> -Igor
--
Christian Essl
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user