I am trying to do the sample contact walkthrough in FLEX
builder. For the Java Adapter.
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00000138.htmlI cannot get any import statements to work for the java class
files. I have tried this using the FDS as a J2EE application
running in tomcat, I have tried with the standalone JRUN version of
the FDS app.
I have put the contact files everywhere I can think of, in
the server classes folder, in the project, in the default web
folder and nothing I try works. I have even setup the project to
compile on the server and I get nothing. Everytime, I get errors.
I did the tutorial from the JDJ magazine:
http://java.sys-con.com/read/210991.htmI cant get that java connection to work either. Please
someone help me.
The flex code is below.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"layout="absolute">
<mx:Script>
<![CDATA[
import mx.data.DataService;
import mx.collections.ArrayCollection;
import samples.contact.Contact;
public var ds:DataService;
[Bindable]
public var contacts:ArrayCollection;
//public var contact:Contact;
]]>
</mx:Script>
<mx:DataGrid id="dg" editable="true">
<mx:columns>
<mx:DataGridColumn dataField="contactId" headerText="Id"
editable="false"/>
<mx:DataGridColumn dataField="firstName"
headerText="First Name"/>
<mx:DataGridColumn dataField="lastName" headerText="Last
Name"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>