RE: [flexcoders] Re: Data grid with check box... How to get value
Title: Message Joe. Part of the Custom Cell Render Spec are four attributes that are available to the Cell Renderer. They are: owner - the row the cell renderer instance is in. listOwner - thecontainer (data grid, list box, etc)the row is in getDataLabel - function that will give you the column name the cell renderer is mapped to getCellIndex - function that returnsan object/structure/hash map of itemIndex (row), column index (pos in column array) and one other piece which I forget. So, using this (they must be declared and are case sensitive to the spelling above) you can either dynamically get to the value of the current cell or static get to the value of a cell in that row. Here are some examples assuming you are mapping to the clickEvent of the checkbox that is in your cell renderer. function onValueChanged() : Void{var item = this.listOwner.dataProvider[getCellIndex().itemIndex];item[this.getDataLabel()] = checkbox.selected;} or function onValueChanged() : Void{var item = this.listOwner.dataProvider[getCellIndex().itemIndex];item['myGoofyColumn'] = checkbox.selected;} Best. Ben -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Thursday, June 23, 2005 1:25 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Data grid with check box... How to get value The data grid is populated from a data provider. It displays about 20 rows. When I click on one of the check box I would like to be able to get a value from one of the cells in that row. The data grid is a MXML component and the check box is from a cell rendering action scripting file. CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Data Grid/Cell Renderers Rendering Issue
All. Has anyone experienced the following (or something similar to it): We have a Data Grid with a height of 400. It has four columns, all but one have custom cell renderer. The Row height is 50 per row (defined in the dg tag). The data grid displays this fine originally but we found that row two (well second visible row) disappears if the number of rows is greater then what can be displayed in the 400 height. Thanks. Ben -- This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] New Guy
We are about to deploy on a configuration of CF7/Flex (prod is multi-instance while my local dev is standalone) so it works. I worked with Peter Farland (well he did most of it) and created the necessary web.xml file to get these to work together. I have attached it. You will need to install Flex on your server obviously. Best. Ben -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lamynes03 Sent: Thursday, May 12, 2005 12:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Guy I have coldfusion mx7 and now flex 1.5, I can't seem to get flex to run with coldfusion. The trial version has the java side installed with it, but with the full version... nothing. Coldfusion has java built in, but I can't open .jsp or .mxml files from my site. Thank you, Paul Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; !-- This web.xml is a sample ColdFusion MX 7 web application deployment descriptor (with its own Embedded Flex for Flash Forms and Reporting) merged with a Flex 1.5 web application deployment descriptor. This file should work on JRun 4 as that application server is more lenient in its parsing of web.xml deployment descriptors. Other application servers may enforce the DTD specified order of each config section, for example, WebSphere expects servlets to become servlet-mappings, etc. This file takes this order into account and as a result is a little longer than it could be for JRun because the configuration sections have to be separated for CFMX 7, CFMX 7-Embedded-Flex and Flex 1.5. Another item to consider for other application servers is that each config element might need a unique id attribute. I'm not sure which application servers require this, but note that the Flex 1.5 config sections do not have unique id attributes and thus these would have to be added if the application server required it. The co-existance of ColdFusion MX 7 and Flex 1.5 is made possible due to several factors. Firstly, since CFMX 7 contains some portions of Flex to support its reporting and flash forms features, unique servlet names and servlet mappings had to be chosen to avoid collisions. Secondly, the two applications store the majority of there classes in their own directories and locate classes with a custom bootstrap classloader. The bootstrap classloaders allow each application to guarantee that their versions of common APIs, such as Apache Commons, Log4J, and XML Parsing APIs, are used rather than those shipped with each application server or user web application. The CFMX 7 bootstrap classloader classpath is specified by the cf.class.path context-param. Typically all CFMX specific libraries live in various directories under /WEB-INF/cfusion The Flex 1.5 bootstrap classloader classpath is specified by the flex.class.path context-param. Typically all Flex specific libraries live at /WEB-INF/flex/jars There are exceptions to this, however... application features that must run in the current web application classpath (such as tag libs used in JSP pages or Flex RemoteObject that needs to locate user defined classes) typically are contained in libraries in /WEB-INF/lib. -- web-app id=macromedia_coldfusion display-nameMacromedia Coldfusion MX and Macromedia Flex 1.5/display-name descriptionMacromedia Coldfusion MX 7 merged with Macromedia Flex 1.5/description !-- CFMX 7 Context Params -- context-param id=macromedia_context_1 param-namecftags/param-name param-value/WEB-INF/cftags/param-value descriptionPath to search for built-in tags. Relative to application root. This parameter can only be one path element./description /context-param context-param id=macromedia_context_2 param-namecoldfusion.compiler.outputDir/param-name param-value/WEB-INF/cfclasses/param-value descriptionThis is the directory where we will place compiled pages. It must be relative to the webapp root./description /context-param context-param id=macromedia_context_4 param-namecfx.registry.nativelibrary/param-name param-valuecfregistry/param-value descriptionNative library that implements CFX_REGISTRY. Used on Windows only./description /context-param context-param id=macromedia_context_5 param-namecfx.report.nativelibrary/param-name param-valuecfreport/param-value descriptionNative
RE: [flexcoders] Re: Popup only works once
Missed that email, thanks for the repost. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steven Webster Sent: Friday, April 15, 2005 7:27 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Popup only works once Cairngorm .99 should have the ability to unregister view helpers from the ViewLocator so when this is released you will need to unregister the View in the destruction sequence of the popup. In the mean time there are these options (may be more out there): Alistair released a patch for Cairngorm some months ago to address this; the patch will be part of the forthcoming 0.99 release: The URL on Yahoogroups is: http://groups.yahoo.com/group/flexcoders/message/6148 Here's the gist of the email: public function initialized( view : Object, id : String ) : Void { this.view = view; this.id = id; ViewLocator.getInstance().register( id, this ); view.addEventListener( unload, Delegate.create( this, unregisterView ) ); } private function unregisterView() : Void { ViewLocator.getInstance().unregister( id ); } private var id : String; private var view : Object; Add that to the ViewHelper base-class, and it gives you a method that allows you to unregister the view; the motivation for this was people that were using ViewHelper inside Popup windows; when the popup window was destroyed with deletePopUp() it was deleting the view, but keeping the ViewHelper reference - so we now ask people to explicitly unregister views in popups when they are destroyed. Hope that helps in the interim. Best, Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 14/04/2005 Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Popup only works once
Are you guys using the Cairngorm Framework? If so, does your popup window have a viewHelper assigned to it? -Original Message- From: Rafael M. Martinelli [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 11:37 AM To: flexcoders@yahoogroups.com Subject: RES: [flexcoders] Re: Popup only works once I'm facing the same problem. Did you find what's wrong? Thanks -Mensagem original- De: cazzaran [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 8 de abril de 2005 13:37 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Re: Popup only works once That didn't seem to change my problem. My popup still refuses to come back once it's been closed once. this.deletePopUp() (or using the doLater) is the right place to be doing this, right? -Josh --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Just for fun, try the magic doLater(). doLater(this, deletePopUp) Tracy -Original Message- From: cazzaran [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 6:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Popup only works once I have an Add Group button in my MXML that calls a method: public function showAddGroupWindow():Void { var popup = PopUpManager.createPopUp(MovieClip(mx.core.Application.application), addGroupWindow, true); popup.centerPopUp(); } In my popup MXML, which is just a simple title window, I have a save and a cancel button. My cancel button calls the method: function cancelButtonPressed() { this.deletePopUp(); } The save button is having the same problem... If I click either button, the popup closes, but the Add Group button wont open another popup. I've verified that it's still calling the showAddGroupWindow() method, but for some reason, nothing pops up anymore. I have a feeling the deletePopUp() isn't fully getting rid of it... where am I going wrong? Yahoo! Groups Links Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 7/4/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.10 - Release Date: 14/4/2005 Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Popup only works once
The issue is that each time the Popup opens, the ViewHelper attempts to register itself to the ViewLocator. The framework has a rule that a ViewHelper must be unique in its 'handle' (done by the ViewLocator checking if the View Name is already registered to it) otherwise it raises and Error. (Code can be seen in the ViewLocator.as file). Cairngorm .99 should have the ability to unregister view helpers from the ViewLocator so when this is released you will need to unregister the View in the destruction sequence of the popup. In the mean time there are these options (may be more out there): 1. Modify the Cairngorm framework by not throwing an error in the View Locator if the Name is already registered to it. (Not saying this is the best option, just saying this is one way to do it) 2. Open up the popup window (child) without a view helper or a view helper that doesn't have a name on it (if you are looking for code abstraction). Have the child raise events that the parent can listen to. When the event is raised have the parent broadcast the event (to the command) and have your Commands talk to the parent to get the necessary information from the child window. I have found there to be value have the child popup simply raise events that the parent (the mxml file that created the popup) is listening for in several situations. Esp in any sort of master/detail relationship (address of a user for example). Hope this helps. Ben -Original Message- From: Rafael M. Martinelli [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 12:04 PM To: flexcoders@yahoogroups.com Subject: RES: [flexcoders] Re: Popup only works once Yes, we're ussing the Cairngorm Framework and we're using a viewHelper in the TileWindow. How can I solve this problem? I can't use the viewHelper in this situation? Thanks. -Mensagem original- De: Ben Elmore [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 14 de abril de 2005 12:49 Para: flexcoders@yahoogroups.com Assunto: RE: [flexcoders] Re: Popup only works once Are you guys using the Cairngorm Framework? If so, does your popup window have a viewHelper assigned to it? -Original Message- From: Rafael M. Martinelli [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 11:37 AM To: flexcoders@yahoogroups.com Subject: RES: [flexcoders] Re: Popup only works once I'm facing the same problem. Did you find what's wrong? Thanks -Mensagem original- De: cazzaran [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 8 de abril de 2005 13:37 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Re: Popup only works once That didn't seem to change my problem. My popup still refuses to come back once it's been closed once. this.deletePopUp() (or using the doLater) is the right place to be doing this, right? -Josh --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Just for fun, try the magic doLater(). doLater(this, deletePopUp) Tracy -Original Message- From: cazzaran [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 6:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Popup only works once I have an Add Group button in my MXML that calls a method: public function showAddGroupWindow():Void { var popup = PopUpManager.createPopUp(MovieClip(mx.core.Application.application), addGroupWindow, true); popup.centerPopUp(); } In my popup MXML, which is just a simple title window, I have a save and a cancel button. My cancel button calls the method: function cancelButtonPressed() { this.deletePopUp(); } The save button is having the same problem... If I click either button, the popup closes, but the Add Group button wont open another popup. I've verified that it's still calling the showAddGroupWindow() method, but for some reason, nothing pops up anymore. I have a feeling the deletePopUp() isn't fully getting rid of it... where am I going wrong? Yahoo! Groups Links Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 7/4/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.10 - Release Date: 14/4/2005 Yahoo! Groups Links Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.10 - Release Date: 14/4/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.10 - Release Date: 14/4/2005 Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] beginners question about sending data to custom flex components
Title: Message I could be wrong, but from my experience I found that binding with functions doesn't work if there are no arguments that are passed into the function that Flex can watch. So. myClass.myFunc() - Flex doesn't know that it should recheck the function myClass.myFunc( myClass.att1 ) - only recalls function on change to myClass.att1 I havn't tried goofing around with what happens if class raises change events like dispatchEvent({type:'myFuncChanged'}). -Original Message-From: Abdul Qabiz [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 12:25 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] beginners question about sending data to custom flex components Hi Matthew, It would really help, if you can give me a test-case where you see mixed result...It would really help us... Thanks -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 8:57 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] beginners question about sending data to custom flex components I'm fairly new at this data binding stuff... but I thought you were only able to bind properties, or getters/setters. I have had mixed results when I try to bind to a function. Is this wrong?-- Matthew On 4/14/05, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, Can you post the code so that we look at it? IMO this shouldn't happen? -abdul From: erik katerborg [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 14, 2005 3:10 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] beginners question about sending data to custom flex componentsImportance: High hi, This may be a beginner's question but I just can't figure one thing out: how to send dynamic data to a custom flex component. what I want to do is the following: myCustomSWC myDataToBeUsed="{myActionscriptClass.getData();}" / the problem is that the function is not executed but simply passed as a string to the component. Another problem is that the actionscript class may not have initialised yet so the function would not work at all. does anyone have a suggestion on how to do this ??? thanks very much !!! a confused flex coder, erik. Erik Katerborg Multimedia Designer t: 050 - 575.78.88 f: 050 - 575.88.89 e: [EMAIL PROTECTED] w: www.thefactore.com theFactor.eFriesestraatweg 215a Postbus 20109704CA GroningenBusiness Partner for MediasurfaceAlliance Partner for Macromedia Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] My Company's Flex Site Live
Congrads. Site looks great. -Original Message- From: James Ward [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 8:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] My Company's Flex Site Live I want to thank everyone on this list for all the help over the past few months! Just minutes ago we launched our all Flex site: http://www.pillardata.com Flex is beautiful and this community makes it even better! Thank you all! -James Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: AS - adding dynamic properties to an object
A quick way to do it (ugly admittedly) is to use the 'instanceof' or 'typeof' operator. if ( obj[propertyName] instanceof Date ) You might need to cast into number or date before you check the instance of to see if it is valid. -Original Message- From: viraf_bankwalla [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 10:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS - adding dynamic properties to an object Thanks - the example below would have worked if I had knowledge of the property name when I wrote the code. This is not the case (the property name is retrieved with a service request). The solution that I found was to use the associative array syntax - obj[propertyName] = yy; Now the next question is that how do I specify that propertyName is of a given type - say Date or Number. Thanks. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On Apr 5, 2005 1:08 AM, viraf_bankwalla [EMAIL PROTECTED] wrote: How do I add dynamic properties to an obect ? These properties are received over the HTTPService request. If you have an instance of a dynamic class, you can just stick them onto the object. var o:Object = new Object(); // dynamic object o.newProperty = default value; // stick a new property onto it Pretty much it. Manish Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: AS - adding dynamic properties to an object
Is this the answer to the age old question of 'Who's on first?' :) -Original Message- From: JesterXL [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 10:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: AS - adding dynamic properties to an object A rundown of them all: Who's on here? - function showProps(o:Object):Void { for(var p in o) { trace(-); trace(p + : + o[p]); trace(typeof: + typeof(o[p])); trace(is a String: + (o[p] instanceof String)); trace(is a Number: + (o[p] instanceof Number)); trace(is a Array: + (o[p] instanceof Array)); trace(is a Boolean: + (o[p] instanceof Boolean)); trace(is a Date: + (o[p] instanceof Date)); } } Obviously there are more data types. You know the type (not recommended): var val:String = o[p]; You coerce the type (recommended, but expect weird results): var val:MyClass = MyClass(o[p]); Keep in mind, the above works differently since some intrinsic datatypes have special constructors; String(something) actually converts it to a String, and Date's overloaded with a few different ways of making them. ...obviously, interfaces are typically the best way, since you can typecast 'em (I think, I did it with a CollectionItr): var myA:Iterator = Interator(reallyARecordSet); Or something to that effect. - Original Message - From: Ben Elmore [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, April 04, 2005 10:15 PM Subject: RE: [flexcoders] Re: AS - adding dynamic properties to an object A quick way to do it (ugly admittedly) is to use the 'instanceof' or 'typeof' operator. if ( obj[propertyName] instanceof Date ) You might need to cast into number or date before you check the instance of to see if it is valid. -Original Message- From: viraf_bankwalla [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 10:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS - adding dynamic properties to an object Thanks - the example below would have worked if I had knowledge of the property name when I wrote the code. This is not the case (the property name is retrieved with a service request). The solution that I found was to use the associative array syntax - obj[propertyName] = yy; Now the next question is that how do I specify that propertyName is of a given type - say Date or Number. Thanks. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On Apr 5, 2005 1:08 AM, viraf_bankwalla [EMAIL PROTECTED] wrote: How do I add dynamic properties to an obect ? These properties are received over the HTTPService request. If you have an instance of a dynamic class, you can just stick them onto the object. var o:Object = new Object(); // dynamic object o.newProperty = default value; // stick a new property onto it Pretty much it. Manish Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm Question.
Title: Message The way Cairngorm current architects the ViewHelper is that itrequires eachViewHelper to register itself to the ViewLocator under a unique name. Therefore if you are attaching theview dynamically in a repeater and using the samevalue in the 'name' attributefor the ViewHelpers thenthe ViewLoactor will throw an error. One approach to your solution is to have the each of your views bubble up its methods to the parent view that the repeater exists in. For example (in code babble). MyMainView.mxml mx:script public activeChild : MovieClip = null; function parentHandleMethod(evt) { // store current child view to local var activeChild = evt.target' // do server call } /ms:script mx:repeater me:mychildView /mx:repeater ... MyChildView.mxml mx:Metadata [Event("onCustomEvent1")] [Event("onCustomEvent2")] /mx:Metadata mx:Button click="this.dispatchEvent({type='onCustomEvent1', otherAttributes=''})" In this example instead of having the child view handle the logic itself (communicating to the server) it tells the parent too. Or more correctly says 'someone please do this for me' the parent will know which of the child views to get the data from since the dispatch event automatically keeps track of the target in which the event was dispatch from. This is just a suggestion. There are other options out there, perhaps better or more correct then this approach. Ben -Original Message-From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 12:53 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. Anyone? Omar Ramos Itacon Corporation Technology Manager From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 8:18 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Cairngorm Question. Hi all, I am using the Cairngorm plataform but had a small question. How can I use the viewhelper technique when I attach view dynamicaly? For example I have a mxml component and put a view helper attached to it and use this component on a repeater and 5 instances are made. When I call the getViewHelper method which of those 5 reference will it give me? Any help would be apreaciated. Omar Ramos Itacon Corporation Technology Manager Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Proof of Concept - (help with Flex Setup)
This is possible and mirrors one of the environments I had to use in the past. In the mx:RemoteObject tag there is an attribute called 'endpoint' where you can point your mxml remote object calls to. Find the server name where flex is running and do 'servername:port\amfgateway' for java or the servlet mapping to flash remoting. If you are going to use the Flex server to call you java classes make sure the classes are available to the Flex server and that you have the whitelist configured correctly. -Original Message- From: Libby Chantel [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 2:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Proof of Concept - (help with Flex Setup) I am writing a Flex proof of concept app that accesses existing Java programs on the back end. When we did our Flash app, the developers wrote the flash code on their local machines and when testing made their calls to the remote java server without deploying any flash code. I am having trouble getting this scenario setup with Flex. Does anyone know how to set this up so that it is possible (mxml files on local pc, remainder of Flex on remote Java Server)? Thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm Question.
Title: Message Well. My thought is 'Who would know what child needed the work done?' The view locator's need to have the view helper name be unique is so that it can locate the view. A command has to be 100% sure what view towork with to get the data to properly make the call out to the server. Therefore my thought is that the safer bet would be to have the command talk to the parent to either a) get the data or b) get the name of the child. Anyway, those are just my thoughts to why I would approach the situation the way I outlined. My judgment of clean has a lot to do with the ability to maintain the application and as much as possible keeping the interdepancy between my view files as possible. Loose coupling. Ben -Original Message-From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 3:18 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. Yes I had tho of that idea ben. But was wondering what was the clean way to do it. Thanks for the reply's so far. Omar Ramos Itacon Corporation Technology Manager From: Ben Elmore [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 2:17 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. The way Cairngorm current architects the ViewHelper is that itrequires eachViewHelper to register itself to the ViewLocator under a unique name. Therefore if you are attaching theview dynamically in a repeater and using the samevalue in the 'name' attributefor the ViewHelpers thenthe ViewLoactor will throw an error. One approach to your solution is to have the each of your views bubble up its methods to the parent view that the repeater exists in. For example (in code babble). MyMainView.mxml mx:script public activeChild : MovieClip = null; function parentHandleMethod(evt) { // store current child view to local var activeChild = evt.target' // do server call } /ms:script mx:repeater me:mychildView /mx:repeater ... MyChildView.mxml mx:Metadata [Event("onCustomEvent1")] [Event("onCustomEvent2")] /mx:Metadata mx:Button click="this.dispatchEvent({type='onCustomEvent1', otherAttributes=''})" In this example instead of having the child view handle the logic itself (communicating to the server) it tells the parent too. Or more correctly says 'someone please do this for me' the parent will know which of the child views to get the data from since the dispatch event automatically keeps track of the target in which the event was dispatch from. This is just a suggestion. There are other options out there, perhaps better or more correct then this approach. Ben -Original Message-From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 12:53 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. Anyone? Omar Ramos Itacon Corporation Technology Manager From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 8:18 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Cairngorm Question. Hi all, I am using the Cairngorm plataform but had a small question. How can I use the viewhelper technique when I attach view dynamicaly? For example I have a mxml component and put a view helper attached to it and use this component on a repeater and 5 instances are made. When I call the getViewHelper method which of those 5 reference will it give me? Any help would be apreaciated. Omar Ramos Itacon Corporation Technology Manager Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cairngorm Question.
Title: Message That is 'keeping the interdepancy between my view files as few as possible'. -Original Message-From: Ben Elmore [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 4:07 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. Well. My thought is 'Who would know what child needed the work done?' The view locator's need to have the view helper name be unique is so that it can locate the view. A command has to be 100% sure what view towork with to get the data to properly make the call out to the server. Therefore my thought is that the safer bet would be to have the command talk to the parent to either a) get the data or b) get the name of the child. Anyway, those are just my thoughts to why I would approach the situation the way I outlined. My judgment of clean has a lot to do with the ability to maintain the application and as much as possible keeping the interdepancy between my view files as possible. Loose coupling. Ben -Original Message-From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 3:18 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. Yes I had tho of that idea ben. But was wondering what was the clean way to do it. Thanks for the reply's so far. Omar Ramos Itacon Corporation Technology Manager From: Ben Elmore [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 2:17 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. The way Cairngorm current architects the ViewHelper is that itrequires eachViewHelper to register itself to the ViewLocator under a unique name. Therefore if you are attaching theview dynamically in a repeater and using the samevalue in the 'name' attributefor the ViewHelpers thenthe ViewLoactor will throw an error. One approach to your solution is to have the each of your views bubble up its methods to the parent view that the repeater exists in. For example (in code babble). MyMainView.mxml mx:script public activeChild : MovieClip = null; function parentHandleMethod(evt) { // store current child view to local var activeChild = evt.target' // do server call } /ms:script mx:repeater me:mychildView /mx:repeater ... MyChildView.mxml mx:Metadata [Event("onCustomEvent1")] [Event("onCustomEvent2")] /mx:Metadata mx:Button click="this.dispatchEvent({type='onCustomEvent1', otherAttributes=''})" In this example instead of having the child view handle the logic itself (communicating to the server) it tells the parent too. Or more correctly says 'someone please do this for me' the parent will know which of the child views to get the data from since the dispatch event automatically keeps track of the target in which the event was dispatch from. This is just a suggestion. There are other options out there, perhaps better or more correct then this approach. Ben -Original Message-From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 12:53 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm Question. Anyone? Omar Ramos Itacon Corporation Technology Manager From: Omar Ramos [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 8:18 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Cairngorm Question. Hi all, I am using the Cairngorm plataform but had a small question. How can I use the viewhelper technique when I attach view dynamicaly? For example I have a mxml component and put a view helper attached to it and use this component on a repeater and 5 instances are made. When I call the getViewHelper method which of those 5 reference will it give me? Any help would be apreaciated. Omar Ramos Itacon Corporation Technology Manager Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question
Title: Message Correct. Iam hoping it is something that straight forward. -Original Message-From: Chris Reynolds [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 12:05 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question Presumably thelast s in the folder was just an email typo ;-) {insall-server-root}/FlexProjects/Flex/WEB-INF/classess From: Ben Elmore [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:26 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question All.Basically I am trying to configure the my flex application to work with someserver side java objects (basic pojos) and am getting a'flashgateway.adapter.NoSuchServiceException' error thrown when I attempt toaccess it. I have been able to get this working on several different serversbut am at a loss towhy this one particular setup is causing an issue. I amrunning my connectivity test with the both a helloWorld java object and thesample java connector that comes with the flex install.This is my environment.Jrun 4.0 (running latest updater) installI have several Jrun servers running each with a couple of apps.For the environment I am trying to set up I have configured a new server(called FlexProjects) and extracted the flex.war file into a directory inthat server called 'flex'. I loaded my test java classes (also tried theCairngorm demo) into the{insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory. Is there something that I am missing in the config of Jrun that is nothaving the gateway find the classes in that directory (oh, I can confirmthat the classes work through a jsp running on that page).Thanks.Ben--This e-mail and any attachments may contain information which isconfidential, proprietary, privileged or otherwise protected by law. Theinformation is solely intended for the named addressee (or a personresponsible for delivering it to the addressee). If you are not the intendedrecipient of this message, you are not authorized to read, print, retain,copy or disseminatethis message or any part of it. If you have receivedthis e-mail in error, please notify the sender immediately by return e-mailand deleteit from your computer.
RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question
Spike. I am running CFMX on one of my Jrun server instances. How did you go about fixing the error (aside from uninstalling CF :) ). I was trying to determine classpath conflicts today but hadn't discovered specifics. Thanks. Ben -Original Message- From: Spike [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 1:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question Do you have a CFMX instance running on the JRun server. I ran into an issue a week or so ago with a conflict between the instructions for setting up verity and running a Flex server. The basic problem was a classpath issue that was causing the JVM to use the CFMX flash remoting instead of the generic flash remoting, so it was looking in the wrong place for the class files when a remoting request came through the Flex server. Not sure if that's your issue, but I tracked it down by launching the server instance in debug mode and lookging at the details for the error when remoting couldn't find the classes. HTH Spike Ben Elmore wrote: Correct. I am hoping it is something that straight forward. -Original Message- *From:* Chris Reynolds [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, March 02, 2005 12:05 AM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question Presumably the last s in the folder was just an email typo ;-) {insall-server-root}/FlexProjects/Flex/WEB-INF/classess -- -- *From:* Ben Elmore [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, March 02, 2005 5:26 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question All. Basically I am trying to configure the my flex application to work with some server side java objects (basic pojos) and am getting a 'flashgateway.adapter.NoSuchServiceException' error thrown when I attempt to access it. I have been able to get this working on several different servers but am at a loss to why this one particular setup is causing an issue. I am running my connectivity test with the both a helloWorld java object and the sample java connector that comes with the flex install. This is my environment. Jrun 4.0 (running latest updater) install I have several Jrun servers running each with a couple of apps. For the environment I am trying to set up I have configured a new server (called FlexProjects) and extracted the flex.war file into a directory in that server called 'flex'. I loaded my test java classes (also tried the Cairngorm demo) into the {insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory. Is there something that I am missing in the config of Jrun that is not having the gateway find the classes in that directory (oh, I can confirm that the classes work through a jsp running on that page). Thanks. Ben -- This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer. *Yahoo! Groups Sponsor* ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=1290mjllk/M=298184.6018725.7038619.3001176/D=gr oups/S=1705007207:HM/EXP=1109830219/A=2593423/R=0/SIG=11el9gslf/*http://www. netflix.com/Default?mqso=60190075 -- -- *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org Yahoo! Groups Links
RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question
Spike. Thanks for the nudge in the right direction. I solved my issue (though I haven't seen if this messes up CF yet) by updating the class path in the jvm.config file to have it look in jrun/lib rather then Web-Inf/cfusion/lib directory first. I seem to remember that this might not be the best thing since CFusionMX had different versions of certain sub component (xml parsers and the like) then Jrun. Can anyone from MM comment on that, esp if this would mess up a CF7 install on a Java instance (our target prod environment)? Ben -Original Message- From: Spike [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 1:39 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question I removed the classpath entries I added to the JRun instance for verity. Those were the ones that caused the problem for me. Haven't got round to sorting out how to put them back on again so they don't conflict, but that was the issue. You should be able to tell if that's the issue if you run the flex server from the command line. I can give you more details if you need them, but it's getting late here and I'm about to head off to bed. Spike Ben Elmore wrote: Spike. I am running CFMX on one of my Jrun server instances. How did you go about fixing the error (aside from uninstalling CF :) ). I was trying to determine classpath conflicts today but hadn't discovered specifics. Thanks. Ben -Original Message- From: Spike [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 1:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question Do you have a CFMX instance running on the JRun server. I ran into an issue a week or so ago with a conflict between the instructions for setting up verity and running a Flex server. The basic problem was a classpath issue that was causing the JVM to use the CFMX flash remoting instead of the generic flash remoting, so it was looking in the wrong place for the class files when a remoting request came through the Flex server. Not sure if that's your issue, but I tracked it down by launching the server instance in debug mode and lookging at the details for the error when remoting couldn't find the classes. HTH Spike Ben Elmore wrote: Correct. I am hoping it is something that straight forward. -Original Message- *From:* Chris Reynolds [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, March 02, 2005 12:05 AM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question Presumably the last s in the folder was just an email typo ;-) {insall-server-root}/FlexProjects/Flex/WEB-INF/classess -- -- *From:* Ben Elmore [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, March 02, 2005 5:26 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question All. Basically I am trying to configure the my flex application to work with some server side java objects (basic pojos) and am getting a 'flashgateway.adapter.NoSuchServiceException' error thrown when I attempt to access it. I have been able to get this working on several different servers but am at a loss to why this one particular setup is causing an issue. I am running my connectivity test with the both a helloWorld java object and the sample java connector that comes with the flex install. This is my environment. Jrun 4.0 (running latest updater) install I have several Jrun servers running each with a couple of apps. For the environment I am trying to set up I have configured a new server (called FlexProjects) and extracted the flex.war file into a directory in that server called 'flex'. I loaded my test java classes (also tried the Cairngorm demo) into the {insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory. Is there something that I am missing in the config of Jrun that is not having the gateway find the classes in that directory (oh, I can confirm that the classes work through a jsp running on that page). Thanks. Ben -- -- -- This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer. *Yahoo! Groups