D
dheerajsah
hi all,
I have created a DIV tag using DOM
.....
Element div = DOM.createDiv();
and appended Label inside it.
....
Element label = DOM.createLabel();
DOM.setAttribute(label, "value", "test");
DOM.appendChild(div, label);
now when I add this div to a horizontal Panel it does not shows up.
like
HorizontalPanel hp = new HorizontalPanel();
DOM.appendChild(hp.getElement(), div);
RootPanel.get("_slot1").add(hp);
though if I debug to c if the html string is getting appended ..it is !
when I paste that string in the html viewer it shows up the content....
But in case I c it in the GWT output it does not.
Summary:
The problem is why does horizontal panel (or any other Higher level
GWT panel) does not shows up the items added using DOM.createXXX()
methods??
I even tried it using.
DOM.appendChild(RootPanel.get("_slot1").getElement(),hp.getElement());
and through... setting the inner HTML as string
DOM.setInnerHTML(RootPanel.get("_slot1").getElement(),hp.getElement().toString);
pls help.
thanx in advance.
Dheeraj
I have created a DIV tag using DOM
.....
Element div = DOM.createDiv();
and appended Label inside it.
....
Element label = DOM.createLabel();
DOM.setAttribute(label, "value", "test");
DOM.appendChild(div, label);
now when I add this div to a horizontal Panel it does not shows up.
like
HorizontalPanel hp = new HorizontalPanel();
DOM.appendChild(hp.getElement(), div);
RootPanel.get("_slot1").add(hp);
though if I debug to c if the html string is getting appended ..it is !
when I paste that string in the html viewer it shows up the content....
But in case I c it in the GWT output it does not.
Summary:
The problem is why does horizontal panel (or any other Higher level
GWT panel) does not shows up the items added using DOM.createXXX()
methods??
I even tried it using.
DOM.appendChild(RootPanel.get("_slot1").getElement(),hp.getElement());
and through... setting the inner HTML as string
DOM.setInnerHTML(RootPanel.get("_slot1").getElement(),hp.getElement().toString);
pls help.
thanx in advance.
Dheeraj