[flexcoders] How to set remoteobject to reach a java(spring) bean in a remote machine
Hi everybody, I have a very simple problem with setting RemoteObject to connect a spring bean in a remote machine. I tried at Fds-Tomcat test drive server by Christopher Coenraets. However those samples(and all other samples) were for using a web-tier mxml compiler. I have to connect a local project to java(spring) beans in a remote object using tomcat server. Can anyone simply tell me how to configure services- config and remoting-config.xml. What should be the endpoint of the remoteobject, as it was gateway.php for AMFPHP? I saw that there were many configurations in web.xml of apache, I guess some were for web-tier compiler(client) and some for java backend. I could not just separate the configuration. Onw more thing, We are using WebOrb server for another project. Do we have to use such a special library for connecting client application to a remote java backend (I guess it should not be so...) Thanks for your help, Eren Bali Invento [EMAIL PROTECTED]
Re: [flexcoders] Is this a bug about FocusEvents and popupmanager?
Thanks for your reply, I am using firefox. I searched for posts before sendind a new post but could not find a relevant post. On 1/18/07, Roman Protsiuk [EMAIL PROTECTED] wrote: It is more likely Firefox bug. Are you using this browser? Because the described behavior is reproducible in Firefox but not in IE. Try to search older posts in list seems to me that I saw this problem being discussed here. R. On 1/17/07, eren bali [EMAIL PROTECTED] wrote: Hi to all, I have a couple of textinputs that all have focusIn and focusOut listeners. One of these tese inputs open a file reference (FileReference.browse) When you press cancel in file explorer dialog, it closes silently. But when i click another textinput, two focusIn events are disparchet together, one for the old textinput one for the recently clicked textinput. Below is a code to demonstrate the issue. Just click 1st textinput, than 3rd one. Close the dialog with cancel button, than click the first textinput. log variable was expected to be: Laga Luga Browse Laga Luga However it is: Laga Luga Browse Browse Laga Luga -- Eren BALİ = ?xml version= 1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical mx:Script ![CDATA[ import mx.controls.Alert; import mx.controls.Text; [Bindable] private var log:String=; private var fr:FileReference=new FileReference; private function focusIn(event:FocusEvent):void{ log+=\n+event.currentTarget.text; if(event.currentTarget==tiGozat){ fr.browse(); } } ]] /mx:Script mx:TextInput text=Laga Luga focusIn=focusIn(event) / mx:TextInput text=Laga Luga2 focusIn=focusIn(event) / mx:TextInput id=tiGozat text=Browse focusIn=focusIn(event) / mx:Text width=300 text={log} / /mx:Application -- Eren BALİ Invento Studios
[flexcoders] Is this a bug about FocusEvents and popupmanager?
Hi to all, I have a couple of textinputs that all have focusIn and focusOut listeners. One of these tese inputs open a file reference (FileReference.browse) When you press cancel in file explorer dialog, it closes silently. But when i click another textinput, two focusIn events are disparchet together, one for the old textinput one for the recently clicked textinput. Below is a code to demonstrate the issue. Just click 1st textinput, than 3rd one. Close the dialog with cancel button, than click the first textinput. log variable was expected to be: Laga Luga Browse Laga Luga However it is: Laga Luga Browse Browse Laga Luga -- Eren BALİ = ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.controls.Alert; import mx.controls.Text; [Bindable] private var log:String=; private var fr:FileReference=new FileReference; private function focusIn(event:FocusEvent):void{ log+=\n+event.currentTarget.text; if(event.currentTarget==tiGozat){ fr.browse(); } } ]] /mx:Script mx:TextInput text=Laga Luga focusIn=focusIn(event) / mx:TextInput text=Laga Luga2 focusIn=focusIn(event) / mx:TextInput id=tiGozat text=Browse focusIn=focusIn(event) / mx:Text width=300 text={log} / /mx:Application
Re: [flexcoders] How to align text in middle in a row ?
it works but not for a custom column On 12/23/06, dorkie dork from dorktown [EMAIL PROTECTED] wrote: This works with List components and it should work with the datagrid. mx:DataGrid verticalAlign=middle/ On 12/23/06, eren bali [EMAIL PROTECTED] wrote: ok than set your itemrenderer to a custom hbox like this: HBox verticalAlign=middle String id=text / Label text={text} / /HBox i did not compile this, do nop copy/paste On 12/19/06, arpan srivastava [EMAIL PROTECTED] wrote: textAlign attribute will place the text in horizontally in center , I want to place it vertically in center of the row. it's like in a text box text always starts from top left corner, i want to start it from vertically middle of the text box - Original Message From: david_gal-reyniez [EMAIL PROTECTED] To: flexcoders@yahoogroups.com [EMAIL PROTECTED] ups.com Sent: Monday, December 18, 2006 9:11:13 PM Subject: RE: [flexcoders] How to align text in middle in a row ? Hi Arpan, There is an the attribute which is named textAlign for the Object DataGridColumn . Is that the information you need? David -- *De :* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] *De la part de* arpan srivastava *Envoyé :* lundi 18 décembre 2006 16:32 *À :* [EMAIL PROTECTED] ups.com *Objet :* Re: [flexcoders] How to align text in middle in a row ? Sorry, I want to place the text vertically aligned in the middle. - Original Message From: eren bali [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Monday, December 18, 2006 7:17:55 PM Subject: Re: [flexcoders] How to align text in middle in a row ? set that label 100% width, and textAlign=center if this does not work use it inside a vbox On 12/18/06, arpan srivastava [EMAIL PROTECTED] com[EMAIL PROTECTED] wrote: Hi, How can i center the text horizontally inside a row in a datagrid. I have also created an itemrenderer which extends Label, but you can only align the text vertically. I want it to be in center of the row. _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com -- Eren BAL(c) Invento Studios _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com * * * * * * * * * * * * Coface facilite les échanges entre les entreprises partout dans le monde. Pour cela, elle offre à toutes les entreprises des solutions pour gérer, financer et protéger leur Poste clients : information et notation mondiale d'entreprises, gestion et recouvrement de créances , affacturage et assurance-crédit. Coface est notée AA par Fitch Ratings, Aa3 par Moody's et AA- par Standard Poor's. Coface facilitates business-to- business trade throughout the world by offering companies solutions to help them manage, finance and protect their receivables : information and company ratings, receivables management, receivables finance and protection. Coface is rated AA by Fitch ratings, Aa3 by Moody's and AA- by Standard Poor's. * * * * * * __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Eren BALİ Invento Studios -- Eren BALİ Invento Studios
Re: [flexcoders] How to align text in middle in a row ?
ok than set your itemrenderer to a custom hbox like this: HBox verticalAlign=middle String id=text / Label text={text} / /HBox i did not compile this, do nop copy/paste On 12/19/06, arpan srivastava [EMAIL PROTECTED] wrote: textAlign attribute will place the text in horizontally in center , I want to place it vertically in center of the row. it's like in a text box text always starts from top left corner, i want to start it from vertically middle of the text box - Original Message From: david_gal-reyniez [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, December 18, 2006 9:11:13 PM Subject: RE: [flexcoders] How to align text in middle in a row ? Hi Arpan, There is an the attribute which is named textAlign for the Object DataGridColumn . Is that the information you need? David -- *De :* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] *De la part de* arpan srivastava *Envoyé :* lundi 18 décembre 2006 16:32 *À :* [EMAIL PROTECTED] ups.com *Objet :* Re: [flexcoders] How to align text in middle in a row ? Sorry, I want to place the text vertically aligned in the middle. - Original Message From: eren bali [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Monday, December 18, 2006 7:17:55 PM Subject: Re: [flexcoders] How to align text in middle in a row ? set that label 100% width, and textAlign=center if this does not work use it inside a vbox On 12/18/06, arpan srivastava [EMAIL PROTECTED] com[EMAIL PROTECTED] wrote: Hi, How can i center the text horizontally inside a row in a datagrid. I have also created an itemrenderer which extends Label, but you can only align the text vertically. I want it to be in center of the row. _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Eren BAL(c) Invento Studios _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com * * * * * * * * * * * * Coface facilite les échanges entre les entreprises partout dans le monde. Pour cela, elle offre à toutes les entreprises des solutions pour gérer, financer et protéger leur Poste clients : information et notation mondiale d'entreprises, gestion et recouvrement de créances , affacturage et assurance-crédit. Coface est notée AA par Fitch Ratings, Aa3 par Moody's et AA- par Standard Poor's. Coface facilitates business-to- business trade throughout the world by offering companies solutions to help them manage, finance and protect their receivables : information and company ratings, receivables management, receivables finance and protection. Coface is rated AA by Fitch ratings, Aa3 by Moody's and AA- by Standard Poor's. * * * * * * __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Eren BALİ Invento Studios
Re: [flexcoders] How to align text in middle in a row ?
set that label 100% width, and textAlign=center if this does not work use it inside a vbox On 12/18/06, arpan srivastava [EMAIL PROTECTED] wrote: Hi, How can i center the text horizontally inside a row in a datagrid. I have also created an itemrenderer which extends Label, but you can only align the text vertically. I want it to be in center of the row. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Eren BALİ Invento Studios
Re: [flexcoders] why AMFPHP , i still can not get the point :(
merhaba yigit, Typically there are 3 choices for server integration via RPC: - SOAP webservices (WSDL) - RemoteObject's (AMFPHP?) - Basic HttpServices None of these 3 is a best choice, we are using all these approaches in our projects. SOAP Web services(you can use nusoap.php for this): pros: - great pain while coding, you have declare all structures arrays and function prototypes - packets are very big, works nearly %50 slower than HttpServices or AMFPHP with the same data. - Worst of all, you have to load a wsdl for each service and an attempt to call a RPC results in an error - Too much extra operation for the server (it works slow even working on localhost) cons: - Very strict data typing and function prototypes - Supported by all IDE's, i.e good for intergration - Error-proof - We are still using them for data insertions and updates RemoteObjects, implement AMF pros: - Small packets, quite fast - Has some extra labor for function prototyping - SqlResult Object is handy cons: - Still heavy for the server-side(but not as much as WSDL) As i know AMF is now on AMF3 version but many tools like AMFPHP are in AMF0 implementation HttpServices: It is not wise to use HttpServices directly, we built classes(both on flex and php) that makes it possible to call RPC's by our custom messaging system over HttpServices, It is pretty handy, we will open it in a spare time. It is very easy-to-use and faster than AMFPHP (packets are larger, but since server has a native xml compression support, works faster).It also solves Turkish Character Problem siently. It may also be wise to implement XML-RPChttp://en.wikipedia.org/wiki/XML-RPCprotocol for ActionScript 3.0. It is really enough for many projects. Our library is similar to this, but we made some issues easier and packets a little bit shorter. Your library just makes client build a sql, you could also build a simple RPC called sqlQuery and send a string to this procedure. This probably makes a security problem, as you are allowing client to run custom queries. this makes your system open for mysql injection and many other attacks. you should also consider authentication issues while building such a class. -- Eren BALİ Invento Studios On 12/18/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: AMFPHP makes remoting for Flash painless and costless. Yioit, Flash Remoting is about calling methods via RPC. You define your service classes on the server side, and then call them on the client-side defining call-backs for the results, then you wait for the results (if any) - i.e: You don't consume http services or xml files directly nor you handle xml files directly. It's different from the method you've described and on which you have developed your php class. Lachlan is right about the server domain logic being bypassed. The best option is to encapsulate server side logic and create domain model objects unless you're creating a very simple RIA. To sum things up - AMFPHP is a Flash Remoting implementation which works on the AMF0 protocol. Search for more info about the AMF0 protocol and you should figure things out :) Cheers, Marcelo. On 12/18/06, Lachlan Cotter [EMAIL PROTECTED] wrote: Hi Yioit, I believe AMFPHP was originally created to work with remoting in Flash (not Flex). The XML handling abilities of Flash are not in the same league as Flex, so XML was a huge pain. AMFPHP definitely makes a big difference for Flash Development. Since Flex is so much better with XML, the benefits may not be so obvious depending on the specifics of your project. I agree with you that there can be a lot of overhead in creating client-server interfaces and working out the best way to serialise data for transfer etc. As for your comment about having to write classes in both PHP and ActionScript: I don't see that there is any escaping this. Unless your application is trivially simple, then you will surely want to create domain model objects on the server to encapsulate logic and the database access. Same goes for the Flex side. As for the most development time efficient method for architecting the service interface, I'm still trying to figure that out. There are several options for both XML and AMF in PHP and also in other languages. WebORB for Ruby on Rails is another alternative that can potentially save time once you get over the Rails learning curve and learn how to install everything properly (which is a significant investment). You are correct that AMF serialised data is quicker to transfer and marshal than the equivalent XML, but this probably only becomes an issue when your dealing with quite large result sets. With regard to your generalised database query over HTTP class: I'm all for this type of time saving solution, but I think you need to address a couple of issues to make it more widely useful. Namely, the security concern of having a service that allows clients to effectively design their own SQL queries