The panel is being added to a scroll panel and this scroll panel is being added to the Root Panel. It works when I test it with 'dummy' buttons so I dont think the problem is with how the panels are set up.
On Dec 19, 2:11 pm, "Arthur Kalmenson" <[email protected]> wrote: > Are you adding the panel to the RootPanel? If not, it won't appear in > the browser. > > -- > Arthur Kalmenson > > On Thu, Dec 18, 2008 at 6:08 PM, [email protected] > > <[email protected]> wrote: > > > Hi, > > > I wonder if anyone can help me. I am trying to create dynamic radio > > buttons i.e. set the number of Radio buttons equal to some values in > > my database. Here is the code I am using: > > > class ServerStatsUpdater extends AbstractAsyncHandler > > { > > public void handleFailure(Throwable caught){ > > } > > public void handleSuccess(Object result){ > > ServerSQLData data = (ServerSQLData) result; > > > for (int i = 0; i<data.itemNameArrayList.size > > ();i++){ > > > RadioButton itemsRadioButton = > > new RadioButton > > (data.itemNameArrayList.get(1).toString()); > > editItemsRadioPanel.add(itemsRadioButton); > > } > > } > > > When I run the application in hosted mode it does not pick up the > > radio buttons. Can anyone see the error I am making here? In case it > > helps, the panel is being created in a different class. Maybe the > > problem is that the panel has loaded and then the handleSucess method > > is run, i.e. it wont add the radio buttons as its panel has already > > loaded? > > > Please let me know if you can see where I am going wrong. > > > Regards, > > Jack --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
