RE: [flexcoders] how to pass data to a cell renderer ?
Hi Nithya, yeah it is possible. You can have data in DataProvider and data can be passed via setValue(..) method in CellRenderer class. Check out the CellRenderer documentation and specially look at setValue(..) method description... -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nithya RSent: Monday, July 11, 2005 10:32 AMTo: flexcodersSubject: [flexcoders] how to pass data to a cell renderer ? is it possible to pass data to a cell renderer? thanks nithya Send instant messages to your online friends http://uk.messenger.yahoo.com --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 Visit your group "flexcoders" on the web. 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] Disappearing server call parameter
I'm totally confused with one of my server calls. It seems to be that in certain circumstances one of the parameter object's properties disappear. I have debugged the application to the point where the server call is made and debugger says the property exists. But when the server side code is called there is no value for the property. I know the problem sounds weird, but I simply can't find the cause of the problem. Has anyone any suggestions? In below, there are some details from the Network Monitor. Markus 13:43:12.691RemoteObjectRPC 13.43:12.942HTTPHeader POST 13.43.12.942AMF AMF/Post Message Here are details for the RPC: Method: observationFacade.saveObservationDefinition Parameter 1: name : param1 type : object value[object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][object] : definition[null] : null id[object] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[object] : code OK - code[String] : as ... And for the AMF Post Message: Message Target : observationFacade.saveObservationDefinition data[array] : length[Number] : 1 [0][object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][com.intensium.iwiser.business.observation.ObservationVO] : definition[undefined] : undefined id[com.intensium.iwiser.business.IdVO] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[com.intensium.iwiser.business.observation.ValueDefinitionVO] : code missing - code[undefined] : undefined ... -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Question about css files
I know this is probably a basic question but what is the use of them? I mean I know you do not need them but how is it an advantage in some cases to have them in your flex programming? -- 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 Visit your group "flexcoders" on the web. 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] Question about css files
Hi, You can share the same css betweendifferent Flex applications. It is better to keep CSS styles in files because you can change styles in CSS file and it would be reflected in allapplications using it. You don't need to modifyall applications for some styles, this saves lots of human errors that can happen by copying-pasting or manual edits. You can swap CSS files to change the entire color-scheme/styles of applications. Once a CSS file is downloaded to client, all applications use the copy from local cache unless it has changed on server. So only one time download which is not possible if stylesare embedded in application. So always keep common styles in one places, i.e. CSS file. -abdul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Monday, July 11, 2005 4:45 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Question about css files I know this is probably a basic question but what is the use of them? I mean I know you do not need them but how is it an advantage in some cases to have them in your flex programming? --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 Visit your group "flexcoders" on the web. 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] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
Well, I found you can simply pass a Function object to the custom DataGridCell and have the custom cell handle its own click method with that Function. The drawback is that the function must live in the same MXML file that the DataGridCell is declared in. I'd still much rather use Flex's own event handling mechanisms. Any other ideas? Have I stumped the flexcoders?! --- In flexcoders@yahoogroups.com, mrmcfeely8 [EMAIL PROTECTED] wrote: Hi all, I'm trying to create an easy way to apply a custom cell renderer to a DataGridColumn *and* keep that cell renderer flexible enough so that its behavior can be configured from the mxml file that contains the DataGridColumn. For example, I have a LinkCellRenderer that displays a column's text as a link. However, I'd like to reuse that renderer throughout my application, using different handlers for the link's click event. Ideally, I'd like to do something like this: mx:DataGrid ... mx:columns mx:Array mx:DataGridColumn columnName=textField1 / mx:DataGridColumn columnName=textField2 / custom:DataGridLinkColumn columnName=linkField click=myLocalClickHandler(event) / /mx:Array /mx:columns /mx:DataGrid I've tried implementing this by creating a class called DataGridLinkColumn that extends mx.controls.gridclasses.DataGridColumn. It looks something like this: // BEGIN CODE import mx.events.*; [Event(click)] class DataGridLinkColumn extends mx.controls.gridc lasses.DataGridColumn { public function clickPropagator(event) { var eventObj:Object = new Object(); eventObj.type = click; eventObj.item = event.item; dispatcher.dispatchEvent(eventObj); } public function DataGridLinkColumn() { cellRenderer = LinkCellRenderer; } private static function staticConstructor():Boolean { EventDispatcher.initialize(dispatcher); return true; } private static var staticConstructed:Boolean = staticConstructor(); public var addEventListener:Function; public var removeEventListener:Function; private static var dispatcher:Object = new Object(); } // END CODE LinkCellRenderer is your basic custom cell renderer (in this case, rendering a link). It uses the DataGridLinkColumn's clickPropagator method to handle the link's click method. clickPropagator would then emit a click event from the DataGridLinkColumn. This would allow you to define a click handler right from the mxml file that has the DataGridColumn declarations... like the first code sample. The problem is, while Flex tries to compile those classes, I get the king of all exceptions, java.lang.NullPointerException. That exception seems to go away when I remove the Event metadata tag from the DataGridLinkColumn class, but that tag's obviously needed for that method to emit a click event. Anyone have any ideas? Is there a better way to go about this? -Doug -- 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: http://docs.yahoo.com/info/terms/
Re: [flexcoders] skinning accordion header
I replied. http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09983.html http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09985.html On 7/11/05, Nithya R [EMAIL PROTECTED] wrote: hai, i posted this question long back but found no response... i use the following code for skinning an accordion but it doesnt display anything except the label for header et runtime... please anybody tell me where the fault is... if the code is correct then is there anythiong wrong the swf that i am using? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml backgroundColor=#FF mx:Script![CDATA[[Embed(accordion-b.swf)] var accoridonDownSkin:String; [Embed(accordion-a.swf)] var accordionOverSkin:String; function changeMe(event) {//Loop through all the headers of Accordion control and set the skinsfor(var i=0;imyAcc.numChildren;i++) {event.target.getHeaderAt(i).falseUpSkin = accordionOverSkin; event.target.getHeaderAt(i).falseOverSkin = accordionOverSkin;event.target.getHeaderAt(i).falseDownSkin = accoridonDownSkin;event.target.getHeaderAt(i).trueUpSkin = accoridonDownSkin;event.target.getHeaderAt(i).trueOverSkin = accoridonDownSkin;event.target.getHeaderAt(i).trueDownSkin = accoridonDownSkin;}}]] /mx:Script mx:Accordion id=myAcc width=200 height=150 backgroundAlpha=0 borderThickness=0 initialize=changeMe(event) mx:VBox label=Tab 1 mx:Label text=Skinning fontSize=15/ /mx:VBox mx:VBox label=Tab 2 mx:Label text=Accordion fontSize=15/ /mx:VBox mx:VBox label=Tab 3 mx:Label text=Control fontSize=15/ /mx:VBox /mx:Accordion /mx:Application Send instant messages to your online friends http://uk.messenger.yahoo.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 Visit your group flexcoders on the web. 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 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 Visit your group "flexcoders" on the web. 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] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
Use a cellrenderer, the cellRenderer API was designed to extends and provide custom inner layout of datagrid cells. There are some default objects that decorate each CellRenederer instance: var listOwner:MovieClip //the datagrid var getCellIndex:Function var getDataLabel:Function var owner:MovieClip //the dataGridColumn instance These are actually present whether you use a customCellRenderer or not. So in your case simply use these to listen/dispatch the events you need. Your Cellrenderer can add events onto these objects or broadcast events out to the DataGrid as things happen within the CellRenderer. For example say I have an inner checkbox within my CellRenderer. I would add a click event onto that control where it would do something like so. Note: 'com' is my cellRenderers inner component instance: function click(){ //obtain the index var index = getCellIndex() //obtain the columnName from the Datagrid var colName = listOwner.getColumnAt( index.columnIndex ).columnName //edit the data because the component data had changed listOwner.dataProvider.editField( index.itemIndex , colName , com.selected ) //set the dataproviders seletedIndex listOwner.selectedIndex = index.itemIndex //trigger a 'celledit' event in the datagrid listOwner.dispatchEvent( { type:cellEdit , cell:this , column:colName, value:com.selected } ) } Stump Flexcoders? Think again! :) Cheers, Ted ;) Well, I found you can simply pass a Function object to the custom DataGridCell and have the custom cell handle its own click method with that Function. The drawback is that the function must live in the same MXML file that the DataGridCell is declared in. I'd still much rather use Flex's own event handling mechanisms. Any other ideas? Have I stumped the flexcoders?! -- 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: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Gartner's Take on Rich Internet Applications
Title: Gartners Take on Rich Internet Technology Oh I see. Thats a very blurry line created by the broadcast just like you said. Especially with the topic Gartners take on RIA J When I saw sample screen shots of Nexaweb applications I was not in the least impressed as when I saw flex applications. Thanks for shedding more light David. Regards From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Mendels Sent: Friday, July 08, 2005 1:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Gartner's Take on Rich Internet Applications Hi, Gartner did not select Nexaweb over Flex. Gartner has not done such a report. I have met many times with Gartner and they are quite excited about FlexI am confident that when and if they do their trademark Gartner Magic Quadrent for this category we will be in a very strong position. Gartner did do a recent report on RIA. It was very much informed by Macromedia's perspective, but it was vendor neutral and did not rate or rank any specific vendors in the space--it spoke at a higher level about the category. I have no idea what they think of Nexaweb because as far as I know they have never published a report with such information. To help you parse what you are seeing in this invitation, the way this typically works,this isa commercial seminar by Nexaweb where they have paid Gartner to speak to the topic of RIA. I expect in this Gartner will cover the key points of their recent paper. I haven't seen it specifically and I don't work for Nexaweb or Gartner, but I do know how these things typically work (Macromedia also has hired analyst firms such as Gartner to speak at seminars). Gartner is actually a solid firm (I would not say this about the industry analyst catagory in general) I would be very surprised if they are specifically endorsing a vendor here in the content they present or if they are changing their views based on being paid by a vendor. However, what they do allow is to be used as an industry expert by a vendor. This creates a blurry line in my mind where it can appear that they are specifically endorsing that vendor over another, when in reality they are simply providing industry expertise within a forum. -David Macromedia From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tolulope Olonade Sent: Friday, July 08, 2005 4:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Gartner's Take on Rich Internet Applications Whats all the hype about NEXAWEB.? Has anybody seen solutions implemented using the tech? How does it stack against FLEX? Why did Gartner select over Flex? Can somebody shed more light ? From: Nexaweb Technologies, Inc. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 7:24 PM To: Tolulope Olonade Subject: Gartner's Take on Rich Internet Applications You are receiving this invitation because you have shown interest in Nexaweb products or technology. If you do not wish to receive future invitations to Nexaweb Webinars, click here: [EMAIL PROTECTED]. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer -- 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 Visit your group "flexcoders" on the web. 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] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
Sorry correction, 'owner' in the datagrid is the DataGridRow not the column! -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Theodore E Patrick Sent: Monday, July 11, 2005 9:10 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException Use a cellrenderer, the cellRenderer API was designed to extends and provide custom inner layout of datagrid cells. There are some default objects that decorate each CellRenederer instance: var listOwner:MovieClip //the datagrid var getCellIndex:Function var getDataLabel:Function var owner:MovieClip //the dataGridColumn instance These are actually present whether you use a customCellRenderer or not. So in your case simply use these to listen/dispatch the events you need. Your Cellrenderer can add events onto these objects or broadcast events out to the DataGrid as things happen within the CellRenderer. For example say I have an inner checkbox within my CellRenderer. I would add a click event onto that control where it would do something like so. Note: 'com' is my cellRenderers inner component instance: function click(){ //obtain the index var index = getCellIndex() //obtain the columnName from the Datagrid var colName = listOwner.getColumnAt( index.columnIndex ).columnName //edit the data because the component data had changed listOwner.dataProvider.editField( index.itemIndex , colName , com.selected ) //set the dataproviders seletedIndex listOwner.selectedIndex = index.itemIndex //trigger a 'celledit' event in the datagrid listOwner.dispatchEvent( { type:cellEdit , cell:this , column:colName, value:com.selected } ) } Stump Flexcoders? Think again! :) Cheers, Ted ;) Well, I found you can simply pass a Function object to the custom DataGridCell and have the custom cell handle its own click method with that Function. The drawback is that the function must live in the same MXML file that the DataGridCell is declared in. I'd still much rather use Flex's own event handling mechanisms. Any other ideas? Have I stumped the flexcoders?! -- 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 -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
Ah! Now we're getting closer! I was hoping my little challenge would evoke a response :) Thanks, Ted! I'm actually already using all those members of the CellRenderer API to relay events out to my custom DataGridColumn, but I hadn't thought of dispatching the events from the DataGrid itself. I'll give that a try... it definitely seems like the next best alternative. There are a couple drawbacks to that approach, though, that I'd like to get around: 1) Assuming I use the same CellRenderer for multiple columns in my DataGrid, my event handler would have to have a few conditional statements to detect which column the event applies to. Can't say I'm a big fan of long if/else or switch statements... or maybe I'm being too picky. 2) I don't think I'd be able to use this kind of syntax: mx:DataGrid cellEdit=myEventHandler(event) ... I'd rather not have to write out a bunch of explicit addEventHandler() statements. I know it's just syntactic sugar, but I do have quite a sweet tooth. I'd also rather not extend DataGrid and define a bunch of events with [Event()] metadata tags (which would enable the type of syntax above)... at the DataGrid level, it's hard to tell exactly which events will be dispatched from its cells, since the number and type of columns is variable... to me, it makes more sense to declare these events at the DataGridColumn level, which knows exactly what events it dispatches (based on its Cell Renderer). Am I wrong to think that emitting events from a custom DataGridColumn object should be possible? --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: Use a cellrenderer, the cellRenderer API was designed to extends and provide custom inner layout of datagrid cells. There are some default objects that decorate each CellRenederer instance: var listOwner:MovieClip //the datagrid var getCellIndex:Function var getDataLabel:Function var owner:MovieClip //the dataGridColumn instance These are actually present whether you use a customCellRenderer or not. So in your case simply use these to listen/dispatch the events you need. Your Cellrenderer can add events onto these objects or broadcast events out to the DataGrid as things happen within the CellRenderer. For example say I have an inner checkbox within my CellRenderer. I would add a click event onto that control where it would do something like so. Note: 'com' is my cellRenderers inner component instance: function click(){ //obtain the index var index = getCellIndex() //obtain the columnName from the Datagrid var colName = listOwner.getColumnAt( index.columnIndex ).columnName //edit the data because the component data had changed listOwner.dataProvider.editField( index.itemIndex , colName , com.selected ) //set the dataproviders seletedIndex listOwner.selectedIndex = index.itemIndex //trigger a 'celledit' event in the datagrid listOwner.dispatchEvent( { type:cellEdit , cell:this , column:colName, value:com.selected } ) } Stump Flexcoders? Think again! :) Cheers, Ted ;) Well, I found you can simply pass a Function object to the custom DataGridCell and have the custom cell handle its own click method with that Function. The drawback is that the function must live in the same MXML file that the DataGridCell is declared in. I'd still much rather use Flex's own event handling mechanisms. Any other ideas? Have I stumped the flexcoders?! -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
Hi, your original idea of having a [Event] metatag didnt work because DatagridColumn isn't extending from UIObject (i think). in the click event of your cellrenderer you can add an event listener and dispatch it to the parentdocument (which is probabaly where you want your click event to be handled eg function click(event) { this.addEventListener(myLocalClickHandler, this.parentDocument); this.dispatchEvent({type:myLocalClickHandler}); } or something like this. regards bod --- In flexcoders@yahoogroups.com, mrmcfeely8 [EMAIL PROTECTED] wrote: Ah! Now we're getting closer! I was hoping my little challenge would evoke a response :) Thanks, Ted! I'm actually already using all those members of the CellRenderer API to relay events out to my custom DataGridColumn, but I hadn't thought of dispatching the events from the DataGrid itself. I'll give that a try... it definitely seems like the next best alternative. There are a couple drawbacks to that approach, though, that I'd like to get around: 1) Assuming I use the same CellRenderer for multiple columns in my DataGrid, my event handler would have to have a few conditional statements to detect which column the event applies to. Can't say I'm a big fan of long if/else or switch statements... or maybe I'm being too picky. 2) I don't think I'd be able to use this kind of syntax: mx:DataGrid cellEdit=myEventHandler(event) ... I'd rather not have to write out a bunch of explicit addEventHandler() statements. I know it's just syntactic sugar, but I do have quite a sweet tooth. I'd also rather not extend DataGrid and define a bunch of events with [Event()] metadata tags (which would enable the type of syntax above)... at the DataGrid level, it's hard to tell exactly which events will be dispatched from its cells, since the number and type of columns is variable... to me, it makes more sense to declare these events at the DataGridColumn level, which knows exactly what events it dispatches (based on its Cell Renderer). Am I wrong to think that emitting events from a custom DataGridColumn object should be possible? --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: Use a cellrenderer, the cellRenderer API was designed to extends and provide custom inner layout of datagrid cells. There are some default objects that decorate each CellRenederer instance: var listOwner:MovieClip //the datagrid var getCellIndex:Function var getDataLabel:Function var owner:MovieClip //the dataGridColumn instance These are actually present whether you use a customCellRenderer or not. So in your case simply use these to listen/dispatch the events you need. Your Cellrenderer can add events onto these objects or broadcast events out to the DataGrid as things happen within the CellRenderer. For example say I have an inner checkbox within my CellRenderer. I would add a click event onto that control where it would do something like so. Note: 'com' is my cellRenderers inner component instance: function click(){ //obtain the index var index = getCellIndex() //obtain the columnName from the Datagrid var colName = listOwner.getColumnAt( index.columnIndex ).columnName //edit the data because the component data had changed listOwner.dataProvider.editField( index.itemIndex , colName , com.selected ) //set the dataproviders seletedIndex listOwner.selectedIndex = index.itemIndex //trigger a 'celledit' event in the datagrid listOwner.dispatchEvent( { type:cellEdit , cell:this , column:colName, value:com.selected } ) } Stump Flexcoders? Think again! :) Cheers, Ted ;) Well, I found you can simply pass a Function object to the custom DataGridCell and have the custom cell handle its own click method with that Function. The drawback is that the function must live in the same MXML file that the DataGridCell is declared in. I'd still much rather use Flex's own event handling mechanisms. Any other ideas? Have I stumped the flexcoders?! -- 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: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Gartner's Take on Rich Internet Applications
Title: Gartners Take on Rich Internet Technology Ive gone quite deep on Nexaweb technologies(late last year). I believe it has its placeparticularly where heavy client processing and performance is required. I believe that to be a much smaller market than what Flex is addressing. Another key point was front end development...Involving designers at any stage appeared to be infinitely more complex. Youre not all that shielded from the complexities of the architecture. Cheers, Stace From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolulope Olonade Sent: Monday, July 11, 2005 9:17 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Gartner's Take on Rich Internet Applications Oh I see. Thats a very blurry line created by the broadcast just like you said. Especially with the topic Gartners take on RIA J When I saw sample screen shots of Nexaweb applications I was not in the least impressed as when I saw flex applications. Thanks for shedding more light David. Regards From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Mendels Sent: Friday, July 08, 2005 1:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Gartner's Take on Rich Internet Applications Hi, Gartner did not select Nexaweb over Flex. Gartner has not done such a report. I have met many times with Gartner and they are quite excited about FlexI am confident that when and if they do their trademark Gartner Magic Quadrent for this category we will be in a very strong position. Gartner did do a recent report on RIA. It was very much informed by Macromedia's perspective, but it was vendor neutral and did not rate or rank any specific vendors in the space--it spoke at a higher level about the category. I have no idea what they think of Nexaweb because as far as I know they have never published a report with such information. To help you parse what you are seeing in this invitation, the way this typically works,this isa commercial seminar by Nexaweb where they have paid Gartner to speak to the topic of RIA. I expect in this Gartner will cover the key points of their recent paper. I haven't seen it specifically and I don't work for Nexaweb or Gartner, but I do know how these things typically work (Macromedia also has hired analyst firms such as Gartner to speak at seminars). Gartner is actually a solid firm (I would not say this about the industry analyst catagory in general) I would be very surprised if they are specifically endorsing a vendor here in the content they present or if they are changing their views based on being paid by a vendor. However, what they do allow is to be used as an industry expert by a vendor. This creates a blurry line in my mind where it can appear that they are specifically endorsing that vendor over another, when in reality they are simply providing industry expertise within a forum. -David Macromedia From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tolulope Olonade Sent: Friday, July 08, 2005 4:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Gartner's Take on Rich Internet Applications Whats all the hype about NEXAWEB.? Has anybody seen solutions implemented using the tech? How does it stack against FLEX? Why did Gartner select over Flex? Can somebody shed more light ? From: Nexaweb Technologies, Inc. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 7:24 PM To: Tolulope Olonade Subject: Gartner's Take on Rich Internet Applications You are receiving this invitation because you have shown interest in Nexaweb products or technology. If you do not wish to receive future invitations to Nexaweb Webinars, click here: [EMAIL PROTECTED]. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email
RE: [flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
The datagrid is organized as follows: DataGrid (listOwner) N DataGridRows (Owner is the DataGridRow) N CellRenderers (One for each column) The concept of columns is actually at the DataGridRow level within the MC hierarchy at runtime. Dispatching events is one of the hidden secrets of using V2. When you know what events to fire where, you can be quite dangerous. This is especially true using the undocumented DataProvider events. I have solved more data puzzles through events. It feels like hackery but it is how the system actually works internally. Dispatching events provides for a much simpler app as things update themselves as designed. Trying to update all the pieces manually is madness. Here is a jewel from the DataProvider Event API. This allows you to refresh a single row of any control using a dataprovider, from the dataprovider without knowing the control instance. Basically updateViews broadcasts events to the subscribed controls. Whatever control(s) are using this DataProvider will update their view for index 2. MydataProvider.updateViews( 'updateItem' , 2 ) Pretty cool, eh! :) Extending DataGridColumn is confusing since you are really working with a node within the DataGrid.columns array. The CellRenderer API depends on this structure when rows are being laid out. The only thing that would be useful here is the ability to shove extra data into the Array node specifically events you need to listen to. I wrote a cellRenderer that looked up event data within the DataGrid.columns array. The cellRenderer would add the function instance that sits in the DataGrid.columns[N] column data when the cell was instanciated. This way you could set an event on the column, and your cell Renderer could pick it up. I do something non-standard with CellRenderer. If you create instances within createChildren, the DataGrid performance is much worse because the DataGrid spends its time overwriting cells with new control instances. Ideally you only want to createChild once and update the view when the data changes. I accomplish this by instanciating inner components within setValue not createChildren. In several cases I have seen pretty large performance gains in doing things this way. The cellRenderer drag is related to the isntanciation time of creating inner controls every time anything moves over the datagrid. This is a huge waste of player energy. function setValue( str:String , item:Object , sel:Boolean ) { //instanciate a cell only once and only if data is present! if( ! com item != undefined ){ //add my TextInput Control in there. com = createObject( TextInput , com , 1 ) //listen for change and fire a function stored in the column com.addEventListener( change , mx.util.Delagate.create( com , listOwner.getColumnAt( this.getCellIndex().columnIndex ).change ) ) size() } } You will need a custom DataGrid Column object to get the change event stored within the object. Although I think you have this done already. Hope that helps. Ted ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mrmcfeely8 Sent: Monday, July 11, 2005 9:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException Ah! Now we're getting closer! I was hoping my little challenge would evoke a response :) Thanks, Ted! I'm actually already using all those members of the CellRenderer API to relay events out to my custom DataGridColumn, but I hadn't thought of dispatching the events from the DataGrid itself. I'll give that a try... it definitely seems like the next best alternative. There are a couple drawbacks to that approach, though, that I'd like to get around: 1) Assuming I use the same CellRenderer for multiple columns in my DataGrid, my event handler would have to have a few conditional statements to detect which column the event applies to. Can't say I'm a big fan of long if/else or switch statements... or maybe I'm being too picky. 2) I don't think I'd be able to use this kind of syntax: mx:DataGrid cellEdit=myEventHandler(event) ... I'd rather not have to write out a bunch of explicit addEventHandler() statements. I know it's just syntactic sugar, but I do have quite a sweet tooth. I'd also rather not extend DataGrid and define a bunch of events with [Event()] metadata tags (which would enable the type of syntax above)... at the DataGrid level, it's hard to tell exactly which events will be dispatched from its cells, since the number and type of columns is variable... to me, it makes more sense to declare these events at the DataGridColumn level, which knows exactly what events it dispatches (based on its Cell Renderer). Am I wrong to think that emitting events from a
[flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
More comments inline... --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: Here is a jewel from the DataProvider Event API. This allows you to refresh a single row of any control using a dataprovider, from the dataprovider without knowing the control instance. Basically updateViews broadcasts events to the subscribed controls. Whatever control(s) are using this DataProvider will update their view for index 2. MydataProvider.updateViews( 'updateItem' , 2 ) Pretty cool, eh! :) Very cool Extending DataGridColumn is confusing since you are really working with a node within the DataGrid.columns array. The CellRenderer API depends on this structure when rows are being laid out. The only thing that would be useful here is the ability to shove extra data into the Array node specifically events you need to listen to. This is *exactly* what I want to do! I just keep getting that damn NullPointerException! I wrote a cellRenderer that looked up event data within the DataGrid.columns array. The cellRenderer would add the function instance that sits in the DataGrid.columns[N] column data when the cell was instanciated. This way you could set an event on the column, and your cell Renderer could pick it up. This is exactly what I'm currently doing as a workaround. The problem is that the function instance has to live in the same mxml file that declares the DataGrid. I'm out of luck if I want to reference a function out in a viewHelper or formatter or some other object. That's why I'd love to have the DataGridColumn itself emit an *event* rather than have the CellRenderer instance directly call a function... then Flex's MXML compiler will work all the magic of creating an intermediate function to handle the event with whatever code you stash in the DataGridColumn's linkClick attribute (or whatever event your cell is emitting). I really would like this: custom:MyDataGridColumn linkClick=anyExternalObject.handleEvent(event) / Rather than this: custom:MyDataGridColumn linkClick=localFunctionInstance / I do something non-standard with CellRenderer. If you create instances within createChildren, the DataGrid performance is much worse because the DataGrid spends its time overwriting cells with new control instances. Ideally you only want to createChild once and update the view when the data changes. I accomplish this by instanciating inner components within setValue not createChildren. In several cases I have seen pretty large performance gains in doing things this way. The cellRenderer drag is related to the isntanciation time of creating inner controls every time anything moves over the datagrid. This is a huge waste of player energy. function setValue( str:String , item:Object , sel:Boolean ) { //instanciate a cell only once and only if data is present! if( ! com item != undefined ){ //add my TextInput Control in there. com = createObject( TextInput , com , 1 ) //listen for change and fire a function stored in the column com.addEventListener( change , mx.util.Delagate.create( com , listOwner.getColumnAt( this.getCellIndex().columnIndex ).change ) ) size() } } You will need a custom DataGrid Column object to get the change event stored within the object. Although I think you have this done already. Neat trick... I'll keep that in mind! Thanks, Ted -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
Sorry Doug i could be wrong about the [Event] metatag in datagrid column. Your code is different to the example from the docs, might be worth re-checking your implementation. another idea on how to avoid using [Event] metatag is, try to add the click event for your datagridcolumn during the initialize event of your datagrid eg mx:DataGrid initialize=doInitialize() function doIntialize() { //loop thru columns for(var i=0;icolumns.length-1;i++) { if(columns[i].className = DataGridLinkColumn) { columns[i][startUp]; // see below //or columns[i].addEventListener(click, columns[i]); } } } have a function called startUp() in your DataGridLinkColumn as follows function startUp() { this.addEventListener(click, this); } } this might not work. just an idea regards bod --- In flexcoders@yahoogroups.com, mrmcfeely8 [EMAIL PROTECTED] wrote: Comments inline... --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: Hi, your original idea of having a [Event] metatag didnt work because DatagridColumn isn't extending from UIObject (i think). Good point... didn't think of that. But can't *any* object emit events and use the [Event] metadata tag if it's initialized with mx.events.EventDispatcher (as shown in the Flex docs... http://tinyurl.com/c7laq)? in the click event of your cellrenderer you can add an event listener and dispatch it to the parentdocument (which is probabaly where you want your click event to be handled I think this is the same thing Ted suggested... I'll give it a try, though I'd still wish it would work on the DataGridColumn. Thanks, bod. -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] xml datagrid grouping data
Hi, Does anyone know whether it is possible to bind xml to a data model then use datagrid to group display the data? e.g mx:Model id=myModel groups group gid=01 groupname=first group member nameBob/name age32/age /member member nameHarry/name age34/age /member /group group gid=02 groupname=second group member nameTracey/name age34/age /member member nameGrace/name age23/age /member /group /groups /mx:Model mx:DataGrid id=myGrid dataProvider={mx.utils.ArrayUtil.toArray(myModel.groups.group)} mx:columns mx:Array mx:DataGridColumn columnName=gid headerText=Group ID/ mx:DataGridColumn columnName=groupname headerText=Group Name/ then here a nested set of columns for the member children of each group? /mx:Array /mx:columns /mx:DataGrid Any help appreciated :) -- 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: http://docs.yahoo.com/info/terms/
RE: [flexcoders] popupmanager . . . position the window?
You can do popup.centerPopUp(centerRef: MovieClip). If you do not pass the centerRef, it centers on the window that contains the createPopUp() Don't forget about the Flex API on liveDocs: http://livedocs.macromedia.com/flex/15/asdocs_en/index.html Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chris.alvarado Sent: Friday, July 08, 2005 3:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] popupmanager . . . position the window? good afternoon everyone, i have a but that loads a popup window with a form in it. i need to position that window the in center of my app. what is the best way to go about this? my popup function looks like this: private function showPopup(modal) { var popup = mx.managers.PopUpManager.createPopUp(_root, AddForm, modal, {deferred: true}); } i know i can pass the x and y coords as part of the initialization object for the window, but i cant figure out how to dynamically determin the height and width of the app and the window im creating in order to position the window in the center. -- -chris.alvarado [application developer] -- 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 -- 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: http://docs.yahoo.com/info/terms/
AW: [flexcoders] Flex + JSP + MySQL
Hey Dirk, thanks a lot for your help. flo -Ursprüngliche Nachricht- Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Dirk Eismann Gesendet: Freitag, 8. Juli 2005 16:55 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] Flex + JSP + MySQL Hi Flo, take a look at the HTTPService class. This way you can POST data to the jsp page just the way you would with a traditional HTML form. Basically, you need to populate a the rquest model of the HTTPService instance with the data and then send it to your jsp page by using myHttpService.send(), e.g. mx:HTTPService id=myHttpService url=""> mx:request name{name.text}/name /mx:request /mx:HTTPService mx:TextInput id=name / mx:Button label=Senden click=myHttpService.send()/ Instead of using a jsp page you could also send the data to a server side service/class which deals with the data (e.g. a POJO) Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of florianpflueger Sent: Friday, July 08, 2005 4:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex + JSP + MySQL Hi I want to programm a guestbook in flex, which should store the entries in a database(MySQL). I wrote a JSP site with a flex script and can so show all the entries in the database. That's works fine. But now I have Problem to get the Data from the Flex Form in the JSP-Variables to store them in the Database.(look example at bottom) How can i solve this Has anybody a simple example how i can write the flex variable to the JSP variable. thx flo PROBLEM mx:FormItem horizontalAlign=left label=Name required=true direction=horizontal mx:TextInput id=name width=200/ /mx:FormItem How can I store the value of name.text in the Database or in a JSP/Jave variable -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group "flexcoders" on the web. 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] Column chart using webservice result
hi, I have to build a column chart, where all the properties like columnseries, categoryaxis the y-axis values all should come from a web service. I dont know where to provide the data provider property. I tried some coding but it does not appear to work. let me provide with you the code snippet. please help me. for(var i=0;i oRequest.AxisData.item[0].Set.item.length; i++) { tempValues.push (oRequest.AxisData.item[0].Set.item[i].Caption.toString()); //Alert.show(oRequest.AxisData.item [0].Set.item[i].Caption.toString()); } colchartKPI.dataProvider = oRequest.AxisData.item[0].Set; var series:CategoryAxis = new CategoryAxis(); series.dataProvider = tempValues; colchartKPI.horizontalAxis.CategoryAxis.dataProvider = tempValues; colchartKPI.horizontalAxis.addItem(series); with regards, tony -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex + JSP + MySQL
Thanks a lot Dirk. Now i decided to work with the RemoteObject.which should be faster and i haven't use jsp. Now i can connect to the DB and can save my Data in it. I wrote a Java class for the DB access. With an get and a Set Method. Problem Now: When i call the getMethod I retrieve a String and don't get the Data in my DataProvider of the GridData. ### Script ## var infoStr; function getData(){ infoStr = remoteTagInfo.getEntries(); return infoStr; } function resultHandler(result) { infoStr= result; } ARRAY ## mx:Array id=arr {infoStr} /mx:Array DATAGRID ## mx:DataGrid id=empGrid mx:dataProvider {arr} /mx:dataProvider /mx:DataGrid NOTE the infoStr contains the correct data but the Entries didn't appaer in the DataGrid content of infoStr :mx:Objectdatum10.7.2005/datumnameFlorian/name/mx:Object I hope someone could help me soon thx flo --- In flexcoders@yahoogroups.com, Dirk Eismann [EMAIL PROTECTED] wrote: Hi Flo, take a look at the HTTPService class. This way you can POST data to the jsp page just the way you would with a traditional HTML form. Basically, you need to populate a the rquest model of the HTTPService instance with the data and then send it to your jsp page by using myHttpService.send(), e.g. mx:HTTPService id=myHttpService url=guestbook.jsp mx:request name{name.text}/name /mx:request /mx:HTTPService mx:TextInput id=name / mx:Button label=Senden click=myHttpService.send()/ Instead of using a jsp page you could also send the data to a server side service/class which deals with the data (e.g. a POJO) Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of florianpflueger Sent: Friday, July 08, 2005 4:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex + JSP + MySQL Hi I want to programm a guestbook in flex, which should store the entries in a database(MySQL). I wrote a JSP site with a flex script and can so show all the entries in the database. That's works fine. But now I have Problem to get the Data from the Flex Form in the JSP-Variables to store them in the Database.(look example at bottom) How can i solve this Has anybody a simple example how i can write the flex variable to the JSP variable. thx flo PROBLEM mx:FormItem horizontalAlign=left label=Name required=true direction=horizontal mx:TextInput id=name width=200/ /mx:FormItem How can I store the value of name.text in the Database or in a JSP/Jave variable -- 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 -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Login security best practices for Flex and ColdFusion users
I did some quick searching and didn't come up with anything too difinitive on this. Coming from a typically ColdFusion only environment, I usually roll my own login security with session variables. I'm trying to get a firm understanding of what everyone considers the best practice for flex login security when using ColdFusion remoting. My thoughts are that putting roles on all my cfc's and calling cflogin with flash remoting would log the user into the role, and then if / when they are logged out a call to a remoting method will fail if they aren't in their role, and the remoting 'fault' can be fired to cause flex to show the login screen again. Is this the best method, or do most of you roll your own cfc security function? or can you do something with the session object in Flex? -Thanx -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Debugging library with flexBuilder
I am able to debug the action script code which is define in my Application using flex builder, but not the code which is in my RSL Libraries. Can somebody helps me ? -- 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: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: application flow, logic question . . .
thanks everyone for the fantastic advice. i must admit im absolutely in love with Flex already. i think based on a gimped version of just one of the interfaces from this app, the client is already pretty much sold on it. im a bit confused about 1 point though. . . server setup. i understand that Flex sits on top of pretty much any J2EE server. I know that JRun is the one mention Macromedia because Macromedia owns it. however, i read this interesting post the other day from MXNA talking about the fact that JRun hasnt had an update since like 2003 and that got me thinking we might be better off choosing a different J2EE server. in that event which one do you all recommend? in addition i know we will need CF installed on either that server or another server for the remoting calls. and then of course the DB server. am i missing anything? thanks again everyone, im really looking forward to a future with Flex! On 7/9/05, Steven Webster [EMAIL PROTECTED] wrote: Chris, I'd also recommend that you do a search in the docs for creationPolicy and read about deferred instantiation. Try and forget everything you know about splitting a flash movie up into separate movies and loading them on demand, and relinquish that responsibility to Flex. With clever use of creationPolicy, you can allow Flex to defer the loading of your application with an appropriate policy. Don't get me wrong, you may find there's a need ultimately to start using Loader controls to create and destroy your own views; but I'd always recommend that you try and avoid this strategy until evident performance demands it. Welcome to Flex ... there's no going back, 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. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alex_harui Sent: 08 July 2005 19:57 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: application flow, logic question . . . Welcome to the world of Flex. In Flex the loadMovie functionality is basically encapsulated within the mx:Loader component. You should be able to have a base MXML file with an mx:Loader in it and pass in other MXML files for the Loader to load --- In flexcoders@yahoogroups.com, chris.alvarado [EMAIL PROTECTED] wrote: Good morning everyone, So it looks like I will be rebuilding a year long project that I originially developed in Flash, with Flex. The current structure is that i have a controlling movie that acts as the skeleton. if a user is not logged in they are presented with a login box and that is all. once the user logs in successfully they are presented with various navigation icons based on whatever permissions they have. when they select a particular navigation item, the subsequent interface is loaded into the conrolling movie using the loadMovie() method. (each interface is a separate .swf). so my question is, how would i replicate this structue in Flex? would i make each interface it's own MXML file? and if so how would i call those files into the main MXML file? any suggestions would be greatly appreciated, as would any urls to some examples of similar scenarios. thanks all! -- -chris.alvarado [application developer] -- 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 -- 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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -chris.alvarado [application developer] -- 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
[flexcoders] Re: unknown property warning
Hi, Can anyone help me with this. How do I bind my xml. Regards Rajesh J --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote: Hi, How do I bind it.. I thought by mx:Array id=attArr{dataObject.Attributes}/mx:Array and then mx:Repeater id=att dataProvider={attArr.Attribute} I thought I was binding it.. but I still get the same error. Rajesh J --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Check the FAQs to find why you see this warning. FAQs: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt What is dataObject? I think, if you make it mx:Model id=dataObject /mx:Model It should work properly... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Saturday, July 09, 2005 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unknown property warning Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml :44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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 -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] how to upload file in flex
hi , I want to upload file to server using flex that how can i send the file from flex also what is the option in fle x by which it opens the local system.please help me regarding this matter. Bikram Kishore Sahu -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of cshafer213Sent: Friday, July 08, 2005 5:43 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: XML Socket Doesn't Work--- In flexcoders@yahoogroups.com, "Theodore E Patrick" [EMAIL PROTECTED] wrote:Ted,Thanks! It is working now.- Chris Ah, there are 2 errors is there, socket is a temporary variablewithin the connect method and null is not a valid value for the server. Think of the mx:Script block as a class (because it is at runtime). I made this mistake first time round the MXML tree. ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Script ![CDATA[ import mx.utils.Delegate; var socket:XMLSocket public function serverConnected(success:Boolean) { if (success) { stat.text="Status = Connected"; } else { stat.text="Status = Error"; } } public function connect(event){ socket:XMLSocket = new XMLSocket(); socket. this , serverConnected ); socket.connect( 'localhost' , 9875); return } ]] /mx:Script mx:Text text="XMLSocket Test App" width="205" textAlign="center" / mx:Button label="Connect to XML Server" click="connect()" / mx:Label id="stat" text="Status = " width="144"textAlign="center" / /mx:Application Cheers, Ted ;)-Original Message- From: flexcoders@yahoogroups.com[mailto:[EMAIL PROTECTED] On Behalf Of cshafer213 Sent: Thursday, July 07, 2005 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML Socket Doesn't Work--- In flexcoders@yahoogroups.com, "Theodore E Patrick" [EMAIL PROTECTED]wrote: Thanks for responding and putting me on the right track. I changed my code to add the Delegate as best I could but I still can't get itworking: ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Script ![CDATA[ import mx.utils.Delegate; public function serverConnected(success:Boolean) { if (success) { stat.text="Status = Connected"; } else { stat.text="Status = Error"; } } public function connect(event){ var socket:XMLSocket = new XMLSocket(); socket. this, serverConnected ); socket.connect(null, 9875); return } ]] /mx:Script mx:Text text="XML Test App" width="205" textAlign="center" / mx:Button label="Connect to XML Server" click="connect()" / mx:Label id = "stat" text="Status = " width="144"textAlign="center" / /mx:Application Chris, You need to use Delagate with XMLSocket callbacks. This should work: import mx.utils.Delegate; sock. this, sockOnClose ); sock. this, sockOnConnect ); sock. this, sockOnData ); Cheers, Ted ;) -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cshafer213Sent: Thursday, July 07, 2005 2:12 PMTo: flexcoders@yahoogroups.com Subject: [flexcoders] XML Socket Doesn't Work Can Anyone Tell Me what is wrong with the following code toconnect toan XML socket server? The stat Lable should display either"status = Connected" or "status = Error" when the button is clicked, andnothingis happening. Thanks, Chris Shafer, George Weiss Associates ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" mx:Script![CDATA[ public function serverConnected(success:Boolean) { if (success) { stat.text="Status = Connected"; } else { stat.text="Status = Error"; } } public function connect(event){ var socket:XMLSocket = new XMLSocket(); socket.> socket.connect(null, 9875); return }]] /mx:Scriptmx:Text text="XML Test App" width="205" textAlign="center" / mx:Button label="Connect to XML Server" click="connect()" /mx:Label id = "stat" text="Status = " width="144" textAlign="center" / /mx:Application -- Flexcoders Mailing ListFAQ:http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] Flex position in Missouri
I do not know if this is the proper forum to post this, but I wanted to make everyone aware of a position within our company. We are currently looking for a full time, onsite Flex programmer for a new enterprise level application. The position includes a generous benefits package. The programmer will be working with an eleven person development team on a project that literally has no end in site. If this is of any interest, please drop me an email at your earliest convenience. Thanks! Dennis -- 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: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: application flow, logic question . . .
We're currently using tomcat and flex and we haven't had any problems. Tomcat is a free J2EE server which makes it nice on the pocket book. It's also very easy to setup and learn if you don't have much experience with J2EE servers. I would highly recommend it as an alternative to JRun. Best Regards, Bob Remeika -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chris.alvarado Sent: Monday, July 11, 2005 9:02 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: application flow, logic question . . . thanks everyone for the fantastic advice. i must admit im absolutely in love with Flex already. i think based on a gimped version of just one of the interfaces from this app, the client is already pretty much sold on it. im a bit confused about 1 point though. . . server setup. i understand that Flex sits on top of pretty much any J2EE server. I know that JRun is the one mention Macromedia because Macromedia owns it. however, i read this interesting post the other day from MXNA talking about the fact that JRun hasnt had an update since like 2003 and that got me thinking we might be better off choosing a different J2EE server. in that event which one do you all recommend? in addition i know we will need CF installed on either that server or another server for the remoting calls. and then of course the DB server. am i missing anything? thanks again everyone, im really looking forward to a future with Flex! On 7/9/05, Steven Webster [EMAIL PROTECTED] wrote: Chris, I'd also recommend that you do a search in the docs for creationPolicy and read about deferred instantiation. Try and forget everything you know about splitting a flash movie up into separate movies and loading them on demand, and relinquish that responsibility to Flex. With clever use of creationPolicy, you can allow Flex to defer the loading of your application with an appropriate policy. Don't get me wrong, you may find there's a need ultimately to start using Loader controls to create and destroy your own views; but I'd always recommend that you try and avoid this strategy until evident performance demands it. Welcome to Flex ... there's no going back, 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. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alex_harui Sent: 08 July 2005 19:57 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: application flow, logic question . . . Welcome to the world of Flex. In Flex the loadMovie functionality is basically encapsulated within the mx:Loader component. You should be able to have a base MXML file with an mx:Loader in it and pass in other MXML files for the Loader to load --- In flexcoders@yahoogroups.com, chris.alvarado [EMAIL PROTECTED] wrote: Good morning everyone, So it looks like I will be rebuilding a year long project that I originially developed in Flash, with Flex. The current structure is that i have a controlling movie that acts as the skeleton. if a user is not logged in they are presented with a login box and that is all. once the user logs in successfully they are presented with various navigation icons based on whatever permissions they have. when they select a particular navigation item, the subsequent interface is loaded into the conrolling movie using the loadMovie() method. (each interface is a separate .swf). so my question is, how would i replicate this structue in Flex? would i make each interface it's own MXML file? and if so how would i call those files into the main MXML file? any suggestions would be greatly appreciated, as would any urls to some examples of similar scenarios. thanks all! -- -chris.alvarado [application developer] -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:
[flexcoders] Re: Extending DataGridColumn + emitting events = java.lang.NullPointerException
Comments inline --- In flexcoders@yahoogroups.com, alex_harui [EMAIL PROTECTED] wrote: The DataGrid is comprised of a vertically placed set of DataGridRows each of which are made up of cellrenderers one for each DataGridColumn. A DataGridColumn is only a data structure and has no UI and therefore cannot emit events. Not necessarily true... nonvisual components can emit events if they're initialized with mx.events.EventDispatcher. http://tinyurl.com/c7laq Theoretically, I should be able to do this with an object that extends DataGridColumn. -- 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: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Flex + JSP + MySQL
Hi Flo, if you're passing back a String from your Java class you'll have to parse this String inside your Flex application by yourself - when using RemoteObject there's no automatic transformation of XML data to dataproviders. Instead, let your getEntries() method return a java.util.ArrayList which is populated with Entry instances. Flex will automatically convert the ArrayList to a dataProvider after the data arrived in the Flash player and you can directly bind the result to your DataGrid. The objects inside this dataProvider will be of type Object but you can also create a mapping between your Java Entry class and ActionScript classes. Make sure you read through the RemoteObject documentation. Also check Christophe Coenraets Restaurantfinder tutorial - this should give you a good start: http://www.coenraets.com/tutorials/restaurant/index.jsp http://www.coenraets.com/tutorials/restaurant/index.jsp Dirk. Von: flexcoders@yahoogroups.com im Auftrag von florianpflueger Gesendet: Mo 11.07.2005 15:42 An: flexcoders@yahoogroups.com Betreff: [flexcoders] Re: Flex + JSP + MySQL Thanks a lot Dirk. Now i decided to work with the RemoteObject.which should be faster and i haven't use jsp. Now i can connect to the DB and can save my Data in it. I wrote a Java class for the DB access. With an get and a Set Method. Problem Now: When i call the getMethod I retrieve a String and don't get the Data in my DataProvider of the GridData. ### Script ## var infoStr; function getData(){ infoStr = remoteTagInfo.getEntries(); return infoStr; } function resultHandler(result) { infoStr= result; } ARRAY ## mx:Array id=arr {infoStr} /mx:Array DATAGRID ## mx:DataGrid id=empGrid mx:dataProvider {arr} /mx:dataProvider /mx:DataGrid NOTE the infoStr contains the correct data but the Entries didn't appaer in the DataGrid content of infoStr :mx:Objectdatum10.7.2005/datumnameFlorian/name/mx:Object I hope someone could help me soon thx flo --- In flexcoders@yahoogroups.com, Dirk Eismann [EMAIL PROTECTED] wrote: Hi Flo, take a look at the HTTPService class. This way you can POST data to the jsp page just the way you would with a traditional HTML form. Basically, you need to populate a the rquest model of the HTTPService instance with the data and then send it to your jsp page by using myHttpService.send(), e.g. mx:HTTPService id=myHttpService url=guestbook.jsp mx:request name{name.text}/name /mx:request /mx:HTTPService mx:TextInput id=name / mx:Button label=Senden click=myHttpService.send()/ Instead of using a jsp page you could also send the data to a server side service/class which deals with the data (e.g. a POJO) Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of florianpflueger Sent: Friday, July 08, 2005 4:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex + JSP + MySQL Hi I want to programm a guestbook in flex, which should store the entries in a database(MySQL). I wrote a JSP site with a flex script and can so show all the entries in the database. That's works fine. But now I have Problem to get the Data from the Flex Form in the JSP-Variables to store them in the Database.(look example at bottom) How can i solve this Has anybody a simple example how i can write the flex variable to the JSP variable. thx flo PROBLEM mx:FormItem horizontalAlign=left label=Name required=true direction=horizontal mx:TextInput id=name width=200/ /mx:FormItem How can I store the value of name.text in the Database or in a JSP/Jave variable -- 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 -- 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 -- 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: http://docs.yahoo.com/info/terms/ winmail.dat
[flexcoders] Debuging Java to AS Object conversion?
Does anybody have any ways to debug the Java to AS object conversion that is done with the RemoteObject call? Or can you answer why the Net Connection Debugger seems to only grab the initial connection? I have been trying to use the NetConnectionDebugger but am having a problem with. The first connection I make to a remote object to do a login displays fine in it but every other remote object attempt is never displayed. Is there something that I am missing in debugging someplace? What should I be looking for to correct the issue? Thanks, -Kent A hypothetical paradox: What would happen in a battle between an Enterprise security team, who always get killed soon after appearing, and a squad of Imperial Stormtroopers, who can't hit the broad side of a planet? -- Tom Galloway smime.p7s Description: S/MIME cryptographic signature
Re: [flexcoders] Re: application flow, logic question . . .
Well pros for Jrun: - License comes with CF Enterprise (ie you may not have to buy another license) - It's cheap if you buy it separately - Easy to install on various platforms - Will work great for CF and Flex - Easy to use web based management interface If you're operating is a really high volume site then in your evaluation performance and clustering are a big factor. For the non high volume site I would rank ease of management/deployment the priority. And of course you've got to factor in your budget. chris.alvarado wrote: server setup. i understand that Flex sits on top of pretty much any J2EE server. I know that JRun is the one mention Macromedia because Macromedia owns it. however, i read this interesting post the other day from MXNA talking about the fact that JRun hasnt had an update since like 2003 and that got me thinking we might be better off choosing a different J2EE server. in that event which one do you all recommend? in addition i know we will need CF installed on either that server or another server for the remoting calls. and then of course the DB server. am i missing anything? thanks again everyone, im really looking forward to a future with Flex! On 7/9/05, Steven Webster [EMAIL PROTECTED] wrote: Chris, -- 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: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Debuging Java to AS Object conversion?
Enable Remote Object debugging in the flex-config.xml file (located at {flex-web-app-install-dir}/WEB-INF/flex/flex-config.xml): remote-objects-debugtrue/remote-objects-debug Then reboot your flex server (or recycle the app if you can it's quicker) the debugging info will be output to the stdout ... if your using the integrated JRun server it will be output to the console window... happy hunting On 7/11/05, Kent Henneuse [EMAIL PROTECTED] wrote: Does anybody have any ways to debug the Java to AS object conversion that isdone with the RemoteObject call?Or can you answer why the Net ConnectionDebugger seems to only grab the initial connection?I have been trying to use the NetConnectionDebugger but am having a problem with.The first connection I make to a remote object to do a login displaysfine in it but every other remote object attempt is never displayed.Isthere something that I am missing in debugging someplace?What should I be looking for to correct the issue?Thanks,-KentA hypothetical paradox:What would happen in a battle between an Enterprise securityteam, who always get killed soon after appearing, and a squad of Imperial Stormtroopers, who can't hit the broad side of a planet?-- Tom Galloway -- 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 Visit your group "flexcoders" on the web. 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] Debuging Java to AS Object conversion?
detailed debug info should be output to the server's log files then... (not a 100% sure where) On 7/11/05, Kent Henneuse [EMAIL PROTECTED] wrote: Unfortunately I am building against an existing application that is in JBoss so no JRun. From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: Monday, July 11, 2005 12:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Debuging Java to AS Object conversion? Enable Remote Object debugging in the flex-config.xml file (located at {flex-web-app-install-dir}/WEB-INF/flex/flex-config.xml): remote-objects-debugtrue /remote-objects-debug Then reboot your flex server (or recycle the app if you can it's quicker) the debugging info will be output to the stdout ... if your using the integrated JRun server it will be output to the console window... happy hunting On 7/11/05, Kent Henneuse [EMAIL PROTECTED] wrote: Does anybody have any ways to debug the Java to AS object conversion that is done with the RemoteObject call?Or can you answer why the Net Connection Debugger seems to only grab the initial connection? I have been trying to use the NetConnectionDebugger but am having a problem with.The first connection I make to a remote object to do a login displays fine in it but every other remote object attempt is never displayed.Is there something that I am missing in debugging someplace?What should I be looking for to correct the issue? Thanks, -Kent A hypothetical paradox: What would happen in a battle between an Enterprise security team, who always get killed soon after appearing, and a squad of Imperial Stormtroopers, who can't hit the broad side of a planet? -- Tom Galloway -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group "flexcoders" on the web. 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] Re: application flow, logic question . . .
I don't know what they meant by JRun hasnt had an update since like 2003. There have been at least two updaters in the past year. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chris.alvarado Sent: Monday, July 11, 2005 12:02 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: application flow, logic question . . . thanks everyone for the fantastic advice. i must admit im absolutely in love with Flex already. i think based on a gimped version of just one of the interfaces from this app, the client is already pretty much sold on it. im a bit confused about 1 point though. . . server setup. i understand that Flex sits on top of pretty much any J2EE server. I know that JRun is the one mention Macromedia because Macromedia owns it. however, i read this interesting post the other day from MXNA talking about the fact that JRun hasnt had an update since like 2003 and that got me thinking we might be better off choosing a different J2EE server. in that event which one do you all recommend? in addition i know we will need CF installed on either that server or another server for the remoting calls. and then of course the DB server. am i missing anything? thanks again everyone, im really looking forward to a future with Flex! On 7/9/05, Steven Webster [EMAIL PROTECTED] wrote: Chris, I'd also recommend that you do a search in the docs for creationPolicy and read about deferred instantiation. Try and forget everything you know about splitting a flash movie up into separate movies and loading them on demand, and relinquish that responsibility to Flex. With clever use of creationPolicy, you can allow Flex to defer the loading of your application with an appropriate policy. Don't get me wrong, you may find there's a need ultimately to start using Loader controls to create and destroy your own views; but I'd always recommend that you try and avoid this strategy until evident performance demands it. Welcome to Flex ... there's no going back, 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. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of alex_harui Sent: 08 July 2005 19:57 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: application flow, logic question . . . Welcome to the world of Flex. In Flex the loadMovie functionality is basically encapsulated within the mx:Loader component. You should be able to have a base MXML file with an mx:Loader in it and pass in other MXML files for the Loader to load --- In flexcoders@yahoogroups.com, chris.alvarado [EMAIL PROTECTED] wrote: Good morning everyone, So it looks like I will be rebuilding a year long project that I originially developed in Flash, with Flex. The current structure is that i have a controlling movie that acts as the skeleton. if a user is not logged in they are presented with a login box and that is all. once the user logs in successfully they are presented with various navigation icons based on whatever permissions they have. when they select a particular navigation item, the subsequent interface is loaded into the conrolling movie using the loadMovie() method. (each interface is a separate .swf). so my question is, how would i replicate this structue in Flex? would i make each interface it's own MXML file? and if so how would i call those files into the main MXML file? any suggestions would be greatly appreciated, as would any urls to some examples of similar scenarios. thanks all! -- -chris.alvarado [application developer] -- 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 -- 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 Visit your group flexcoders on the web. To unsubscribe from this group,
Re: [flexcoders] how to upload file in flex
There's a Macromedia Tech-note too. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19382 Jeff Steiner wrote: Take a peek at the article from Jack Minster on Flex Authority. It provides a great sample / how-to on this. http://www.flexauthority.com/articlesArchive/fileUpload.cfm Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Bikram Sahu *Sent:* Monday, July 11, 2005 12:15 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] how to upload file in flex hi , I want to upload file to server using flex that how can i send the file from flex also what is the option in fle x by which it opens the local system.please help me regarding this matter. Bikram Kishore Sahu -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of *cshafer213 *Sent:* Friday, July 08, 2005 5:43 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: XML Socket Doesn't Work --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: Ted, Thanks! It is working now. - Chris Ah, there are 2 errors is there, socket is a temporary variable within the connect method and null is not a valid value for the server. Think of the mx:Script block as a class (because it is at runtime). I made this mistake first time round the MXML tree. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ import mx.utils.Delegate; var socket:XMLSocket public function serverConnected(success:Boolean) { if (success) { stat.text=Status = Connected; } else { stat.text=Status = Error; } } public function connect(event){ socket:XMLSocket = new XMLSocket(); socket.onConnect = Delegate.create( this , serverConnected ); socket.connect( 'localhost' , 9875); return } ]] /mx:Script mx:Text text=XMLSocket Test App width=205 textAlign=center / mx:Button label=Connect to XML Server click=connect() / mx:Label id=stat text=Status = width=144 textAlign=center / /mx:Application Cheers, Ted ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cshafer213 Sent: Thursday, July 07, 2005 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML Socket Doesn't Work --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: Thanks for responding and putting me on the right track. I changed my code to add the Delegate as best I could but I still can't get it working: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ import mx.utils.Delegate; public function serverConnected(success:Boolean) { if (success) { stat.text=Status = Connected; } else { stat.text=Status = Error; } } public function connect(event){ var socket:XMLSocket = new XMLSocket(); socket.onConnect = Delegate.create( this, serverConnected ); socket.connect(null, 9875); return } ]] /mx:Script mx:Text text=XML Test App width=205 textAlign=center / mx:Button label=Connect to XML Server click=connect() / mx:Label id = stat text=Status = width=144 textAlign=center / /mx:Application Chris, You need to use Delagate with XMLSocket callbacks. This should work: import mx.utils.Delegate; sock.onClose = Delegate.create( this, sockOnClose ); sock.onConnect = Delegate.create( this, sockOnConnect ); sock.onData = Delegate.create( this, sockOnData ); Cheers, Ted ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cshafer213 Sent: Thursday, July 07, 2005 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML Socket Doesn't Work Can Anyone Tell Me what is wrong with the following code to connect to an XML socket server? The stat Lable should display either status = Connected or status = Error when the button is clicked, and nothing is happening. Thanks, Chris Shafer, George Weiss Associates ?xml version=1.0 encoding=utf-8? mx:Application
RE: [flexcoders] Re: unknown property warning
Actually, it is a warning, and I believe in you case it can be safely ignored. Using dot.down notation often causes Flex to lose track of the datatype of the end element, and the compiler uses the datatype information to set up its change listener infrastructure. However, my advice would be to create a global variable declared as an array, and on change of the product, assign the Attributes property to that variable, then bind to the variable. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, July 11, 2005 2:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: unknown property warning Hi, Can anyone help me with this. How do I bind my xml. Regards Rajesh J --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote: Hi, How do I bind it.. I thought by mx:Array id=attArr{dataObject.Attributes}/mx:Array and then mx:Repeater id=att dataProvider={attArr.Attribute} I thought I was binding it.. but I still get the same error. Rajesh J --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Check the FAQs to find why you see this warning. FAQs: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt What is dataObject? I think, if you make it mx:Model id=dataObject /mx:Model It should work properly... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Saturday, July 09, 2005 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unknown property warning Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml :44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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 -- 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 -- 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: http://docs.yahoo.com/info/terms/
RE: [flexcoders] getDropParent() when the branch is closed.
Maybe the dragOver event keeps firing though every time the cell changes? Im sure there must be something firing that you could use as a trigger. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Krueger Sent: Friday, July 08, 2005 7:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] getDropParent() when the branch is closed. Unfortunately I just tried to do something like this. The itemRollOver doesnt fire when you are dragging over a itemL Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Thursday, July 07, 2005 10:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] getDropParent() when the branch is closed. Maybe you could add a itemRollOver handler on the Tree so that when you are dragging (indicated by dragEnter I guess) and you encounter a branch you could make sure the branch gets opened? Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Krueger Sent: Thursday, July 07, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] getDropParent() when the branch is closed. All, I am trying to drag an item from a grid and drop it on a tree control. I have found that the getDropParent seems to be the best bet when trying to find where to add a new child node to. The only problem I am having is if the user chooses to drop the item on a branch that is currently closed, the getDropParent() call returns one level higher. If the branch is set to open even with no children nodes then everything works. I can kind of understand why it works like this, but is there a way to work around this. Below is my dragDrop method, pretty much what everyone else has posted. I could expand all branches when the drag begins but that could be ugly. public function doDragDrop(event:Object) { doDragExit( event); var dragItems = event.dragSource.dataForFormat( items ); var targetForDrop = tree.getDropParent(); for ( var i = 0; i dragItems.length; i++) { targetForDrop.addTreeNode(test,dragItems[i]); tree.setIsOpen(targetForDrop, true); tree.selectItem(targetForDrop, true); } } Thanks Jeff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer -- 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 Visit your group "flexcoders" on the web. 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] how to specify the size of the vScrollBar
How did you set the length of the data provider? My example does provide the way to set the length and everything shows up at the top of the grid. Maybe youre accidentally sorting or something? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd Sent: Sunday, July 10, 2005 2:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to specify the size of the vScrollBar folks. I am writing a PagingDataProvider that feeds an underlying grid page-by-page on demand..I started with the code from Matt's blog site. However, I want the vScrollBar on the grid to reflect the 'correct number of rows', not just the rows that have been already rendered. I tried setting the length of the dataProvider to the 'correct number of rows' ...although that sizes the scrollBar accurately, now the rendered rows show up at the bottom of the grid (ie. you have to scroll all the way to the bottom of the grid to see what should have been visible at the top!! ) Am I missing something obvious ? Thanks - Sanjay -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group "flexcoders" on the web. 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] Skinning Mediaplayback?
Doesnt look like these guys really support programmatic skinning. Unfortunately they were more of a port from Flash MX 2004 rather than truly integrated into the Flex way of doing things. Were looking to fix that in 2.0. Sorry! Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien Sent: Sunday, July 10, 2005 8:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Skinning Mediaplayback? Resurecting this thread because it appears there was no answer given and I'm trying to do the same thing. On 6/13/05, rockmoyosa [EMAIL PROTECTED] wrote: Sorry if this is a repost,but. I want know if Mediaplayback or Mediacontroller is skinnable. First of all I want that ugly green glow removed an replace it with blue. Themecolor doesn't work. So anybody?? 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group "flexcoders" on the web. 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] column chart question/oddity
Also, you say push into the array, maybe it needs to be addItemAt into the array? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Monday, July 11, 2005 1:25 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] column chart question/oddity Maybe there is an instantiation issue wherein the un-instantiated views are inhibiting the rendering of the visible view. Set creationPolicy=all on the ViewStack and see if the behavior changes. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Brueckmann Sent: Monday, July 11, 2005 3:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] column chart question/oddity My mxml file loads, the parent tag calls a method on creationComplete that goes to my server and gets XMLon result of that method call, on the front-end I take that XML, parse it and generate a series of objects and keep pushing them into an array. I have a viewstackthe first child of the viewstack is a column chart whose dataprovider is this array thats getting pushed these objects being created on the fly by my xml parsing routing. The second child of the stack is a datagrid, whose dataprovider is ALSO the array. When the page loads, I get the XML successfully, I parse it successfullybut my chart does not build based on the elements of this arrayif I change the view to see the raw data in the datagrid, the data IS in the datagrid, if I go back to the chart, the chart is still not thereif I go back to the datagrid and sort one of the columns, and then I go back to the chartthe chart now miraculously is built with the data. What do I need to do to ensure that the chart is built immediately upon the completion of my method that parses the XML sent from the server and populates the array of objects that is the dataprovider of my chart? robert l. brueckmann senior web developer merlin securities 595 madison avenue new york,ny 10022 p: 212.822.4821 f: 212.822.4820 This message contains information fromMerlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 -- 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 Visit your group "flexcoders" on the web. 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] Skinning Mediaplayback?
Thanks alot for the answer Matt. What about editing a theam.swc ??? On 7/11/05, Matt Chotin [EMAIL PROTECTED] wrote: Doesn't look like these guys really support programmatic skinning. Unfortunately they were more of a port from Flash MX 2004 rather than truly integrated into the Flex way of doing things. We're looking to fix that in 2.0. Sorry! Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: Sunday, July 10, 2005 8:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Skinning Mediaplayback? Resurecting this thread because it appears there was no answer given and I'm trying to do the same thing. On 6/13/05, rockmoyosa [EMAIL PROTECTED] wrote: Sorry if this is a repost,but. I want know if Mediaplayback or Mediacontroller is skinnable. First of all I want that ugly green glow removed an replace it with blue. Themecolor doesn't work. So anybody?? 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group flexcoders on the web. 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 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 Visit your group "flexcoders" on the web. 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] xml datagrid grouping data
Datagrids dont really support nested columns right now. You would probably need to transform your data into something linear and then use some sort of marker to help get the ordering right. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of msloumac Sent: Monday, July 11, 2005 8:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] xml datagrid grouping data Hi, Does anyone know whether it is possible to bind xml to a data model then use datagrid to group display the data? e.g mx:Model id=myModel groups group gid=01 groupname=first group member nameBob/name age32/age /member member nameHarry/name age34/age /member /group group gid=02 groupname=second group member nameTracey/name age34/age /member member nameGrace/name age23/age /member /group /groups /mx:Model mx:DataGrid id=myGrid dataProvider={mx.utils.ArrayUtil.toArray(myModel.groups.group)} mx:columns mx:Array mx:DataGridColumn columnName=gid headerText=Group ID/ mx:DataGridColumn columnName=groupname headerText=Group Name/ then here a nested set of columns for the member children of each group? /mx:Array /mx:columns /mx:DataGrid Any help appreciated :) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group "flexcoders" on the web. 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 position in Missouri
The programmer will be working with an eleven person development team on a project that literally has no end in site. Now THAT is offering some pimp job security. - Original Message - From: recfin_dennis [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, July 10, 2005 7:18 PM Subject: [flexcoders] Flex position in Missouri I do not know if this is the proper forum to post this, but I wanted to make everyone aware of a position within our company. We are currently looking for a full time, onsite Flex programmer for a new enterprise level application. The position includes a generous benefits package. The programmer will be working with an eleven person development team on a project that literally has no end in site. If this is of any interest, please drop me an email at your earliest convenience. Thanks! Dennis -- 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 -- 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: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Debuging Java to AS Object conversion?
A, B, and C all need to call registerClassOn 7/11/05, Kent Henneuse [EMAIL PROTECTED] wrote: I should also add some info about the structure of my Java classes. I am using inheritance on both sides: SimpleObject Section A | | | | | | UberObject Section B Section C UberObject is composed of a 'Section B' and a 'Section C'(Yes it should be an Array of 'Section A' objects but that doesn't seem to be happy with the dataproviders I am trying to do.) When I look at event.result it is an UberObject. If I cast event.result into an UberObject and try to look at uberObject.sectionB _remoteClass is UberObject not SectionB even if I cast it to SectionB. Section B and Section C each have arrays of objects that I am looking display in a repeater but arrays are undefined. In my UI I am getting one of the String properties that exists in Section A but not the any of the items in the Array. Maybe it is how I am registering the classes with the server side class. Should Section A, Section B, and Section C all call registerClass or just Section B and Section C? I have been unable to find any inheritance examples online or in the docs. Thanks, -Kent From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Kent Henneuse Sent: Monday, July 11, 2005 12:11 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Debuging Java to AS Object conversion? Unfortunately I am building against an existing application that is in JBoss so no JRun. From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: Monday, July 11, 2005 12:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Debuging Java to AS Object conversion? Enable Remote Object debugging in the flex-config.xml file (located at {flex-web-app-install-dir}/WEB-INF/flex/flex-config.xml): remote-objects-debugtrue /remote-objects-debug Then reboot your flex server (or recycle the app if you can it's quicker) the debugging info will be output to the stdout ... if your using the integrated JRun server it will be output to the console window... happy hunting On 7/11/05, Kent Henneuse [EMAIL PROTECTED] wrote: Does anybody have any ways to debug the Java to AS object conversion that is done with the RemoteObject call?Or can you answer why the Net Connection Debugger seems to only grab the initial connection? I have been trying to use the NetConnectionDebugger but am having a problem with.The first connection I make to a remote object to do a login displays fine in it but every other remote object attempt is never displayed.Is there something that I am missing in debugging someplace?What should I be looking for to correct the issue? Thanks, -Kent A hypothetical paradox: What would happen in a battle between an Enterprise security team, who always get killed soon after appearing, and a squad of Imperial Stormtroopers, who can't hit the broad side of a planet? -- Tom Galloway -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group flexcoders on the web. 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 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 Visit your group "flexcoders" on the web. 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] Column chart using webservice result
Shouldnt you be able to replace the last two lines with colchartKPI.horizontalAxis = series? I havent played with this much From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tony_lic Sent: Monday, July 11, 2005 4:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Column chart using webservice result hi, I have to build a column chart, where all the properties like columnseries, categoryaxis the y-axis values all should come from a web service. I dont know where to provide the data provider property. I tried some coding but it does not appear to work. let me provide with you the code snippet. please help me. for(var i=0;i oRequest.AxisData.item[0].Set.item.length; i++) { tempValues.push (oRequest.AxisData.item[0].Set.item[i].Caption.toString()); //Alert.show(oRequest.AxisData.item [0].Set.item[i].Caption.toString()); } colchartKPI.dataProvider = oRequest.AxisData.item[0].Set; var series:CategoryAxis = new CategoryAxis(); series.dataProvider = tempValues; colchartKPI.horizontalAxis.CategoryAxis.dataProvider = tempValues; colchartKPI.horizontalAxis.addItem(series); with regards, tony -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group "flexcoders" on the web. 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] Skinning Mediaplayback?
You can go looking, but I wouldnt promise anything J I couldnt even point you at all the symbols to look for. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien Sent: Monday, July 11, 2005 1:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Skinning Mediaplayback? Thanks alot for the answer Matt. What about editing a theam.swc ??? On 7/11/05, Matt Chotin [EMAIL PROTECTED] wrote: Doesn't look like these guys really support programmatic skinning. Unfortunately they were more of a port from Flash MX 2004 rather than truly integrated into the Flex way of doing things. We're looking to fix that in 2.0. Sorry! Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien Sent: Sunday, July 10, 2005 8:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Skinning Mediaplayback? Resurecting this thread because it appears there was no answer given and I'm trying to do the same thing. On 6/13/05, rockmoyosa [EMAIL PROTECTED] wrote: Sorry if this is a repost,but. I want know if Mediaplayback or Mediacontroller is skinnable. First of all I want that ugly green glow removed an replace it with blue. Themecolor doesn't work. So anybody?? 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/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 Visit your group flexcoders on the web. 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search 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 SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Re: xml datagrid grouping data
Thanks Matt, This is the only way I have managed to do this so far ... getting the xml to return the group record as a member record and flagging it as a header then using a cellrenderer to distinguish between the group header and member records. I just thought I may have missed an obvious way of achieving grouping. Many Thanks for your reply L --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Datagrids don't really support nested columns right now. You would probably need to transform your data into something linear and then use some sort of marker to help get the ordering right. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of msloumac Sent: Monday, July 11, 2005 8:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] xml datagrid grouping data Hi, Does anyone know whether it is possible to bind xml to a data model then use datagrid to group display the data? e.g mx:Model id=myModel groups group gid=01 groupname=first group member nameBob/name age32/age /member member nameHarry/name age34/age /member /group group gid=02 groupname=second group member nameTracey/name age34/age /member member nameGrace/name age23/age /member /group /groups /mx:Model mx:DataGrid id=myGrid dataProvider={mx.utils.ArrayUtil.toArray(myModel.groups.group)} mx:columns mx:Array mx:DataGridColumn columnName=gid headerText=Group ID/ mx:DataGridColumn columnName=groupname headerText=Group Name/ then here a nested set of columns for the member children of each group? /mx:Array /mx:columns /mx:DataGrid Any help appreciated :) -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * 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/ . -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Flex client not passing client certificate to server
I am attempting to use client certificates as the authentication mechanism over an SSL connection. The server (Tomcat 5.5) is configured to require all connections be accompanied with a valid client certificate. As far as the browser and server are concerned, this works fine. The mxml file is requested by the browser, the server challenges the browser for a client certificate, which it receives, and the mxml file is retrieved and displayed correctly. So far, so good. The problem is that any subsequent HTTPS requests from the flex client (NOTE: the flex client, NOT the browser) do not contain the client certificate. The 'http-service-proxy-debug' log states: 07/11 17:09:04 ERROR %%500%%Software caused connection abort: recv failed 07/11 17:09:04 ERROR -- GET status: 500, target: https://localhost:8443/mtx-dx-test/GetUserRoles.do ?includeRoles=managerexcludeRoles= Setting the JVM option '-Djavax.net.debug=ssl:handshake', std out states: *** CertificateRequest Cert Types: RSA, DSS, Cert Authorities: CN=XYZ, O=ABC, C=US *** ServerHelloDone *** Certificate chain *** *** ClientKeyExchange, RSA PreMasterSecret, TLSv1 Random Secret: { 3, 1, 98, 222, 236, 8, 188, 11, 125, 15, 19, 82, 146, 121, 7, 125, 112, 90, 106, 20, 52, 112, 243, 205, 233, 196, 212, 228, 50, 46, 93, 138, 215, 219, 156, 75, 41, 133, 252, 66, 27, 255, 165, 240, 240, 115, 141, 50 } http-8443-Processor24, WRITE: TLSv1 Handshake, length = 141 http-8443-Processor23, READ: TLSv1 Handshake, length = 141 *** Certificate chain *** http-8443-Processor23, SEND TLSv1 ALERT: fatal, description = bad_certificate http-8443-Processor23, WRITE: TLSv1 Alert, length = 2 http-8443-Processor23, called closeSocket() http-8443-Processor23, handling exception: javax.net.ssl.SSLHandshakeException: null cert chain http-8443-Processor23, called close() http-8443-Processor23, called closeInternal(true) Relaxing the server configuration to not require client certificates fixes the problem, so it appears fairly clear that the client certificate is not being managed correctly by flex. Is there an flex-config.xml option I am missing? Is this a supported configuration? Thanks in advance. ...Col -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Re: popupmanager . . . position the window?
In my experience, this technique is unreliable. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You can do popup.centerPopUp(centerRef: MovieClip). If you do not pass the centerRef, it centers on the window that contains the createPopUp() -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] Translator Issue on Gateway
Having a helluva time trying to figure out whats going on heretrying to submit a custom type objectnothing unusualbut gateway debug is complaining as if Ive not registered the object to the remote class properlybut Im sure I have. Any ideas much appreciated! The call Info: Request sent to http://localhost:7001/raven/amfgateway/serviceApplication from 127.0.0.1 received at 18:49:56.553 2005-07-11 Info: Deserializing request (Message #0 targetURI=serviceApplication.submitApplication, responseURI=/3) (Array #0) [0] = (Object #1) _flag = Envelope headers = (Array #2) [0] = (Array #3) [0] = ServiceType [1] = false [2] = stateful-class data = "" #4) [0] = (Typed Object #5 'com.optimal.raven.application.product.data.ApplicationSet') fmaId = null savedContent = null attachments = null modificationDate = null appliedProfile = (Array #6) [0] = 1000 merchantName = null notes = null _remoteClass = com.optimal.raven.application.product.data.ApplicationSet . Gateway Debug: Info: Processing batch of 1 request(s) Info: Requesting target 'serviceApplication.submitApplication' Info: Service 'com.optimal.raven.client.ApplicationClient' sent to adapter 'JavaBeanAdapter' Error: Cannot invoke method 'submitApplication'. flashgateway.GatewayException: Cannot invoke method 'submitApplication'. at flashgateway.adapter.java.JavaAdapter.getMethod(JavaAdapter.java:301) at flashgateway.adapter.java.JavaBeanAdapter.invokeFunction(JavaBeanAdapter.java:64) at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:117) at flashgateway.filter.MessageSecurityFilter.invoke(MessageSecurityFilter.java:144) at flashgateway.filter.ServiceNameFilter.invoke(ServiceNameFilter.java:101) at flashgateway.filter.EnvelopeFilter.invoke(EnvelopeFilter.java:102) at flashgateway.filter.SessionFilter.invoke(SessionFilter.java:28) at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:57) at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:39) at flashgateway.filter.LogFilter.invoke(LogFilter.java:46) at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63) at flashgateway.filter.PacketSecurityFilter.invoke(PacketSecurityFilter.java:68) at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38) at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:89) at flashgateway.Gateway.invoke(Gateway.java:217) at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:69) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Info: Serializing response (Message #0 targetURI=/3/onStatus, responseURI=null) (Object #0) level = error code = Server.Processing type = flashgateway.GatewayException rootcause = (Object #1) level = error code = null type = flashgateway.translator.ASTranslationException details = flashgateway.translator.ASTranslationException: Could not set object APPNAME on class com.optimal.raven.application.product.data.ApplicationSet's field APP_NAME _FIELD_CDE at flashgateway.translator.decoder.JavaBeanDecoder.decodeObject(JavaBeanDecoder.java:99) at flashgateway.translator.decoder.ActionScriptDecoder.decodeObject(ActionScriptDecoder.java:22) at flashgateway.translator.ASTranslator.fromActionScript(ASTranslator.java:187) -- 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 Visit your group "flexcoders" on the web. 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] Re: unknown property warning
Hi, Thanks, I do not have to change the product, so I'll just forget it. Regards Rajesh J --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Actually, it is a warning, and I believe in you case it can be safely ignored. Using dot.down notation often causes Flex to lose track of the datatype of the end element, and the compiler uses the datatype information to set up its change listener infrastructure. However, my advice would be to create a global variable declared as an array, and on change of the product, assign the Attributes property to that variable, then bind to the variable. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, July 11, 2005 2:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: unknown property warning Hi, Can anyone help me with this. How do I bind my xml. Regards Rajesh J --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote: Hi, How do I bind it.. I thought by mx:Array id=attArr{dataObject.Attributes}/mx:Array and then mx:Repeater id=att dataProvider={attArr.Attribute} I thought I was binding it.. but I still get the same error. Rajesh J --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Check the FAQs to find why you see this warning. FAQs: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt What is dataObject? I think, if you make it mx:Model id=dataObject /mx:Model It should work properly... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Saturday, July 09, 2005 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unknown property warning Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml :44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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 -- 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 -- 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: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Translator Issue on Gateway
Where does this exist in your class definition in AS2 (I don't see it in the trace) : Could not set object APPNAME on class com.optimal.raven.application.product.data.ApplicationSet's field APP_NAME Maybe you could post both the AS2 AND Java Class file's definitions? On 7/11/05, Stacy Young [EMAIL PROTECTED] wrote: Having a helluva time trying to figure out what's going on here…trying to submit a custom type object…nothing unusual…but gateway debug is complaining as if I've not registered the object to the remote class properly…but I'm sure I have. Any ideas much appreciated! The call… Info: Request sent to http://localhost:7001/raven/amfgateway/serviceApplication from 127.0.0.1 received at 18:49:56.553 2005-07-11 Info: Deserializing request (Message #0 targetURI=serviceApplication.submitApplication, responseURI=/3) (Array #0) [0] = (Object #1) _flag = Envelope headers = (Array #2) [0] = (Array #3) [0] = ServiceType [1] = false [2] = stateful-class data = "" #4) [0] = (Typed Object #5 'com.optimal.raven.application.product.data.ApplicationSet') fmaId = null savedContent = null attachments = null modificationDate = null appliedProfile = (Array #6) [0] = 1000 merchantName = null notes = null _remoteClass = com.optimal.raven.application.product.data.ApplicationSet …. Gateway Debug: Info: Processing batch of 1 request(s) Info: Requesting target 'serviceApplication.submitApplication' Info: Service 'com.optimal.raven.client.ApplicationClient' sent to adapter 'JavaBeanAdapter' Error: Cannot invoke method 'submitApplication'. flashgateway.GatewayException: Cannot invoke method 'submitApplication'. at flashgateway.adapter.java.JavaAdapter.getMethod(JavaAdapter.java:301) at flashgateway.adapter.java.JavaBeanAdapter.invokeFunction(JavaBeanAdapter.java:64) at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:117) at flashgateway.filter.MessageSecurityFilter.invoke(MessageSecurityFilter.java:144) at flashgateway.filter.ServiceNameFilter.invoke(ServiceNameFilter.java:101) at flashgateway.filter.EnvelopeFilter.invoke(EnvelopeFilter.java:102) at flashgateway.filter.SessionFilter.invoke(SessionFilter.java:28) at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:57) at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:39) at flashgateway.filter.LogFilter.invoke(LogFilter.java:46) at flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63) at flashgateway.filter.PacketSecurityFilter.invoke(PacketSecurityFilter.java:68) at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38) at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:89) at flashgateway.Gateway.invoke(Gateway.java:217) at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:69) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6456) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Info: Serializing response (Message #0 targetURI=/3/onStatus, responseURI=null) (Object #0) level = error code = Server.Processing type = flashgateway.GatewayException rootcause = (Object #1) level = error code = null type = flashgateway.translator.ASTranslationException details = flashgateway.translator.ASTranslationException: Could not set object APPNAME on class com.optimal.raven.application.product.data.ApplicationSet's field APP_NAME _FIELD_CDE at flashgateway.translator.decoder.JavaBeanDecoder.decodeObject(JavaBeanDecoder.java:99) at flashgateway.translator.decoder.ActionScriptDecoder.decodeObject(ActionScriptDecoder.java:22) at flashgateway.translator.ASTranslator.fromActionScript(ASTranslator.java:187) -- 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 Visit your group flexcoders on the web. 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] Re: unknown property warning
From the sample XML, aren't attributes product-dependent? Or does your data call only bring back one product at a time? If you want, you can disable binding warnings in the flex-config file. I personally prefer finding way to suppress the warnings with code though. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, July 11, 2005 7:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: unknown property warning Hi, Thanks, I do not have to change the product, so I'll just forget it. Regards Rajesh J --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Actually, it is a warning, and I believe in you case it can be safely ignored. Using dot.down notation often causes Flex to lose track of the datatype of the end element, and the compiler uses the datatype information to set up its change listener infrastructure. However, my advice would be to create a global variable declared as an array, and on change of the product, assign the Attributes property to that variable, then bind to the variable. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, July 11, 2005 2:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: unknown property warning Hi, Can anyone help me with this. How do I bind my xml. Regards Rajesh J --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote: Hi, How do I bind it.. I thought by mx:Array id=attArr{dataObject.Attributes}/mx:Array and then mx:Repeater id=att dataProvider={attArr.Attribute} I thought I was binding it.. but I still get the same error. Rajesh J --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Check the FAQs to find why you see this warning. FAQs: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt What is dataObject? I think, if you make it mx:Model id=dataObject /mx:Model It should work properly... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Saturday, July 09, 2005 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unknown property warning Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml :44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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 -- 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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo!
Re: [flexcoders] Login security best practices for Flex and ColdFusion users
You can assign a basic role to add make sure that folks have been authenticated on a cfc framework before accessing that said CFC in general (which is good practice as in many ways if its public, you don't want people firing off cfc's based on what you've made exposed) That being said, treat it much the same way you would HTML+CFMX. Never assume FLEX has total control and when need to always check their authentication information per method request if need be. I've basically setup the following: - A xxxAppContextGateway.cfc, with the role app_name_hereFLEX on all remote methods exposed - xxxAppContextGateway.cfc knows where to get various other CFC's within the model, some being cfmx based, others could be java, basically its a facade in manyways to the model. - With regards to authentication, i provide a typical username/password form, ask the user to fill out that information. Now since I use the same form/mxml for various applications, part of my mx:Application custom properites, i assign an APPCODE (ie IWF08-ITM), this code also get sent to my securityGateway.cfc. Inside this security gateway, based on code mappings it will authenticate that details against that person(s) and store various properties in session scope, aswell as CFLOGIN with their respective roles. (NOTE: A login form can send a comma delim APPCODE for multiple application logins). From here on out the typical setup works where a session scope follows them around until they basically timeout. I had to sadly make a timer setting, that basically pinged the server every 5mins to reset their 10min timeout aswell as to see if they are still valid/logged in (FSC+Application.cfc / onSessionEnd would of been good here but anyway). I also, due to Audit Requirments in my current FLEX app am required to log certain activities client-side (ie UserXYZ clicked on View Invoice0001) which I basically log server-side, this also did another layer of security to first determine if that user had access to that invoice (some where marked private, and have strict assignees associated to it, so again, there was another handshake layer attached to see if i can perform that action) hope that helps? On 7/12/05, a1 [EMAIL PROTECTED] wrote: I did some quick searching and didn't come up with anything too difinitive on this. Coming from a typically ColdFusion only environment, I usually roll my own login security with session variables. I'm trying to get a firm understanding of what everyone considers the best practice for flex login security when using ColdFusion remoting. My thoughts are that putting roles on all my cfc's and calling cflogin with flash remoting would log the user into the role, and then if / when they are logged out a call to a remoting method will fail if they aren't in their role, and the remoting 'fault' can be fired to cause flex to show the login screen again. Is this the best method, or do most of you roll your own cfc security function? or can you do something with the session object in Flex? -Thanx -- 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 -- Regards, Scott Barnes http://www.mossyblog.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: http://docs.yahoo.com/info/terms/
[flexcoders] Re: unknown property warning
HI, THe attributes are product dependant, but the product is not changed when the attribute is changed it is added in a new table with the product information and all the attributes. I will have to supress the warning in production mode for now I will ignore them. Thanks a lot Rajesh J --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: From the sample XML, aren't attributes product-dependent? Or does your data call only bring back one product at a time? If you want, you can disable binding warnings in the flex-config file. I personally prefer finding way to suppress the warnings with code though. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, July 11, 2005 7:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: unknown property warning Hi, Thanks, I do not have to change the product, so I'll just forget it. Regards Rajesh J --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Actually, it is a warning, and I believe in you case it can be safely ignored. Using dot.down notation often causes Flex to lose track of the datatype of the end element, and the compiler uses the datatype information to set up its change listener infrastructure. However, my advice would be to create a global variable declared as an array, and on change of the product, assign the Attributes property to that variable, then bind to the variable. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Monday, July 11, 2005 2:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: unknown property warning Hi, Can anyone help me with this. How do I bind my xml. Regards Rajesh J --- In flexcoders@yahoogroups.com, Rajesh Jayabalan [EMAIL PROTECTED] wrote: Hi, How do I bind it.. I thought by mx:Array id=attArr{dataObject.Attributes}/mx:Array and then mx:Repeater id=att dataProvider={attArr.Attribute} I thought I was binding it.. but I still get the same error. Rajesh J --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Check the FAQs to find why you see this warning. FAQs: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt What is dataObject? I think, if you make it mx:Model id=dataObject /mx:Model It should work properly... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Saturday, July 09, 2005 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unknown property warning Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml :44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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 --
[flexcoders] Re: how to specify the size of the vScrollBar
Matt: I got it working by returning the 'correct length' from the 'get length()' method. I will post the code here as soon as it is presentable. Sanjay --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: How did you set the length of the data provider? My example does provide the way to set the length and everything shows up at the top of the grid. Maybe you're accidentally sorting or something? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd Sent: Sunday, July 10, 2005 2:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to specify the size of the vScrollBar folks. I am writing a PagingDataProvider that feeds an underlying grid page-by-page on demand..I started with the code from Matt's blog site. However, I want the vScrollBar on the grid to reflect the 'correct number of rows', not just the rows that have been already rendered. I tried setting the length of the dataProvider to the 'correct number of rows' ...although that sizes the scrollBar accurately, now the rendered rows show up at the bottom of the grid (ie. you have to scroll all the way to the bottom of the grid to see what should have been visible at the top!! ) Am I missing something obvious ? Thanks - Sanjay -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * 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/ . -- 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: http://docs.yahoo.com/info/terms/
[flexcoders] TileList withh CellRendere.
Hi All, I am implementing the TileList with CellRenderer mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml initialize= loadComplete()/ mx:Script ![CDATA[ import com.test.model.ModelLocator; import com.test.dto.ActivityDTO; import org.nevis.cairngorm.control.EventBroadcaster; import com.test.control.SfmController; public var activities : Array; public var activity : ActivityDTO; private function loadComplete() : Void { EventBroadcaster.getInstance().broadcastEvent ( SfmController.EVENT_GET_ACTIVITIES_WORK_QUEUE ); } ]] /mx:Script mx:TileList id=tileListComp width=100% height=100% dataProvider={ ModelLocator.activities } itemWidth=300 itemHeight=100 cellRenderer=com.test.view.activityview.ActivityDetailThumbnail change=activityWorkQueueListViewHelper.updateSelectedActivity( event )/ CellRenderer import com.hmssoftware.sfm.dto.ActivityDTO; import com.hmssoftware.sfm.dto.DeliverableDTO; import com.hmssoftware.sfm.model.ModelLocator; public var activity : ActivityDTO; public var deliverable : DeliverableDTO; public function setValue( str : String, item : Object ) { activity = ActivityDTO( item ); // This is undefined mx.core.Application.alert( activity.activityId: + activity.activityId );// Resulting in activity.activityId: Undefined ?? } I am unsing Cairngorm 0.99. In my onResult() of command when I check for data ModelLocator.activities its valid. But the TileList dataprovider when initialized is undefined. I guess I need some sequence which will help me to initialize CellRenderer After the onResult() where I am assigning event.result to ModelLocator.activities. Thanks in advance for any suggestion or help. Thanks, Shahn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Disappearing server call parameter
Title: Message The code property is "public var code:String;". And yes, Java class has that property. The server call is used when an object is added or edited. It has worked fine and actually the feature which uses the call has already been deployed to a customer as a part of our software. Yesterday we got an error report from the customer and the cause of the error turned out to be disappearing code property. It only happens if another property is changed. I know there are plenty of places in the UI that could mess up with the value, but the debugger revealed that the value should be OK when it is send to the server. I tried to use implicit getter/setter but the setter was never called with null value. I noticed that if I change the value of code property, it does not disappear. I also tried adding an additional property as you suggested andthere was no problem passing it to server side. I hope that you (or someone else) have some kind of suggestion since I'm stucked with this. Markus -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: 11. heinäkuuta 2005 23:36To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Disappearing server call parameter Is the code property a getter/setter? What if you add an additional property named something else? Does your Java class have that property declared? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Markus AnsamaaSent: Monday, July 11, 2005 4:11 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Disappearing server call parameter I'm totally confused with one of my server calls. It seems to be that incertain circumstances one of the parameter object's properties disappear. Ihave debugged the application to the point where the server call is made anddebugger says the property exists. But when the server side code is calledthere is no value for the property. I know the problem sounds weird, but Isimply can't find the cause of the problem. Has anyone any suggestions?In below, there are some details from the Network Monitor.Markus13:43:12.691 RemoteObject RPC13.43:12.942 HTTPHeader POST13.43.12.942 AMF AMF/Post MessageHere are details for the RPC:Method: observationFacade.saveObservationDefinitionParameter 1: name : param1 type : object value[object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][object] : definition[null] : null id[object] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[object] : code OK - code[String] : as ...And for the AMF Post Message:Message Target : observationFacade.saveObservationDefinitiondata[array] : length[Number] : 1 [0][object] : _flag[String] : Envelope data[array] : length[Number] : 1 [0][com.intensium.iwiser.business.observation.ObservationVO] : definition[undefined] : undefined id[com.intensium.iwiser.business.IdVO] : extension[undefined] : undefined root[undefined] : undefined oid[Number] : 1.19582E+006 repeatHigh[Number] : 1 repeatLow[Number] : 0 statusCode[String] : normal statusOid[null] : null title[String] : Ohjainkatetri(t), 2.suoni valueDefinition[com.intensium.iwiser.business.observation.ValueDefinitionVO]: code missing - code[undefined] : undefined ...--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --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 Visit your group "flexcoders" on the web. 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] drag and drop
hai, I have a cnvas with many controls inside... i want a drag event on the canvas i use a mouseMove evnet for beginDrag and i also have a mousedown event tht takes u to a next view in the viewstack... now what happens is when i start dragging the controls goes to the next view even before the drag is completed how to overcome this? thanks, nithyaSend instant messages to your online friends http://uk.messenger.yahoo.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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.