1 Reply Latest reply on Mar 26, 2013 11:38 AM by Erik Jan de Wit

    Templates and UL - add a LI item

    Anton Hughes Master



      As far as I know, GWT does not have a ListItem object.


      I'm trying to figure out how to add new LI items to a UL list.


      Can anyone advise?



        • 1. Re: Templates and UL - add a LI item
          Erik Jan de Wit Novice

          Hi Anton,


          Right now it's a bit hard, but it can be done, first bind the ul like so:



            Element list = Document.get().createElement("ul");


          Then in a method that is annotated with PostConstruct for instance you can add a li element


                Element li = Document.get().createElement("li");



          Hope that that helps we are planning to improve this by creating our own widget that works together with org.jboss.errai.ui.client.widget.ListWidget #517



               Erik Jan

          1 of 1 people found this helpful