I have two cfwindows that i'm attempting to place into the same layout
within a model glue application. one of the cfwindows contains a cfgrid, the
other cfwindow contains some text. i get the following error:

Ext.grid.DefaultColumnModel has no properties
http://127.0.0.1:8500/translator/index.cfm?event=testWindows&cfdebug
Line 62

and the display is missing both the datagrid and the associated windows.

without wrapping either into cfwindow, both the cfgrid and the content of
the other template display perfectly.

if i pull all of my code into what amounts to a single script outside of
model glue, everything works perfectly... so i'm thinking that there is
something wrong with the way that the viewcollection renders and the order
that everything falls into place.

any input is appreciated. it took me most of the day to come to the
conclusion that the problem was with model glue and cfwindow / cfgrid.

Here is my dspTemplate.cfm:

<html>
<head>
    <title>Application Title</title>
    <link rel="stylesheet" type="text/css" href="css/stylesheet.css"
media="screen" />
</head>


<body>
<div>
    <div>
        <div id="bodyDiv" style="position: absolute; top: 0; left:0;
width:700px; z-index:2;">
            <cfoutput>#viewcollection.getView("body")#</cfoutput>
        </div>
        <div id="editDiv" style="position: absolute; top: 22; left:450;
width:400px; z-index:2;">
            <cfoutput>#viewcollection.getView("edit")#</cfoutput>
        </div>
    </div>
    <div id="footer" style="position: absolute; bottom:50; left:0;
width:400px;">

    </div>
</div>
</body>
</html>

here is my event-handler from model glue:

    <event-handler name="testWindows">
        <results>
            <result do="view.template"/>
        </results>
        <views>
            <include name="body" template="bodyWindow.cfm"/>
            <include name="edit" template="editWindow.cfm"/>
        </views>
    </event-handler>

this is bodyWindow.cfm:

<cfwindow initshow="true" name="bodywindow" title="body window">
    <cfquery name="accountants" datasource="NationalDocuments">
        select * from app_advisorInfo
    </cfquery>
    <cfform name="acctform">
    <cfgrid format="html" query="accountants" name="accountants"
selectmode="single"  >
        <cfgridcolumn name="first_name">
    </cfgrid>
    </cfform>
 </cfwindow>

and editWindow.cfm:

<cfwindow initshow="true" name="editwindow" title="edit window">
    test
</cfwindow>

Jim Rising
Sr. Cold Fusion Developer
ICGLink Inc.
www.icglink.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286771
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to