Re: Inserting Widgets and simple text into panel

2011-11-07 Thread Andrei Cosmin Fifiiţă
I used the last solution and it worked fine (even IE 7,8 :), but I haven't tested IE 6 ) On 4 November 2011 05:06, Thomas Broyer wrote: > As Ice13ill said, setting innerText or innerHTML will break the w1 and w2 > widgets (their element are rebuilt, so the instance they reference are no > longer

Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Thomas Broyer
As Ice13ill said, setting innerText or innerHTML will break the w1 and w2 widgets (their element are rebuilt, so the instance they reference are no longer in the document, and event handlers obviously fails too (no longer registered, to begin with)). If using a Label or HTML (or InlineLabel/Inl

Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Steve Moyer
Try: flowPanel.add(w1); flowPanel.add(w2); flowPanel.getElement.setInnerText(flowPanel.getInnerHTML() + largeText); This might be dangerous in some instances, but the widgets should be well-formed HTML, so adding your text to the end should work. Good luck! -- You received this message because

Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Andrei Cosmin Fifiiţă
Thank you for the reply Alan, but the reason for trying this approach is because widgets have much more that simple html elements (for example click handlers for click events) if i set the inner html or text of a panel (or a HTML widget) the new elements will be rendered ok, but the listeners/handl

Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Alan Chaney
Ice13ill On 11/3/2011 6:30 AM, Ice13ill wrote: Hello, I want create a panel with a flow layout (for ex. FlowPanel) which contains 2 widgets and a large text at the end (not a or another element) I tried to add the widgets and then set the panel's element text: flowPanel.add(w1) flowPanel.add(w

Inserting Widgets and simple text into panel

2011-11-03 Thread Ice13ill
Hello, I want create a panel with a flow layout (for ex. FlowPanel) which contains 2 widgets and a large text at the end (not a or another element) I tried to add the widgets and then set the panel's element text: flowPanel.add(w1) flowPanel.add(w2) flowPanel.getElement.setInnerText(largeText) b