[flexcoders] Howto create an mx:image extension that supports URLRequest for source property

2010-05-27 Thread pgp.coppens
Hello I am trying to create a drop-in extension for mx:image that supports an URLRequest for source property. The reason is that the (server) images should be retrieved using a POST and some custom headers added to the HTTP request. I have something that somewhat works but seems far from

[flexcoders] Cairngorm (server) error handling pattern(s)

2007-05-29 Thread pgp.coppens
Hello, I was wondering whether anyone has any guidance on how to deal with server/service errors, including, but not limited to field validation errors. Something like what is explained in http://onrails.org/articles/2007/03/06/mapping-rails-errors-to-flex-fields but then as a natural Cairngorm

[flexcoders] HTTPService - application/xml - white space added

2007-05-23 Thread pgp.coppens
Gentlepeople, I am using HTTPService to send XML to the server (so what?! ;) ). Anyway, that works fine except for the fact that in cases of mixed xml content flex seems to add (significant) white space in circumstances I have yet to figure out. Has anyone seen this? Is there anything I can do

[flexcoders] Re: Flex: Remote Objects

2007-05-17 Thread pgp.coppens
You don't need FDS to use RemoteObject I was having that impression until I asked. See http://tech.groups.yahoo.com/group/flexcoders/message/73053 Documentations is confusing though (imo). Hth, Peter --- In flexcoders@yahoogroups.com, Scott Hoff [EMAIL PROTECTED] wrote: Do I have to have FDS2

[flexcoders] Re: Here comes a new challenger!!! Sun announces JavaFX

2007-05-09 Thread pgp.coppens
It never hurts to know ones history http://www.wired.com/wired/archive/3.12/java.saga_pr.html while the idea of ria's was present even then, Java never did live up to that promise. It's probably more a matter of execution than any really technological shortcomings in the platform as such I

[flexcoders] Re: Tree labelField and hiding leaf nodes

2007-04-16 Thread pgp.coppens
I have a similar requirement. I need to hide all leaf nodes from the tree and display them in a separate list control. Would anyone have any suggestions or pointers to get me started. Thanks, Peter --- In flexcoders@yahoogroups.com, polestar11 [EMAIL PROTECTED] wrote: Hi there I have a

[flexcoders] Re: Uploading file to a java servlet.

2007-04-14 Thread pgp.coppens
You might find http://projects.apache.org/projects/jakarta_commons_fileupload.html useful. Works fine for me. Peter --- In [EMAIL PROTECTED], ivansebastiansurya [EMAIL PROTECTED] wrote: Hi everyone, I'm wondering if anyone has actually write a servlet that becomes the URL target of a

[flexcoders] Re: How to asynchronously dispatch an event

2007-03-26 Thread pgp.coppens
The assignment to result.myData happens before the data service call is invoked, and this will work fine. I believe that call does not happen until the next frame. Yes, exactly. Now the point is (or was really) that I wanted to implement the same api interaction when model.doAction is not

[flexcoders] Re: URLRequest.requestHeaders

2007-03-26 Thread pgp.coppens
--- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: Alright, ignore that, I was recycling the request object. So here is the big issue. I can make a call to this server and set some headers that will get my session setup. Then I reuse the same request with the upload

[flexcoders] Re: How to asynchronously dispatch an event

2007-03-24 Thread pgp.coppens
Ok, I have never really used AsyncToken so I don't really understand the benefits to it. But what would you add to it that would be of any use? Could you not just have an object you pass in the doAction function that is added to the token? That would probably work just as well I guess. I am

[flexcoders] How to asynchronously dispatch an event

2007-03-23 Thread pgp.coppens
Hello, I am designing an api that manages a data model. Some of the methods on the data model will trigger a server service (HTTPService), and will therefore be handled asynchronously (no choice there). Other actions, not going to the server, would be synchronous. I would like to give the user

[flexcoders] Re: How to asynchronously dispatch an event

2007-03-23 Thread pgp.coppens
Thanks for your reply Mark Why would it matter for the API whether or not event dispatching was asynchronous? Clients still listen for events and hear them; the only difference would be that the stack would get taller on the sync calls. The main reason is that I want to give the user of the

[flexcoders] ChangeWatcher question

2007-03-20 Thread pgp.coppens
Flex community, Would someone be willing to help out with the following two questions I have. 1. I need to keep track of a number of properties (about 20 per object) of a large number of objects (hundreds to thousand range). I can either use an army of ChangeWatcher instances or add some code to

[flexcoders] E4X - Copy attributes

2007-03-19 Thread pgp.coppens
Hello, I would like to copy a number of attributes from one element to a second element, but I can't find a way to achieve it To set the scene, something like var x1:XML = x1 a1='a1' a2='a2'/; var x2:XML=x2/; for each (var a:XML in [EMAIL PROTECTED]) { [EMAIL PROTECTED] = a; } Obviously the

