Mais conteúdo relacionado
Semelhante a Download It (20)
Mais de webhostingguy (20)
Download It
- 4. JRun4 – the full-blown version shown below - needs to be configured for LCDS but allows you to add servers as needed.
- 16. The application loads hibernate from mysql and uses a simple java bean and flex… here it is running on JRun4
- 26. Screenshot: a DAO layer interfacing with MySQL and displayed in Flex, running in the fds-tomcat server
Notas do Editor
- <?xml version=&quot;1.0&quot;?> <mx:TitleWindow xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; creationComplete=&quot;doInit();&quot; title=&quot;Add Employee&quot; width=&quot;362&quot; height=&quot;186&quot; borderColor=&quot;#408080&quot; alpha=&quot;1.0&quot; backgroundAlpha=&quot;1.0&quot; layout=&quot;absolute&quot;> <mx:Script> <![CDATA[ import mx.managers.PopUpManager; import mx.rpc.events.FaultEvent; import EmployeeManagement.*; import mx.rpc.AsyncToken; import mx.data.*; [Bindable] private var employee:Employee; private function doInit():void { // Center the TitleWindow container // over the control that created it. PopUpManager.centerPopUp(this); } private function addEmployee():void { // Add the employee to the database, then kill this window. employee = new Employee(); employee.firstname=newfirstname.text; employee.lastname=newlastname.text; var ir:ItemReference = hibernate.createItem(employee); hibernate.commit(); PopUpManager.removePopUp(this); } private function handleFault(event:FaultEvent):void { mx.controls.Alert.show(event.message.toString()); } ]]> </mx:Script> <mx:DataService id=&quot;hibernate&quot; destination=&quot;employee.hibernate&quot; fault=&quot;handleFault(event)&quot;/> <mx:Form x=&quot;4&quot; y=&quot;4&quot;> <mx:FormItem label=&quot;First Name&quot;> <mx:TextInput id=&quot;newfirstname&quot; width=&quot;100%&quot;/> </mx:FormItem> <mx:FormItem label=&quot;Last Name&quot;> <mx:TextInput id=&quot;newlastname&quot; displayAsPassword=&quot;false&quot; width=&quot;100%&quot;/> </mx:FormItem> </mx:Form> <mx:HBox x=&quot;4&quot; y=&quot;92&quot;> <mx:Button click=&quot;addEmployee();&quot; label=&quot;OK&quot;/> <mx:Button click=&quot;PopUpManager.removePopUp(this);&quot; label=&quot;Cancel&quot;/> </mx:HBox> </mx:TitleWindow>