Wednesday, February 24, 2016

Re: MVP, UIBuilder and View update from the code

Try to use Chrome Dev tools to see what happens with your Elements on the page.
We have no issues adding Elements to the Web page with GWT

On Monday, February 22, 2016 at 10:11:14 PM UTC+3, va...@ant.ee wrote:
Hello,

         I have View created by UIBuilder withing MVP framework. After it is displayed I would like to swap some elements from the java code upon event. I was able to get widget  and remove it by executing:
        Widget w = rootPane.getWidget(1);
        rootPane
.remove(w);

          If I try to add element using code like:

        rootPane.addSouth (new HTML("south"), 5);

          entire view becomes blank. I have tried different ways of adding elements, but it seems I can't add them directly. Entire view is corrupted. What am doing wrong?

Thanks

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment