Hi Folks,
congrats (as always) on making the SmartGWT 2.0 release. The fixes surrounding DetailFormatter have allowed us to remove quite a bit of code in our app which is nice. We have moved over to the release version of GWT 2.0 and obviously to complement it SmartGWT 2.0 and everything is going great which is always nice.
I think, however, I've found an issue when using DynamicForm and SelectItem controls with the development environment using the new browser-based plugins within the core of GWT 2.0 itself.
When debugging the app in Google Chrome (obviously the dev stream to get the support for the GWT developer plugin) SelectItems when clicked upon do not drop down to expose the items they contain. When the select Item has the focus you can use the up/down cursors to move through the items in the control - but - you also see an additional item that was not placed into the list through code and its value appears as __gwt_Objectid. This issue does not occur when you debug via Firefox 3.5 or IE 8 plugins. I can't test this on Safari on windows environments as no plugin exists yet - but I will check the Safari plugin out on my mac when I get a chance.
And more importantly I can't determine if this is an issue with SmartClient, SmartGWT or just the Chrome Developer plugin so I figured I'd try you guys first.
I've attached a screen shot (SelectItemDebugIssue.jpg) so you can see what I mean. When the app is built into a war file and deployed outside of the dev environment the issue does not exist - so its only developer mode in chrome where this issue exists.
The steps to re-produce the problem are as follows. I've tried to use as little code as possible to make this simple to re-produce.
1. Create a skeleton GWT project in Eclipse 3.5.
2. Place the SmartGWT jars into your app
3. change the XML file to inherit the following:
4. Set up the isomorphicDir variable in the apps main HTML page
5. Gut the <body> of the main HTML page so it only includes:
6. Change the main EntryPoint of your app so it only includes
7. Run up the application in Debug mode
8. View the application using the GWT Developer Plugin. You should see a text item and obviously the SelectItem. If you try and expand the SelectItem you will see that you can't. Give it focus and use the up/down cursors - you should see
* SelectListItem 1
* SelectListItem 2
* SelectListItem 3
* __gwt_ObjectId
Would be interesting to know if you can re-produce this issue and your insight into where you think the issue is coming from.
Regards
Ian.G
congrats (as always) on making the SmartGWT 2.0 release. The fixes surrounding DetailFormatter have allowed us to remove quite a bit of code in our app which is nice. We have moved over to the release version of GWT 2.0 and obviously to complement it SmartGWT 2.0 and everything is going great which is always nice.
I think, however, I've found an issue when using DynamicForm and SelectItem controls with the development environment using the new browser-based plugins within the core of GWT 2.0 itself.
When debugging the app in Google Chrome (obviously the dev stream to get the support for the GWT developer plugin) SelectItems when clicked upon do not drop down to expose the items they contain. When the select Item has the focus you can use the up/down cursors to move through the items in the control - but - you also see an additional item that was not placed into the list through code and its value appears as __gwt_Objectid. This issue does not occur when you debug via Firefox 3.5 or IE 8 plugins. I can't test this on Safari on windows environments as no plugin exists yet - but I will check the Safari plugin out on my mac when I get a chance.
And more importantly I can't determine if this is an issue with SmartClient, SmartGWT or just the Chrome Developer plugin so I figured I'd try you guys first.
I've attached a screen shot (SelectItemDebugIssue.jpg) so you can see what I mean. When the app is built into a war file and deployed outside of the dev environment the issue does not exist - so its only developer mode in chrome where this issue exists.
The steps to re-produce the problem are as follows. I've tried to use as little code as possible to make this simple to re-produce.
1. Create a skeleton GWT project in Eclipse 3.5.
2. Place the SmartGWT jars into your app
3. change the XML file to inherit the following:
Code:
<inherits name="com.smartgwt.SmartGwt"/> <inherits name="com.smartgwt.tools.SmartGwtTools"/>
Code:
<!-- Configure SmartClient/SmartGWT --> <script type="text/javascript" language="javascript" > var isomorphicDir = "sgwttest/sc/"; </script>
Code:
<div id="mainUI"/>
Code:
public void onModuleLoad() { DynamicForm form = new DynamicForm(); TextItem textItem = new TextItem(); textItem.setTitle("Text"); textItem.setHint("<nobr>A plain text field</nobr>"); SelectItem selectItem = new SelectItem(); selectItem.setTitle("Select"); selectItem.setHint("<nobr>A combobox with icons</nobr>"); LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); for(int item = 1; item < 4; item++) { valueMap.put(""+item, "SelectListItem " + item ); } selectItem.setValueMap(valueMap); form.setFields(textItem, selectItem); RootPanel.get("mainUI").add(form); }
8. View the application using the GWT Developer Plugin. You should see a text item and obviously the SelectItem. If you try and expand the SelectItem you will see that you can't. Give it focus and use the up/down cursors - you should see
* SelectListItem 1
* SelectListItem 2
* SelectListItem 3
* __gwt_ObjectId
Would be interesting to know if you can re-produce this issue and your insight into where you think the issue is coming from.
Regards
Ian.G
Comment