Tried searching for cfimport but no luck, so sorry if this is a
repeat.


Has anyone been able to do flex inside of a .cfm page with
user_classes?

For example, using local component classes works fine
/webroot/test.cfm
/webroot/myButton.mxml

<cfimport taglib="/WEB-INF/lib/flex-bootstrap.jar" prefix="mm">
<mm:mxml>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
xmlns:foo="*">
        <foo:myButton/> 
</mx:Application>
</mm:mxml>


But if you try to do it from the userclasses folder
/webroot/test.cfm
/web-inf/flex/user_classes/bar/myButton.mxml

<cfimport taglib="/WEB-INF/lib/flex-bootstrap.jar" prefix="mm">
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
xmlns:foo="bar.*">
        <foo:myButton/> 
</mx:Application>

Error /import/index.cfm:4
Don't know how to parse element "foo.*:myButton". It is not a known
type or a property of mx.core.Application.


Now if you specify the xmlns wrong, like xmlns:foo="bar" it shows you
this error:  
URI bar is unknown! The namespace must either be defined via a
manifest, or specified in package syntax (prefix.* or * for local
components).


So I went into flex-config.xml and created a new manifest
        <!-- resolve the specified namespaces to their component
definition file -->
        <namespaces>
            <namespace uri="http://www.macromedia.com/2003/mxml";>
                <manifest>/WEB-INF/flex/mxml-manifest.xml</manifest>
            </namespace>
            <namespace uri="http://foobar.com/2005/mxml";>
                <manifest>/WEB-INF/flex/my-manifest.xml</manifest>
            </namespace>
        </namespaces>


and gave the file another whirl:
<cfimport taglib="/WEB-INF/lib/flex-bootstrap.jar" prefix="mm">
<mm:mxml>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
xmlns:foo="http://foobar.com/2005/mxml";>
        <foo:myButton/> 
</mx:Application>
</mm:mxml>

but a new error came up:

Error /import/index.cfm:3
Namespace http://foobar.com/2005/mxml has not been associated with
component manifest.

My manifest will work if I call up an mxml page using it, ie
/webroot/test.mxml
/web-inf/flex/user_classes/bar/myButton.mxml

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
xmlns:foo="http://foobar.com/2005/mxml";>
        <foo:myButton/> 
</mx:Application>


Any ideas or pointers in the right direction?  Is there a setting on
CFM7 to specify component manifests?  I'm thinking you have to get my
custom manifest inside flex-bootstrap.jar.  But that looks to be
compiled .class files





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to