Re: ListView for only one element. Something wrong.

2009-10-20 Thread Nicolas Melendez
Hi,Thanks for your answer. (i reed it a time ago, but i never said thanks) NM On Fri, Oct 9, 2009 at 6:51 AM, Sven Meier s...@meiers.net wrote: Hi Nicolas, use more models: -- class MyPage: private IModelList

Re: ListView for only one element. Something wrong.

2009-10-08 Thread Sven Meier
Hi Nicolas, you can just use a WebMarkupContainer and recreate its children on each request in #onBeforeRender(). But the question is: why do you need to refresh your components at all? It seems you don't use models correctly. Show us some code. Sven Nicolas Melendez wrote: Hi, i want to

Re: ListView for only one element. Something wrong.

2009-10-08 Thread Nicolas Melendez
Hi: Sven, thanks for replying! I've added some code below. -- class MyPage: private List businessObjectList; private MyPanel myPanel; list is populated somehow myPanel = new MyPanel(businessObjectList); this.add(myPanel); ... on

Re: ListView for only one element. Something wrong.

2009-10-08 Thread Sven Meier
Hi Nicolas, use more models: -- class MyPage: private IModelList businessObjects; private MyPanel myPanel; myPanel = new MyPanel(businessObjects); this.add(myPanel); -