Exception-undefined is not a function(While adding anchor to htmlpanel)

2014-10-08 Thread Mohammed Sameen
Hi, I am getting exception while adding the Anchor to HTMLPanel,Below is the code private HTMLPanel panel; private HorizontalPanel hPanel=new HorizontalPanel();; Anchor anchor=new Anchor(); anchor.setVisible(true); anchor.getElement().setPropertyString(id, hintButton); public void

Re: Exception-undefined is not a function(While adding anchor to htmlpanel)

2014-10-08 Thread Thomas Broyer
There might have been an error injecting the JSNI into the page. I'd strongly suggest you try Super Dev Mode (this will be the default in GWT 2.7; I'd suggest you try 2.7.0-SNAPSHOT, JARs are available from https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/ , the

Re: Exception-undefined is not a function(While adding anchor to htmlpanel)

2014-10-08 Thread Mohammed Sameen
Thanks Thomas,But i cant upgrade to GWT 2.7 right now i am using 2.6.Is there any other way? On Wednesday, October 8, 2014 11:42:29 AM UTC+5:30, Mohammed Sameen wrote: Hi, I am getting exception while adding the Anchor to HTMLPanel,Below is the code private HTMLPanel panel; private

Re: Exception-undefined is not a function(While adding anchor to htmlpanel)

2014-10-08 Thread Naveen Ng
Hi.. Since anchor is global variable, and you are trying to remove the parent widget means (panel) so anchor reference will also remove from the parent and the reference will be setting as null, when you call the createPanel() method second time, anchor reference will be null, so

Re: Exception-undefined is not a function(While adding anchor to htmlpanel)

2014-10-08 Thread Mohammed Sameen
Thanks Naveen,But its not throwing nullpointer exception i checked that also anchor is intialized its not holding null value.. On Wednesday, October 8, 2014 11:42:29 AM UTC+5:30, Mohammed Sameen wrote: Hi, I am getting exception while adding the Anchor to HTMLPanel,Below is the code

Re: Exception-undefined is not a function(While adding anchor to htmlpanel)

2014-10-08 Thread Thomas Broyer
On Wednesday, October 8, 2014 12:48:50 PM UTC+2, Mohammed Sameen wrote: Thanks Thomas,But i cant upgrade to GWT 2.7 right now i am using 2.6.Is there any other way? Super Dev Mode exists since 2.5, it's just easier to use (and faster!) with 2.7 than in previous versions. To get the ease