GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by chuhan » Mon Mar 05, 2007 10:16 am
Hi,
Please, see the following simplified test code. GWT Designer throws the StackOvferflow exception. The definition has two refresh method, and either of them breaks the Designer. Currently, i'm using the mark, '//$hide$', to prevent Designer from throwing an exception.
- Code: Select all
public class TestClass extends Composite {
private String tid;
public TestClass() {
{
final VerticalPanel verticalPanel = new VerticalPanel();
initWidget(verticalPanel);
}
}
public void setTid(String tid) {
this.tid = tid;
}
public void refresh() {
setTid(tid); // Designer is throwing an exception.
}
// public void refresh() { // this method does the same.
//
// String storedTid = tid;
// //more code goes here
// setTid(storedTid);
// }
}
thanks in advance.
chuhan.
[/code]
-
chuhan
-
- Posts: 28
- Joined: Tue Nov 14, 2006 3:28 pm
by chuhan » Mon Mar 05, 2007 10:20 am
One more thing is that if both refresh methods exist at the same time, it works fine. See the following code and notice that I just changed the name of the second refresh method.
- Code: Select all
public class TestClass extends Composite {
private String tid;
public TestClass() {
{
final VerticalPanel verticalPanel = new VerticalPanel();
initWidget(verticalPanel);
}
}
public void setTid(String tid) {
this.tid = tid;
}
public void refresh() { // no exception at all
setTid(tid);
}
public void refresh_alter() { //no exception at all
String storedTid = tid;
//more code goes here
setTid(storedTid);
}
}
thanks
chuhan
-
chuhan
-
- Posts: 28
- Joined: Tue Nov 14, 2006 3:28 pm
by Konstantin.Scheglov » Tue Mar 06, 2007 4:13 am
I've added fix, try latest build.
-
Konstantin.Scheglov
- Moderator
-
- Posts: 186
- Joined: Tue Oct 18, 2005 8:11 pm
- Location: Russian Federation, Lipetsk
-
by chuhan » Tue Mar 06, 2007 9:49 am
Konstantin.Scheglov wrote:I've added fix, try latest build.
It seems that the link for download is broken.
chuhan
-
chuhan
-
- Posts: 28
- Joined: Tue Nov 14, 2006 3:28 pm
by Eric Clayberg » Tue Mar 06, 2007 10:50 am
Refresh that page and try it again.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
Return to GWT Designer
Who is online
Users browsing this forum: No registered users and 3 guests