<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic error when adding custom widget. in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-when-adding-custom-widget/m-p/215603#M5053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the "Attempting to initialise non-public inherited property widgetTemplate" error when developing a widget iaw the instructions in the developers guide for the sample flex viewer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i followed all the advice in this thread: &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=269385"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=269385&lt;/A&gt;&lt;SPAN&gt; and found that when I mispell the id the error goes away. However my widget does not maximise when clicked and the wait cursor displays from the second my flex app loads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My widget code looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;BaseWidget xmlns="com.esri.solutions.flexviewer.*" xmlns:mx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/mxml" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/mxml&lt;/A&gt;&lt;SPAN&gt;" width="400" height="300"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;WidgetTemplate&amp;nbsp; id="widgetTempalte"&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/WidgetTemplate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/BaseWidget&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added my widget to the flex modules for compilation as per the instructions and cleaned my project and I also added a mywidget.xml config file for the widget (which is just blank). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope someone can help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jun 2010 17:42:21 GMT</pubDate>
    <dc:creator>grahamcooke</dc:creator>
    <dc:date>2010-06-22T17:42:21Z</dc:date>
    <item>
      <title>error when adding custom widget.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-when-adding-custom-widget/m-p/215603#M5053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the "Attempting to initialise non-public inherited property widgetTemplate" error when developing a widget iaw the instructions in the developers guide for the sample flex viewer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i followed all the advice in this thread: &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=269385"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=269385&lt;/A&gt;&lt;SPAN&gt; and found that when I mispell the id the error goes away. However my widget does not maximise when clicked and the wait cursor displays from the second my flex app loads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My widget code looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;BaseWidget xmlns="com.esri.solutions.flexviewer.*" xmlns:mx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/mxml" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/mxml&lt;/A&gt;&lt;SPAN&gt;" width="400" height="300"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;WidgetTemplate&amp;nbsp; id="widgetTempalte"&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/WidgetTemplate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/BaseWidget&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added my widget to the flex modules for compilation as per the instructions and cleaned my project and I also added a mywidget.xml config file for the widget (which is just blank). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope someone can help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2010 17:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-when-adding-custom-widget/m-p/215603#M5053</guid>
      <dc:creator>grahamcooke</dc:creator>
      <dc:date>2010-06-22T17:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: error when adding custom widget.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-when-adding-custom-widget/m-p/215604#M5054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. The first line of any mxml component should be &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If you want to use the default template of the Sample Flex Viewer then add this to BaseWidget:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:widgets="com.esri.solutions.flexviewer.widgets.*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and your&amp;nbsp; WidgetTemplate should look like --&amp;gt; &amp;lt;WidgetTemplate id="wTemplate" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more information on developing widgets and the sample flex viewer go thru this document:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://88.191.74.143/FlexViewerFR/FlexViewerDevelopersGuide.pdf"&gt;http://88.191.74.143/FlexViewerFR/FlexViewerDevelopersGuide.pdf&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jun 2010 13:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/error-when-adding-custom-widget/m-p/215604#M5054</guid>
      <dc:creator>SreeS</dc:creator>
      <dc:date>2010-06-23T13:47:34Z</dc:date>
    </item>
  </channel>
</rss>

