openGeeksLab / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

ContainerList not firing setListModel() of UIBuilder class #662

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I added a ContainerList to a view in my designer, created an event for "List 
Model" that isn't fired.

I added a breakpoint to the function setListModel() in my class extending the 
UIBuilder, but it didn't stop. The action-event is fired ...

Because of the file-upload-limit of 10mb, I had to put my test-project 
somewhere else ... I uploaded it to this link: http://ge.tt/7fCugSe/v/0

Original issue reported on code.google.com by SimonSimCity@gmail.com on 18 Apr 2013 at 10:56

GoogleCodeExporter commented 9 years ago
Normally you just need to remove the jars from the project to upload a test 
project. In this case though I already fixed the issue in SVN and it should be 
available as part of the next plugin update (couple of weeks). Thanks.

Original comment by shai.almog on 19 Apr 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Hi, Shai

Tried to compile having the latest version of the plugin installed, but I got 
an error.

    protected boolean setListModel(com.codename1.ui.list.ContainerList cmp) {
        String listName = cmp.getName();
        if("ctlPlayerQueue".equals(listName)) {
            return initListModelCtlPlayerQueue(cmp);
        }
        if("ContainerList".equals(listName)) {
            return initListModelContainerList(cmp);
        }
        if("ContainerList1".equals(listName)) {
            return initListModelContainerList1(cmp);
        }
>>        return super.setListModel(cmp);
    }

The Line marked with ">>" is the line having an error. There's no function in 
the class "UIBuilder" that accepts a ContainerList as first argument, just one 
accepting a List.

Original comment by SimonSimCity@gmail.com on 4 May 2013 at 9:24

GoogleCodeExporter commented 9 years ago
Is there something I should've done? I've created a clean build, resaved the 
design ...

Original comment by SimonSimCity@gmail.com on 4 May 2013 at 9:25

GoogleCodeExporter commented 9 years ago
Did you update the client libraries? Use the update client libs button in the 
Codename One preferences.

Original comment by shai.almog on 4 May 2013 at 10:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi, Shai

Works perfectly.

Original comment by SimonSimCity@gmail.com on 4 May 2013 at 1:00