Hello again, Thank you very much. I'm understanding how this works! Thanks!. I'm sorry for asking more, but can you show me a little example of how to fill the List? I almost have it, but if I see it working, I think I will realize.
Thank you for your time!, Oskar igor.vaynberg wrote: > > here is a panel that will output <b:treelistrow> tag > > // model > class TreeListRow { List<TreeListCell> cells; } > class TreeListCell { String type, String text; } > > //panel > > class TreeListRowPanel extends Panel { > public TreeListRowPanel(String id, IModel<TreeListRow> model) { > super(id, new CompoundPropertyModel(model)); > add(new ListView("cells") { > populateItem(ListItem item) { > TreeListCell cell=item.getModelObject(); > item.add(new SimpleAttributeModifier("b:type", > cell.gettype()); > item.add(new Label("text", cell.gettext())); > } > } > } > } > > markup: > <wicket:panel> > <b:treelistrow> > <b:treelistcell wicket:id="cells"></b:treelistrow> > </wicket:panel> > > thats all there is to that, you simple attach wicket tags to backbase > markup > tags. once you grok this i can explain how to build the recursive tree > structure to you > > -igor > > > On 1/8/07, Toscano <[EMAIL PROTECTED]> wrote: >> >> >> Thank you again for your answers. I'm sorry because maybe I'm asking in >> the >> wrong forum... >> For example, backbase renders a tree control using this xml: >> <b:treelist> >> <b:treelistrow> >> <b:treelistcell b:type="head">Subject</b:treelistcell> >> <b:treelistcell b:type="head">From</b:treelistcell> >> <b:treelistcell b:type="head">Posted</b:treelistcell> >> </b:treelistrow> >> <b:treelistrow> >> <b:treelistcell>Is the Seven Samurai >> good?</b:treelistcell> >> <b:treelistcell>Jeremy Hartley</b:treelistcell> >> <b:treelistcell>15-08-2005, 13:01</b:treelistcell> >> </b:treelistrow> >> <b:treelistrow> >> <b:treelistcell>2001 - Question about >> religion</b:treelistcell> >> <b:treelistcell>John Deare</b:treelistcell> >> <b:treelistcell>23-07-2005, 17:14</b:treelistcell> >> <b:treelistchildren> >> <b:treelistrow> >> <b:treelistcell>Re: 2001 - Question about >> religion</b:treelistcell> >> <b:treelistcell>Marcel >> Diepstra</b:treelistcell> >> <b:treelistcell>24-07-2005, >> 8:01</b:treelistcell> >> </b:treelistrow> >> </b:treelistchildren> >> </b:treelistrow> >> </b:treelist> >> >> Question is: how can I ouput this kind of xml from a data structure on >> Wicket? >> My point is to use much more complicated backbase controls, but if I can >> learn how to do this, I think I will be able to do anyone. >> >> Again, thank you very much! >> >> >> Eelco Hillenius wrote: >> > >> > My back base knowledge is poor, so can you give an example of what >> > kind of markup you need to produce? >> > >> > Eelco >> > >> > >> > On 1/8/07, Toscano <[EMAIL PROTECTED]> wrote: >> >> >> >> Hello, >> >> >> >> Thank you very much for your responses. >> >> I understand what you want to say, but I'm afraid I don't know how to >> do >> >> it. >> >> My Wicket knowledge is poor yet, can you show me or redirect me to an >> >> example of this?. >> >> >> >> Again, thank you for your time! >> >> Oskar >> >> >> >> >> >> >> >> Erik van Oosten wrote: >> >> > >> >> > Oskar, >> >> > >> >> > The BackBase language is XML right? >> >> > So what you can do is give the BackBase elements a wicket:it >> attribute >> >> > and attach components to it, just as would do with html tags. >> >> > >> >> > Regards, >> >> > Erik. >> >> > >> >> >> On 1/7/07, Toscano <[EMAIL PROTECTED]> wrote: >> >> >>> Hello, >> >> >>> >> >> >>> I have been doing some testing for a very big project, and I have >> >> been >> >> >>> seduced by Wicket. In the web interface side, we are considering >> >> >>> Backbase, >> >> >>> but although I could integrate easily simple controls like >> buttons, >> I >> >> >>> don't >> >> >>> know how to output the special html that backbase needs... Do I >> have >> >> to >> >> >>> create specific wicket.markup.html components? Can anybody help me >> >> with >> >> >>> how >> >> >>> to face this? >> >> >>> >> >> >>> Thank you very much!, >> >> >>> Oskar >> >> > >> >> > -- >> >> > Erik van Oosten >> >> > http://day-to-day-stuff.blogspot.com/ >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/Wicket-and-Backbase-tf2937954.html#a8225176 >> >> Sent from the Wicket - Dev mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Wicket-and-Backbase-tf2937954.html#a8225780 >> Sent from the Wicket - Dev mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Wicket-and-Backbase-tf2937954.html#a8238196 Sent from the Wicket - Dev mailing list archive at Nabble.com.