Select to view content in your preferred language

Application Error

755
2
09-20-2010 04:11 AM
philippschnetzer
Frequent Contributor
Hi All.

I am running SFV 2.0 and ArcGIS Server 10.  Just trying to start with a clean 'hello world' widget but I get an application error (see attached).  Any ideas??  Thanks!

<viewer:BaseWidget  xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
     xmlns:esri="com.esri.ags.tasks.*"
        xmlns:viewer="com.esri.viewer.*">
      
<fx:Script>
  <![CDATA[
   import com.esri.viewer.skins.WidgetTemplateSkin;
  ]]>
</fx:Script> 

    <viewer:WidgetTemplate skinClass="com.esri.viewer.skins.WidgetTemplateSkin">
  <s:Label text="hello world!"/>
</viewer:WidgetTemplate>

</viewer:BaseWidget>
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Phillip,

Make sure that when you added this widget to your config.xml you DID NOT specify a config="x" attribute as this is just a simple widget and does not have a configuration xml file.

<widget label="Parcel Search" preload="open" x="50" y="100" 
                icon="assets/images/i_search_parcel.png"
                config="widgets/Parcel/SearchWidget.xml"
                url="widgets/Parcel/SearchWidget.swf"/>
0 Kudos
philippschnetzer
Frequent Contributor
That was it, thanks, Robert!
0 Kudos