Ticket #2188 (closed enhancement: fixed)
Widgetset creation is very error prone
| Reported by: | Mauno Haukila | Owned by: | Marko Gronroos |
|---|---|---|---|
| Priority: | major | Milestone: | User Interface Library 5.3.0 RC |
| Component: | Documentation | Version: | trunk |
| Keywords: | Cc: | ||
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | no | Contract: | |
Description
Widget creation is very easy but widgetSET creation is not. You have to define xml, no verification on right syntax, very error prone.
I had a little situation recently where hosted mode browser crashed and firefox complained about javascript taking too long. I double checked syntax for package\gwt\mywidgetset.gwt.xml and widgetset-class and I found no errors on quick look. Widgetset compiled successfully.
I noticed that if I added "?debug" parameter to URL, Toolkit debug window had text "too much javascript recursion".
Problem was one typo in createWidget method.
if ("com.itmill.toolkit.training.chaptr8.gwt.client.ui.INumbersOnlyTextField"
.equals(className)) {
return new INumbersOnlyTextField();
}
Should have been:
if ("com.itmill.toolkit.training.chapter8.gwt.client.ui.INumbersOnlyTextField"
.equals(className)) {
return new INumbersOnlyTextField();
}
Change History
Note: See
TracTickets for help on using
tickets.
