I have the following code which creates a VLayout with a DynamicForm on which there is only a SelectItem. After the form there is an HTMLPane. Selecting an item in the SelectItem calls setContentsURL() to change the contents of the HTMLPane.
All works just fine in GWT hosted mode, but once deployed, changing the SelectItem has no effect on the HTMLPane contents. If I look at the SmartClient dev console I see this warning each time I change the SelectItem, but I don't understand what it is telling me.
18:13:22.056:WARN:Log:TypeError: _3.startsWith is not a function
Code:
final HTMLPane welcomePage = new HTMLPane(); welcomePage.setContentsURL("helpcontents/WelcomeHelp.html"); SelectItem gadgetSelect = new SelectItem("gadgetSelect", "Select a Gadget"); LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); valueMap.put("helpcontents/WelcomeHelp.html", "Help!"); valueMap.put("helpcontents/DailyCandy.html", "Daily Candy"); valueMap.put("helpcontents/Trendanistas.html", "Trendanistas"); gadgetSelect.setValueMap(valueMap); gadgetSelect.setDefaultToFirstOption(true); gadgetSelect.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { welcomePage.setContentsURL(event.getItem().getValue().toString()); } }); DynamicForm gadgetForm = new DynamicForm(); gadgetForm.setItems(gadgetSelect); VLayout gadgetLayout = new VLayout(); gadgetLayout.setMembers(gadgetForm, welcomePage);
18:13:22.056:WARN:Log:TypeError: _3.startsWith is not a function
Comment