RE: [flexcoders] LCDS / Hibernate - How tu update only one field (without sending all references)
You probably want to set the paged-updates=true flag on that association tag. This controls whether changes to collections are sent with the parent item or not. When this is true, if you modify that collection only the differences are sent. You can't do conflict detection in this mode as well. In 2.6.1 the best way to turn this option on is to either set: load-on-demand=true with lazy=false, or page-size=xx with lazy=true or false. These both turn on paged-updates automatically. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of piotrchruscielewski Sent: Wednesday, November 26, 2008 12:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS / Hibernate - How tu update only one field (without sending all references) Hi I`m doing some bigger problem with LCDS / Hibernate annotation and still I`m reaching some problems. Lets suppose such structure public class Order ( @Id private int id; private String code; @OnetoMany(fetch=FetchType.EAGER) private SetOrderItem orders; getters, setters.. ) So it`s simple OneToMany relation - AS3 class is proper constructed with orders:ArrayCollection - everything works fine But the case it that I want the 'orders' field to be read only (because my app will never change it - it`s even view-based not table ). So i don`t want Flex to send this field back to the server , while something in Order item changes. My application should change only the code value. Right now when I`m changing code value - Flex is sending whole orders array , and is trying to update it. Can I set somehow 'read-only' flag in Hibernate/LCDS ? setting it in data-management-config , in metatadaone-to-many.. doesn`t work. Maybe I should set this field [Transient] in AS3 ? Thanks Best regards inline: image001.jpginline: image002.jpg
RE: [flexcoders] Subobjects null within Assembler when updating to LCDS 2.6
Can you send me the client and server debug logs for this case?Since they are probably big, feel free to send them to me at [EMAIL PROTECTED] I can't think of any changes that would have caused this.Everything should be backwards compatible though you might try 2.6.1 (now available for public download) as there was one bug in particular I fixed that might have cause this. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of taze170171 Sent: Tuesday, November 25, 2008 7:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Subobjects null within Assembler when updating to LCDS 2.6 Hello! We have justed updated our application from LCDS 2.5.1 to LCDS 2.6. If we now update an object, referenced subobjects which are sent from the AIR Client to the server, are null when the objects arrive at the Assembler. When createItem is called the subobjects are sent to the assembler. We use managed associations to the subobjects. The problem only occurs if the main object has been created just before. If an already existing object gets updated everything works fine. The problem does not occur if we use the LCDS 2.6 jar files together with the fds.swc from version 2.5.1. Do have to adapt a special config entry when updating to LCDS 2.6 or do we have to set another property within data-management-config.xml, so that subobjects are always sent to the Assembler? Thanks in advance, Taze inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: Right click context menus
Any class that inherits from InteractiveObject has a contextMenu property that allows you to build a custom context menu for that particular item. See the Flex docs for specifics. myTextArea.contextMenu = new ContextMenu(); myTextArea.contextMenu.hideBuiltInItems(); var defaultItems:ContextMenuBuiltInItems = myTextArea.contextMenu.builtInItems; defaultItems.print = false; ... Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cesarerocchi Sent: Saturday, November 22, 2008 9:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Right click context menus This code is not working for me. Flex 3, tried both player 9 and 10. -c. Rick's code isn't working for you? That's weird. I double checked my code, and I'm adding the context menu to the textField's parent component. So I'm not sure what's going on here. What framework/player versions are you using? - Daniel Freiman On Mon, Jun 30, 2008 at 12:07 PM, sbx33 [EMAIL PROTECTED] wrote: Well, I'm not sure what I'm doing wrong, but when I put this code in exactly, and right click in the text area, all I see in the context menu are Cut, Copy, Paste, and Select All. The only way to see a context menu with BAR! in it, is to click the very edge of the text area. This really isn't what I'm looking for. I really need to add menu items to the Cut-Copy-Paste-Select All menu. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick Winscot rick.winscot@ wrote: The mechanism for adding a custom context menu item to a standard context menu is the same as adding it to a text sensitive context menu. 1. Create a context menu 2. Create a context menu item 3. Add the custom menu item to the context menu 4. Associate the context menu with the control (in this case the text whatnot control) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init(); layout=absolute mx:Script ![CDATA[ public function init():void { var ctx:ContextMenu = new ContextMenu(); var mit:ContextMenuItem = new ContextMenuItem( BAR! ); ctx.customItems.push( mit ); foo.contextMenu = ctx; } ]] /mx:Script mx:TextArea id=foo x=401 y=249/ /mx:Application Right click in the text area and - Voila! Foo bar baby! Rick Winscot From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of sbx33 Sent: Thursday, June 26, 2008 7:44 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Right click context menus Unfortunately, I'm not sure what to even try. If anyone else has any ideas, please let me know. Thanks! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: I can't find where in my code I am doing it, but I am. I don't remember caring about the distinction between the two types of context menus. So just try it and it will probably work. - Daniel Freiman On Tue, Jun 24, 2008 at 12:46 PM, sbx33 sbx33@ wrote: Hello! Per the Flex documentation: Flash Player has three types of context menus: the standard menu (which appears when you right-click in Flash Player), the edit menu (which appears when you right-click a selectable or editable text field), and an error menu (which appears when a SWF file has failed to load into Flash Player). Only the standard and edit menus can be modified with the ContextMenu class. I have been able to add custom menu items to the standard menu however, I'm wondering if anyone knows how to add custom menu items to the edit menu on a flex component, such as a TextArea. The code I am using to add items to the standard menu is: var newCM:ContextMenu = new ContextMenu(); var newCMI:ContextMenuItem = new ContextMenuItem(New Item); newCM.customItems.push(newCMI); TIA! -Mac -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] LCDS : ReferenceError: Error #1056:
I think you may have a newer server running against an older version of fds.swc. Make sure you are using the fds.swc which comes with that version of LCDS. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Besite - Bart Sent: Thursday, November 20, 2008 10:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS : ReferenceError: Error #1056: Hi People, I am using the Data Management Service of Livecycle to keep track of users logged in. When I call the fill method the first time, everything works fine. I get back an arraycollection which is shown in a datagrid. But when I try to add a new user (by clicking on the button login), I always get the following error : ReferenceError: Error #1056: Cannot create property size on mx.data.UpdateCollectionRange. I don't find this error in Google and I am seeking on this problem for 2 days now... so, the flexcoders list is my last hope :) Thanks a lot in advance ! Bart You'll find the client side code below : ?xml version=1.0 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initApp(); mx:Script ![CDATA[ /** * Deze component bevat alle client-side chat-logica. */ import mybeans.*; import mx.messaging.channels.RTMPChannel; import mx.messaging.ChannelSet; import mx.data.DataService; import mx.collections.ArrayCollection; public var ds:DataService; [Bindable] public var users:ArrayCollection; public var user:User; public function initApp():void { users = new ArrayCollection(); ds = new DataService(user); var myrtmp:RTMPChannel = new RTMPChannel(my-rtmp, rtmp://myremoteserver:2038); ds.channelSet = new ChannelSet(); ds.channelSet.addChannel(myrtmp); ds.fill(users); } private function addUser():void { var ur:User = new User(); ur.id = 7; ur.name = test; ds.createItem(ur); } ]] /mx:Script mx:DataGrid id=dg dataProvider={users} editable=true mx:columns mx:DataGridColumn dataField=name headerText=Name editable=false/ mx:DataGridColumn dataField=id headerText=Id/ /mx:columns /mx:DataGrid mx:Button id=login label=login click=addUser() / /mx:Application inline: image001.jpginline: image002.jpg
RE: [flexcoders] Can the Data Management Service detect database changes (not client changes) ?
Unfortunately there's no great way to do this automatically... DMS provides the DataServiceTransaction api which you can use to mirror any changes you make directly to the database but we do not have a hook to call these automatically in response to a database operation. The one approach I've heard of that works in some databases is to register a trigger in the database for that operation, then publish a JMS message in response to that trigger. Then in the LC DS process, you listen for that JMS message and use the DataServiceTransaction api to push that change out to the clients. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of k.sigiscar Sent: Wednesday, November 19, 2008 3:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can the Data Management Service detect database changes (not client changes) ? Is it possible with LCDS to have the Data Management Service detect database changes ? We already have LCDS configured with a custom Java assembler. Any change commited on a client reflects to other clients and in the database too. But we also have some backend processes changing the database. In that case, is it possible to configure LCDS to detect those changes to the database and push them to the clients ? inline: image001.jpginline: image002.jpg
[flexcoders] FP 10 FileReference Security Cairngorm == Headache
FP 10 has thrown a curve for Cairngorm apps by requiring that FileReference.upload() and FileReference.download() methods be scoped within a user initiated action event handler. This requires substantial reworking of my app as I had previously implemented all my upload() and download() calls within Cairngorm business delegates. I was kind of hoping to work around this by creating my command class instances in the click event handler scope and therefore bypass this behavior without having to re-write a bunch of logic, but so far, no dice. It would be nice if the security implementation was smart enough to recognize that a series of nested function calls were within the scope of the UIA event handler. If there's a way to do that, I haven't come up with it. Any input appreciated. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Flash Player 10: FileReference.save Security User event
Jason, I'm with you on this - I just posted on this minutes before you did. In my case, I'm generating a PDF on the server side and listening for the return event of that process and then initiating FileReference.download(). Requiring that the save() or download() call occur at the top level of the event handler is, in my opinion, just too restrictive. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Ervin Sent: Wednesday, November 12, 2008 11:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash Player 10: FileReference.save Security User event Does anyone know if there is a way around the security feature of FileReference that requires a user event in order to execute FileReference.save? I have method that is called via a buttons click event, but this original eventhandler function calls three more functions via callLater (passing in the original event as an argument to callLater), but I still get the error telling me that when calling FileReference.save it has to be called because of a user event (gesture). I am I wrong to think that passing the initial click event along with callLater should be enough to pass the security requirement? Thanks, Jason -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: Flex DataService problem: unexpected unsubscribe and release collection
It is not so much a tool as just part of the HibernateAssembler in LCDS 2.6. In 2.5.1 you used to have to specify something like: destination id=support5.Account properties sourceflex.data.assemblers.HibernateAssembler/source scopeapplication/scope item-classsupport5.Account/item-class metadata identity property=id/ many-to-one property=consultant destination=support5.Consultant lazy=true / one-to-many property=accountContacts destination=support5.AccountContact read-only=true / one-to-many property=supportCases destination=support5.SupportCase read-only=true / one-to-many property=assets destination=support5.AccountAssetMatch read-only=true/ /metadata /properties /destination for each destination. Now, you just need to specify: destination id=support5.Account properties sourceflex.data.assemblers.HibernateAssembler/source scopeapplication/scope item-classsupport5.Account/item-class /properties /destination It also used to be the case that you needed to specify all destinations used by your flex app - even associated destinations. Now you just need to provide that configuration for destinations you directly access from the client (i.e. through a fill call or whatever). Any associated destinations needed by those top level destinations are created for you automatically. When the defaults for a particular association are not correct, you can specify just the associations you want to override in the metadata tag. If you want to take control entirely of the configuration for a particular destination, you just specify the identity tags yourself and we revert back to the 2.5.1 mode. Since the identity tag was required in 2.5.1 that also preserves the old behavior configurations in 2.5.1 work properly in 2.6 without change. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of uiowaflex Sent: Friday, November 07, 2008 12:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex DataService problem: unexpected unsubscribe and release collection Jeff, You mentioned that there is a tool that will automatically generate data-management-config.xml from a hibernate configuration. Is this tool available yet and if so where can I get it? Thanks! Andrew The University of Iowa --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Hi Greg, Sorry for the delay in my response. I think typically when you are using a managed association in LC DS you do not want to set any cascade operations like merge and persist. This is especially true in 2.5.1 where cascade=save-update (at least) caused problems when using managed associations. I am a little worried about the servlet filter which keeps the session open. I think for remote object that approach might work fine but for data management, it is opening and closing its own session so not sure how that would interact with your global session. One thing I noticed is that you have parent properties with lazy=false. That can be scary because it can end up pulling in a lot more of the model than you intend through that association. I usually recommend that parent always have lazy=true. Also, just to let you know the 2.6 beta is on labs.adobe.com and so you might want to give that a shot. It will generate the metadata section of the data-management-config.xml automatically from the hibernate configuration so that makes it easier to get started. In terms of the cascade settings, when you declare a managed association in LC DS for an association in hibernate, normally we do not require any cascade options enabled. I would like the assembler to not care if you do but unfortunately in 2.5.1 there is a bug when you set save-update (at least). I do have a fix for that problem but it did not make it into beta 2. If you do get on 2.6 and would like to try out the fix, drop me an email at [EMAIL PROTECTED] and I'll send you the jar. Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of gordon_greg Sent: Wednesday, April 09, 2008 9:00 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Flex DataService problem: unexpected unsubscribe and release collection Again, many thanks as this thread is shedding much needed light on my world. I'm planning on spending my day working through my Hibernate/LCDS settings, focusing on defining all bi-directional relationships and Hibernate cascading... In reviewing this thread I notice in your last response a bit of an inconsistency from a previous response: on April
RE: [flexcoders] commitRequired returns true from DataService.fill()
As the fill response is being read from the server, data management is populating your value objects by calling the set methods. Most likely one of those is doing something that sends a property change event for some object which is already managed. The client debug log would probably provide the best clue - if you add mx:TraceTarget/ you'll see what is happening after the fill response is received. All PropertyChangeEvents that are received by the client are logged. We also log messages each time a new change is put into the log to be committed.The other clue is to look at what changes get committed when you do press commit - looking at the client or server debug logs for that would tell you which objects are being modified. A good rule of thumb is to not put too much logic into your set methods - particularly avoid things that have side effects. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of uiowaflex Sent: Friday, November 07, 2008 12:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] commitRequired returns true from DataService.fill() Hi We are having a number of issues with our Flex project (using LiveCycle Data Services 2.5) and are trying to address them one by one from the beginning to iron them out. There may be something fundamental about our approach that we need to change. The first issue is that the initial fills that we perform all come back successful, but commitRequired is set to true for 2 of the 3 fills. We have to issue a commit to reset it...it seems like this shouldn't be necessary and understanding what is going on here could help us with our other issues. Has anyone encountered this kind of behavior before? The ArrayCollections filled are bound to user interface elements. We can provide more info on the database schema and such if that might be a factor. Any help would be appreciated. We have expertise in our team in the Java/hibernate side and Flash/actionscrip, but our understanding of the details of the Data Services is where we are less experienced. thanks, --Derek U. of Iowa inline: image001.jpginline: image002.jpg
RE: [flexcoders] need your advice on flash or flex
After reading your spec, I would have some definite questions about the architecture of your app. It sounds a little odd and I'm doubting that what you're thinking will fly in the real world. 1) Is there some server or client side tool to read a .psd and grab and manipulate layers? I've never heard of one, and I'd be interested if such exists. What problem are you trying to solve? Is there some reason your banners must be stored in .psd file? 2) Why are you focused on editing the .fla file and storing it in the DB? I would think that images and text would be loaded into a single .swf at runtime and any data about the image/text would be stored in the DB, not the flash file itself. What's a stored .fla file going to get you anyway? You still have to compile it. I would think that any solution that's going to work would be based around a data model and loading/manipulating data at runtime, not manipulating .psd and .fla files. The editing results (such as a snapshot of your edited image, and the text manipulation (font size, text itself, position and so forth)) can be saved to the db and re-loaded, edited, etc. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vuthecuong Sent: Wednesday, October 29, 2008 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] need your advice on flash or flex On next month I will incharge of web-based app project that: == 1) - Read layers of PSD file (photoshop) then create banner of each layer. - Display images in categories. - Drage and drop image into banner (gif file) frame. - rotate, resize text and image inside that banner. 2) - insert flash file (.fla?) to DB. - load that flash files into web GUI - edit text and image inside that flash file. - save back to DB. == So my questions are: - what tool I should use? flash? or flex? or both? or ajax with php? and why? - about insert flash file (.fla?) to DB, this web app is for intranet use only, and size of flash file is less then 300kb. So should I need to pay attention on performance etc? - especially edit text and image inside flash file (fla?), flash or flex is better to use? why? I'm very confused. Please help me. I need your help. regards, -- View this message in context: http://www.nabble.com/need-your-advice-on-flash-or-flex-tp20227710p20227 710.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Secure AMF - Error #2004: One of the parameters is invalid
This error usually means that the player has received an Externalizable type via AMF but there's not an Externalizable object registered for that alias. I am having trouble coming up with a way that would happen only on an HTTP based AMF channel since RTMP also encodes its data using AMF, it should see this error too.Probably sending the output from mx:TraceTarget (in flashlog.txt on the client) and enabling the level=Debug for the Endpoint.* target in services-config.xml would contain enough info to track this down. Feel free to send it to me offlist as that can be a big file ([EMAIL PROTECTED]mailto:[EMAIL PROTECTED]). The other things I'd check are that your rpc.swc and fds.swc are of the right version and match your server version. We added a small messages feature in LCDS2.6 which uses Externalizable for messages to make the wrapper smaller. That should be turned off by default for 2.5.1 clients but maybe something is getting messed up there. You can turn this off via the enable-small-messages=false flag in the channel's serialization properties (see resources/config/services-config.xml for an example). Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of taze170171 Sent: Tuesday, October 28, 2008 3:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Secure AMF - Error #2004: One of the parameters is invalid Hello! We are using AIR together with LCDS. Until now we were using an RTMPS channel for communication. There everything works fine. For fallback handling we configured now an Secure AMF Channel. When using this channel the following error occurs when calling fill methods: ArgumentError: Error #2004: One of the parameters is invalid. Sync methods work fine!! The fill methods return type is Collection We also tried List... - same error. At the client we use mx.collections.ArrayCollection. The config files look like: Client config.xml: ... channel id=my-secure-amf typesecure-amf-polling/type endpointhttps://localhost:8443/messagebroker/amfsecure/endpoint interval8000/interval /channel ... services-config: ... channel-definition id=my-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint url=https:// {server.name}:8443/messagebroker/amfsecure class=flex.messaging.endpoints.SecureAMFEndpoint/ properties !--HTTPS requests on some browsers do not work when pragma no-cache are set -- add-no-cache-headersfalse/add-no-cache-headers /properties /channel-definition ... Thanks in advance, Taze inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS 2.6 and Hibernate - Does it work?
We did change from hibernate 3.1 to 3.2 in LCDS2.6 but otherwise I don't know of any compatibility problems introduced. We did that primarily so we could support the hibernate JPA annotations and there might have been a tweak or two to the hibernate assembler to get it to work in that environment. A good first step to diagnosing your problems would be to turn on the debug logging (in services-config.xml, set level=Debug and makes sure Service.*, Configuration and Message.* are in the patterns below).From those logs we can probably get a clue as to what is going on. If they are large, feel free to send them to me offlist: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of headjoog Sent: Friday, October 17, 2008 5:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS 2.6 and Hibernate - Does it work? Hi - I tried upgrading from LCDS 2.5 to LCDS 2.6. I have a project using Hibernate 3.1 and it was working fine in LCDS 2.5. But after upgrading LCDS 2.6 things have broken and I'm having a bear of a time figuring out what has gone wrong. I roll it back to 2.5 and it works. Has anyone else tried this? Or is there anything from Adobe on Hibernate compatibility with LCDS 2.6? Thanks, Joe inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: Reusing HTTPService
I do like this approach - that's what I do when I code using AsyncTokens. In the SDK's trunk depot, we have implemented a different way of using the AsyncTokens which makes it easier to add per-call event listeners and result objects particularly from MXML. It is in the class mx.rpc.CallResponder. Here's a sample of how you'd use it: mx:CallResponder id=myResponder result=optionalEventHandler(event) fault=optionalFaultHandler(event)/ mx:Button click=myResponder.token = myService.getAllEmployees()/ mx:DataGrid dataProvider={myResponder.lastResult}/ Each CallResponder monitors a single AsyncToken at a time and propagates its result and fault events to listeners on the call responder. It also stores the lastResult property. This allows you to cache the previous result while the next call is in progress. Any feedback folks have on this approach will be appreciated. I'll admit that modifying the token after the call was made is counter-intuitive. It works because the AS VM cannot deliver any events on that token until after the current executing code path has completed. We did consider passing in the token as an argument to the async calls but didn't think it really made things easier to understand and adds a risk that you'll use the same token for two simultaneous calls. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lagos_tout Sent: Friday, October 17, 2008 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Reusing HTTPService I like! This line says it all: service.send().addResponder(new MyIResponder(resultB, faultB)); Thanks much. I think this is the solution. It meets my requirements: no long conditionals; one-to-one matching of service calls to fault/result handlers; reuse of the same service object; and, if i create a separate class (implemementing IResponder and containing it's own fault and result handlers, rather than passing it in as you've done) for each type of service call, i think i get to live another day by the OO mantra closed to modification, open to extension. Weird though how Flex requires one to add the responder after the call is already made, don't you think? One would think the responder should be in place before the call to service.send(). Thanks again! LT --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, shaun [EMAIL PROTECTED] wrote: How about something like this: (note: I've not tried it, just slapped it straight into the email) public class MyClassThatInvokesHTTPServices { //inner helper class. class MyIResponder implements IResponder{ public var f:Function; public var r:Function; public MyIResponder(r:Function, f:Function){ this.r = r; this.f = f; } public function fault(info:Object):void { f.call(info); } public function result(result:Object):void { r.call(result); } } //Your handlers for service calls. protected function resultA(result:Object){ ... } protected function faultA(info:Object){...} protected function resultB(result:Object){ ... } protected function faultB(info:Object){...} var service:HTTPService ...//assume exists, reused for various calls. //send for service A. funciton sendA(args:Object){ service.url = ../A.html; service.send(args).addResponder(new MyIResponder(resultA, faultA)); } //send for service B. function sendB(){ service.url = ../B.html; service.send().addResponder(new MyIResponder(resultB, faultB)); } } [snip] --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, lagos_tout lagos.tout@ wrote: Hi, I'm re-using an instance of HTTPService, changing the request arguments to get different responses from the server. But I found that if, for instance, I made 3 calls this way with the HTTPService, each of the 3 result handlers registered for each call is executed every time a result returned. I solved this by storing a reference to the unique AsyncToken returned by each service call and matching it to the AsyncToken contained in each ResultEvent's token property in order to determine which result handler to execute. I'm not terribly happy with this setup. It seems messy. I'd appreciate any suggestions on how I can reuse an HTTPService instance without ending up with long switch statements with countless if thisAsyncToken then do thisHandler, else if thatAsyncToken then do thatHandler... and so on. Thanks much. LT inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: LCDS 2.6 and Hibernate - Does it work?
We did rename some of the jar files so make sure you remove all of the old flex-messaging* jar files before copying in the new ones. In particular flex-messaging.jar went away and is replaced by lots of smaller jar files flex-messaging-data.jar etc. This was to implement the BlazeDS/LCDS split. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of headjoog Sent: Friday, October 17, 2008 11:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS 2.6 and Hibernate - Does it work? Thanks for the follow-up Jeff. I couldn't even get the LCDS CRM sample to work. I will try again with the log settings you suggested. If there's something suspicious I'll post. Joe inline: image001.jpginline: image002.jpg
[flexcoders] Open/Save Dialog for FileReference.download()
My experience using FileReference.download() is that the dialog does not provide open capability, only save. My clients want save also. Is there any hope for the future that this will be supported? This, along with the ability to invoke the default file editor for file types in AIR, would be two very much needed and wanted capabilities. Anyone know anything about this? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Re: Flex, Coldfusion, Air
Of course, but once a flex app is downloaded to the client, it will not need to be downloaded again until some event (like clearing a browser cache, etc.) forces it to be downloaded again. Flex apps don't need good bandwidth to open, in fact, after initial download, they should perform the same or better than a normal html app. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stinasius Sent: Friday, October 10, 2008 9:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex, Coldfusion, Air so if the application is ported(if i may say) to AIR it reduces the time it takes for the application to open if it where just a flex app(as in flex apps need good bandwidth to open so if its ported to AIR that issue is solved right?) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Flex Builder 4?
I believe I saw H2 2009 somewhere for Flex 4, which I'm assuming means second-half of 2009. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Friday, October 10, 2008 9:09 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex Builder 4? No one from Adobe has said anything yet, but one must assume it will be out at the same time as Flex 4, which is most likely sometime in 2009. Dimitrios Gianninas RIA Developer Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of oneworld95 Sent: Friday, October 10, 2008 8:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder 4? How far away is Flex Builder 4 from release? I've downloaded the Gumbo SDK files from the Adobe OpenSource site but wondered when the next version of Flex Builder will be available. Thanks. AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender.
RE: [flexcoders] Re: Flex, Coldfusion, Air
Why would it 'fail'? - I'm not getting that. Like I said, it is basically a one-time hit, because the swf is going to be cached on the user's computer. It is certainly no more difficult than building and distributing an AIR app. Your use case for AIR should be based, IMO, on AIR's particular capabilities. Don't forget that your AIR app will probably require updating, which will result in more downloads for your users. Don't get me wrong, AIR is great and I'm using it for certain projects but don't get the idea that using it is going to completely solve your bandwidth problem. You can also substantially reduce the download time for a new version of your Flex app by using Runtime Shared Libraries. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stinasius Sent: Friday, October 10, 2008 9:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex, Coldfusion, Air yes but on a broadband 64kbps line shared by about 20 pcs, a flex app might fail or take a long time to download. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Create Help System in Flex - how to display html in a canvas or component?
If your HTML rendering needs are rudimentary, you can use HTTPService to retrieve HTML files and use them for the htmlText property of the Text control. It supports (but not that well) such things as unordered lists, paragraphs and such. I've used this in combination with a vew stack and button bar to display multiple pages of help text. It's crude, but it works. Conceivably you could incorporate a Tree component and use that as a menuing system to retreive content via HTTP and display it in your content area. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, October 10, 2008 2:25 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Create Help System in Flex - how to display html in a canvas or component? Displaying full html in Flex (Flash Player) is not yet possible. What are your requirements? The simplest solution is to use a separate browser to display the html help pages. The Flex side needs to know where in the app the user is, and be able to determine the url to display. Using ExternalInterface you can exercise quite a bit of control over that window's behavior. Doing it all in Flex will be more difficult, primarily on the editing side. Dynamic display based on xml content is easy, but building a dynamic layout that looks like a help system might be a bit tricky. Directly editing xml files is not advised for non-developers, so you would need some king of wysiwyg editor... I would really like to see a Flex integration of something like RoboHelp. Who owns RoboHelp anyway? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scottyale2008 Sent: Thursday, October 09, 2008 6:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Create Help System in Flex - how to display html in a canvas or component? I've built a flex gui that I want to display html files (or least that was my original thought). I tried doing some of the IFrame techniques but it doesn't seem to work on a mac. Anyway, the end-goal is for creating a help system. When certain links are clicked, I just want to display text in panel or component. The html files (or text files) would be separate so they can be easily edited and/or changed without a recompile of the swf. Should I try doing the external files in html, txt, or xml files? If XML, would I just fill up the node with pages of the text that represent the text? Sure I could do this with an html editor without flex, but I want this in a flex app!
[flexcoders] Adding labels to PlotCharts - Label Placement Algorithm
I'm adding text labels to multiple PlotChart series (which is not supported by Flex 3 DataViz components out of the box) and the issue becomes how to place the labels so they don't overlay each other. It's a PITA. So, I'm just throwing it out there to see if anyone has messed around with this and has any recommendations. I suppose it is similar to the concept of collision detection, which numerous people have worked with in Flash. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] ComboBox in Component won't open to Saved Value
The Combobox by itself does not really support what you're trying to do. As Tracy said there is sample code you can draw on to extend the ComboBox to accept a 'selectedValue' parameter or something of the sort, which in turn will fire internal logic to determine which item in the dataProvider matches and to set the selectedIndex accordingly. The other part of this is using binding. To have your instantiated combobox to update its selectedIndex when a value changes you need to reference a bindable value. If another code alters that value, it will then re-fire the internal logic in your custom ComboBox. {Bindable] private var dp:Array = [{data:'foo',label:'foo'},{data:'foo1',label:'foo1'},{data:'foo2',label: 'foo2'}]; [Bindable] private var myVal:String = foo; local:CustomComboBox dataProvider={dp} selectedValue={myVal}/ Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Pride Sent: Wednesday, October 08, 2008 1:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value This seems absurdly difficult for so simple a function. I am trying to save a value from a popup and get it back when the list is double clicked and the form is represented with a different record selected. Not exactly rocket science. I have tried every single event and nada. Is there an on Load Why not? It seems so obvious. Creation complete only works the first time the form component is presented. The functions are private function closeRolePop(event:Event):void { ComboBox(event.target).selectedItem.label}; private function openRolePop(event:Event):void { var i:uint; for(i=0; i arrRoles.length; i++){ if(arrRoles.getItemAt(i).label == currentPerson.Role){ rolePop.selectedIndex = i; }}} Help Please this is really getting to me cause it should be so simple --- On Wed, 10/8/08, Dan Pride [EMAIL PROTECTED] wrote: From: Dan Pride [EMAIL PROTECTED] Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value To: flexcoders@yahoogroups.com Date: Wednesday, October 8, 2008, 12:38 PM Creation complete works the first time but the component is displayed when you click on a list, and subsequent selections are not displayed. I am having trouble figuring out which on is the correct event.? Sorry but I am relatively new at this kind of programming. Thanks Dan --- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote: From: Tracy Spratt [EMAIL PROTECTED] Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value To: flexcoders@yahoogroups.com Date: Wednesday, October 8, 2008, 11:34 AM Why are you doing that in the open event? Try creationComplete instead. Or set it directly without the function. Or bind selectedIndex to a bindable variable. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Pride Sent: Wednesday, October 08, 2008 10:57 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value Thanks for the response. I understand what needs to be done as you described but I still have one problem. I tried this before. private function openGenderPop(event:Event):void { genderPop.selectedIndex = 1; } The ComboBox opened to the zero value not the 1. When I clicked on the box it opened to have the 1 value preselectect but did not present upon opening. I am referencing it like this and must be missing some kind of kick event? mx:ComboBox id=genderPop close=closeGenderPop(event) open=openGenderPop(event) dataProvider={arrGender} x=583.5 y=89 width=116 / Thanks again. This board is GREAT ! Dan Pride --- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com wrote: From: Tracy Spratt [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Date: Wednesday, October 8, 2008, 11:05 AM ComboBox.selectedItem will only work if you assign a *reference to an item in the ComboBox dataProvider*. This is rarely possible and is not in your case. What you must do is loop over the items in the CobmoBox.dataProvider and compare the appropriate property's value to the value you want to match. When a match is found, use the loop indes to set the ComboBox's selectedIndex. This is simple enough to do in a one-off situation. If you need this often, then you might want to use an extended ComboBox. Making a generic one is a bit tricky, because the Combo Box dataProvider
RE: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly
Charlie, I spent a lot of time on this. In my case it was only when using FireFox and when HTTPs was being used. Basically the long requests time out - it is upload file size dependent. What I ended up doing is listening for the COMPLETE event and then round-tripping to the server to retreive the data I wanted about the upload. When I did my upload, I passed a UUID so I had a common thread I could count on. Even though your issue may be slightly different, using a UUID in your URLRequest object may help you workaround the issue. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Hubbard Sent: Tuesday, October 07, 2008 7:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly I'm having trouble getting a DataEvent.UPLOAD_COMPLETE_DATA event when uploading many FileReferences. It randomly drops events, but I get all of the progress events, and Event.COMPLETE. I only get some of UPLOAD_COMPLETE_DATA. I'm aware that UPLOAD_COMPLETE_DATA is not sent if the server doesn't return any data, but I'm sending data for all of these uploads (because it all traverses through he same code). So if I get even one callback I should get all of them in theory. My first theory was that my server process was taking too long and flash timed out the response so I offloaded what was taking so long, but that didn't improve anything. Any idea what's going on here? Any other ideas on what I can try? I'm using a Ruby on Rails server backend. Charlie
RE: [flexcoders] LiveCycleDS - Problem Accessing RemoteObject over Secure AMF
Do you have an SSL cert installed on your local development environment? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cwicky99 Sent: Tuesday, October 07, 2008 1:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LiveCycleDS - Problem Accessing RemoteObject over Secure AMF I'm trying to access a destination over SSL with the my-secure-amf channel. I have a destination defined in remoting-config.xml that looks like: destination id=foo channels channel ref=my-secure-amf / /channels /destination However when my code tries to use this destination I get: NetConnection.Call.Failed: HTTP: Failed: url: 'https://localhost:8443/myapp/messagebroker/amfsecure' The channel in services-config.xml is defined as: channel-definition id=my-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint url=https://{server.name}:{server.port}/{context.root}/messagebroker/am fsecure class=flex.messaging.endpoints.SecureAMFEndpoint/ properties !--HTTPS requests on some browsers do not work when pragma no-cache are set-- add-no-cache-headersfalse/add-no-cache-headers /properties /channel-definition Any thoughts? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly
Charlie, Yes, PITA, for sure. I think there are a couple of related issues with FileReference uploads and FF - particularly when SSL is involved - like sessions not being shared and such. FF evidently clones a browser instance to do the uploads. You can add a jsessionid on your request but that doesn't address this timeout thing. Hopefully these issues are on the radar for Flash Player 10. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Hubbard Sent: Tuesday, October 07, 2008 3:27 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly Thanks Jeff. That just might work for what I'm doing. What a pain in the ass, but your suggestion is pragmatic. I'm sure others have encountered this problem. Any explanation about why Flex/Flash is not upholding it's end of the bargain? Is it just a simple issue of Flash's URLRequest timing out waiting on the serverr? My server is responding in about 500ms on the low end at around 200ms on the upper end. But, it still just drops some of the requests. Charlie On Tue, Oct 7, 2008 at 9:59 AM, Battershall, Jeff [EMAIL PROTECTED] wrote: Charlie, I spent a lot of time on this. In my case it was only when using FireFox and when HTTPs was being used. Basically the long requests time out - it is upload file size dependent. What I ended up doing is listening for the COMPLETE event and then round-tripping to the server to retreive the data I wanted about the upload. When I did my upload, I passed a UUID so I had a common thread I could count on. Even though your issue may be slightly different, using a UUID in your URLRequest object may help you workaround the issue. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Hubbard Sent: Tuesday, October 07, 2008 7:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FileReference's DataEvent.UPLOAD_COMPLETE_DATA event being dropped randomly I'm having trouble getting a DataEvent.UPLOAD_COMPLETE_DATA event when uploading many FileReferences. It randomly drops events, but I get all of the progress events, and Event.COMPLETE. I only get some of UPLOAD_COMPLETE_DATA. I'm aware that UPLOAD_COMPLETE_DATA is not sent if the server doesn't return any data, but I'm sending data for all of these uploads (because it all traverses through he same code). So if I get even one callback I should get all of them in theory. My first theory was that my server process was taking too long and flash timed out the response so I offloaded what was taking so long, but that didn't improve anything. Any idea what's going on here? Any other ideas on what I can try? I'm using a Ruby on Rails server backend. Charlie
RE: [flexcoders] Creating a Modal Window
The Canvas component doesn't have a backgroundColor unless you give it one - in other words its background will be transparent and showing everything underneath it by default. By stipulating a backgroundColor you should be OK. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Monday, October 06, 2008 11:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Creating a Modal Window Is there an easy way to create a modal window without using the popup manager? I want to gray out every window but the current one so no mouse clicks or keyboard input can happen except this window. I have tried using the PopUpManager with a Canvas, but Canvas in the PopUpManager turns the background to transparent. The whole screen looks grayed out. I am using the Canvas to draw on over the top of another component. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] LiveCycleDS + Java Enums
The enum handling is part of the AMF serialization so you should be able to use that with LC DS2.6 as well.Since AS does not have a native enum type, by default a Java5 enum gets serialized to the client using the string value of the enum. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cwicky99 Sent: Monday, October 06, 2008 8:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LiveCycleDS + Java Enums This post: http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/ Says that LiveCycleDS 2.6 handles Java enum's out of the box. Does anyone know if this only works with DataService objects? I am using a Consumer to listen to a JMS topic...but it doesn't seem to work. inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: LiveCycleDS + Java Enums
That EnumProxy stuff is for the use case where you want to have an ActionScript class which represents the enumerated type. That gives you compile time type-checking of enumerated values but adds a bit more code to the process. If you do not mind using a String in AS to represent the enum, it works out of the box... no need to register the PropertyProxy. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cwicky99 Sent: Monday, October 06, 2008 11:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LiveCycleDS + Java Enums Ok, so I don't need to use EnumProxy from the proposed work around (https://bugs.adobe.com/jira/browse/BLZ-17) anymore? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: The enum handling is part of the AMF serialization so you should be able to use that with LC DS2.6 as well. Since AS does not have a native enum type, by default a Java5 enum gets serialized to the client using the string value of the enum. Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of cwicky99 Sent: Monday, October 06, 2008 8:18 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] LiveCycleDS + Java Enums This post: http://www.drflex.eu/2008/07/livecycle-es-data-services-data-management-and-java-enums/ Says that LiveCycleDS 2.6 handles Java enum's out of the box. Does anyone know if this only works with DataService objects? I am using a Consumer to listen to a JMS topic...but it doesn't seem to work. inline: image001.jpginline: image002.jpg
RE: [flexcoders] DataVisualization RSL Issues
Matt, I built a simple Flex project that replicates the issue. Should I enter a bug? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, September 30, 2008 1:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataVisualization RSL Issues Jeff, were you suing Modules as well? Is this your bug? http://bugs.adobe.com/jira/browse/FLEXDMV-1719 Matt On 9/30/08 9:37 AM, Battershall, Jeff [EMAIL PROTECTED] wrote: I've narrowed this down a bit. First of all, the behavior is restricted to the ADG and to the rendering of row data. Secondly, the AGD seems to not render fonts that have been imported. If I reference a system font (without importing it) it renders. If I choose to import that font, it won't render. I'll try to come up with a replicable test case with sample code but it would seem to be a bug with the datavisualization_3.1.0.2710.swz. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Battershall, Jeff Sent: Tuesday, September 30, 2008 10:09 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataVisualization RSL Issues Trying to use the datavisualization_3.1.0.2710.swz as an RSL. I've worked through the stream errors and I've used the most recent version avaiable from http://blogs.adobe.com/flex/archives/2008/09/updated_rsl_for_flex_data_v isu.html. However, row text is not rendering in an AdvancedDataGrid I'm using for a report. If I merge into code, I don't get that issue. Any ideas? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] DataVisualization RSL Issues
OK Matt, It's issue SDK-17155. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, October 02, 2008 1:02 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataVisualization RSL Issues Yes please On 10/2/08 8:47 AM, Battershall, Jeff [EMAIL PROTECTED] wrote: Matt, I built a simple Flex project that replicates the issue. Should I enter a bug? Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Matt Chotin Sent: Tuesday, September 30, 2008 1:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] DataVisualization RSL Issues Jeff, were you suing Modules as well? Is this your bug? http://bugs.adobe.com/jira/browse/FLEXDMV-1719 Matt On 9/30/08 9:37 AM, Battershall, Jeff [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com wrote: I've narrowed this down a bit. First of all, the behavior is restricted to the ADG and to the rendering of row data. Secondly, the AGD seems to not render fonts that have been imported. If I reference a system font (without importing it) it renders. If I choose to import that font, it won't render. I'll try to come up with a replicable test case with sample code but it would seem to be a bug with the datavisualization_3.1.0.2710.swz. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Battershall, Jeff Sent: Tuesday, September 30, 2008 10:09 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataVisualization RSL Issues Trying to use the datavisualization_3.1.0.2710.swz as an RSL. I've worked through the stream errors and I've used the most recent version avaiable from http://blogs.adobe.com/flex/archives/2008/09/updated_rsl_for_flex_data_v isu.html. However, row text is not rendering in an AdvancedDataGrid I'm using for a report. If I merge into code, I don't get that issue. Any ideas? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] DataVisualization RSL Issues
Matt, Seems similar but we're not using modules. The ADG issue occurs in a TitleWindow instance. I've tried importing the advancedDataGridItemRenderer in the main file and that does not fix it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, September 30, 2008 1:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataVisualization RSL Issues Jeff, were you suing Modules as well? Is this your bug? http://bugs.adobe.com/jira/browse/FLEXDMV-1719 Matt On 9/30/08 9:37 AM, Battershall, Jeff [EMAIL PROTECTED] wrote: I've narrowed this down a bit. First of all, the behavior is restricted to the ADG and to the rendering of row data. Secondly, the AGD seems to not render fonts that have been imported. If I reference a system font (without importing it) it renders. If I choose to import that font, it won't render. I'll try to come up with a replicable test case with sample code but it would seem to be a bug with the datavisualization_3.1.0.2710.swz. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Battershall, Jeff Sent: Tuesday, September 30, 2008 10:09 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataVisualization RSL Issues Trying to use the datavisualization_3.1.0.2710.swz as an RSL. I've worked through the stream errors and I've used the most recent version avaiable from http://blogs.adobe.com/flex/archives/2008/09/updated_rsl_for_flex_data_v isu.html. However, row text is not rendering in an AdvancedDataGrid I'm using for a report. If I merge into code, I don't get that issue. Any ideas? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] DataVisualization RSL Issues
Matt, One additional question about RSLs in general - if you had a corrected RSL, how would you force the new one to be downloaded to the client? It would seem that your sole recourse is to compile against a new RSL which has a unique build number - true or not true? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, October 01, 2008 9:10 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DataVisualization RSL Issues Matt, Seems similar but we're not using modules. The ADG issue occurs in a TitleWindow instance. I've tried importing the advancedDataGridItemRenderer in the main file and that does not fix it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, September 30, 2008 1:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DataVisualization RSL Issues Jeff, were you suing Modules as well? Is this your bug? http://bugs.adobe.com/jira/browse/FLEXDMV-1719 Matt On 9/30/08 9:37 AM, Battershall, Jeff [EMAIL PROTECTED] wrote: I've narrowed this down a bit. First of all, the behavior is restricted to the ADG and to the rendering of row data. Secondly, the AGD seems to not render fonts that have been imported. If I reference a system font (without importing it) it renders. If I choose to import that font, it won't render. I'll try to come up with a replicable test case with sample code but it would seem to be a bug with the datavisualization_3.1.0.2710.swz. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Battershall, Jeff Sent: Tuesday, September 30, 2008 10:09 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataVisualization RSL Issues Trying to use the datavisualization_3.1.0.2710.swz as an RSL. I've worked through the stream errors and I've used the most recent version avaiable from http://blogs.adobe.com/flex/archives/2008/09/updated_rsl_for_flex_data_v isu.html. However, row text is not rendering in an AdvancedDataGrid I'm using for a report. If I merge into code, I don't get that issue. Any ideas? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] DataVisualization RSL Issues
Trying to use the datavisualization_3.1.0.2710.swz as an RSL. I've worked through the stream errors and I've used the most recent version avaiable from http://blogs.adobe.com/flex/archives/2008/09/updated_rsl_for_flex_data_v isu.html. However, row text is not rendering in an AdvancedDataGrid I'm using for a report. If I merge into code, I don't get that issue. Any ideas? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] DataVisualization RSL Issues
I've narrowed this down a bit. First of all, the behavior is restricted to the ADG and to the rendering of row data. Secondly, the AGD seems to not render fonts that have been imported. If I reference a system font (without importing it) it renders. If I choose to import that font, it won't render. I'll try to come up with a replicable test case with sample code but it would seem to be a bug with the datavisualization_3.1.0.2710.swz. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Tuesday, September 30, 2008 10:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataVisualization RSL Issues Trying to use the datavisualization_3.1.0.2710.swz as an RSL. I've worked through the stream errors and I've used the most recent version avaiable from http://blogs.adobe.com/flex/archives/2008/09/updated_rsl_for_flex_data_v isu.html. However, row text is not rendering in an AdvancedDataGrid I'm using for a report. If I merge into code, I don't get that issue. Any ideas? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: RE[flexcoders] S: LCDS - how can I improve the createItem function?
Gosh that 2 minutes does sound like a long time for 1000 items.Can you turn on the debug log and send that along? Since it will be big, probably best to send it to me offlist at [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]. It might be interesting to try this with and without the “autoSync=true” option enabled too… after we apply the changes to the database, there is a step with autoSync where we need to find all interested clients. With large object graphs, this can be time consuming. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kcCedrics Sent: Monday, September 29, 2008 7:07 AM To: flexcoders@yahoogroups.com Subject: RE: RE[flexcoders] S: LCDS - how can I improve the createItem function? Thanks Jeff for your answer, but I didn't really understand how can I create all 1000 items using a remote object call? I guess that I can make a function which add many items thanks to an array. But I don't know how you notify all clients that the items are added. Moreover, in my example when I add 1000 items : it takes 2 minutes!! So I'm surprised that LCDS doesn't have any mechanism to improve the items adding, with a createItemS function. Cédric -- View this message in context: http://www.nabble.com/LCDS---how-can-I-improve-the-createItem-function--tp19687486p19724560.html Sent from the FlexCoders mailing list archive at Nabble.com. inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS deadLock with managed assocation
Can you send me the complete stack trace for this deadlock? If it is big, feel free to send it to me at [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kcCedrics Sent: Monday, September 29, 2008 5:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS deadLock with managed assocation Hi everybody, I've got a really weird problem with LCDS!! I'm using 4 data service for my objects A, B, C, D. My object A has a collection of B, a collection of C and a collection of D. So in my datamanagement-config.xml I defined my destination like this: destination id=A-Mapping channels=my-rtmp adapter ref=java-dao / properties metadata identity property=FAid/ one-to-many property=FBList destination=B-Mapping/ one-to-many property=FCList destination=C-Mapping/ one-to-many property=FDList destination=D-Mapping/ /metadata ... destination id=B-Mapping channels=my-rtmp adapter ref=java-dao / properties metadata identity property=FBid/ /metadata ... In my actionscript code I have this: FADS = new DataService(A-Mapping); FADS.fill(FAList); FBDS = new DataService(B-Mapping); FBDS.fill(FBList); So my problem is that sometimes, my application seems to be in a dead lock state, and when I'm looking the jboss log I see that it's locked just after finishing the A fill method, it's never getting the B objects. Moreover after this, my jboss is completly locked, none of new client can get A or B objects. I also used StackTrace software and I'm getting this log: my-rtmp-SocketServer-WorkerThread-32 prio=6 tid=0x29a11400 nid=0x39c waiting for monitor entry [0x2d3ef000..0x2d3efa94] java.lang.Thread.State: BLOCKED (on object monitor) at flex.data.SequenceManager.createSequence(SequenceManager.java:2251) - waiting to lock 0x091f0a10 (a flex.data.SequenceManager) at flex.data.SequenceManager.manageSequence(SequenceManager.java:786) at flex.data.SequenceManager.manageSequence(SequenceManager.java:755) at flex.data.DataService.serviceMessage(DataService.java:571) at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1495) ... Is my problem can be relevant to the managed association? Thanks for your answer Cédric -- View this message in context: http://www.nabble.com/LCDS-deadLock-with-managed-assocation-tp19722926p19722926.html Sent from the FlexCoders mailing list archive at Nabble.com. inline: image001.jpginline: image002.jpg
RE: RE[flexcoders] S: LCDS - how can I improve the createItem function?
So if you have all 1000 in the same batch, it should essentially just be processing 1000 insert statements. While that is happening, your commit call is still outstanding - i.e. it has not yet received the response back.You could pretty easily add a result handler for that commit operation so your user knows when it is finished (i.e. set up a busy cursor when the commit occurs and remove it when the commit result/fault comes back). I guess the other question is whether there is a more efficient way to insert all of those 1000 items. LC DS will add some overhead onto that process of creating those items but I would not think it would be a ton more than just the overhead of running 1000 insert statements. It would certainly be possible to create all 1000 items on the server using a remote object call, then use the DataServiceTransaction.createItem call to notify the data management system (and the flex client) that they are all there. It's not clear though that this would be more efficient. Note too that the LC DS debug logging is pretty expensive so if you turn that off, it will speed up the server a lot. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kcCedrics Sent: Friday, September 26, 2008 6:34 AM To: flexcoders@yahoogroups.com Subject: Re: RE[flexcoders] S: LCDS - how can I improve the createItem function? Thanks for your answer. I already did that. But the problem is the same : I have LCDS which make 1000 createItem request. In fact in my application I have my 1000 items in a datagrid, but when I check my lcds log file I see that LCDS is still creating item -- View this message in context: http://www.nabble.com/LCDS---how-can-I-improve-the-createItem-function--tp19687486p19688593.html Sent from the FlexCoders mailing list archive at Nabble.com. inline: image001.jpginline: image002.jpg
RE: [flexcoders] OT: FP Ubiquity Stats Lack Silverlight Comparison
Why would you want to do that? Isn't it the classic marketing error to provide free airtime to the competition? In addition, if you start reporting such statistics you become responsible for their accuracy and that's not something that I think Adobe would be interested in, as least as regards a competitor's product. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, September 23, 2008 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] OT: FP Ubiquity Stats Lack Silverlight Comparison Excuse the mild OT, just curious if anyone knows why Microsoft Silverlight stats are not included here in penetration comparisons: http://www.adobe.com/products/player_census/flashplayer/ It would seem to me, with Silverlight having fairly low penetration stats I would imagine (even after the Olympics) that this would be a huge marketing plus for Adobe. Millward Brown, commissioned by Adobe, did the survey just this past June, it seems silly the product most closely competing with the Flash Player is Silverlight and it's not included in the comparison. And if someone at Adobe is listening, this is important since this page is linked to from some Creative Suite 4 promo pages on the site, for example, the page touting Illustrator's Flash player capabilities: http://www.adobe.com/products/illustrator/?promoid=BPDEG Anyway, just a mild rant for the day. J Maybe someone can pass this on to the right folks at Adobe. Jason Merrill Bank of America Instructional Technology Media Join the Bank of America Flash Platform Developer Community blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as px Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal Innovative Learning Blog blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default. aspx subscribe blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts /SubNew.aspx?List=\%7b41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\%7dSource=ht tp://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive. aspx .
RE: [flexcoders] Re: problem with the flex application in MAC
Something to look into, but in your page source, the requested player version is 9.0.28 - and that's not released yet, AFAIK. Possibly that produces unwanted behavior on the Mac Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sudha_bsb Sent: Monday, September 22, 2008 2:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: problem with the flex application in MAC Yeah, the same link works in Windows machine. Any idea why this can happen Thanks, Sudha. --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: I am using a PC and getting a blank screen too and nothing happens, just wanted to let you know. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: sudha_bsb To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 12:46 PM Subject: [flexcoders] problem with the flex application in MAC Hi, We have a strange problem with the flex application. We have a website developed in flex and it simply doesn't work in MAC. http://www.sportzhubmedia.com/arc2008/ The application makes extensive use of flex states. When viewed via a Mac Osx any verion firefox or safari...gives a blank screen. What's been tried so far... --Random strip down to no states, It's only by removing all states that it works on Safari, we do know at which point the problem is cleared... Can some help us why this can happen with flex.only with MAC... Please help... Thanks, Sudha. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: problem with the flex application in MAC
Please ignore - not at my most alert today. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Monday, September 22, 2008 3:25 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: problem with the flex application in MAC Something to look into, but in your page source, the requested player version is 9.0.28 - and that's not released yet, AFAIK. Possibly that produces unwanted behavior on the Mac Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sudha_bsb Sent: Monday, September 22, 2008 2:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: problem with the flex application in MAC Yeah, the same link works in Windows machine. Any idea why this can happen Thanks, Sudha. --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: I am using a PC and getting a blank screen too and nothing happens, just wanted to let you know. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: sudha_bsb To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 12:46 PM Subject: [flexcoders] problem with the flex application in MAC Hi, We have a strange problem with the flex application. We have a website developed in flex and it simply doesn't work in MAC. http://www.sportzhubmedia.com/arc2008/ The application makes extensive use of flex states. When viewed via a Mac Osx any verion firefox or safari...gives a blank screen. What's been tried so far... --Random strip down to no states, It's only by removing all states that it works on Safari, we do know at which point the problem is cleared... Can some help us why this can happen with flex.only with MAC... Please help... Thanks, Sudha. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: LCDS: Debug RTMP Traffic
Yeah, it looks like somehow you are getting a DataService trying to use a DirectHTTPChannel.That only works for for HTTPService, and WebService. DataService needs a channelSet which supports AMF (AMFChannel, or RTMPChannel). I'm confused how you are getting into this situation though... those get created on the client via the endpoint property on some services or you can define one explicitly in ActionScript or MXML.Can you show how this tasks destination is getting defined in ActionScript? How is its channelSet specified - on the client via the channelSet property or on the server? If it is on the server, make sure you are compiling against the services-config.mxml file (it is a project/compiler option). Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Sunday, September 21, 2008 5:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic TraceTarget reported the following when the UI with the second DataService loads: 'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http://localhost:8080/main/ 'cds-consumer-tasks-null' consumer set destination to 'tasks'. Configuration for destination='tasks': properties metadata identity property=id/ /metadata network paging enabled=false/ /network use-transactionstrue/use-transactions /properties New DataService for destination: tasks '19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to 'tasks'. Creating a new independent data store for destination: tasks Adding data service: tasks to the data store: null initialized: false LSODatabase close(): null TaskDS.as: Connecting to DataService. 'ds-producer-tasks' producer connected. 'ds-producer-tasks' producer acknowledge of '1EBA99AC-11A5-3E3B-0B1C-874C60449CA4'. This is the last thing it reports related to DataServices. It looks like the DataService attempts to connect, but I'm missing all the connection jazz that I get from the first DataService connection (namely RTMP stuff. Am I reading this right? Looks like it's trying to connect over an HTTP channel). Here's what a successful connection looks like: ConfigDS.as: Connecting to DataService. 'my-rtmp' channel endpoint set to rtmp://localhost:2039 'my-rtmp' channel settings are: channel id=my-rtmp type=mx.messaging.channels.RTMPChannel endpoint uri=rtmp://localhost:2039/ properties/ /channel 'my-rtmp' channel got connect attempt status. (Object)#0 code = NetConnection.Connect.Success description = Connection succeeded. details = (null) DSMessagingVersion = 1 id = A66F4650-DB1E-E678-DB08-C1CD3BF2591A level = status objectEncoding = 3 'my-rtmp' channel is connected. 'ds-producer-configurationData' producer acknowledge of '0ADAF447-0616-0F7B-376A-8758AC3385D9'. 'ds-producer-configurationData' producer connected. ConfigDS.as: Connection to DataService success. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Geoffrey [EMAIL PROTECTED] wrote: I'll try using the TraceTarget class. Our config uses port 2039 for RTMP. I tried filtering on tcp.port==2039, but that didn't seem to get anything. I also tried rtmp.port==2039 and rtmpt.port==2039. Those didn't seem to work either. By 'work' I mean that when the filter was applied, there were no network activity listed in the Wiresshark top panel. Any other ideas on filtering? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom jvroom@ wrote: Have you tried enabling the client side debug logging with mx:TraceTarget/? You get the highest level client side tracing that way... just make sure you use the debug player, then look in the flashlog.txt. For wireshark, I think you can probably filter based on the server port used to establish the connection. Look at your RTMP configuration but typically it is 2038 or 1935 or something like that. Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Friday, September 19, 2008 7:35 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] LCDS: Debug RTMP Traffic I'm having some issues with 2 DataServices running over RTMP. The first DataService loads on application startup and work fine (I get data). The second load later on in the application, but this one get's no data. It doesn't appear that it even makes the connect request because my result and fault handlers don't get hit. Is there a tool (like Charles, ServiceCapture, or Wireshark) that can be used to verify that something over an RTMP channel is being sent from the client? Like I said, nothing seems to happen when I issue the DataService.connect() call. I've enabled a bunch of logging on the server(via the services-config.xml file), but if that traffic isn't reaching
RE: [flexcoders] Re: LCDS: Debug RTMP Traffic
Can you check if it works if you comment out the cacheId setting?Since the offline feature also persists configuration, it might be that it has cached something invalid. If it works, you might try removing your shared objects (for flash) and sql-lite database files (for air) If you could also send me the entire flashlog.txt - (probably offlist - [EMAIL PROTECTED] since it is can be big) I'll see if I can track down what is going on. I thing that is helpful to debug config problems is to look at the value of the variable mx.messaging.config.ServletConfig.xml - it is the information which is compiled into the SWF. In this case, I'd expect to see the default channels for the RTMP channel and then the destination info. The destination info looked correct from the snippet you sent previously so it is the default channels part that is messed up. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Sunday, September 21, 2008 8:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic Our endpoints are created in the services-config.xml, and the destinations for DataServices are configured in data-management-config.xml. the RTMP endpoint config is as such: channel-definition id=my-rtmp class=mx.messaging.channels.RTMPChannel endpoint url=rtmp://localhost:2039 class=flex.messaging.endpoints.RTMPEndpoint/ properties idle-timeout-minutes30/idle-timeout-minutes /properties /channel-definition A DataService destination looks like: default-channels channel ref=my-rtmp/ /default-channels destination id=tasks adapter ref=java-adapter / properties use-transactionstrue/use-transactions sourceblah.blah.blah.TasksDelegate/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=id/ /metadata network subscription-timeout-minutes0/subscription-timeout-minutes paging enabled=false/ /network /properties /destination The two destinations are identical, except for the source class. I am using the compiler argument [-services C:\workspace\flex\src\main\webapp\WEB-INF\flex\services-config.xml], which points to the correct services-config.xml file. The task DataService is created in ActionScript like so: // Create a datasource __ds = new DataService(tasks); __ds.cacheID = ExpTasks; __ds.autoSaveCache = false; __ds.autoConnect = false; __ds.autoCommit = false; __ds.addEventListener(DataConflictEvent.CONFLICT, onDataConflict, false, 0, true); __ds.addEventListener(DataServiceFaultEvent.FAULT, onDataServiceFault, false, 0, true); // Connect to datasource connect(); The connect() method just registers some event listeners and then calls __ds.connect(). The whole point to this is that we intend to replace our 30 Java delegates and 130+ remote methods with DataServices so our application can run in offline mode (assuming there's cached data). If there's a better way to do this, I'm open to suggestions. Thanks, Geoff --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Yeah, it looks like somehow you are getting a DataService trying to use a DirectHTTPChannel. That only works for for HTTPService, and WebService. DataService needs a channelSet which supports AMF (AMFChannel, or RTMPChannel). I'm confused how you are getting into this situation though... those get created on the client via the endpoint property on some services or you can define one explicitly in ActionScript or MXML. Can you show how this tasks destination is getting defined in ActionScript? How is its channelSet specified - on the client via the channelSet property or on the server? If it is on the server, make sure you are compiling against the services-config.mxml file (it is a project/compiler option). Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Sunday, September 21, 2008 5:04 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic TraceTarget reported the following when the UI with the second DataService loads: 'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http://localhost:8080/main/ 'cds-consumer-tasks-null' consumer set destination to 'tasks'. Configuration for destination='tasks': properties metadata identity property=id/ /metadata network paging enabled=false/ /network use-transactionstrue/use-transactions /properties New DataService for destination: tasks '19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to 'tasks'. Creating a new independent data store for destination: tasks Adding data service: tasks to the data store: null initialized: false LSODatabase close(): null TaskDS.as: Connecting to DataService. 'ds-producer-tasks' producer connected. 'ds
RE: [flexcoders] LCDS: Debug RTMP Traffic
Have you tried enabling the client side debug logging with mx:TraceTarget/? You get the highest level client side tracing that way... just make sure you use the debug player, then look in the flashlog.txt. For wireshark, I think you can probably filter based on the server port used to establish the connection. Look at your RTMP configuration but typically it is 2038 or 1935 or something like that. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Friday, September 19, 2008 7:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS: Debug RTMP Traffic I'm having some issues with 2 DataServices running over RTMP. The first DataService loads on application startup and work fine (I get data). The second load later on in the application, but this one get's no data. It doesn't appear that it even makes the connect request because my result and fault handlers don't get hit. Is there a tool (like Charles, ServiceCapture, or Wireshark) that can be used to verify that something over an RTMP channel is being sent from the client? Like I said, nothing seems to happen when I issue the DataService.connect() call. I've enabled a bunch of logging on the server(via the services-config.xml file), but if that traffic isn't reaching the server, all the logging in the world won't help. BTW, if you say that Wireshark can be used, then please post the filter you use because I couldn't figure out one that only showed RTMP traffic. As a matter of fact, I couldn't find anything that looked like RTMP traffic in the log session. I don't know if it's important or not, but the server and the client are all running locally. Env: Tomcat 6.0.16 LCDS 2.6 Flex 3 Thanks, ~Geoff inline: image001.jpginline: image002.jpg
RE: [flexcoders] Livecycle problem - multiple rtmp services and Windows Vista
You might have some other process listening on port 2038 on the vista machines? You can run netstat -a -o | grep 2038 to see if that is true and which process id opened that port. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bart Ronsyn Sent: Thursday, September 18, 2008 4:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Livecycle problem - multiple rtmp services and Windows Vista Hello, I have the following setup : an mxml application which uses Livecycle at the server side. The application uses a Data Management Service and a Message Service simultanously. I first added the same rtmp-channel my-rtmp to both services. The rtmp-channel was binded to port 2038 on the server. The application worked without problems under Windows XP and Linux, but on Windows Vista machines, the Message Service and Data Management Service did not work properly (they actually did nothing). I succeeded to solve the problem to by using two different rtmp-channels for the two services (my-rtmp binded to port 2038 on the server and my-rtmp2 binded to port 2039 on the server), but I would like to understand what caused the problem on Windows Vista machines ... If you have any idea, let me know ! Kind regards, Bart inline: image001.jpginline: image002.jpg
RE: [flexcoders] Bindable does not behavior in extended class
I'd have to say that combining visual and non-visual components and then throwing bindable into the mix seems like a recipie for trouble. There isn't a good separation of concerns. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Thursday, September 18, 2008 12:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Bindable does not behavior in extended class Yeah, That is not what he wanted, so I asked. :) Making a whole UIComponent (mx.controls.Form) class bindable is not a good choice. Mike On Thu, Sep 18, 2008 at 11:54 AM, Johannes Nel [EMAIL PROTECTED] wrote: adding the Bindable metadata to a class makes it implement eventdispatcher automagically during the 2 step compilation. On Thu, Sep 18, 2008 at 4:55 PM, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, This might be stupid but your ServiceForm is an EventDispatcher right? I have never seen an error quite like that. Mike On Thu, Sep 18, 2008 at 10:00 AM, Guilherme Blanco [EMAIL PROTECTED] wrote: Hi, Here is my daily question. I have a class that handles Form + HTTPService (a subclass called Service w/ events complete and fail) automatically called ServiceForm. Since most code is replicated in extended classes if you are editing one item (another HTTPService subclass that retrieves it and assign to an XML Bindable variable), I optimized in a subclass of ServiceForm. The name of this class is ServiceEditForm. Here is the code: package core.containers { public class ServiceEditForm extends ServiceForm { [Bindable] public var item:XML; public function ServiceEditForm() { super(); } override public function getParamObject(httpFormat:Boolean = false):Object { var params:Object = super.getParamObject(httpFormat); params.itemId = item.hasOwnProperty('id') ? XML(item.id).toString() : XMLList([EMAIL PROTECTED]).toString(); return params; } } } And then I have my classes that build EditForms... like EditCenterForm, for example: ?xml version=1.0 encoding=utf-8? ServiceEditForm xmlns=core.containers.* xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:parton_controls=parton.controls.* url={Environment.getInstance().MODULE_URL}Center/Edit complete=handleFormComplete(event) mx:Script ![CDATA[ import core.Environment; import core.events.DynEvent; import mx.controls.Alert; protected function handleFormComplete(event:DynEvent):void { Alert.show(event.result.message.toString(), Edit Center); } ]] /mx:Script mx:FormItem label=Company: width=600 direction=horizontal parton_controls:CompanyComboBox id=company width=100% selectedId={item.hasOwnProperty('company_id') ? XML(item.company_id
RE: [flexcoders] LCDS 2.5.1 DSprevMessageId Error?
Yeah, this is an errant error that would happen in 2.5.1 when you: create an item, commit, then modify that item before the create result comes back again. It should not cause any problems. That header is only supposed to be set when the create and update are in the same batch but was just incorrectly getting set in this other case too. This should be fixed in the 2.6 release. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of foobone9 Sent: Wednesday, September 17, 2008 9:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS 2.5.1 DSprevMessageId Error? Has anyone seen the following message using LCDS 2.5.1: [Flex] Unable to find message for DSprevMessageId header in batch: xxx It happens when I'm creating new items and then modifying them via the Hibernate assembler. It doesn't seem to cause any problems locally; but when I deploy the app I don't want problems downstream from this... I can't find any mention of DSprevMessageId on the internets. I assume it's the hashed ID for one of my messages; if it's a previous message maybe it doesn't matter anymore? Any insight? Thanks. inline: image001.jpginline: image002.jpg
RE: [flexcoders] Preventing cutpaste in Flex3 application
And you can get rid of that context menu item too, if it matters. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Wetmore Sent: Tuesday, September 16, 2008 10:47 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Preventing cutpaste in Flex3 application selectable = false seems to work, although the context menu still offers Select all (although nothing happens that I can see). This is curious behavior that only occurs on some of my text areas, where you can seem to edit the text in a way that you aren't intended to be able to. a On Tue, Sep 16, 2008 at 10:41 AM, Andrew Wetmore [EMAIL PROTECTED] wrote: editable = false doesn't seem to do the trick. I will try selectable = false. -- Andrew Wetmore User Experience Director Open Learning Exchange - www.ole.org 978-319-7324 -- Andrew Wetmore User Experience Director Open Learning Exchange - www.ole.org 978-319-7324
RE: [flexcoders] UI Prototype Tool
What about FB itself? - doesn't require much if any code and actually looks like what you're about to build. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Guilherme Blanco Sent: Tuesday, September 16, 2008 12:20 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] UI Prototype Tool In my case, Paper + Pen to draw screens =) On Tue, Sep 16, 2008 at 1:17 PM, Rajan Jain [EMAIL PROTECTED] wrote: Hi All I just wanted to know which tool do you use to prototyping the application before actually start coding in flex? Thanks Rajan -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: [EMAIL PROTECTED] URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: LCDS data serialization frozen
Any chance you are using RTMPS, not RTMP? There is a bug in RTMPS for the 2.6 release: Description: LCDS-358: RTMPS writes by LCDS may stall when network TCP buffers back up We've got a hotfix that addresses that problem... feel free to contact me off list ([EMAIL PROTECTED]mailto:[EMAIL PROTECTED] if that is what you are running into). If not, if you could the next best step would be to turn on the * debug pattern to see if we can catch an instance of that hang occurring in the debug logs.Feel free to send them to me as well and we'll take a look to see if we can spot the hang. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jardillier Sent: Tuesday, September 16, 2008 1:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS data serialization frozen Hello, I am using the LCDS 2.6 and the channel RTMP. About the stack dump of the JVM i think that this should be displayed in the server.log file, and nothing were writen indicating a deadlock. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: What version of LC DS are you using and what type of channel (i.e. is it an RTMP or RTMPS channel or one of the app server's http based channels)? Another thought is to get a stack dump from your JVM when this happens to be sure there is not a deadlock or something like that. Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of jardillier Sent: Monday, September 15, 2008 1:47 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] LCDS data serialization frozen Hi all, i have a strange behaviour of the serialization, it seems to be frozen. This is a problem that occurs randomly. Sometimes, when i start my application i didn't recieved the data from the server to the client. When i had a look to the server.log file i saw that the serialization ran, i mean there is the log MYDESTINATION.fill ([ all my objects ...]) and then nothing more. What i try to explain is that normally i saw in this log these objects (as mentionned previously) and just after there is lines like caching Item:MYDESTINATION{ID=123456}(1234567) and these lines do not exist. This is why i think that the serialization is frozen (probably not the good word but it expresses the behaviour). Any ideas ? Many thanks per advance inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: Modularising a flex app
I believe FB 2.01 supports modules, but you should definitely be using FB3 anyway. Loading modules at runtime based upon user permissions is a solid way to go - certainly better than commenting out code and the like. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zwetank Sent: Monday, September 15, 2008 2:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Modularising a flex app We have an app that has a number of parts that are not all required for all customers. What's the best way to build it to minimise file size and for ease of building and code maintenance? We currently keep the code separated in different classes and mxml components, so we can do things like comment out things we don't want to reduce the size of an individual build but I'm figuring there must be a better way. Currently we are building in FB2, but are about to upgrade to FB3, if that makes a difference. to use Modules you need FB3, FB2 does not have that after if you want to select part of the app at compilation time you can use conditionnal compilation in Flex http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.htm l RSL can also help to modularize your application but honest there is not one easy way to do modularization -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] IOException on DataService closing
It looks to me like we have an info message in there which should be a debug message at best.I'm not sure what pattern that is being logged under but if you add the includeCategory=true option to the logging you'll see that pattern and can just remove that from the pattern tags you are logging. I don't see that message at all in our 2.5.1 code base so I am guessing you are running on 2.0.1 or maybe 2.0? Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cédric Savi Sent: Monday, September 15, 2008 12:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] IOException on DataService closing Hello all, I've got a problem when I'm closing my application which uses a dataservice!! I think that everybody's got this problem but I didn't found any solution. So, I have a simple data service: public var ds:DataService = new DataService(MY_DESTINATION); ... public function init():void { ds.fill(myArray); } But when I'm closing my application I've got this Exception : 09:40:14,646 INFO [STDOUT] [LCDS] Thread[my-rtmp-SocketServer-WorkerThread-2,5,jboss] failed to read Connection '19881741'; connection will close. java.io.IOException: Connexion was closed by host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at flex.messaging.socketserver.Connection.doRead(Connection.java:508) at flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:761) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Unknown Source) So I've got the idea to add a logout button which execute this function: public function logout():void { ds.logout(); ds.disconnect(); } But when it executes the ds.disconnect() function I've got the same exception. If anybody got the answer? Thanks inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS data serialization frozen
What version of LC DS are you using and what type of channel (i.e. is it an RTMP or RTMPS channel or one of the app server's http based channels)? Another thought is to get a stack dump from your JVM when this happens to be sure there is not a deadlock or something like that. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jardillier Sent: Monday, September 15, 2008 1:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS data serialization frozen Hi all, i have a strange behaviour of the serialization, it seems to be frozen. This is a problem that occurs randomly. Sometimes, when i start my application i didn't recieved the data from the server to the client. When i had a look to the server.log file i saw that the serialization ran, i mean there is the log MYDESTINATION.fill ([ all my objects ...]) and then nothing more. What i try to explain is that normally i saw in this log these objects (as mentionned previously) and just after there is lines like caching Item:MYDESTINATION{ID=123456}(1234567) and these lines do not exist. This is why i think that the serialization is frozen (probably not the good word but it expresses the behaviour). Any ideas ? Many thanks per advance inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: Remote Object and Session ???????
If you set the credentials for the remote object, post authentication, those will be passed with each request. All you need to do is look for those credentials on the server side and log the user in and assign roles on the server in question. Doing this in CF is trivial, it would depend on what middleware platform you're on. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, September 11, 2008 9:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Remote Object and Session ??? ok so you mean your Flex client beeds to communicate with http://abc.com and http://xyz.com? Both servers belong to you? Seems like you are going to have to keep info on who is logged in at the DB level so that both servers can access that same info and know that someone is logged in. Not sure if something like this already exists or not. Dimitrios Gianninas RIA Developer Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of xmwang1982 Sent: Wednesday, September 10, 2008 9:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Remote Object and Session ??? My case is not similar with you. Something I need is SSO in server side. I have a flex client, it may call remoting objects in different servers. These remoting services need the same authentication. So the SSO check is performed in server side. Becasue even the server, http request of remoting are different, normal cookie doesn't work here. If there is a way to set session variants before remoting call, the problem could be solved. But no idea so far... thanks. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nate Beck [EMAIL PROTECTED] wrote: We're using Oracle Access Management to do our single-sign on over here. Using cookies as well, we set a domain cookie to .domain.com, that way any sub-domain will pass the cookie along to the server as well. Cheers, Nate 2008/9/10 Dimitrios Gianninas [EMAIL PROTECTED] Why do you want to add things to your server-side session? You dont need to do that for single sign-on. We have been using single-sign on with our Flex apps on WebLogic 8.1SP3 for years now and it works like a charm. The only thing we have to do in WebLogic, is make sure that every web application is using the same cookie name on the weblogic.xml and it works. Don't know what app server you are using, but you should lookout for something similar. *Dimitrios Gianninas* *RIA Developer Team Lead* *Optimal Payments Inc.* -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *xmwang1982 *Sent:* Wednesday, September 10, 2008 6:07 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Remote Object and Session ??? Hi experts, How to add variables into the session of a remote object? Because, we can set channels to other servers in code. In order to do something like single sign on, I want to store something like session UUID into the session of HTTP connection of the remote object. Any idea? Thanks a lot. *AVIS IMPORTANT* *WARNING* Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire vis. L'expéditeur original ne renonce aucun privilège ou aucun autre droit si le présent message a ét transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire vis du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire vis ne sont
RE: [flexcoders] Re: FlexPrintJob - Very Hit Miss
In my case, it was size related. Smaller images were fine but larger ones could be problematic, and the behavior was restricted to the Adobe PDF printer driver. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thatstephen Sent: Monday, September 08, 2008 11:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: FlexPrintJob - Very Hit Miss Hi, Thank you for this advice. I have a similar problem and have tried to follow your advice. However I have tried everything I can think of to make Flex and its asynchronous events wait for the image load before adding the next rendered page to the printjob using addObject. How can you make the Flash Player wait for these events before adding the page endered with the images correctly loaded? I have noted that the otherwise good code for printing in the Flexreport component only seems to use embedded images. Thanks --- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote: Hi Jeff, Your image simply is not ready to be rendered. It could be not loaded yet, it could be loaded, but positioned well off the Vbox etc. You have to wait for 2 events for this image: -creation Complete -updateComplete This would guarantee in 90% that your image will be printed. If you want 100%, then you have also to check the parent container updateComplete event. Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: Actually it is more miss than hit on OSX. By muttering certain incantations I'm able to print a loaded bitmap about once out of very 20 tries. Otherwise, blank pages. The image by the way has been loaded for some time when this happens. Has anyone experienced this? A workaround? Jeff Battershall Application Architect Dow Jones Indexes jeff.battershall@ (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Flex CF Gateway Integration with CF 7.02 - What Am I Doing Wrong?
When examining CF8's jar files vs. CF 7.02's, CF8 has a jar file ccfgatewayadapter.jar. That's pretty darned obvious but what I'm not understanding is the docs I read seem to indicate that CF 7.02 DOES SUPPORT CF to Flex Gateway integration (http://kb.adobe.com/selfservice/viewContent.do?externalId=4ac796d0slic eId=1), but I just not seeing the necessary classes in the 7.02 Enterprise install. There's got to be someone from Adobe who can comment on this but anyone else who has experience with this, let me know. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Saturday, September 06, 2008 9:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex CF Gateway Integration with CF 7.02 - What Am I Doing Wrong? It would seem that the adapter goes by a different name in CF 7.02 - assuming it exists - does anyone have a clue what it might be? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Saturday, September 06, 2008 9:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex CF Gateway Integration with CF 7.02 - What Am I Doing Wrong? I've got normal integration working as expected, namely CF2AS object translation, but run aground on CF Gateway integration. When I try to add the adapter in services-config.xml I get this error: [2]flex.messaging.MessageException: Cannot create class of type 'coldfusion.flex.CFEventGatewayAdapter'. Type 'coldfusion.flex.CFEventGatewayAdapter' not found. There's quite a difference between CF8 and CF 7.02 in the way the services are defined, but reportedly (per Adobe) CFGateway integration SHOULD work in CF 7.02. What am I doing wrong? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex CF Gateway Integration with CF 7.02 - What Am I Doing Wrong?
I've got normal integration working as expected, namely CF2AS object translation, but run aground on CF Gateway integration. When I try to add the adapter in services-config.xml I get this error: [2]flex.messaging.MessageException: Cannot create class of type 'coldfusion.flex.CFEventGatewayAdapter'. Type 'coldfusion.flex.CFEventGatewayAdapter' not found. There's quite a difference between CF8 and CF 7.02 in the way the services are defined, but reportedly (per Adobe) CFGateway integration SHOULD work in CF 7.02. What am I doing wrong? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Flex CF Gateway Integration with CF 7.02 - What Am I Doing Wrong?
It would seem that the adapter goes by a different name in CF 7.02 - assuming it exists - does anyone have a clue what it might be? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Saturday, September 06, 2008 9:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex CF Gateway Integration with CF 7.02 - What Am I Doing Wrong? I've got normal integration working as expected, namely CF2AS object translation, but run aground on CF Gateway integration. When I try to add the adapter in services-config.xml I get this error: [2]flex.messaging.MessageException: Cannot create class of type 'coldfusion.flex.CFEventGatewayAdapter'. Type 'coldfusion.flex.CFEventGatewayAdapter' not found. There's quite a difference between CF8 and CF 7.02 in the way the services are defined, but reportedly (per Adobe) CFGateway integration SHOULD work in CF 7.02. What am I doing wrong? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event
In researching this I see all the trouble with the FileReference.upload() in FireFox when using SSL. I'm appending the session id as many have recommended, and the upload does happen successfully, but the event doesn't fire, so I am unable to return data to the application as I can in IE. The exact combination of circumstances is: FireFox + SSL + Apache + FileReference.upload() = No returned uploadCompleteData event. In the interest of complete disclosure we're also in a clustered environment with CF 7.02 behind a load balancer. I am dying for a workround. If I can get the onComplete event, that would at least let me know that my upload has occurred and I can store my data on the server and retrieve it otherwise. But that involves substantial re-architecting to work around this issue and I'd much rather just have it work as it is supposed to. IF that is possible. Any and all suggestions appreciated. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, September 03, 2008 4:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event That about says it all. I've got an https post going with a file upload and I'm listening for uploadCompleteData to retrieve the data from the response - but the event isn't firing on FireFox. IE is fine. I don't have any issues with this on IIS, but on Apache, I'm not getting the event back in FireFox. Has anyone seen this? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event
Simon, I'm looking into solutions but we're talking TOTAL WORKAROUND. One of the things I'm considering is using CF's messaging gateway to send a message on completion that the Flex app can respond to. The other possibility I'm considering is leaving the data on the server and retrieving it when and if the onComplete event fires. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Thursday, September 04, 2008 6:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event Hi Jeff, I have no solution and have had exactly the same problem myself, when you get a solution please feedback, its been a grade 'a' pain for me! Cheers, Simon On 4 Sep 2008, at 11:12, Battershall, Jeff wrote: In researching this I see all the trouble with the FileReference.upload() in FireFox when using SSL. I'm appending the session id as many have recommended, and the upload does happen successfully, but the event doesn't fire, so I am unable to return data to the application as I can in IE. The exact combination of circumstances is: FireFox + SSL + Apache + FileReference.upload() = No returned uploadCompleteData event. In the interest of complete disclosure we're also in a clustered environment with CF 7.02 behind a load balancer. I am dying for a workround. If I can get the onComplete event, that would at least let me know that my upload has occurred and I can store my data on the server and retrieve it otherwise. But that involves substantial re-architecting to work around this issue and I'd much rather just have it work as it is supposed to. IF that is possible. Any and all suggestions appreciated. Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Battershall, Jeff Sent: Wednesday, September 03, 2008 4:02 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event That about says it all. I've got an https post going with a file upload and I'm listening for uploadCompleteData to retrieve the data from the response - but the event isn't firing on FireFox. IE is fine. I don't have any issues with this on IIS, but on Apache, I'm not getting the event back in FireFox. Has anyone seen this? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
RE: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event
Simon, An update on this - it seems it works fine for small files, the issue comes up when there are larger files - wondering whether there is a timeout issue involved. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Thursday, September 04, 2008 9:27 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event I feel you frustration, I was at my wits end and hate unresolved issues. What a work around to have to implement though! I am going to be forced to return to this exact issue soon so will flag this thread and also feed back any progress! Cheers, Simon On 4 Sep 2008, at 14:17, Battershall, Jeff wrote: Simon, I'm looking into solutions but we're talking TOTAL WORKAROUND. One of the things I'm considering is using CF's messaging gateway to send a message on completion that the Flex app can respond to. The other possibility I'm considering is leaving the data on the server and retrieving it when and if the onComplete event fires. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bailey Sent: Thursday, September 04, 2008 6:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event Hi Jeff, I have no solution and have had exactly the same problem myself, when you get a solution please feedback, its been a grade 'a' pain for me! Cheers, Simon On 4 Sep 2008, at 11:12, Battershall, Jeff wrote: In researching this I see all the trouble with the FileReference.upload() in FireFox when using SSL. I'm appending the session id as many have recommended, and the upload does happen successfully, but the event doesn't fire, so I am unable to return data to the application as I can in IE. The exact combination of circumstances is: FireFox + SSL + Apache + FileReference.upload() = No returned uploadCompleteData event. In the interest of complete disclosure we're also in a clustered environment with CF 7.02 behind a load balancer. I am dying for a workround. If I can get the onComplete event, that would at least let me know that my upload has occurred and I can store my data on the server and retrieve it otherwise. But that involves substantial re-architecting to work around this issue and I'd much rather just have it work as it is supposed to. IF that is possible. Any and all suggestions appreciated. Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Battershall, Jeff Sent: Wednesday, September 03, 2008 4:02 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event That about says it all. I've got an https post going with a file upload and I'm listening for uploadCompleteData to retrieve the data from the response - but the event isn't firing on FireFox. IE is fine. I don't have any issues with this on IIS, but on Apache, I'm not getting the event back in FireFox. Has anyone seen this? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
Re: [flexcoders] Re: Flex SDK 3.1 changes to WebServices breaking existing services...
Todd, This is the exact same problem that I described in http://tech.groups.yahoo.com/group/flexcoders/message/122930 . We can't implement the fix that you mention, because you'll find that your server-side now outputs: paymentAccountsfooA/paymentAccounts paymentAccountsfooB/paymentAccounts paymentAccountsfooC/paymentAccounts instead of paymentAccounts paymentAccountfooA/paymentAccount paymentAccountfooB/paymentAccount paymentAccountfooC/paymentAccount /paymentAccounts which in our scenario breaks our existing non-Flex consumers. If you remove the property definiton for PaymentAccounts in FooDogVO, you'll find the 3.1 decoder will create it properly (as an ArrayCollection). In our case, we couldn't do that either, because our PaymentAccounts is a subclass of ArrayCollection. But it'd work for you. The fact that the decoder decodes it two different ways depending on whether the ArrayCollection is predeclared is probably a good indicator that its a Flex bug. -Jeff On Thu, 04 Sep 2008 00:45:55 -, Todd wrote I've sort of figured out new WSDL syntax that works as expected. If I change the WSDL declaration of paymentAccounts from: xsd:element maxOccurs=1 minOccurs=0 name=paymentAccounts xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=paymentAccount type=FooDogType/ /xsd:sequence /xsd:complexType /xsd:element TO: xsd:element maxOccurs=unbounded minOccurs=0 name=paymentAccounts type=FooDogVO / It all seems to work. This gets rid of some nested complexTypes and sequence. However, my bigger concern is changing all this code that worked perfectly in 3.0 (10 services, 20 calls per service) and was probably a workaround to make it work in 3.0.. What it does for the stability of our code base. It seems that the backward compatibility of Flex and Web Services is a bit sketchy, at best...especially because I don't know of other situations that will need to be changed, too. (This could be the first of other problems that I've unleashed.) --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Todd, if you can mail me off-list with a .zip of failing code, I'll be able to poke around and (probably) figure it out for you when I get home this afternoon. Cheers, -Josh On Thu, Sep 4, 2008 at 4:24 AM, Todd [EMAIL PROTECTED] wrote: The only real changes (those that aren't ASDoc comments to the core Flex code) I see in the the mx.rpc.soap package is in the SOAPArrayType.as. FYI, I was happily using the 3.0.676 framework (which was post 3.0 release). --- In flexcoders@yahoogroups.com, Todd tprekaski@ wrote: Hello All, If have some existing web services that were broken when I upgraded to the 3.1 flex SDK. I believe it has to do with the SOAP Decoder. I needed to get the newest SDK because there were other fixes I was awaiting. I have an Actionscript type that I'm decoding through the SchemaTypeRegistry: public class FooDogVO implements IValueObject { public var quantityBasedFunding : Boolean; public var numRecordsOrdered : int; public var numRecordsForPurchase : int; public var invoiceItems : ArrayCollection = new ArrayCollection(); public var fundedQuantityAccounts : ArrayCollection = new ArrayCollection(); public var paymentAccounts : ArrayCollection = new ArrayCollection(); ... } I'm calling a WebService that is returning the following SOAP Type, that is mapped via the SchemaTypeRegister to FooDogVO: xsd:complexType name=FooDogType xsd:sequence xsd:element name=numRecordsOrdered type=xsd:int/ xsd:element name=quantityBasedFunding type=xsd:boolean/ xsd:element maxOccurs=1 minOccurs=0 name=fundedQuantityAccounts xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=fundedQuantityAccount type=PaymentOptionType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=numRecordsForPurchase type=xsd:int/ xsd:element maxOccurs=1 minOccurs=0 name=invoiceItems xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=invoiceItem type=InvoiceItemType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=total type=xsd:double/ xsd:element maxOccurs=1 minOccurs=0 name=paymentAccounts xsd:complexType xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=paymentAccount type=PaymentOptionType/ /xsd:sequence /xsd:complexType /xsd:element xsd:element name=applied type=xsd:double/ xsd:element name=remaining type=xsd:double/ xsd:element name=allowNewCreditCard type=xsd:boolean
[flexcoders] FileReference.upload() on FireFox not firing uploadCompleteData event
That about says it all. I've got an https post going with a file upload and I'm listening for uploadCompleteData to retrieve the data from the response - but the event isn't firing on FireFox. IE is fine. I don't have any issues with this on IIS, but on Apache, I'm not getting the event back in FireFox. Has anyone seen this? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Flexstore license?
Robert, You're like the fox in the proverbial hen house just kickin' up a storm when all us chickens just want to lay some eggs (hopefully golden ones). You're a man with some strong opinions and I'll give you that, but at this point we all just want to get on with our lives. I ask you, courteously, to please desist with your Adobe agenda, at least on this list. You're pissed at them, got it. You've made your point(s) and we'd like to go back to what we were doing: giving technical advice and receiving technical advice - about Flex. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Thompson Sent: Tuesday, September 02, 2008 8:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flexstore license? It died yesterday and you just brought it to life again. It wasn't just him telling me to F___ off. It was my request thereafter to get off my back and he said No, I won't. Stop bringing bad things back to life. I can't let a post to flexcoders@yahoogroups.com where there are many recipients of your e-mail go unanswered. So it wasn't the nuclear option, it was him refusing to get off my back. Your Confidentiality notice is kind of odd since you are posting to the whole group and have put in extensive legalese. I did contract work for a company in the UK, I don't know why your including that kind of information in a post send to flexcoders@yahoogroups.com instead of directly to my e-mail address. -r On Sep 2, 2008, at 4:51 AM, Tom Chiverton wrote: On Monday 01 Sep 2008, Robert Thompson wrote: I've reported you to Yahoo Abuse and Google Abuse for your cursing. I would have preferred your first step to be an appeal to the moderators, rather than jumping for the nuclear option (if Google/Yahoo suspend his account then it's not just here that is effected). Consider this a request to everyone to let this thread in particular, and the personal stuff in general die. -- Tom Chiverton, moderator, just back from holiday This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] FlexPrintJob - Very Hit Miss
Actually it is more miss than hit on OSX. By muttering certain incantations I'm able to print a loaded bitmap about once out of very 20 tries. Otherwise, blank pages. The image by the way has been loaded for some time when this happens. Has anyone experienced this? A workaround? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] FlexPrintJob - Very Hit Miss
Additional info - the blank pages are occuring primarily when printing to Adobe Acrobat 8.0 driver (ironically enough). Normal printing works, but not without unwanted behavior, like ignored content at certain scalings. I hope dramatically improved printing is on the radar of Adobe for Flex 4 - I'd have to say it is the biggest drawback for the platform, IMO. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Friday, August 29, 2008 6:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexPrintJob - Very Hit Miss Actually it is more miss than hit on OSX. By muttering certain incantations I'm able to print a loaded bitmap about once out of very 20 tries. Otherwise, blank pages. The image by the way has been loaded for some time when this happens. Has anyone experienced this? A workaround? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] RE: FlexPrintJob - Very Hit Miss
I'm printing a VBox which contains the loaded image + a Text control below it. Works fine to a normal printer - acts very buggy with PDF driver. Actually with a regular printer, when I set the scaling to SHOW_ALL, the Text does not print. It happens that the image is very long (about 3 pages on a normal printer). Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, August 29, 2008 1:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: FlexPrintJob - Very Hit Miss Are you directly printing the loaded bitmap or passing it into SWFLoader/Image? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Friday, August 29, 2008 3:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexPrintJob - Very Hit Miss Actually it is more miss than hit on OSX. By muttering certain incantations I'm able to print a loaded bitmap about once out of very 20 tries. Otherwise, blank pages. The image by the way has been loaded for some time when this happens. Has anyone experienced this? A workaround? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] Flex RemoteObject and Browser cookies
If you are using HTTP-based channels, all of the cookies set by the server should be returned to the client via the RemoteObject calls. Since you are seeing the jsessionid, it sounds like you are using HTTP based channels. If all cookies are not making it to the server, it may be because you are using two different cookie domains in your application. As part of the set-cookie header, you can specify additional information which broadens or narrows the scope of the cookie's setting. If you can sniff out the headers for the set-cookie operation using an HTTP traffic sniffer or logging on the server, you might see a difference in how these cookies are being set or in how the URLs are formatted going to the server. Any difference in the server-name or port specification can alter the cookie domain/handling - i.e. even http://foo.com and http://foo.com:80 may be treated as different cookie domains. Definitely watch out for localhost versus myserver.com as that is a common way to switch cookie domains too. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vijay Ganesan Sent: Friday, August 29, 2008 1:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex RemoteObject and Browser cookies I have Flex-based Flash content running within a DHTML page. The swf contained in the page makes RemoteObject (mx.rpc.remoting.mxml.RemoteObject) calls to the backend servlet. In these calls, I need to be able to send the Browser cookies set by the containing DHTML app. Currently the only cookie that seems to come through is the JSESSION cookie. I realize I can read the Browser cookies using ExternalInterface to invoke JavaScript, but once the cookies are read, how does one pass these cookies along when making a RemoteObject call in my Flex code? Thanks Vijay inline: image001.jpginline: image002.jpg
RE: [flexcoders] RAITest, Selenium, QuickTest, Silk?
Nate, Did you try RadView's WebLoad? Adobe has just spent a lot of time working with them on Flex support and they're endorsing the product, semi-officially (see Damon Cooper's blog). Just want to get your opinion of that solution vs. QTP. I believe both are on a similar tier of expense. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Beck Sent: Wednesday, August 27, 2008 3:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RAITest, Selenium, QuickTest, Silk? Hey Douglas, We just did the exact same thing you're doing. We tried RIATest, Selenium QTP. Quick Test Pro ended up being our choice. We have a very complex application with custom components, and around 35 Modules. QTP blew the others out of the water, well worth the price. Hope this helps, Nate On Wed, Aug 27, 2008 at 11:16 AM, Douglas McCarroll [EMAIL PROTECTED] wrote: Hi All, My company is thinking of implementing automated functional testing for our Flex-based application. Do any of you have experience with these products that you'd care to share? Or, if not, do you know of any insightful online articles, etc? Thanks in advance! Douglas
RE: [flexcoders] Whitepaper and Webinar -- Please read the Scene7.com posts Objectively
At this point, Adobe is not likely to abandon Scene7 due to developer concerns. The way I see it, Adobe has been taking on consulting engagements for some time, just like IBM does, and I think having an offering of best of breed off-the-shelf solutions fits in well with that stategy. I don't think it interferes with the prosperity of Adobe solution providers or individual developers, in fact having such solutions available may make more possible to deliver on projects by not having to reinvent functionality. It is what it is and there's no shortage of work, so let's get on with it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Thompson Sent: Wednesday, August 27, 2008 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Whitepaper and Webinar -- Please read the Scene7.com posts Objectively There is no harm meant in my postings. I'm posting so we are all aware of what may be going on with Scene7.com and it's implications to the FLEX and Flash CS3 development community. I'm a freelance developer, not with a large corporation. The Whitepaper is available on www.Scene7.com and I highly recommend posting any concerns and questions to the e-mail address of the CEO in there. I also recommend attending the Webinar on the subject tommorow (I believe it's Thursday). -r
RE: [flexcoders] Whitepaper and Webinar -- Please read the Scene7.com posts Objectively
, Jeff wrote: At this point, Adobe is not likely to abandon Scene7 due to developer concerns. The way I see it, Adobe has been taking on consulting engagements for some time, just like IBM does, and I think having an offering of best of breed off-the-shelf solutions fits in well with that strategy. I don't think it interferes with the prosperity of Adobe solution providers or individual developers, in fact having such solutions available may make more possible to deliver on projects by not having to reinvent functionality. It is what it is and there's no shortage of work, so let's get on with it. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Thompson Sent: Wednesday, August 27, 2008 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Whitepaper and Webinar -- Please read the Scene7.com posts Objectively There is no harm meant in my postings. I'm posting so we are all aware of what may be going on with Scene7.com and it's implications to the FLEX and Flash CS3 development community. I'm a freelance developer, not with a large corporation. The Whitepaper is available on www.Scene7.com and I highly recommend posting any concerns and questions to the e-mail address of the CEO in there. I also recommend attending the Webinar on the subject tomorrow (I believe it's Thursday). -r
RE: [flexcoders] ArrayCollection bound to an Array.
Your approach to the problem doesn't appear to be correct. Some additional code would be helpful. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexaustin Sent: Tuesday, August 26, 2008 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ArrayCollection bound to an Array. Is it possible to bind an ArrayCOllection to an array, like so public var summDataForControllers:Array = new Array; public var _summDataForContrAC:ArrayCollection = new ArrayCollection({summDataForControllers}); I have a modelLocator that contains these to items (above) and I want a component to bind to the arrayCollection. I am storing the information in the array first because when I try to update the arraycollection from my component and then access a certain item in the arraycollection I get Index 0 out of bounds. So in other words I iterate and say arrayCollection.addItemAt(i) then try arrayCOllection.getItemAt(i) I get the out of bounds issue. But if I iterate and store the information in an array everything is fine, but now my component can't listen for updates, which is the reason I am trying to bind my arraycollection to the array. Thanks in advance for any help. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Flex Load Testing Solutions
I've seen that Adobe is high on RadView software's WebLoad product, but I'm interested in evaluating a number of possible products and/or approaches for load testing our applications. Any and all feedback appreciated! Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] the commit method of LCDS doesn't commit deleted child object. Is this normal?
When you remove an item from an association property, if you want to delete that object you do have to call deleteItem explicitly.Currently removing the object from the association property will only send an update change to the parent object. It won't delete the child object. Many O/R systems have a cascade=delete attribute on the association which lets you do the delete automatically when the child becomes disassociated but we haven't implemented this feature in LC DS yet. This is independent of autoCommit... even if you set autoCommi=true, you'll still need to do the deleteItem explicitly. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shigeru Nakagaki Sent: Monday, August 25, 2008 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] the commit method of LCDS doesn't commit deleted child object. Is this normal? When autoCommit is false, the commit method of LCDS doesn't commit deleted child object (hierarchical destination, many-to-one). If the case is adding child object, the commit method creates new child object. Is this normal? Do we have to delete child object manually if autoCommit is false? inline: image001.jpginline: image002.jpg
Re: [flexcoders] SDK 3.1 SOAP deserialization issue
On Fri, 22 Aug 2008 08:08:02 +1000, Josh McDonald wrote I assume you mean 3.1 where you put 2.1 :) Yes, there was a bug in my mail client that changed the 3.1 to 2.1 when I pressed send. ;) What exactly is happening in 3.1 that's not happening in 3.0? Without posting the real code where the VOs aren't what you've shown here it's kinda hard to help, so I've gotta ask more questions :) Also how are you invoking the service, and what code are you using to map the xsd types to your classes? What is actually happening is an array of strings is now being created as an array that has one element of type ArrayCollection. That nested array is the array of strings. The detailed description of what was happening is way at the bottom of my original post. The service is invoked via mx.rpc.soap.WebService by calling service.operation(Request) . The xsd types are being mapped via this mechanism: SchemaTypeRegistry.getInstance().registerClass(new QName(http://www.harte-hanks.com/hhl-User/,UserType;),UserType); I'm pretty familiar with Flex's SOAP encoder/decoder by now, so I can probably help, and also if there's a bug in 3.1 I wanna know about it so I can fix it :) Thanks for your help. I've been reading this forum for probably a year and have seen your involvement here and in the bug tracking system. I will put together a working sample, I should be able to reproduce the issue in a small program where I can post the whole working thing. -Josh On Fri, Aug 22, 2008 at 1:18 AM, jeff [EMAIL PROTECTED] wrote: Hello, I am seeing an issue introduced with SDK 3.1 where the SDK is not properly mapping XML schemas to AS classes. We use the SchemaTypeRegistry magic to have our AS classes instantiated based on the types contained in our SOAP response. We are seeing improper object creation, beginning in SDK 3.1, as detailed below. = AS Class: public dynamic class UserType { public var login:String=; public var Locale:LocaleType = new LocaleType(); public var Flags:ArrayCollection = new ArrayCollection(); public function UserType():void { } } Schema fragment: xsd:simpleType name=AccessFlagType xsd:restriction base=xsd:string xsd:minLength value=1/xsd:minLength xsd:maxLength value=20/xsd:maxLength /xsd:restriction /xsd:simpleType xsd:complexType name=AccessFlagsType xsd:sequence xsd:element name=Flag type=hhl-User:AccessFlagType minOccurs=0 maxOccurs=unbounded/xsd:element /xsd:sequence /xsd:complexType xsd:complexType name=UserType xsd:sequence minOccurs=1 maxOccurs=1 xsd:element name=login maxOccurs=1 xsd:simpleType xsd:restriction base=xsd:string xsd:maxLength value=10 / /xsd:restriction /xsd:simpleType /xsd:element xsd:element name=Locale type=hhl-common:LocaleType minOccurs=1 maxOccurs=1/xsd:element xsd:element name=Flags type=hhl-User:AccessFlagsType/xsd:element /xsd:sequence /xsd:complexType XML: SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:ns1=http://www.harte-hanks.com/hhl-User/; SOAP-ENV:Body authenticateResponse authenticatedtrue/authenticated UserInfo logintrainallac/login Locale countrycodeUSA/countrycode languagecode/ currencycodeUSD/currencycode /Locale Flags FlagOESIMPORTORDERS/Flag FlagONESITE-ENGAGE_EDIT/Flag FlagOES-FLEX/Flag FlagOES-CREATE-BILLTO/Flag FlagREPORTS/Flag /Flags /UserInfo /authenticateResponse /SOAP-ENV:Body /SOAP-ENV:Envelope = What happens with SDK 2.1 is the UserType.Flags gets created as type ArrayCollection, which has only one element. This element is another ArrayCollection instance which contains the flags. If the Flags property is commented out of the class definition, the SDK will dynamically create the Flags ArrayCollection and populate it with the expected values. Also, this issue does not exist with SDK 3.0 . In our real code, Flags is a subclass of ArrayCollection. So the fix is not as simple as just commenting out the formal definition for Flags and letting the SDK create the property itself, since the SDK will then create an instance of ArrayCollection instead of our subclass. In our real code, the bogus nested Flags are both of the type of our class, so there's definitely something sketchy going on here. I haven't been able to come up with a good workaround yet, so we're building against 3.0 SDK for the time being. Thanks, Jeff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee
[flexcoders] SDK 3.1 SOAP deserialization issue
Hello, I am seeing an issue introduced with SDK 3.1 where the SDK is not properly mapping XML schemas to AS classes. We use the SchemaTypeRegistry magic to have our AS classes instantiated based on the types contained in our SOAP response. We are seeing improper object creation, beginning in SDK 3.1, as detailed below. = AS Class: public dynamic class UserType { public var login:String=; public var Locale:LocaleType = new LocaleType(); public var Flags:ArrayCollection = new ArrayCollection(); public function UserType():void { } } Schema fragment: xsd:simpleType name=AccessFlagType xsd:restriction base=xsd:string xsd:minLength value=1/xsd:minLength xsd:maxLength value=20/xsd:maxLength /xsd:restriction /xsd:simpleType xsd:complexType name=AccessFlagsType xsd:sequence xsd:element name=Flag type=hhl-User:AccessFlagType minOccurs=0 maxOccurs=unbounded/xsd:element /xsd:sequence /xsd:complexType xsd:complexType name=UserType xsd:sequence minOccurs=1 maxOccurs=1 xsd:element name=login maxOccurs=1 xsd:simpleType xsd:restriction base=xsd:string xsd:maxLength value=10 / /xsd:restriction /xsd:simpleType /xsd:element xsd:element name=Locale type=hhl-common:LocaleType minOccurs=1 maxOccurs=1/xsd:element xsd:element name=Flags type=hhl-User:AccessFlagsType/xsd:element /xsd:sequence /xsd:complexType XML: SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:ns1=http://www.harte-hanks.com/hhl-User/; SOAP-ENV:Body authenticateResponse authenticatedtrue/authenticated UserInfo logintrainallac/login Locale countrycodeUSA/countrycode languagecode/ currencycodeUSD/currencycode /Locale Flags FlagOESIMPORTORDERS/Flag FlagONESITE-ENGAGE_EDIT/Flag FlagOES-FLEX/Flag FlagOES-CREATE-BILLTO/Flag FlagREPORTS/Flag /Flags /UserInfo /authenticateResponse /SOAP-ENV:Body /SOAP-ENV:Envelope = What happens with SDK 2.1 is the UserType.Flags gets created as type ArrayCollection, which has only one element. This element is another ArrayCollection instance which contains the flags. If the Flags property is commented out of the class definition, the SDK will dynamically create the Flags ArrayCollection and populate it with the expected values. Also, this issue does not exist with SDK 3.0 . In our real code, Flags is a subclass of ArrayCollection. So the fix is not as simple as just commenting out the formal definition for Flags and letting the SDK create the property itself, since the SDK will then create an instance of ArrayCollection instead of our subclass. In our real code, the bogus nested Flags are both of the type of our class, so there's definitely something sketchy going on here. I haven't been able to come up with a good workaround yet, so we're building against 3.0 SDK for the time being. Thanks, Jeff
RE: [flexcoders] LCDS and real-time performance
I'm not sure where all of that time is going... between these two log statements: [LCDS] 16:25:10.578 [DEBUG] Thread[my-rtmp-SocketServer-WorkerThread- 1,5,main] Connection '19658898' starting a read. ... [LCDS] 16:25:10.937 [DEBUG] Deserializing AMF/RTMP request The code is reading data off of the socket until it gets a complete AMF message. ~350ms is a long time to spend reading data off the socket. I wonder if maybe the client is writing either a lot of data into a large message or if it is introducing some latency with its ability to write? It might make sense to turn on more debugging options such as Protocol.* or maybe even * so we see all targets. That will give us more fine-grained timings of where the time is being spent. Of course that much debug logging will slow things down overall but it can be helpful to see what exactly the system is doing. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rogier Oorburg Sent: Tuesday, August 19, 2008 2:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS and real-time performance Hi, Recently we have started an experiment on our benchmark-LAN where we have several Windows XP PCs running test programs. One of the PCs is the data-injector (Flex) which pushes changes every second, one is the LCDS2.6 server running on Tomcat and one PC is running the client application (Flex) in which the changes are visible every second. This experiment should determine if Flex using LCDS is a viable option for our real-time systems. There is very little network-traffic and CPU-usage on all PCs is very low, yet the system is able to handle only 400 changes every second. Using our own logger we see that about 400ms pass between the injector committing the changes and the server synchronizing the database. Another 400ms are needed to get all the changes to the other client so it can merge the changes and display them. By examining the built-in server-side logging of LCDS, it becomes clear that a lot of time is spent in the sending and receiving of messages over RTMP: [LCDS] 16:25:10.578 [DEBUG] Thread[my-rtmp-SocketServer-WorkerThread- 1,5,main] Connection '19658898' starting a read. ... [LCDS] 16:25:10.937 [DEBUG] Deserializing AMF/RTMP request ... [LCDS] 16:25:10.968 [DEBUG] Before invoke service: data-service ... [LCDS] 16:25:11.156 [DEBUG] After invoke service: data-service; execution time = 172ms ... [LCDS] 16:25:11.171 [DEBUG] Serializing AMF/RTMP push x 400 ... [LCDS] 16:25:11.390 [DEBUG] Committed transaction ... [LCDS] 16:25:11.421 [DEBUG] After invoke service: data-service reply: Flex Message (flex.messaging.messages.AcknowledgeMessage) ... etc. etc. As you can probably see the communication starting at the first entry up to the start of deserialization already takes approx. 400ms.. the processing of all the changes 172. The pushing of all the changes again takes about 400ms. If we can eliminate these two bottlenecks LCDS would be the perfect candidate to use in our new systems. We have tried everything we can think of, but nothing seems to help. Is it the RTMP protocol or a server or socket setting, or the way the server handles multithreading? Is there some JVM setting we don't know about? Any pointers and help would be appreciated! Greetings, Rogier Oorburg inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: LCDS 2.6 + Hibernate: problem deleting items
If you could send me the server debug log with Message.* and Service.* enable I could tell what is happening. I've seen this type of behavior in the past, but only when some query or something was holding onto a cached copy of the deleted item. After the item gets deleted, we could be refreshing a query or something and then seeing that cached item and thinking it needs to get added back to the collection. If I recall correctly though, you are using the hibernate assembler which shouldn't be caching queries - unless maybe you have turned on the cached queries option or maybe have customized the assembler? Another possibility is that you might have a bi-directional association involving this item and you are not removing the item from both sides of the relationship. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zdenekmikan Sent: Monday, August 18, 2008 7:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS 2.6 + Hibernate: problem deleting items More details to first issue (delete item with ds.deleteItem): The item is in fact deleted from the database, just the display in my application is wrong - when I restart application, the deleted item is really deleted. In client log (in Flex Builder) there are following lines after commit: Updating cached item for: Parent#:#254 excluding properties: null Adding item to cache: ChildItem#:#272 destination: ChildDestination About to dispatch commit result events where 272 is the id of the item I am trying to delete. TIA for any help. Zdenek M --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Zdenek Mikan [EMAIL PROTECTED] wrote: I have got big problems deleting items from my managed collections: When I delete item through ds.deleteItem and then call the ds.commit, after return from the commit operation my item is back in the ArrayCollection. The second time this item is deleted properly. When I delete item through ac.removeItemAt the item is again restored by commit, but this time it is impossible to delete this item by the second call. When I delete item from the collection and add another item into the same collection, the commit fails and the server returns error The item was not in the cache... Does anyone know how to fix these problems? My items have to be improperly cached somewhere... TIA Zdenek inline: image001.jpginline: image002.jpg
RE: [flexcoders] Difference between specifying remoteObject in mxml and in actionscript ?
I think the problem here is that mx.rpc.remoting.RemoteObject does not support the endpoint property whereas mx.rpc.remoting.mxml.RemoteObject does. I believe endpoint was originally intended just to be a simple alternative to defining the ChannelSet and so not supported universally but we are thinking of just moving endpoint up to the base RemoteObject tag since it is so commonly used. If you use the mxml variant from AS you'll also need to use the mxml operation. The other option is to just add this chunk of code to your AS version and avoid use of the endpoint property: /** [EMAIL PROTECTED] */ mx_internal function initEndpoint():void { if (endpoint != null) { var chan:Channel; if (endpoint.indexOf(https) == 0) { chan = new SecureAMFChannel(null, endpoint); } else { chan = new AMFChannel(null, endpoint); } channelSet = new ChannelSet(); channelSet.addChannel(chan); } } Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes Sent: Friday, August 15, 2008 7:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Difference between specifying remoteObject in mxml and in actionscript ? I'm sure I'm missing something here, but It would be good if anyone could point out exactly what it is! I'm attempting to configure a remoteObject *without* the compiler option of -services \\someServer\Path\WEB-INF\flex\services-config.xml or similar I initally thought it would be a question of merely specifying an endpoint, so I started off with this in my actionscript class : _remoteObj = new RemoteObject(); _remoteObj.makeObjectsBindable = true; _remoteObj.destination = fluorine; _remoteObj.source = ppRemoteService; // add the endpoint, all the code above works fine with the compiler - services option _remoteObj.endpoint = http://localhost/ppBackend/Gateway.aspx;; Which errors out at runtime with : Cannot assign operations into an RPC Service (endpoint) Yet, if I define the service in my main Application mxml in what looks to me like identical parameters , like this : mx:RemoteObject id=testRemoteMxml makeObjectsBindable=true destination=fluorine source=ppRemoteService endpoint=http://localhost/ppBackend/Gateway.aspx; / then just use _remoteObj = Application.application.testRemoteMxml into my actionScript class (apologies for bad form there) it works just fine. This is in flexbuilder 3.0 with the default Flex 3 SDK, I should mention. So what am I missing? A timing / initialisation error would be my first thought, but if so then I can't see quite how. I'm probably just being a bit stupid, anyone got any ideas or relevant experience? Many thanks, Jim. (p.s. I notice that there is no autocomplete suggestion in flexbuilder for remoteObjectInstance.endpoint in actionScript yet it compiles fine. This is probably a clue that I'm doing something wrong, I would say. If only I knew what it was!) __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: DataServiceException
Oops, I forgot that particular call was added in a 2.5.1 hotfix or also exists in 2.6. If you comment out that line, you still see the sequenceInfo above which should provide the info you need. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Tuesday, August 12, 2008 8:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataServiceException What version of LCDS was this written for? I can't seem to resolve seq.getItemInfo() with my 2.5.1 jars. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Yeah, it should be calling any fill methods which are still actively managed by clients in that refreshFill call - as long as you have autoSync=true. There are a couple of ways to track this down: 1) Put in this printSeq.jsp file (enclosed below) and request it. It will show you all active fills, etc. If that is empty, somehow the client's fill is not auto-sync'd. 2) If you turn on the Service.* debug target it should at least indicate which fills it is trying to refresh. Jeff - printSeqs.jsp: %@ page import=flex.data.SequenceManager % %@ page import=flex.messaging.MessageBroker% %@ page import=flex.data.DataService% %@ page import=flex.data.DataDestination% %@ page import=java.util.Map% %@ page import=java.util.List% %@ page import=java.util.Iterator% body code % MessageBroker mb = MessageBroker.getMessageBroker(null); DataService ds = (DataService) mb.getServiceByType(flex.data.DataService); if (ds == null) out.print(no data service); else { Map dests = ds.getDestinations(); for (Iterator it = dests.entrySet().iterator(); it.hasNext(); ) { Map.Entry ent = (Map.Entry) it.next(); String destName = (String) ent.getKey(); DataDestination dest = (DataDestination) ent.getValue(); SequenceManager seq = dest.getSequenceManager(); out.print(Destination: + destName + br); out.print(preSequenceInfo:); out.print(seq.getSequenceInfo()); out.print(/preppreItemInfo:br); out.print(seq.getItemInfo()); out.print(/pre); out.print(p); } } % done /code /body From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Wednesday, August 06, 2008 2:16 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: DataServiceException I pass false to my begin() method and that stops the DataServiceException from happening, but now nothing seems to happen after I commit(). Here's a current code snippet: DataServiceTransaction dst = DataServiceTransaction.begin(false); dst.refreshFill(myTasks, null); dst.commit(); The destination parameter for refreshFill(), is that the same string as the parameter I pass to the DataService constructor in ActionScript and the name of the destination I set up in data-management-config.xml? (i.e. __ds = new DataService(myTasks); destination id=myTasks ) I would expect to get a hit on the fill() method in my Assembler after the commit() is called, but I ain't gettin' nut'in. Ideas? Thanks, Geoff --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom jvroom@ wrote: Yeah, I wish this stuff was easier to install and configure. Too bad this JTA stuff hasn't been picked up by servlet containers as part of the core. To help debug this problem, here's the source for a .jsp file which does the same thing we do. Usually once this works, DataServiceTransaction.begin(true) will work too: %@ page import=javax.transaction.UserTransaction % %@ page import=javax.naming.InitialContext % %@ page import=javax.naming.Context % body startbr % try { Context ctx = new InitialContext(); String userTransactionJndi = java:comp/UserTransaction; String userSpecified = System.getProperty(UserTxJndiName); if (userSpecified != null) { userTransactionJndi = userSpecified; } UserTransaction userTransaction = (UserTransaction) ctx.lookup(userTransactionJndi); if (userTransaction != null) { userTransaction.begin(); out.println(begin ok!br); userTransaction.commit(); out.println(commit ok!br); } else { out.println(returned null); } } catch (Exception ne) { out.println(ne.toString()); } % done /body From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Monday, August 04, 2008 2:51 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: DataServiceException I just went through installing/configuring JTA using JOTM(which was not as straight forward as the docs say
RE: [flexcoders] Re: LCDS: how to fetch the items from lazy collection
We've been wanting to add a prefetchAndExecute type of utility which would make this a little easier. I think what you are doing is good though it would be a bit more efficient to just call: arrayCollection.getItemAt(0, arrayCollection.length) That second parameter is the prefetch parameter which specifies the number of items to fetch. That one call with thrown an IPE if all items are not resident. The advantage of doing this all at once is that we can make one big request to the server instead of fetching each page independently. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zdenekmikan Sent: Monday, August 11, 2008 2:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS: how to fetch the items from lazy collection In fact I do not have any backend code in my project - I use the Hibernate Assembler from LCDS to supply data (DTOs) into my flex client. My lazy ArrayCollection is partly fetched from the server - just the items needed for display. Now when I want to export all items into file, I need to fetch all the remaining items into this collection. So I am looking for some simpler solution to do this. Zdenek M --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, marcel.panse [EMAIL PROTECTED] wrote: This is a backend problem not a flex problem. Your java backend application fetches the data lazily from the database, which means he doesn't fetch it at all until you need it at runtime. When you send this lazily loaded object through LCDS over the line to your flex application it loses the ability to runtime fetch the lazy collection from the database (because you are already on the client machine, not on the server anymore, not in session). Just make sure whatever you send through LCDS over the wire is not lazily loaded. So load all collection explicitly with hibernate before you send them. Or better yet don't send hibernate objects of the wire at all, create DTO (Data Transfer Objects; search for DTO design pattern) objects instead. Load everything you need in your flex application into the DTO and send that over to your flex app. gr marcel --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, zdenekmikan zdenek@ wrote: I was able to solve my problem with following async loop, but I wonder if there is some simpler solution. private var itemArray:ArrayCollection private var index:int; private var count:int; private var noIPE:Boolean; public function execute(cgEvent:CairngormEvent):void { count = itemArray.length; index = 0; noIPE = true; start(); } private function start():void { try { trace(start: + index); while((noIPE == true) (index count)) { processItem(null, itemArray.getItemAt(index) as ItemDTO); } } catch(ipe:ItemPendingError) { noIPE = false; trace(item pending error: + index); ipe.addResponder(new ItemResponder(processItem, fetchError)); } } private function fetchError(message:ErrorMessage):void { trace(error fetching item: + message.faultString); } private function processItem(data:Object, item:ItemDTO = null):void { trace(processItem: + index); if(item == null) item = itemArray.getItemAt(index) as ItemDTO; . index++; if(index count) { if(noIPE == false) { noIPE = true; start(); } } else { finish(); } } --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Zdenek Mikan zdenek@ wrote: I have an ArrayCollection which is filled from the LCDS/Hibernate destination with lazy=true. For display it is OK, but for export I need to go through all items to send them to output. Is there any way how to force fetch all items from the server? BTW the sample in LCDS ES 2.6 Developer Guide on page 242-243 is wrong - you will get the ipe exception on line with ipe.addResponder in catch clause. Zdenek M inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: DataServiceException
Yeah, it should be calling any fill methods which are still actively managed by clients in that refreshFill call - as long as you have autoSync=true. There are a couple of ways to track this down: 1) Put in this printSeq.jsp file (enclosed below) and request it. It will show you all active fills, etc. If that is empty, somehow the client's fill is not auto-sync'd. 2) If you turn on the Service.* debug target it should at least indicate which fills it is trying to refresh. Jeff - printSeqs.jsp: %@ page import=flex.data.SequenceManager % %@ page import=flex.messaging.MessageBroker% %@ page import=flex.data.DataService% %@ page import=flex.data.DataDestination% %@ page import=java.util.Map% %@ page import=java.util.List% %@ page import=java.util.Iterator% body code % MessageBroker mb = MessageBroker.getMessageBroker(null); DataService ds = (DataService) mb.getServiceByType(flex.data.DataService); if (ds == null) out.print(no data service); else { Map dests = ds.getDestinations(); for (Iterator it = dests.entrySet().iterator(); it.hasNext(); ) { Map.Entry ent = (Map.Entry) it.next(); String destName = (String) ent.getKey(); DataDestination dest = (DataDestination) ent.getValue(); SequenceManager seq = dest.getSequenceManager(); out.print(Destination: + destName + br); out.print(preSequenceInfo:); out.print(seq.getSequenceInfo()); out.print(/preppreItemInfo:br); out.print(seq.getItemInfo()); out.print(/pre); out.print(p); } } % done /code /body From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Wednesday, August 06, 2008 2:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataServiceException I pass false to my begin() method and that stops the DataServiceException from happening, but now nothing seems to happen after I commit(). Here's a current code snippet: DataServiceTransaction dst = DataServiceTransaction.begin(false); dst.refreshFill(myTasks, null); dst.commit(); The destination parameter for refreshFill(), is that the same string as the parameter I pass to the DataService constructor in ActionScript and the name of the destination I set up in data-management-config.xml? (i.e. __ds = new DataService(myTasks); destination id=myTasks ) I would expect to get a hit on the fill() method in my Assembler after the commit() is called, but I ain't gettin' nut'in. Ideas? Thanks, Geoff --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Yeah, I wish this stuff was easier to install and configure. Too bad this JTA stuff hasn't been picked up by servlet containers as part of the core. To help debug this problem, here's the source for a .jsp file which does the same thing we do. Usually once this works, DataServiceTransaction.begin(true) will work too: %@ page import=javax.transaction.UserTransaction % %@ page import=javax.naming.InitialContext % %@ page import=javax.naming.Context % body startbr % try { Context ctx = new InitialContext(); String userTransactionJndi = java:comp/UserTransaction; String userSpecified = System.getProperty(UserTxJndiName); if (userSpecified != null) { userTransactionJndi = userSpecified; } UserTransaction userTransaction = (UserTransaction) ctx.lookup(userTransactionJndi); if (userTransaction != null) { userTransaction.begin(); out.println(begin ok!br); userTransaction.commit(); out.println(commit ok!br); } else { out.println(returned null); } } catch (Exception ne) { out.println(ne.toString()); } % done /body From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Monday, August 04, 2008 2:51 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: DataServiceException I just went through installing/configuring JTA using JOTM(which was not as straight forward as the docs say) with Tomcat. The bummer is that I can't debug into the DataServiceTransaction class... no source. I guess I could try passing false to the begin method, but I should be able to use JOTM. BTW, thanks for your help on that other LCDS issue. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom jvroom@ wrote: When you create a DataServiceTransaction, especially with true so it needs to start a JTA transaction, it is look in the JNDI namespace for the standard UserTransaction object i.e. new InitialContext().lookup(java:comp/UserTransaction). That call is not working... if you are not in a JEE container or Tomcat with JOTM installed that would explain it. You can try
RE: [flexcoders] DataServiceException
When you create a DataServiceTransaction, especially with true so it needs to start a JTA transaction, it is look in the JNDI namespace for the standard UserTransaction object i.e. new InitialContext().lookup(java:comp/UserTransaction). That call is not working... if you are not in a JEE container or Tomcat with JOTM installed that would explain it.You can try passing false to begin and that would avoid use of the JTA transaction manager. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Monday, August 04, 2008 1:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataServiceException I'm trying to create a DataServiceTransaction to push an update out to my DataService clients. I'm getting the below error when it tries to create the DataServiceTransaction. flex.data.DataServiceException: Unable to access UserTransaction in DataService. at flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:855) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:807) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:270) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:283) ... My code is: DataServiceTransaction dst = DataServiceTransaction.begin(true); dst.refreshFill(myTasks, null); dst.commit(); Any ideas? Geoff inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: DataServiceException
Yeah, I wish this stuff was easier to install and configure. Too bad this JTA stuff hasn't been picked up by servlet containers as part of the core. To help debug this problem, here's the source for a .jsp file which does the same thing we do. Usually once this works, DataServiceTransaction.begin(true) will work too: %@ page import=javax.transaction.UserTransaction % %@ page import=javax.naming.InitialContext % %@ page import=javax.naming.Context % body startbr % try { Context ctx = new InitialContext(); String userTransactionJndi = java:comp/UserTransaction; String userSpecified = System.getProperty(UserTxJndiName); if (userSpecified != null) { userTransactionJndi = userSpecified; } UserTransaction userTransaction = (UserTransaction) ctx.lookup(userTransactionJndi); if (userTransaction != null) { userTransaction.begin(); out.println(begin ok!br); userTransaction.commit(); out.println(commit ok!br); } else { out.println(returned null); } } catch (Exception ne) { out.println(ne.toString()); } % done /body From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Monday, August 04, 2008 2:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataServiceException I just went through installing/configuring JTA using JOTM(which was not as straight forward as the docs say) with Tomcat. The bummer is that I can't debug into the DataServiceTransaction class... no source. I guess I could try passing false to the begin method, but I should be able to use JOTM. BTW, thanks for your help on that other LCDS issue. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: When you create a DataServiceTransaction, especially with true so it needs to start a JTA transaction, it is look in the JNDI namespace for the standard UserTransaction object i.e. new InitialContext().lookup(java:comp/UserTransaction). That call is not working... if you are not in a JEE container or Tomcat with JOTM installed that would explain it. You can try passing false to begin and that would avoid use of the JTA transaction manager. Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Monday, August 04, 2008 1:31 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataServiceException I'm trying to create a DataServiceTransaction to push an update out to my DataService clients. I'm getting the below error when it tries to create the DataServiceTransaction. flex.data.DataServiceException: Unable to access UserTransaction in DataService. at flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:855) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:807) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:270) at flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:283) ... My code is: DataServiceTransaction dst = DataServiceTransaction.begin(true); dst.refreshFill(myTasks, null); dst.commit(); Any ideas? Geoff inline: image001.jpginline: image002.jpg
RE: [flexcoders] How do you auto-refresh LCDS?
When the autoSyncEnabled property of the DataService is true, the other client should be pushed the deleteItem message automatically if they have a managed copy of that item you are deleting.This does require that they both be using some type of channel which supports push (i.e. RTMP or polling). When you remove an item from a collection, it is automatically removed from all fills which contained that collection and those changes are pushed to any clients that are currently managing those fills. If you turn on the Message.* debug logging target on the server, you can see each message sent by the client and it contains messages for each client that is being routed a given message. The autoRefresh setting is separate from autoSync (though requires that autoSyncEnabled be set to true). AutoRefresh controls how the membership of filled collections is updated after an updateItem or createItem operation. The default is to re-execute the query once for each transaction that contains an update or create. The old and new results are compared and any changes are pushed out to subscribed clients. If you initiate a change on the server, you can notify clients of these changes but you have to use the DataServiceTransaction api to do so. One of its methods is refreshFill which you can use to update a query. In 2.5.1 that would only detect when items have been added or removed from the collection. In 2.6, there is an option now to look for property changes made to items as well. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Thursday, July 31, 2008 1:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do you auto-refresh LCDS? I'm not sure how you refresh clients when there's a change on the server. After I perform a _ds.fill(), the user can delete 1+ of the items from the managed collection. The ActionScript looks like: private function deleteItems():void { var selectedTasks:Array = taskList.getSelectedTasks(); for each (var task:ExploitationTaskVO in selectedTasks) { _ds.deleteItem(task); } // Commit the deletes to the server if needed if (__ds.commitRequired) { __ds.commit(); } } _ds.commit() has to be called to propagate changes to the server because I have _ds.autoCommit = false. The LCDS JavaDocs state that changes from a createItem() or updateItem() call will propigate to all clients if auto-refresh=true. Is that true for deleteItem() calls too? And where is this auto-refresh property? I don't see it under Java AbstractAssembler or ActionScript DataService classes. Also, what if I create, update, or delete a task on the server without doing it through the DataService(like through a java delegate). Can I force the DataService to refresh it's clients on the java side? Is this what the DataServiceTransaction.refreshFill() method is for? Thanks, Geoff inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS : updateItem method
Updates are tracked automatically as you change properties on your item. If you have autoCommit turned on, each property change of a managed object will automatically send the changes to the server and call updateItem. If you turn autoCommit=false, you can call dataService.commit() to commit all pending changes or dataService.commit([myObject]) to commit just the changes for a specific object. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bart Ronsyn Sent: Wednesday, July 30, 2008 8:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS : updateItem method On my Livecycle server, I created an assembler extending the AbstractAssembler class, overriding the methods getItem, createItem, updateItem and deleteItem. Now on the Flex side, I have a DataService-object ds ... the getItem and createItem methods work well, but I noticed that the DataService object had no updateItem method. How can I invoke the updateItem method of my assembler-class on the server ? Thanks for the help ! Bart inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS - Data Management Service Problem
Hi Bart, Thanks for sending those logs. I believe this is a bug fixed in LC DS 2.6 which is now available on the adobe site. We also have a hotfix for it on 2.5.1 - contact me off list if you need a copy of that. Jeff From: Bart Ronsyn [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2008 1:03 AM To: flexcoders@yahoogroups.com Cc: Jeff Vroom Subject: Re: [flexcoders] LCDS - Data Management Service Problem Hello Jeff, In attachment you will find the flashlog.txt and the chatroomlogic.mxml, the component which connects to the chatroom dataservice, manages an arraycollection of chatroom objects and results in the error described in my first mail. Kind Regards Bart Ronsyn This error can occur when you access an unpaged item when paging is enabled of course, but given that you are running that code in the result handler it seems like this is not the problem (unless the result event is being delivered for another call on that data service). It might also happen if the identities are not getting defined properly in ActionScript. If you add mx:TraceTarget/ and send along the resulting flashlog.txt, we can see what is happening from that. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bart Ronsyn Sent: Friday, July 25, 2008 8:12 AM To: flexcoders@yahoogroups.com Cc: Bart Ronsyn Subject: [flexcoders] LCDS - Data Management Service Problem Hello, I have a Data Management Service that uses a managed ArrayCollection of users. When a user is added by one client, the other clients are notified by the Data Management Service, and I want to loop through the ArrayCollection, using the code below, but I always get the following error : Error: Item requested is not available. A request for the item is now pending. at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::requestItemAt()http://www.adobe.com/2006/flex/mx/internal::requestItemAt%28%29[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataList.as:949] at mx.data::DataList/getItemAt()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataList.as:261] at mx.collections::ListCollectionView/getItemAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:431] ... This error occurs when the line users.getItemAt(j) as User is executed. It seems that although the length of the ArrayCollection users equals 1, I can not get the Item at position 0. Maybe the update of the ArrayCollection is not yet finished ? How can I loop through the ArrayCollection upon changes ? ... [Bindable] private var users:ArrayCollection; private var ds:DataService; private function init() { users = new ArrayCollection(); //users.addEventListener(CollectionEvent.COLLECTION_CHANGE, refreshUsers); ds = new DataService(user); ... ds.autoSyncEnabled = true; ds.fill(users); ds.addEventListener(ResultEvent.RESULT, refreshUsers); } private function refreshUsers(evt:ResultEvent):void { trace (refreshUsers + users.length); for(var j:uint=0; j users.length; j++) { var user:User = users.getItemAt(j) as User; showUserProfile(user); } } ... Kind Regards Bart Ronsyn No virus found in this incoming message. Checked by AVG. Version: 7.5.526 / Virus Database: 270.5.6/1574 - Release Date: 25/07/2008 16:27 inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: LCDS data synchronisation problem
Hi Florence, Thanks for sending that along... we are missing a clear error message for whatever your problem is - sorry about that. I have tried a few things here to try and get that exact error and can't seem to reproduce it here myself either. There are two ways to get configuration into the Flex client. You can either compile your Flex app directly against the services-config.xml file and it will compile in a subset of the server's configuration into the player, or if you define a ChannelSet on the client you can download the config at runtime after the client connects. It appears that you are getting the configuration at runtime, not compile time so probably if you set the option to compile against services-config.xml this will either start working or at least give you a clearer error message about some configuration that is missing for the insync destination (using the command line compiler, it is the -services option, or it is settable as a project option in flex builder). From the logs you sent, I see it connecting successfully but it looks like it is getting an empty definition of the insync destination - i.e. no properties, no metadata and no identity attribute all of which would be required for a valid DMS destination. You can see exactly what XML the client gets by looking at the variable: Import mx.messaging.config.ServerConfig trace(ServerConfig.xml); We use that variable both to store any compiled in destinations as well as to populate destinations after connect time so doing that trace before and after you get the error would tell me exactly what the client is seeing for that destination. I suspect insync is maybe getting put in there but without a propertiesmetadataidentity name=foo/metadata/properties construct. Another possible thing that could cause this is that there is an error initializing that destination on the server at startup. To check on that possibility, make sure to check your server's logs for errors and possibly add Message.* and Service.* targets to the services-config.xml's logging section and set level=Debug there to get more info. Sorry for the difficulties getting this working. Please let me know if you do find the problem so I can improve our error messages. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fkolberg Sent: Saturday, July 26, 2008 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS data synchronisation problem Hi Jeff, I have got a more verbose output: 'cds-consumer-insync-null' consumer set destination to 'insync'. New DataService for destination: insync 'D0C16D6A-7104-39A3-B839-6054DE1ED615' producer set destination to 'insync'. Creating shared data store with id: ':true' for destination: 'insync' Adding data service: insync to the data store: :true initialized: false Changing channelSet of a shared data store. It is now used also for id: rtmp:// localhost:2037:true 'my-rtmp' channel endpoint set to rtmp://localhost:2037 Changing channelSet of a shared data store. It is now used also for id: my-rtmp :true start network monitor handleMonitorStatus() monitor.available: true Connecting... 'my-rtmp' channel got connect attempt status. (Object)#0 code = NetConnection.Connect.Success description = Connection succeeded. details = (null) DSMessagingVersion = 1 id = D62F3568-062C-8CD2-6151-47A42CD1D145 level = status objectEncoding = 3 'my-rtmp' channel is connected. 'my-rtmp' channel sending message: (mx.messaging.messages::CommandMessage) body=(Object)#0 clientId=(null) correlationId= destination=insync headers=(Object)#0 messageId=800114A8-F29F-ACD1-B922-6054DFC4CC31 operation=client ping timeToLive=0 timestamp=0 'cds-consumer-insync-null' consumer connected. 'ds-producer-insync' producer connected. ds.connect(): success No offline changes to apply Filling... DataService.fill() called for destination: insync with args: [] 'ds-producer-insync' producer channel disconnected. Error: Unable to initialize destinations on server: [insync] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p rojects\data\src\mx\data\DataStore.as:2347] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\p rojects\data\src\mx\data\DataStore.as:2363] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\ente rprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\p rojects\rpc\src\mx\rpc\AsyncDispatcher.as:50] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() the line Creating shared data store with id: ':true' for destination: 'insync' looks like an error somewhere, what is this data store :true? Any idea? thanks for your advice and help. Florence
RE: [flexcoders] Re: LCDS paging exception
In particular the server debug logs should show what is happening (with Message.* and Service.* enabled). It happens when the client thinks it is subscribed to a paged sequence and the server has lost track of that subscription.It can happen when the server gets restarted without the client knowing about it or it could be a bug. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of meteatamel Sent: Friday, July 25, 2008 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS paging exception I have tried the basic paging before and it was working. I'm not sure what is special in your case. Maybe it's a bug? If you can reproduce it consistently, please log a bug so it can be investigated. -Mete --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: Yup, totally aware of the 2.6 documentation (I'm using 2.6 precisely because of the improvements in paging, etc), and I've actually read the developers guide end to end several times now ;) There is still no mention of this specific problem, and I match up to the examples and samples. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of meteatamel Sent: 25 July 2008 13:51 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: LCDS paging exception The newly released LCDS 2.6 developer's guide, has a good section on paging: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_pa ging_1.html http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_p aging_1.html I encourage people to check out the new LCDS 2.6 developer's guide. It's been restructured and has lots of new information on LCDS architecture, channels, etc. LCDS developer's guide, along with Java docs, AS docs, and more is here: http://www.adobe.com/support/documentation/en/livecycledataservices/ http://www.adobe.com/support/documentation/en/livecycledataservices/ -Mete --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gregor Kiddie gkiddie@ wrote: As hard as it is for me to admit defeat at anything... Does anyone have more information about the error Exception: flex.data.DataServiceException: Page requested does not exist in the specified sequence id '0' for destination 'foo'. It appears to be being thrown when the DataService is trying to get the next page after retrieving the second page. I'm trying to get Data Management Services up and running and the first step is getting the application paging in the same way it used to. There doesn't seem to be any information on the net about this other than error number listings. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpdesk@ inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS data synchronisation problem
This error occurs for a variety of problems that can occur when initializing the destination. You may not have defined that destination in the server's configuration or there can be a problem with that destination's configuration. If you add the tag: mx:TraceTarget/ it will usually provide additional information in the flashlog.txt just before the message is shown. It will also log the destinations the client is configured with in the flashlog. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fkolberg Sent: Friday, July 25, 2008 9:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS data synchronisation problem Hi, I have installed the insync app from http://coenraets.org/blog/2008/05/insync-automatic-offline-data-synchronization-in-air-using-lcds-26 and consistently get cannot fill error message. I then got the source code and compiled the files under flex builder 3. I ran the debugger and used trace() to output the messages. the error occurs when the dataService invokes fill(). I get the following error message: Error: Unable to initialize destinations on server: [insync] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2347] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2363] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncDispatcher.as:50] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() I have no idea what it means and does not really understand where the info related to anonymous and the Folder were taken from. Can anybody help please? thanks florence inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS - Data Management Service Problem
This error can occur when you access an unpaged item when paging is enabled of course, but given that you are running that code in the result handler it seems like this is not the problem (unless the result event is being delivered for another call on that data service). It might also happen if the identities are not getting defined properly in ActionScript. If you add mx:TraceTarget/ and send along the resulting flashlog.txt, we can see what is happening from that. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bart Ronsyn Sent: Friday, July 25, 2008 8:12 AM To: flexcoders@yahoogroups.com Cc: Bart Ronsyn Subject: [flexcoders] LCDS - Data Management Service Problem Hello, I have a Data Management Service that uses a managed ArrayCollection of users. When a user is added by one client, the other clients are notified by the Data Management Service, and I want to loop through the ArrayCollection, using the code below, but I always get the following error : Error: Item requested is not available. A request for the item is now pending. at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::requestItemAt()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataList.as:949] at mx.data::DataList/getItemAt()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataList.as:261] at mx.collections::ListCollectionView/getItemAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:431] ... This error occurs when the line users.getItemAt(j) as User is executed. It seems that although the length of the ArrayCollection users equals 1, I can not get the Item at position 0. Maybe the update of the ArrayCollection is not yet finished ? How can I loop through the ArrayCollection upon changes ? ... [Bindable] private var users:ArrayCollection; private var ds:DataService; private function init() { users = new ArrayCollection(); //users.addEventListener(CollectionEvent.COLLECTION_CHANGE, refreshUsers); ds = new DataService(user); ... ds.autoSyncEnabled = true; ds.fill(users); ds.addEventListener(ResultEvent.RESULT, refreshUsers); } private function refreshUsers(evt:ResultEvent):void { trace (refreshUsers + users.length); for(var j:uint=0; j users.length; j++) { var user:User = users.getItemAt(j) as User; showUserProfile(user); } } ... Kind Regards Bart Ronsyn inline: image001.jpginline: image002.jpg
RE: [flexcoders] Only last row shown from dataservice result (Hibernate+LCDS)
It sounds like you have a complex identity object – i.e. not a set of primitive properties. Try adding a toString() method in your identity class which returns a unique string for each instance. I think that we fixed this in 2.6 so that is not necessary (now available on our web site). Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Yohanes Iwan Sugiarto Sent: Wednesday, July 23, 2008 6:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Only last row shown from dataservice result (Hibernate+LCDS) Hi, I'm using hibernate LCDS 2.51 Using dataservices, result gets filled into an ArrayCollection, which is then bound to a Datagrid. My object uses composite ID, which already have the hashCode and equals methods in the identity object. Now the problem is only the last row is shown in the datagrid. The rest are just blank rows and when I clicked on the blank row, the Cannot access property null object reference error pops out. Everything seems normal based on the log (especially when the object gets serialized) Have anyone experience this behaviour before? I've read somewhere about this similar case in adobe bug reports, but I'm not really sure if this case is a known bug or merely my bad code. Any comments are greatly appreciated. Thanks -- / i w a n inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS Memory Usage
That is basically how it works but only if you have auto-sync enabled=true and cache-items=true on your destination settings. The auto-sync feature requires that we maintain at least the identities of all objects managed on every client so that we know where to push changes. The goal here is that you don't have to worry about tracking that and can still easily keep clients in sync. Also, if two clients fetch an object with the same id, only one copy is cached. If you turn cache-items=false, we cache only the ids, not the items so we keep a lot less state around (though we do have to go back to the assembler more often so that is more load on the database). If you turn auto-sync off, the server maintains no state but the synchronization functionality would then only work if you enable manual sync - i.e. where your clients specify subscriptions they want to listen to and also can specify meta-data that is attached to all changes made. That meta-data is used to route changes to the right subscribed clients. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Wednesday, July 23, 2008 5:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS Memory Usage Looking in the LiveCycle Data Services ES Developer's Guide, page 190, it states: By default, the Data Management Service caches items returned from fill() and getItem() calls and uses cached items to implement paging and to build object graphs on the server when implementing lazy associations. This causes a complete copy of the managed state of all active clients to be kept in each server's memory. Here's what I think that means. If I have 100 clients, and each client has one managed collection that contains 100 items in it, then there would be 10,000 copies residing in memory on the server(100 objects for 100 users). Am I understanding this correctly? Does this seem inefficient? What if those objects happened to be really big objects... I mean really big. Seems like that would take up a lot of memory on the server. Has anyone come up against this in practice? Thanks, Geoff inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS data management - original data on the client
Unfortunately we currently only expose the DataService.getPendingOperation(item) method. We don’t let you get at the original version of the item, list of changes, set of newly created or deleted items yet. This is something we’d like to offer but it is just not there yet. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Zdenek Mikan Sent: Tuesday, July 22, 2008 10:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS data management - original data on the client I am using LCDS data management with Hibernate assembler. My dataservice is configured with autoSyncEnabled set to false and in my Flex application it is possible to make various changes to data in ArrayCollection resulting from fill operation. Then before commiting the dataservice I would like to inspect these changes. Are the old values of data (which were originally read by fill operation) accessible anywhere on the client? Zdenek M inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: DataService gives CollectionEvents for each item when committing one item
Probably what you need is to just turn off auto refresh for that fill. Just override autoRefresh(List params) to return false. Since LC DS does not know what each particular query is doing, it will refresh each query after performing an insert or update. It is looking to see if items have been added, removed or re-ordered based on the properties you change. In your case, maybe the query results are coming back in a completely different order so LC DS would be trying to update the order. It might also be that your equals/hashCode methods of your server side VOs are not defined properly so after it does the auto-refresh it thinks the items are completely different from the way they were originally. Turning on the server side debug logs for the Message.* and Service.* targets would give you a good idea of what is happening on the server. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steven Toth Sent: Wednesday, July 16, 2008 11:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataService gives CollectionEvents for each item when committing one item Anyone have any experience with Data Services? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote: I have a DataService that uses the Assembler interface approach (I subclassed AbstractAssembler). When I update one item in the managed Collection and commit it (autoCommit is false) I'm getting a PropertyChangeEvent of kind UPDATE for each item in the Collection from the DataService. In addition I get a CollectionEvent of kind REMOVE for each item in the Collection, then a CollectionEvent of kind ADD for each item in the Collection from the Collection itself. I'm assuming this is because the fill() is being called after the update is completed. How do I commit/update the individual item so that I only get an event (or set of events) for the item that was modified? Is that possible when using a managed Collection or do I need to operate at the individual item level. Am I doing something wrong (or not doing something at all) in the Assembler? I'm very experienced with Remoting and Messaging but this is my first time dealing with DataServices. Any help, samples,etc. are greatly appreciated. Thanks. Here's the Assembler code... public class MyAssembler extends AbstractAssembler { private MyService svc = MyService.getInstance(); public Collection fill(List fillParameters) { if (fillParameters.size() = 2) { int fillType = FlexDataHelper.getIntPrimitive( fillParameters.get (0) ); Long companyId = FlexDataHelper.getLong( fillParameters.get(1) ); switch(fillType) { case QueryType.ALL_WIDGETS_FOR_COMPANY: return svc.getAllWidgets(companyId); case QueryType.ACTIVE_WIDGETS_FOR_COMPANY_: return svc.getActiveWidgets(companyId); case QueryType.WIDGETS_BY_COMPANY_AND_CATEGORY: if (fillParameters.size() == 3) { Integer categoryId = FlexDataHelper.getInteger( fillParameters.get (2) ); return svc.getWidgets(companyId, categoryId); } } } // Throws a nice error return super.fill(fillParameters); } public Object getItem(Map uid) { return svc.getWidget( FlexDataHelper.getLong(uid.get(companyId)), FlexDataHelper.getInteger(uid.get(widgetId)) ); } public void createItem(Object newVersion) { svc.saveWidget((WidgetValue)newVersion); } public void updateItem(Object newVersion, Object prevVersion, List changes) { try { svc.saveWidget((WidgetValue)newVersion); } catch (Exception e) { Long companyId = ((WidgetValue)prevVersion).getCompanyId(); Integer widgetId = ((WidgetValue)prevVersion).getWidgetId(); System.err.println(*** Throwing DataSyncException when trying to save widget = + widgetId); throw new DataSyncException(svc.getWidget(companyId, widgetId), null); } } public void deleteItem(Object prevVersion) { try { svc.deleteWidget( (WidgetValue)prevVersion ); } catch (Exception e) { Long companyId = ((WidgetValue)prevVersion).getCompanyId(); Integer widgetId = ((WidgetValue)prevVersion).getWidgetId(); System.err.println(*** Throwing DataSyncException when trying to delete widget = + widgetId); throw new DataSyncException(svc.getWidget(companyId, widgetId), null); } } Here's the Flex UI code... public function getWidgetsForCompany( company:CompanyValue ):void { var widgets:ArrayCollection = new ArrayCollection(); var call:AsyncToken = widgetService.fill(widgets, QueryType.ALL_WIDGETS_FOR_COMPANY, company.companyId); // Add a reference to the collection that will be filled for access by the responder call.useLocalData = true; call.localData = widgets; call.addResponder( responder ); } public function saveWidget( widget:WidgetValue ):void { var call:AsyncToken; if (isNaN(widget.widgetId)) { call = widgetService.createItem(widget); } else { //Update call = widgetService.commit(new Array(widget), false
[flexcoders] PopButton inside another popUp
I've got a PopupButton which pops up a form, which in turn contains another popupbutton subform, and I'm running into difficulties with the inner popup being undefined. I know there's an outstanding issue here and I've tried to implement the fix (as I know it) which is to check to see of the popUp property is undefined, and if so, define it on the fly via AS. The issue I'm seeing however is that the popUp is behind the other popup until I click on it once or twice. Any sugestions or advice? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] PopButton inside another popUp
Did some googling - upgraded to SDK 3.0.2 - issue resolved. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, July 16, 2008 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PopButton inside another popUp I've got a PopupButton which pops up a form, which in turn contains another popupbutton subform, and I'm running into difficulties with the inner popup being undefined. I know there's an outstanding issue here and I've tried to implement the fix (as I know it) which is to check to see of the popUp property is undefined, and if so, define it on the fly via AS. The issue I'm seeing however is that the popUp is behind the other popup until I click on it once or twice. Any sugestions or advice? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] LCDS and Hibernate - how to setup bidirectional relationship
You do not have cascade delete set in hibernate do you? I don’t think LC DS would delete items if you are just removing an item from a collection or set an association to null. In general, just calling “deleteItem” on the child should remove it from the parent’s child property automatically. If you are not running on the latest hotfix it might be worth trying that as there have been a few bugs fixed in that version. I’ll send you a copy off list. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Zdenek Mikan Sent: Friday, July 04, 2008 4:40 AM Cc: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS and Hibernate - how to setup bidirectional relationship I have got bi-directional association defined in LCDS and Hibernate - one Parent has ArrayCollection of many Child objects, in Child I have the pointer to its Parent. All works correctly, but when I try to delete one of the child objects (either by parent.childs.removeItemAt() or directly through dsChild.deleteItem()), my parent object just disappears - it is deleted as well. I can fix this by making the relationship one-directional (then it works), but I think there has to be some setting either in LCDS or in Hibernate to prevent this. Thanks in advance for some advice Zdenek M inline: image001.jpginline: image002.jpg
RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????
Thanks Alex - that does it. I noticed some interesting behavior in all this - if my custom event did not have its own clone method override I'd get a type coercion error when dispatching the custom event from the CB when using event metadata. But now I've got it working right. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Thursday, July 10, 2008 12:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? In my coding, the renderers dispatch off their owner, which is the list. The CB simply adds listeners for whatever event it is interested in. Best time to do that is probably the OPEN event. CB currently listens for CHANGE. So in my app there'd only be one level of listening (CB listens to dropdown) since the renderers dispatch off of the dropdown. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, July 09, 2008 4:38 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? Thanks Alex! How do you control what events the CB is listening for from it's list? It would seem there are two levels of listening required herre - one by the List and another by the CB. I'm definitely in search of the best practices way to approach this sort of problem. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, July 09, 2008 6:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? It wasn't clear whether your renderer was dispatching the event or the entire dropdown. Yes, you may need two levels of owner.. A renderer in the dropdown doesn't have any clue it is working for a combobox and you just have to wire it up correctly. Personally, I'm not a fan of using bubbling to pass events. IMHO, bubbling is designed for cases where you cannot know the relationship (something internal got clicked, scrolled or added). Everything else should be handled without bubbling. The CB listens for events from the dropdown already. If I were doing custom work, any additional event would be dispatched from the dropdown and listened to from the CB. Lots of folks seem to love bubbling, but I think it is a bad practice when you already have a defined relationship. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, July 09, 2008 11:22 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? Seriously Alex, I have been tearing my hair out over this. When I trace owner from within my itemRenderer I get List496 or something like that. If I use owner.dispatchEvent(myCustomEventInstance,true), and listen on the ComboBox, nothing is transmitted. At this point I'm glad I've got something that will work, i.e., using SystemManager, but I want to know if there's something I'm doing wrong that requires this approach, because it seems to break the chain of responsibility. Shouldn't a combo box be able to relay events from its list? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, July 09, 2008 1:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? Popups have to float over everything so they are parented by SM and not the CB or the app. If you dispatch the event off the owner it will go to the CB and bubble up from there From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, July 09, 2008 10:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? I've
[flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????
I've been remiss in addressing my less-than-perfect understanding of Events and event bubbling. My custom itemRenderer needs to fire a custom event. I've spent the last day trying to get it to bubble up from my custom itemRenderer to the ComboBox, but no dice. If I add an eventListener in my ComboBox, it does not receive the event. However when I use systemManager.addEventListener(myCustomEvent,myHandler), suddenly I can receive the event. Is this the expected behavior? Why? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????
Alex, I thought that might be the case, but when I use owner.dispatchEvent(myCustomEventInstance,true) from within my itemRenderer, and I have previously added an event listener to my ComboBox, no event is broadcast from my ComboBox. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, July 09, 2008 1:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? Popups have to float over everything so they are parented by SM and not the CB or the app. If you dispatch the event off the owner it will go to the CB and bubble up from there From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, July 09, 2008 10:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? I've been remiss in addressing my less-than-perfect understanding of Events and event bubbling. My custom itemRenderer needs to fire a custom event. I've spent the last day trying to get it to bubble up from my custom itemRenderer to the ComboBox, but no dice. If I add an eventListener in my ComboBox, it does not receive the event. However when I use systemManager.addEventListener(myCustomEvent,myHandler), suddenly I can receive the event. Is this the expected behavior? Why? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????
Seriously Alex, I have been tearing my hair out over this. When I trace owner from within my itemRenderer I get List496 or something like that. If I use owner.dispatchEvent(myCustomEventInstance,true), and listen on the ComboBox, nothing is transmitted. At this point I'm glad I've got something that will work, i.e., using SystemManager, but I want to know if there's something I'm doing wrong that requires this approach, because it seems to break the chain of responsibility. Shouldn't a combo box be able to relay events from its list? Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, July 09, 2008 1:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? Popups have to float over everything so they are parented by SM and not the CB or the app. If you dispatch the event off the owner it will go to the CB and bubble up from there From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Wednesday, July 09, 2008 10:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY? I've been remiss in addressing my less-than-perfect understanding of Events and event bubbling. My custom itemRenderer needs to fire a custom event. I've spent the last day trying to get it to bubble up from my custom itemRenderer to the ComboBox, but no dice. If I add an eventListener in my ComboBox, it does not receive the event. However when I use systemManager.addEventListener(myCustomEvent,myHandler), suddenly I can receive the event. Is this the expected behavior? Why? Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)