[flexcoders] Re: E4X - Copy attributes

2007-03-19 Thread pgp.coppens
@yahoogroups.com, pgp.coppens pc.subscriptions@ wrote: Hello, I would like to copy a number of attributes from one element to a second element, but I can't find a way to achieve it To set the scene, something like var x1:XML = x1 a1='a1' a2='a2'/; var x2:XML=x2/; for each (var

[flexcoders] Re: Converting AS3 class into XML

2007-03-19 Thread pgp.coppens
You could try using describeType (I think that only returns public though). Changed what is below on the fly from something similar I had that only serialized accessors, so there might be syntax and other errors in public static function toXml(obj:Object):XML { var

[flexcoders] Re: Firefox - FileReference.upload and HTTPService do not share sessions/cookies

2007-03-17 Thread pgp.coppens
cross browser problems by switching to flex/flash. Anyway, perhaps a next reader finds this useful. Peter --- In flexcoders@yahoogroups.com, pgp.coppens [EMAIL PROTECTED] wrote: Flex fans, I am struggling with the following scenario 1. Use an HTTPService POST to authenticate to a servlet

[flexcoders] Firefox - FileReference.upload and HTTPService do not share sessions/cookies?

2007-03-16 Thread pgp.coppens
Flex fans, I am struggling with the following scenario 1. Use an HTTPService POST to authenticate to a servlet backend (works fine) 2. Use HTTPService requests to the same server and rely on previous authentication (works fine) 3. FileReference.upload with IE also picks up the same session

[flexcoders] Re: Flex builder stability?

2007-03-06 Thread pgp.coppens
test designs for the moment). Seems a little over the top to increase these numbers even more. What are other people typically using for the maximum heap size? Thanks, Peter --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 02 Mar 2007, pgp.coppens wrote

[flexcoders] Looking for EJB3 DAO generator

2007-03-05 Thread pgp.coppens
Hello Flex fans, Does anyone know of any Flex/AS DAO generator that starts from the EJB3 tags or orm.xml file(s). Thanks, Peter

[flexcoders] Flex builder stability?

2007-03-02 Thread pgp.coppens
Gentlepeople, A few days ago I have installed a demo license of flex builder and in general I like it very much. Nevertheless, ever since, my Eclipse blows up (either heap size or stack overflow) at regular occasions. I don't think I have been able to work with it for longer than an hour

[flexcoders] Looking for guidance on HTTPService sequencing

2007-02-26 Thread pgp.coppens
Hello Flex fans, Yet another flex 101 I have read and (hopefully) understood how HTTPService and its result handling works. What I am struggling with is how I can enforce a certain sequencing so that I have the guarantee that flash will not send a second request after the first has been

[flexcoders] Re: Looking for guidance on HTTPService sequencing

2007-02-26 Thread pgp.coppens
. Calling service 1, and then in the result handler for service one, calling service two, and so on. Karl Cynergy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pgp.coppens Sent: Monday, February 26, 2007 9:28 AM To: flexcoders@yahoogroups.com Subject

[flexcoders] HTTPService and HTTP redirect

2007-02-25 Thread pgp.coppens
Hello, I am getting some weird behavior when posting to a URL with HTTPService that returns an http reply with a status code of 301 Moved Permanently. I am not using FDS nor is any proxy involved. What I see happening is something along the lines of - Application uses HTTPService to POST an

[flexcoders] Re: Approaches on how to communicate with a servlet with forms authentication

2007-02-25 Thread pgp.coppens
that gives you some ideas. Paul --- In flexcoders@yahoogroups.com, pgp.coppens pc.subscriptions@ wrote: Hello Flex Fans, I am new to Flex, so upfront apologies if the question does not make any sense or is so trivial I should be ashamed to ask. Anyway... I want to set up

[flexcoders] Re: Approaches on how to communicate with a servlet with forms authentication

2007-02-25 Thread pgp.coppens
idea if the requests are secure. Hope that gives you some ideas. Paul --- In flexcoders@yahoogroups.com, pgp.coppens pc.subscriptions@ wrote: Hello Flex Fans, I am new to Flex, so upfront apologies if the question does not make any sense or is so trivial I should be ashamed

[flexcoders] Approaches on how to communicate with a servlet with forms authentication

2007-02-24 Thread pgp.coppens
Hello Flex Fans, I am new to Flex, so upfront apologies if the question does not make any sense or is so trivial I should be ashamed to ask. Anyway... I want to set up communication with a Tomcat servlet service (no FDS) that sits behind forms based authentication. I do manage to use