- My dialogs will cascade events to the form panels and their contents on the dialog. A change was made to
Layout
which requires all components which are receiving the event to have alayoutData
defined. Since dialogs would normally not hold alayoutData
(in my case they were usingFitLayout
which results in a nulllayoutData
), I had to change the cascading to start at the dialog'sFormPanel
. - All text input components have the wrapper set to the id used to create the component (this should be a <div/> tag). The physical input field now has a
"-input"
added to the end of the id. This impacted my Selenium tests. - The
StoreFilterField
required thesetProperty("name")
to be called in order for the filtering to actually be invoked. I also changed my overloadedapplyFilters()
method to be similiar to the super method in the way it adds/removes the filter on the store. - In my country
ListView
, when theEvents.Select
was raised I was retrieving the selected countries from the selection model. This either changed or I was doing it incorrectly, as now the selection model was returning the items before the selection is registered. Instead, I switched to use thegetIndex()
of the ListViewEvent to find the country that was selected. - For my image panel, I was using a GWT
HTML
component. This now required the parent to implementHasWidgets
interface, which theContentPanel
in GXT doesn't (since all GXT components extendWidget
from GWT). Fortunately there is a GXT componentHtml
which does pretty much the same as the GWT one, and converting to use this worked. - Nodes in a
TreePanel
had their rendering changed from a <li> tag to a <div> tag. This impacted Selenium tests. - Popup menus changed from using <li> tags to using <div> tags. This impacted Selenium tests.
@Override protected void applyFilters(Store<ModelData> store) { if (getRawValue().length() >= 3) { store.addFilter(filter); store.applyFilters(super.getProperty()); } else { store.removeFilter(filter); } }
Overall, the changes took me approximately 5 hours to incorporate and resolve the differences in my selenium tests. Some of it was due to changes in the rendering of the GXT components (which is to be expected and is not difficult to reconcile) and some of it was related to event sequencing and component model changes. It was these later changes which impacted my time the greatest.
Version Info
GXT: 2.1.0
Selenium: 1.0.1
No comments:
Post a Comment