Select to view content in your preferred language

WidgetContainerWidget.mxml error with FlexViewer 2.4

1755
4
08-17-2011 01:14 PM
HenryMoore
Emerging Contributor
I just installed the new FlexViewer 2.4 with 4.5.1 sdk and get the following error.

Description Resource Path Location Type
1044: Interface method isBasicLayout in namespace com.esri.viewer:IWidgetContainer not implemented by class widgets.WidgetContainer:WidgetContainerWidget. WidgetContainerWidget.mxml /LTCR/src/widgets/WidgetContainer Unknown Flex Problem

There were a number of warnings regarding the following but I corrected those.

// OLD:
ViewerContainer.dispatchEvent(new AppEvent(AppEvent.DATA_OPT_LAYERS, null, getOplayers));
// NEW:
AppEvent.dispatch(AppEvent.DATA_OPT_LAYERS, null, getOplayers);

Any help resolving this would be appreciated.
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Henry,

   Did you happen to copy the whole widgets folder from an older version of Flex Viewer? The Flex Viewer source code straight from the download does not have any compiling errors.
0 Kudos
HenryMoore
Emerging Contributor
Hey Robert,
I copied some folders from an application developed in 2.3.1 using the 4.1 SDK. Are there some known issues converting the widgets from a previous version?
Thanks
Henry
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Henry,

   In your case yes as you seem to have copied the WidgetContainer folder over from the 2.3.1 version and have lost the 2.4 changes that esri made. You need to go back to the original 2.4 source for the Flex Viewer and get the widgets/WidgetContainer folder and copy that back into your project.
0 Kudos
HenryMoore
Emerging Contributor
Thanks Robert, I did infact copy the WidgetContainerWidget.mxml from my 2.3.1 application. Replaced the files and everything works fine. Thanks for your help.
0 Kudos