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
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
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
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
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
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