And so am I :)

Eelco

On 4/4/06, Steve Knight <[EMAIL PROTECTED]> wrote:
> Ramnivas,
>
> Did you get the DOJO-based tree working?  If so, I'd be very interested in
> it.
>
> Steve
>
>
>
> On 3/29/06, Ramnivas Laddad < [EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am continuing my attempt to create a DOJO-based tree (Thanks Igor for
> > the urlFor() tip).
> >
> > Currently, I am facing a problem of extra markup emitted in a listview.
> > I think there is something wrong with my code, but can't quite figure
> > out what. I am using 1.2-beta2.
> >
> > Here is a short program that illustrates the problem:
> >
> > Markup:
> > <html>
> >     <body>
> >         <div wicket:id="list">
> >             <div wicket:id="item">item text</div>
> >         </div>
> >     </body>
> > </html>
> >
> > Home and list class:
> > public class ListViewHome extends WebPage {
> >     public ListViewHome() {
> >         List testList = new ArrayList();
> >         testList.add("one");
> >          testList.add("two");
> >         testList.add("three");
> >         add(new TestListView("list", testList));
> >     }
> > }
> >
> > class TestListView extends ListView {
> >     public TestListView(String id, List list) {
> >         super(id, list);
> >     }
> >
> >     @Override
> >     protected void populateItem(ListItem item) {
> >         String itemString = (String)item.getModelObject();
> >         Label listItemLabel = new Label("item", itemString);
> >         item.add(listItemLabel);
> >     }
> > }
> >
> > HTML Output produced:
> >
> > <html>
> >     <body>
> >         <div wicket:id="list">
> >                 <div wicket:id="item">one</div>
> >         </div>
> >         <div wicket:id="list">
> >                 <div wicket:id="item">two</div>
> >         </div>
> >         <div wicket:id="list">
> >                 <div wicket:id="item">three</div>
> >         </div>
> >     </body>
> > </html>
> >
> > When used with DOJO-tree, the extra markup ("<div wicket:id="list">")
> > surrounding every node produces unwanted effects.
> >
> > I will like to have the following output:
> >
> > <html>
> >     <body>
> >         <div wicket:id="list">
> >                 <div wicket:id="item">one</div>
> >                 <div wicket:id="item">two</div>
> >                 <div wicket:id="item">three</div>
> >         </div>
> >     </body>
> > </html>
> >
> > Please help.
> >
> > Thanks.
> >
> > -Ramnivas
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to