Re: [flexcoders] Cairngorm: Managing Popup Windows
intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff above everything and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: Does the form need to be modal?. - Original Message -From: Stefan Schmalhaus [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event (selectUser oropenPopup?) or as a chain of two events (selectUser - openPopup). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I allowed to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm command chain (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in safe Cairngorm terrain again with the updateUser anddeleteUser actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully do one day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Cairngorm: Managing Popup Windows
I stand corrected. A purist would argue that you should figure out why the row heights aren't working, but I'm with you; if it works, and gets done quickly, who cares? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:38 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff "above everything" and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: "Does the form need to be modal?". - Original Message -From: "Stefan Schmalhaus" [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event ("selectUser" or"openPopup"?) or as a chain of two events ("selectUser" - "openPopup"). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I "allowed" to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm "command chain" (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in "safe Cairngorm terrain" again with the "updateUser" and"deleteUser" actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully doone day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- 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
Re: [flexcoders] Cairngorm: Managing Popup Windows
...hey, wait a minute, I still win! You're RTE DOES need to be modal. *whew* http://youbeat2trees.ytmnd.com/ - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:49 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows I stand corrected. A purist would argue that you should figure out why the row heights aren't working, but I'm with you; if it works, and gets done quickly, who cares? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:38 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff "above everything" and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: "Does the form need to be modal?". - Original Message -From: "Stefan Schmalhaus" [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event ("selectUser" or"openPopup"?) or as a chain of two events ("selectUser" - "openPopup"). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I "allowed" to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm "command chain" (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in "safe Cairngorm terrain" again with the "updateUser" and"deleteUser" actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully doone day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- 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
Re: [flexcoders] Cairngorm: Managing Popup Windows
omg! too funny. That link is better than a beer at MAX, eh? heheDKOn 7/30/06, JesterXL [EMAIL PROTECTED] wrote: ...hey, wait a minute, I still win! You're RTE DOES need to be modal. *whew* http://youbeat2trees.ytmnd.com/ - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:49 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows I stand corrected. A purist would argue that you should figure out why the row heights aren't working, but I'm with you; if it works, and gets done quickly, who cares? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Sunday, July 30, 2006 4:38 PM Subject: Re: [flexcoders] Cairngorm: Managing Popup Windows intersting to read this. we are working on a datagrid that has complex data, two text fields, in one column. We used a custom itemEditor with a RTE in it. Nice, right? nope, sucked. Can't quite seem to get the row height to expand contract as needed. So, we went with a modal popup. DK On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: Popups were really valuble in Flex 1.5.Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care.Popups workedgreat for putting stuff above everything and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can seeis modality.Thus, I'd avoid 'em like the plague unless you can answer yes to thefollowing question: Does the form need to be modal?. - Original Message -From: Stefan Schmalhaus [EMAIL PROTECTED]To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AMSubject: [flexcoders] Cairngorm: Managing Popup WindowsI've done some research on this list but haven't found any validinformation on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem touse the TitleWindow component at all.Let's say I have a simple DataGrid populated with some user data. If Iclick on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttonsfor deleting or saving (updating) the user account.I have done stuff like this several times in Flash/AS2 but I've neverused a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simpleany more. (But I guess that's because I'm not yet too familiar withCairngorm.) I know how to establish databinding between the dataprovider and { model.users} and all this basic Cairngorm stuff.But what happens when a row is clicked? I'm not even sure if I'msupposed to treat this event as a single event (selectUser oropenPopup?) or as a chain of two events (selectUser - openPopup). Since my user information is organized as an array ofvalue objects it's easy to assign the selected user VO tomodel.selectedUser:model.selectedUser = UserVO(userList.selectedItem );But am I allowed to directly access the ModelLocator from my viewcomponent? Or am I supposed to route this simple action through theCairngorm command chain (Cairngorm Event - Front Controller - Command Class - ModelLocator)?Next question, what about the popup itself? Can I simply usePopUpManager.createPopUp( this, UserFormView , true)? Or am I supposedto treat this as a Cairngorm Event, too? I feel in safe Cairngorm terrain again with the updateUser anddeleteUser actions on the buttons. But what about closing the popupwindow? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who aremore experienced with frameworks. But at the moment these questionsare obstacles on my way to master Cairngorm (which I will hopefully doone day). I apologize for my verbose post and my bad English, but Ihope that someone can shed some light on these issues.Stefan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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/ -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
[flexcoders] Cairngorm: Managing Popup Windows
I've done some research on this list but haven't found any valid information on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem to use the TitleWindow component at all. Let's say I have a simple DataGrid populated with some user data. If I click on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttons for deleting or saving (updating) the user account. I have done stuff like this several times in Flash/AS2 but I've never used a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simple any more. (But I guess that's because I'm not yet too familiar with Cairngorm.) I know how to establish databinding between the data provider and {model.users} and all this basic Cairngorm stuff. But what happens when a row is clicked? I'm not even sure if I'm supposed to treat this event as a single event (selectUser or openPopup?) or as a chain of two events (selectUser - openPopup). Since my user information is organized as an array of value objects it's easy to assign the selected user VO to model.selectedUser: model.selectedUser = UserVO(userList.selectedItem); But am I allowed to directly access the ModelLocator from my view component? Or am I supposed to route this simple action through the Cairngorm command chain (Cairngorm Event - Front Controller - Command Class - ModelLocator)? Next question, what about the popup itself? Can I simply use PopUpManager.createPopUp( this, UserFormView , true)? Or am I supposed to treat this as a Cairngorm Event, too? I feel in safe Cairngorm terrain again with the updateUser and deleteUser actions on the buttons. But what about closing the popup window? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who are more experienced with frameworks. But at the moment these questions are obstacles on my way to master Cairngorm (which I will hopefully do one day). I apologize for my verbose post and my bad English, but I hope that someone can shed some light on these issues. Stefan -- 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] Cairngorm: Managing Popup Windows
Popups were really valuble in Flex 1.5. Most didn't know about the depth scoping capabilites in Flash Player, nor needed to care. Popups worked great for putting stuff above everything and making it modal. Nowadays, with states and the DisplayList, the only valid reason I can see is modality. Thus, I'd avoid 'em like the plague unless you can answer yes to the following question: Does the form need to be modal?. - Original Message - From: Stefan Schmalhaus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 5:37 AM Subject: [flexcoders] Cairngorm: Managing Popup Windows I've done some research on this list but haven't found any valid information on what's considered best pratice in dealing with popup windows. The few Cairngorm sample apps that are around don't seem to use the TitleWindow component at all. Let's say I have a simple DataGrid populated with some user data. If I click on a row in the DataGrid a popup window opens with a form for editing the user information. The popup window also has two buttons for deleting or saving (updating) the user account. I have done stuff like this several times in Flash/AS2 but I've never used a framework approach so far. Now, if I look at this rather simple task from a Cairngorm perspective it doesn't seem to be that simple any more. (But I guess that's because I'm not yet too familiar with Cairngorm.) I know how to establish databinding between the data provider and {model.users} and all this basic Cairngorm stuff. But what happens when a row is clicked? I'm not even sure if I'm supposed to treat this event as a single event (selectUser or openPopup?) or as a chain of two events (selectUser - openPopup). Since my user information is organized as an array of value objects it's easy to assign the selected user VO to model.selectedUser: model.selectedUser = UserVO(userList.selectedItem); But am I allowed to directly access the ModelLocator from my view component? Or am I supposed to route this simple action through the Cairngorm command chain (Cairngorm Event - Front Controller - Command Class - ModelLocator)? Next question, what about the popup itself? Can I simply use PopUpManager.createPopUp( this, UserFormView , true)? Or am I supposed to treat this as a Cairngorm Event, too? I feel in safe Cairngorm terrain again with the updateUser and deleteUser actions on the buttons. But what about closing the popup window? Is this even worth a Cairngorm event? I guess these questions sound rather stupid to those of you who are more experienced with frameworks. But at the moment these questions are obstacles on my way to master Cairngorm (which I will hopefully do one day). I apologize for my verbose post and my bad English, but I hope that someone can shed some light on these issues. Stefan -- 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/