[flexcoders] Is there a separator item for a ComboBox?
Hi, Does the flex standard library have a separator (horizontal line) item that you can specify to insert into a ComboBox? I looked around, doesn't seem to be one, but I thought I'd ask around here as well. thx, George -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Hardware requirements for Flex performance
thanx for the response Mika. I was wondering if you have even experiences behavioral anomalies as a result of this? For instance, when I select a lot of data from this popup window, it displays in my main window as an iteration of Repeater tags. Problem is that some of my selections aren't being displayed. Just a little baffled at that. TIA, George --- In flexcoders@yahoogroups.com, Mika Kiljunen [EMAIL PROTECTED] wrote: Hi, If you have a complex app that processed and displays _lot of data_ then memory could be an issue. We run our app on IE and it eats a big bunch of memory when lot of data is loaded, which is of course a natural result. This causes slowdown on performance. Also many flex components like datagrid slow down a great deal when lot of data is populated on them. So watch out for memory. Also processor performance effects a lot on usability with Flex 1.5. -Mika _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: 29. maaliskuuta 2006 10:08 To: flexcoders@yahoogroups.com Subject: [flexcoders] Hardware requirements for Flex performance Hi, Anyone here have any comments on how complexities in your Flex app can affect the performance? We have an app where we're fetching and displaying a lot of data. We're seeing the behavior where if we select too much of something to display, it won't display everything. A collegue hypothesized that the hardware specs of the machine might play a factor. We have customer that could conceivably be using slower machines that have 256MB of RAM. So I guess I'm wondering if any of you would know how hardware specs might play into the performance of your flex app (or more specifically the flash browser plugin I guess). Is there a relationship between the complexities of your app and the hardware resources it might require? We're using Flex 1.5 btw. TIA, George -- 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! http://docs.yahoo.com/info/terms/ 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 * 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] Hardware requirements for Flex performance
Hi, Anyone here have any comments on how complexities in your Flex app can affect the performance? We have an app where we're fetching and displaying a lot of data. We're seeing the behavior where if we select too much of something to display, it won't display everything. A collegue hypothesized that the hardware specs of the machine might play a factor. We have customer that could conceivably be using slower machines that have 256MB of RAM. So I guess I'm wondering if any of you would know how hardware specs might play into the performance of your flex app (or more specifically the flash browser plugin I guess). Is there a relationship between the complexities of your app and the hardware resources it might require? We're using Flex 1.5 btw. TIA, George -- 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: Component that has event listeners and handles it's own event
Thanx Gordon, that is what it appears to be. However I thought of a different workaround to address this. I just have the combobox that handles its change event. It would then dispatch a new custom event in which other components could receive and handle. That would ensure the ordering of events I want I believe. george --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: In Flex 1.X, dispatchEvent() is implemented in AS2 using a for-in loop over an Object holding all the listeners. I think AS2 didn't technically guarantee the for-in order for an object's properties, but I believe the player's implementation actually consistently enumerated them in the reverse order that they were added. So in 1.X, it may be that the order in which event listeners get called is always the reverse of the order in which addEventListener() added them. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Friday, March 10, 2006 4:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Component that has event listeners and handles it's own event Thanx for the info Gordon. Unfortunately we're using 1.5 still. And yes, it's undeterministic what executes first. George --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote: In Flex 1.X, the order in which event handlers on an object execute isn't well-defined. In Flex 2, the order in which event handlers on an object execute is deterministic: 1. Higher priority handlers execute before lower priority ones. 2. For handlers with the same priority, those added earlier with addEventListener() execute before those added later. When you write an event handler attribute in MXML, addEventListener() is called to add that handler immediately after the component is first created. So in Flex 2, cbChanged() should execute first, then fooViewHelper(). If this isn't happening, please file a bug. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Thursday, March 09, 2006 5:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Component that has event listeners and handles it's own event Hi, I have an interesting situation here. I have something like below. mx:ComboBox id=employeeCB labelFunction=formatName change=empFolderViewHelper.cbChanged(event); mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox There's a handler for its change event. I also have event listeners of this comboBox that listens to the change event as well. view.employeeCB.addEventListener('change', fooViewHelper); I've noticed that the order of event execution seems to be that the event listeners get the event first and processes it and then the employeeCB handles its change event later. This seems to be consistent, but I'm not really sure if this is the case behind the scenes. Anyone know the exact behavior of this? And if there's a way that I can programmatically change the ordering of this execution? TIA, George -- 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/
[flexcoders] Re: Component that has event listeners and handles it's own event
Thanx for the info Gordon. Unfortunately we're using 1.5 still. And yes, it's undeterministic what executes first. George --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: In Flex 1.X, the order in which event handlers on an object execute isn't well-defined. In Flex 2, the order in which event handlers on an object execute is deterministic: 1. Higher priority handlers execute before lower priority ones. 2. For handlers with the same priority, those added earlier with addEventListener() execute before those added later. When you write an event handler attribute in MXML, addEventListener() is called to add that handler immediately after the component is first created. So in Flex 2, cbChanged() should execute first, then fooViewHelper(). If this isn't happening, please file a bug. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Thursday, March 09, 2006 5:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Component that has event listeners and handles it's own event Hi, I have an interesting situation here. I have something like below. mx:ComboBox id=employeeCB labelFunction=formatName change=empFolderViewHelper.cbChanged(event); mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox There's a handler for its change event. I also have event listeners of this comboBox that listens to the change event as well. view.employeeCB.addEventListener('change', fooViewHelper); I've noticed that the order of event execution seems to be that the event listeners get the event first and processes it and then the employeeCB handles its change event later. This seems to be consistent, but I'm not really sure if this is the case behind the scenes. Anyone know the exact behavior of this? And if there's a way that I can programmatically change the ordering of this execution? TIA, George -- 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] Component that has event listeners and handles it's own event
Hi, I have an interesting situation here. I have something like below. mx:ComboBox id=employeeCB labelFunction=formatName change=empFolderViewHelper.cbChanged(event); mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox There's a handler for its change event. I also have event listeners of this comboBox that listens to the change event as well. view.employeeCB.addEventListener('change', fooViewHelper); I've noticed that the order of event execution seems to be that the event listeners get the event first and processes it and then the employeeCB handles its change event later. This seems to be consistent, but I'm not really sure if this is the case behind the scenes. Anyone know the exact behavior of this? And if there's a way that I can programmatically change the ordering of this execution? TIA, George -- 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: problem with cell renderer in ComboBox
Just sharing the solution I got for this with Flex Support. I basically just used the labelFunction attribute. mx:Script function formatName( item ) : String { return item.firstName + + item.lastName; } /mx:Script mx:ComboBox id=employeeComboBox labelFunction=formatName dataProvider={ModelLocator.employees} / I still wondering why the cellRenderer solution didn't work. cheers, George --- In flexcoders@yahoogroups.com, george_lui [EMAIL PROTECTED] wrote: Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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: problem with cell renderer in ComboBox
I don't see how this was terribly different from the original code. But I tried it anyways and it doesn't work. thanx anyways, geo --- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote: why dont you simplify things a bit. put your FullNameRenderer into the same folder location as your ComboBox mxml application. and do this mx:ComboBox creationComplete=test(event) function test(event){ event.target.dropdown.cellRenderer = FullNameRenderer; } --- In flexcoders@yahoogroups.com, george_lui george_lui@ wrote: Y'know I just did a blind copypaste from some other guy in this group. But yeah, I don't see no getDropdown() method in the api docs. Just the dropdown property. I did try your setting it to the property and it still didn't work :( thanx, george --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Hi, I'm not familiar with getDropdown(). Is getDropdown() a valid method of your combobox? If not, try event.target.dropdown. instead of event.target.getDropdown().. Doug --- In flexcoders@yahoogroups.com, george_lui george_lui@ wrote: Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown ().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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: problem with cell renderer in ComboBox
Hi Matt, You have an example of a labelFunction? Say I have the blurb below... mx:Script funtion foo() { ?? } /mx:Script mx:ComboBox id=employeeComboBox labelFunction=foo rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox Here, ModelLocator.employees is an array of custom vo objects. How do I access the individual attributes of each vo object in this scenario? TIA, George --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: labelField isn't necessary if you have a cell renderer. Any chance you can just use labelFunction if all you're doing is concatenation? I'm almost positive variableRowHeight also isn't going to work. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Friday, February 17, 2006 11:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: problem with cell renderer in ComboBox good call, but it didn't work. Really weird. Do you think I still need the labelField attribute? TIA, George --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: What if you take out the quotes around the renderer? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Thursday, February 16, 2006 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem with cell renderer in ComboBox Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full NameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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/
[flexcoders] Re: problem with cell renderer in ComboBox
Y'know I just did a blind copypaste from some other guy in this group. But yeah, I don't see no getDropdown() method in the api docs. Just the dropdown property. I did try your setting it to the property and it still didn't work :( thanx, george --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Hi, I'm not familiar with getDropdown(). Is getDropdown() a valid method of your combobox? If not, try event.target.dropdown. instead of event.target.getDropdown().. Doug --- In flexcoders@yahoogroups.com, george_lui george_lui@ wrote: Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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: problem with cell renderer in ComboBox
good call, but it didn't work. Really weird. Do you think I still need the labelField attribute? TIA, George --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: What if you take out the quotes around the renderer? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Thursday, February 16, 2006 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem with cell renderer in ComboBox Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full NameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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] problem with cell renderer in ComboBox
Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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: How to handle sessions in Flex
I don't believe we are. We have a login screen that makes a service call to our EJB layer for authentication and verification. I think that answers your question. George --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: Before I answer this, let me get some background. Are you using J2EE security? If so, FORM or BASIC authentication? Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Friday, January 13, 2006 11:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to handle sessions in Flex thanx for the prompt reply. I neglected to mention some other requirements. The nature of our app can have our users spends a good deal amount of time filling out the form. There's a save button there to save your work. However say the user is filling out the form and doesn't bother to save the form. There's a good chance that the session could expire before he gets a chance to save the form. Our server session is usually 30 minutes. In this scenario, when the session expires, we don't want the user to lose the data on the form. We want to somehow catch the session timeout and save the form. Another scenario we want to catch is, say you logout. The session is invalidated. However you could hit the browser Back button and have the previous screen display. You wouldn't know that the session time out until you invoke a service call. Instead I want to go to the login screen in such a scenerio. Can this be done? Please advise. thx, george --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: You'll need to expire the page with cache headers so that the browser attempts to reload the page which will then take you to the login page. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Thursday, January 12, 2006 5:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to handle sessions in Flex Hi, I click on Logout in my application. However if I hit the browser Back button, I go back to the previous screen. I want to go to the login screen however. You guru's know how I would be able to do this? Can I catch the browser button events? George -- 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/
[flexcoders] How to handle sessions in Flex
Hi, I click on Logout in my application. However if I hit the browser Back button, I go back to the previous screen. I want to go to the login screen however. You guru's know how I would be able to do this? Can I catch the browser button events? George -- 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: How to handle sessions in Flex
thanx for the prompt reply. I neglected to mention some other requirements. The nature of our app can have our users spends a good deal amount of time filling out the form. There's a save button there to save your work. However say the user is filling out the form and doesn't bother to save the form. There's a good chance that the session could expire before he gets a chance to save the form. Our server session is usually 30 minutes. In this scenario, when the session expires, we don't want the user to lose the data on the form. We want to somehow catch the session timeout and save the form. Another scenario we want to catch is, say you logout. The session is invalidated. However you could hit the browser Back button and have the previous screen display. You wouldn't know that the session time out until you invoke a service call. Instead I want to go to the login screen in such a scenerio. Can this be done? Please advise. thx, george --- In flexcoders@yahoogroups.com, Carson Hager [EMAIL PROTECTED] wrote: You'll need to expire the page with cache headers so that the browser attempts to reload the page which will then take you to the login page. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Thursday, January 12, 2006 5:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to handle sessions in Flex Hi, I click on Logout in my application. However if I hit the browser Back button, I go back to the previous screen. I want to go to the login screen however. You guru's know how I would be able to do this? Can I catch the browser button events? George -- 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: Need help in tackling this event problem...
Hi, We are using commands. The command has access to this when the event is broadcasted. It's the event that you get on onResult(event) and onFault(event) that doesn't have this data. event.data and event.type are undefined as well. We thought about the global variable route. Actually we thought about having the Responder having an attribute for this as well. Problem with that though is that we have asynchronous chained commands for certain actions and there's no way to know which data is relevant to which command any any point in time. george --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Hi, The simplest solution is to implement commands :) However, if you want to keep what you have, you will have to save the original event object in some global variable so that you can look it up once onResult() or onFault() are fired. Dimitrios Jimmy Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Friday, January 06, 2006 9:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Need help in tackling this event problem... Hi, Here's my scenerio: I have a view and it's corresponding ViewHelper. There are two buttons in the view. If I hit button A, I want action X to occur. If I hit button B, I want action Y to occur. This is how I broadcast my event in this view when I hit these buttons. CommandEventBroadcaster.getInstance().broadcastEvent(SharkfinControl.EVE NT_SAVE_FORM, {form: true}, this); We have a custom EventBroadcaster that we wrote to include the Responder object (the 'this' argument). It's also passing in a boolean flag here (form). In our case the ViewHelper implements the Responder interface. This is for the purpose decoupling the command from the Responder (ViewHelper). In our Responder we have the onFault(event) and onResult(event) methods in which we do post-command-execution stuff. The problem it seems for me is that I want to have some sort of flag that would distinguish between executing action X or Y (the form boolean). I can set a flag when broadcasting the event. The command class has access to these flag in the event. However, on onResult() the intiall event parameters is lost. It appears to be a new event object. Therefore, the responder onFault(event) and onResult(event) have no notion of any flags that were set before the service call. Is there a solution that you might know of to address this? The basic gist of my problem is to retrieve any event attr in onResult() and onFault() that were sent on the event when it was intially broadcasted. TIA, George -- 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] Re: Need help in tackling this event problem...
Event is a class in Cairngorm. I'm assuming that you meant that I should subclass the Event class right? TIA, george --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Impossible to do with anonymous objects. However, if you make your event a class, you have no problems. This is enforced at runtime in AS3: class Event { private var test:String; public var target:Object; public var type:String; } var e:Event = new Event(); e.target = this; e.type = test; dispatchEvent(e); function onResult(event:Event):Void { trace(event.test); // won't compile } - Original Message - From: Weyert de Boer [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 07, 2006 8:38 AM Subject: Re: [flexcoders] Need help in tackling this event problem... JesterXL wrote: Clearly your problem is your custom EventDispatcher. The one that comes with Flex allows me to throw any custom arg I want at result handlers. Find out why he's not keeping your event handlers. Yes, EventDispatcher something I have issues with to understand. It keeps sending data I don't want to the listeners such as private variables of the class g -- 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: Need help in tackling this event problem...
Actually that is the problem. The event I dispatch *doesn't* appear to be the same event I get back in my result handler. We use our custom event broadcaster to pass an event, pass it some event data, and pass the Responder object (ViewHelper) in our case. The command has access to the event data and does it's execute() thing (it makes a service call). However in our Responder.onResult(event) and Responder.onFault(event), the event doesn't appear to be the same event I passed in. For instance, event.data and event.type yields undefined. According to the Cairngorm documentation the returned event after a service call : event - An object containing the data passed back from the service call... Kinda leads me to believe that the event object avail in onResult() and onFault() is not the same as the one that was broadcasted prior to any backend service call. Maybe this is Cairgorm that's not working as I want it to? Any Cairgorm guru's out there? TIA, george --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Sure, I reckon. I've never used Cairngorm, but if memory serves when I was reading the files, yeah. If you dispatch the event, he should have all of the properties that you set on the event carred over since the event you dispatch is the one you'll get in your result handler. - Original Message - From: george_lui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 09, 2006 2:21 PM Subject: [flexcoders] Re: Need help in tackling this event problem... Event is a class in Cairngorm. I'm assuming that you meant that I should subclass the Event class right? TIA, george --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Impossible to do with anonymous objects. However, if you make your event a class, you have no problems. This is enforced at runtime in AS3: class Event { private var test:String; public var target:Object; public var type:String; } var e:Event = new Event(); e.target = this; e.type = test; dispatchEvent(e); function onResult(event:Event):Void { trace(event.test); // won't compile } - Original Message - From: Weyert de Boer [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 07, 2006 8:38 AM Subject: Re: [flexcoders] Need help in tackling this event problem... JesterXL wrote: Clearly your problem is your custom EventDispatcher. The one that comes with Flex allows me to throw any custom arg I want at result handlers. Find out why he's not keeping your event handlers. Yes, EventDispatcher something I have issues with to understand. It keeps sending data I don't want to the listeners such as private variables of the class g -- 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/
[flexcoders] Re: Need help in tackling this event problem...
JesterXL, Yeah, that's kinda what I suspected. I suppose I could stick it in a ModelLocator. However all my events are asynchronous, so I suppose that *theoretically* your data in ModelLocator might not be in the *correct* context if, say, you have some chained asychronous events right? thanks, George --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Oh... well that's different. The reason you're not getting it is because the event you dispatch is handling internally in Cairngorm, and triggers the Command. After that, it's done, gone, and no longer can be access. The Responder.onResult event is the event returned from a successful webservice call, and is a totallly different event object. You could instead stick the data temporarely on the ModelLocator so whoever is utilizing the Responder's result event can look there for context. - Original Message - From: george_lui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 09, 2006 4:00 PM Subject: [flexcoders] Re: Need help in tackling this event problem... Actually that is the problem. The event I dispatch *doesn't* appear to be the same event I get back in my result handler. We use our custom event broadcaster to pass an event, pass it some event data, and pass the Responder object (ViewHelper) in our case. The command has access to the event data and does it's execute() thing (it makes a service call). However in our Responder.onResult(event) and Responder.onFault(event), the event doesn't appear to be the same event I passed in. For instance, event.data and event.type yields undefined. According to the Cairngorm documentation the returned event after a service call : event - An object containing the data passed back from the service call... Kinda leads me to believe that the event object avail in onResult() and onFault() is not the same as the one that was broadcasted prior to any backend service call. Maybe this is Cairgorm that's not working as I want it to? Any Cairgorm guru's out there? TIA, george --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Sure, I reckon. I've never used Cairngorm, but if memory serves when I was reading the files, yeah. If you dispatch the event, he should have all of the properties that you set on the event carred over since the event you dispatch is the one you'll get in your result handler. - Original Message - From: george_lui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, January 09, 2006 2:21 PM Subject: [flexcoders] Re: Need help in tackling this event problem... Event is a class in Cairngorm. I'm assuming that you meant that I should subclass the Event class right? TIA, george --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Impossible to do with anonymous objects. However, if you make your event a class, you have no problems. This is enforced at runtime in AS3: class Event { private var test:String; public var target:Object; public var type:String; } var e:Event = new Event(); e.target = this; e.type = test; dispatchEvent(e); function onResult(event:Event):Void { trace(event.test); // won't compile } - Original Message - From: Weyert de Boer [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 07, 2006 8:38 AM Subject: Re: [flexcoders] Need help in tackling this event problem... JesterXL wrote: Clearly your problem is your custom EventDispatcher. The one that comes with Flex allows me to throw any custom arg I want at result handlers. Find out why he's not keeping your event handlers. Yes, EventDispatcher something I have issues with to understand. It keeps sending data I don't want to the listeners such as private variables of the class g -- 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! 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
[flexcoders] Need help in tackling this event problem...
Hi, Here's my scenerio: I have a view and it's corresponding ViewHelper. There are two buttons in the view. If I hit button A, I want action X to occur. If I hit button B, I want action Y to occur. This is how I broadcast my event in this view when I hit these buttons. CommandEventBroadcaster.getInstance().broadcastEvent(SharkfinControl.EVENT_SAVE_FORM, {form: true}, this); We have a custom EventBroadcaster that we wrote to include the Responder object (the 'this' argument). It's also passing in a boolean flag here (form). In our case the ViewHelper implements the Responder interface. This is for the purpose decoupling the command from the Responder (ViewHelper). In our Responder we have the onFault(event) and onResult(event) methods in which we do post-command-execution stuff. The problem it seems for me is that I want to have some sort of flag that would distinguish between executing action X or Y (the form boolean). I can set a flag when broadcasting the event. The command class has access to these flag in the event. However, on onResult() the intiall event parameters is lost. It appears to be a new event object. Therefore, the responder onFault(event) and onResult(event) have no notion of any flags that were set before the service call. Is there a solution that you might know of to address this? The basic gist of my problem is to retrieve any event attr in onResult() and onFault() that were sent on the event when it was intially broadcasted. TIA, George -- 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] Does this work for the Grid component (variable column sizing)
Say I have something like this... mx:Grid width=100% horizontalGap=5 verticalGap=7 verticalAlign=middle mx:GridRow mx:GridItem width=90% ...some component... /mx:GridItem mx:GridItem width=10% ...some component... /mx:GridItem /mx:GridRow /mx:Grid The layout displays fine, but the cell column widths are fixed. I want the first column to always occupy 90% of the width when I resize my browser window. There's also flexWidth and flexHeight which is deprecated so I'm trying to avoid using that. TIA, George Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~- -- 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 do you guys handle browser back button cases?
Say I logout in my Flex RIA. I then hit the browser back button. I got back to the last page. If I make another remoteObject invocation at this point, my code catches the invalidated session and it is dealt with accordingly. But I wanna catch the session invalidation status when I hit the back button. Is there a way to do this? Does hitting the browser back button fire off a Flex event I can catch? I would like to redirect to the login page when someone hits the back (or forward) buttons when the session has already been invalidated. thank you, George Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- 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] datagrid column sorting
Hi, When you sort columns in a datagrid, I assume that data in a column is sorted according to its natural sorting order (whatever that may be). In my case it's a string. For some reason, the sorting on this column behaves differently. I have data that begins with uppercase and lowercase letters, and columns that are just blank. When I sort on this column I get uppercase, blank, and lowercase (and vice versa when sorting in the reverse order). I'm expecting the sort to be uppercase, lowercase, and blank (and vice versa). Is anyone aware of such a behavior? It's hard for me to pinpoint because I don't have this behavior on my local build, but it's there in a staging build. Thanks, George Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM ~- -- 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/