PDA

View Full Version : getElement return null for tabPanel



nitipatil
6 Jun 2008, 4:53 AM
Hi all,
When I was using mygwt and gwt 1.4,

I was using DOM's getChild() API to get body element of the tabFolder;
e.g.
Element tabFolderBodyElemet = DOM.getChild(topFolder.getElement(), 1);

Now with gxt beta 4 and gwt 1.5 rc1,
I am getting "null" for topFolder.getElement(),How could i get Element of the TabPanel.

THanks
Nitin

gslender
6 Jun 2008, 2:07 PM
Changed method...


Component.el() returns a DOM element

darrellmeyer
8 Jun 2008, 8:44 PM
My guess is that you are calling getElement() before the component is rendered. getElement() and el() will return null before a component is rendered.

Why do you need a reference to the body element?