<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.objectbox
        {mso-style-name:objectbox;}
span.objecttitle
        {mso-style-name:objecttitle;}
span.objectpropvalue
        {mso-style-name:objectpropvalue;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Hi </span><span
style='color:#1F497D'>Tómas,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I think your widget needs to
inherit from the base Widget class&#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>    initialize :
function(widgetTag) {<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>        Object.inheritFrom(this,
Fusion.Widget.prototype, [widgetTag, false]);<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'> &#8216;paramRegister&#8217; is defined in
that base class.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Chris.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
fusion-users-bounces@lists.osgeo.org
[mailto:fusion-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Tómas
Guðmundsson<br>
<b>Sent:</b> May 30, 2008 9:32 AM<br>
<b>To:</b> fusion-users@lists.osgeo.org<br>
<b>Subject:</b> RE: [fusion-users] Panels and instantiations.<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span class=objectbox>Hey all.<o:p></o:p></span></p>

<p class=MsoNormal><span class=objectbox><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span class=objectbox>I&#8217;m getting errors with a pretty much
empty widget.<o:p></o:p></span></p>

<p class=MsoNormal><span class=objectbox><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span class=objectbox>Fusion Error: WARNING: Error occurred
in AJAX callback. TypeError: widget.paramRegister is undefined File: undefined
(77) xx)<o:p></o:p></span></p>

<p class=MsoNormal><span class=objectbox><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span class=objectbox>When I do
console.log(widget.paramRegister) for Legend.js I get undefined. I don&#8217;t know
what this is about.<o:p></o:p></span></p>

<p class=MsoNormal><span class=objectbox><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span class=objectbox>This is what I have in AppDef.xml<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Widget xsi:type=&quot;WidgetType&quot;&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Name&gt;Information&lt;/Name&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Type&gt;Information&lt;/Type&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;StatusItem/&gt;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/Widget&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>And my stuff get&#8217;s called, I&#8217;m
just getting this error. Seems like one more thing is missing for it to work
properly.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Information.js <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Fusion.Widget.Information =
Class.create();<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Fusion.Widget.Information.prototype
= <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>{<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp; initialize :
function(widgetTag) {<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
console.log('InformationPanel.initialize');<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
var json = widgetTag.extension;<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
console.log(widgetTag); // logs &nbsp;= </span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>Object type=Information name=Information
location=widgets/<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp; },<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>}<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Cheers<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Tómas<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
fusion-users-bounces@lists.osgeo.org
[mailto:fusion-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Tómas
Guðmundsson<br>
<b>Sent:</b> 30. maí 2008 13:15<br>
<b>To:</b> Jason Fournier<br>
<b>Cc:</b> fusion-users@lists.osgeo.org<br>
<b>Subject:</b> RE: [fusion-users] Panels and instantiations.<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Hi Jason.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Yes this was what I was looking
for. Just got back from lunch so I&#8217;ll look into it. &nbsp;It looks to me like
that is how you get a new Widget *<b>in</b>* to a panel like Paul talked about.
I have currently mastered the Jx.Panels and done something cool with them. I
thought of an idea that might be bad it might be good, don&#8217;t know 100% how this
was designed. But if some widget&#8217;s like the Legend would Inherit or extend a
Jx.Panel so functionality of a panel might be configurable / controllable by
the widget itself. For instance, when a panel is maximized (which I think is no
way for the widget Legend to find out) it might call for a selection in the map
and do something with that. Just wandering right now, there might be some
hidden functionality in there.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Tómas.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
fusion-users-bounces@lists.osgeo.org
[mailto:fusion-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Jason Fournier<br>
<b>Sent:</b> 30. maí 2008 11:44<br>
<b>To:</b> fusion-users@lists.osgeo.org<br>
<b>Subject:</b> RE: [fusion-users] Panels and instantiations.<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='color:#1F497D'>Hi Tomas,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>If I follow you correctly I seem
to recall Panels getting created in Jx and then applying a content.id to attach
to a widget in the AppDef:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp; var p1 = new
Jx.Panel({label: 'Legend'});<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>&nbsp;&nbsp;&nbsp; p1.content.id
= 'Legend';<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>in your AppDef you&#8217;d have a
widget with Name Legend.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>This was a while ago so things
might have changed since.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Best regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Jason<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> fusion-users-bounces@lists.osgeo.org
[mailto:fusion-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Tómas
Guðmundsson<br>
<b>Sent:</b> Friday, May 30, 2008 7:24 AM<br>
<b>To:</b> fusion-users@lists.osgeo.org<br>
<b>Subject:</b> [fusion-users] Panels and instantiations.<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span lang=IS>Hi all.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=IS><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=IS>I am trying to figure out how and where
widget&#8216;s like TaskPane and Legend.js get instantiated ? Is it onely from
ApplicationDefinition.xml &nbsp;or is it somewhere called in fusion.js or
fusion.combined.js ? Any help to how to construct a Panel Widget would be very
helpful.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=IS><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=IS>Regards<o:p></o:p></span></p>

<p class=MsoNormal><span lang=IS>Tómas from the very recently earthquake
shooken Iceland.<o:p></o:p></span></p>

</div>

</body>

</html>