Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SelectionStack RPC AddSelection ?

$
0
0
so i come up with following fault :

When i try to Add new Selections Via RPC :
Code:

                        public void onSuccess(ArrayList<ListData>
                                drawSelection(result);

I get the error :

java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list



My Methode is :
Code:

                for (ListData datasListe : list) {

                        /**
                        *
                        * Stack
                        */
            SectionStackSection section2 = sectionStack.getSection("blueSection"); 

                        SectionStackSection sctnstcksctnTitelSo = new SectionStackSection(
                                        "Täter : " + datasListe.getTaeter());
                        sctnstcksctnTitelSo.setExpanded(true);
                        sctnstcksctnTitelSo.setCanCollapse(true);
                        /**
                        * inStack
                        *
                        */
                        WidgetCanvas widgetCanvas = new WidgetCanvas(new TexteComp());
                        widgetCanvas.setPadding(10);
                        sctnstcksctnTitelSo.addItem(widgetCanvas);
                        // widgetCanvas.moveTo(45, ypos);

                        sectionStack.addSection(sctnstcksctnTitelSo);

                        ypos = ypos + 165;

                }



Now the strange Part :

When i Call my Methode without RPC it works, but why?

Viewing all articles
Browse latest Browse all 4756

Trending Articles