Re: [flexcoders] [ADV] New version of Flexible Rails book available (Alpha version 5)
Hi Steve, Thanks for your feedback--I've just redesigned the flexiblerails website, including a link to an updated Table of Contents. Regarding your questions: - For authentication, I just use the old school login_generator and update its generated output to be less deprecated. I don't go into acts_as_authenticated vs. login generator vs. login engine vs. all the others in any depth. (I may add acts_as_authenticated coverage later, but I'd say that's less than a 10% chance.) - The REST content isn't in the book yet. This is what I'm adding to the current iteration (and the RESTful approach will be used going forward). So, I'm not sure whether the book would be worth it for you yet. It seems like you already know much (quite possibly all) of what it currently covers. There may be some bits in it that are worth it for you though, such as integrating Rails and Flex validation, etc. However, if you're at an advanced level with both Flex and Rails this book is probably not worth it today. Maybe once the REST and Cairngorm stuff is added that will be different; however, my target audience is mostly at a beginner to intermediate level. Thanks, Peter On 11/16/06, Steve Hindle [EMAIL PROTECTED] wrote: Hi Peter, Could I suggest making a full table of contents available in an easy to spot place on the website? Also, does the book cover Flex and Rails login/auth systems (AAA, etc), sessions, etc? It appears 'iteration03' might cover some of this? I'm currently building a rails app with a flex front end, and would probably buy the book if it covered these topics. BTW, I'm basically using a RESTFul approach as you mention - I use the trestle scaffold generator and :render xml for flex-Railscomms. Steve On 11/9/06, Peter Armstrong [EMAIL PROTECTED] wrote: Hi all, I've uploaded the fifth Alpha version of Flexible Rails. See http://www.flexiblerails.com for details. This is an in-progress, PDF-only book about using Rails 1.1 and Adobe Flex 2 to build Rich Internet Applications (RIAs). The two main highlights of this version are: 1. I have added a new iteration (Iteration 19: Validation), which explains how to integrate Rails Validation with Flex Validation. 2. I have reformatted almost all the code samples in the book, based on feedback from readers of earlier versions. Since posting the initial announcement to this list two months ago, the book has grown from 214 pages (169 pages + Preface and Appendices) to 309 pages (264 pages + Preface and Appendices). My current estimate is that the book is about half done. Readers of earlier versions can, of course, download their free updates via the usual method. Thanks, Peter Armstrong -- Peter Armstrong http://www.flexiblerails.com -- Flex 2 and Rails 1.1 together! (PDF-only book)
Re: [flexcoders] 'big' sample projects
Hi Joost,Shameless plug:I'm writing a PDF-only book about using Flex 2 with Ruby on Rails. I doubt that the Flex code should be considered best practices yet, but it's all Open Source (MIT license) so you can use it in commercial projects regardless of whether you have bought the book. If you're interested, go to http://www.flexiblerails.com/ and download the latest iteration (currently iteration 18) from the code samples page ( http://www.flexiblerails.com/pages/codesamples).It's not that large at the moment, but it's growing with every release of the book. When the book is done it should fit the description of a big sample project quite well. (The code example in the book is cumulative, so the app is growing into a full-featured app with every iteration...) Best regards,Peter ArmstrongOn 10/20/06, Nick Collins [EMAIL PROTECTED] wrote: Last I saw the JBoss code was still only good for Beta 3 of Flex, and didn't work with the release version. Has this changed?On 10/20/06, P Smith [EMAIL PROTECTED] wrote: Joost, The open source JBoss Mail Server (aka Collaboration Server) might fit the bill: http://labs.jboss.com/portal/jbossmail/ And the Flex 2 UI was coded by Adobe's own James Ward using the Cairngorm framework for Flex 2! So, it is big, it is free, and it implements best practices. fyi ... there are forums for the project at: http://www.jboss.com/index.html?module=bbop=viewforumf=186 Also the project's lead committer, Andrew C. Oliver, presented earlier this month at the Ajax World Conference on a Case Study: The JBoss Flex-based Mail Client. If you do go through the code on this project, please do post back with you impressions. Anybody else know of other open source projects using Flex UIs? Peter- Original Message From: Joost Saanen [EMAIL PROTECTED] riek.nlTo: [EMAIL PROTECTED] ups.comSent: Friday, October 20, 2006 5:16:17 AMSubject: [flexcoders] 'big' sample projects Are there any complete sample sites where the source is free? I would like to know how I can setup a complete site, with logindialogs, errorhandling, different components, etc., I did some tutorials of the with flex delivered getting started guide but I mis some big sample projects for learning how big projects can be made. Anyone can help me? regard, Joost -- Peter Armstronghttp://www.flexiblerails.com -- Flex 2 and Rails 1.1 together! (PDF-only book) __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: datagrid, custom editRenderer, and labelFunction
Thank you laidezmon!I was having this exact problem (with a ComboBox in a DataGrid not updating after an HTTP service returned), and handling dataChange *finally* fixed it.My now working code is: mx:DataGridColumn headerText=Project dataField=project_id width=150 editable=false sortable=false mx:itemRenderer mx:Componentmx:ComboBox width=200 labelField=name dataProvider={outerDocument.projectsAndNone} selectedItem={outerDocument.getProject(data.project_id)} dataChange=updateSelectedItem() change=outerDocument.updateTaskProject(XML(data), XML(selectedItem)) mx:Script ![CDATA[import com.pomodo.util.DebugUtils; private function updateSelectedItem():void {DebugUtils.debug(updateSelectedItem, data = "" + data); if (data != null) { selectedItem = outerDocument.getProject(data.project_id);} } ]] /mx:Script /mx:ComboBox /mx:Component /mx:itemRenderer /mx:DataGridColumnThanks again!Peter Armstrong-- Peter Armstronghttp://www.flexiblerails.com -- Flex 2 and Rails 1.1 together! (PDF-only book) __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] [ANN][ADV] Flexible Rails Alpha Book now available
Announcing the Alpha Book version of Flexible Rails. http://www.flexiblerails.com/ This is an in-progress, PDF-only book about using Ruby on Rails 1.1 and Flex 2 to build Rich Internet Applications (RIAs). It is not an exhaustive Ruby on Rails tutorial (Agile Web Development with Rails does that already) or a Flex 2 reference manual (Adobe ships over 3000 pages of PDF reference documentation with Flex 2). Instead, it is (in the process of becoming) an extensive tutorial, developed iteratively, on building a fairly interesting RIA using Flex 2 and Rails 1.1 together. It is currently 214 pages, or 169 pages if you don't count the Preface and the six Appendices full of installation instructions. I expect it is between 20% and 40% of the final length of the book. There are many revisions to come in the evenings and weekends over the months ahead. That said, there is enough useful material and code in it that I can sell it with the belief that readers will get their money's worth today. Obviously, purchasers of any version (Alpha, Beta, Final) of this first edition of this book are entitled to a free PDF copy of every subsequent version of this first edition of this book. For more information visit http://www.flexiblerails.com. Thanks, Peter Armstrong -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] dynamic menu item label updating issue
Thanks; that's just the advice I needed! -PeterOn 11/28/05, JesterXL [EMAIL PROTECTED] wrote: Yah, seen the same thing in Flash. Basically, unless you use the TreeDataProvider API, she doesn't update until you force refresh by rolling over. The problem with the TreeDataProvider API is that while a single node tree is cake, a nested one is... hard. - Original Message - From: Peter Armstrong [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, November 28, 2005 8:09 PM Subject: [flexcoders] dynamic menu item label updating issue Hi all, Has anyone here seen an issue where the label of a menu item that is dynamically updated is not refreshed until the user mouses over the menu item again? (This is in Flex 1.5.) Details: What I am trying to do is to build a dataProvider which has a menu item like this: mx:XML menuitem label=View menuitem label={getLabel(someVar)}/ /menuitem /mx:XML When the someVar changes, the binding is triggered and the getLabel function should get called, updating the label. This almost works, but after someVar changes (and the binding is triggered) if you click on the menu again in the menubar you see the old value as the label of the menuitem *until* you mouse over the menu item, at which point you see the updated value as a result of the getLabel call. My assumption is that I need to get a handle to some component and invalidate it myself or something--but I'm wondering if anyone knows whether there is a clean way to do this (or at least what the cleanest workaround is)... Thanks, Peter Armstrong -- 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 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 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] dynamic menu item label updating issue
Hi all, Has anyone here seen an issue where the label of a menu item that is dynamically updated is not refreshed until the user mouses over the menu item again? (This is in Flex 1.5.) Details: What I am trying to do is to build a dataProvider which has a menu item like this: mx:XML menuitem label=View menuitem label={getLabel(someVar)}/ /menuitem /mx:XML When the someVar changes, the binding is triggered and the getLabel function should get called, updating the label. This almost works, but after someVar changes (and the binding is triggered) if you click on the menu again in the menubar you see the old value as the label of the menuitem *until* you mouse over the menu item, at which point you see the updated value as a result of the getLabel call. My assumption is that I need to get a handle to some component and invalidate it myself or something--but I'm wondering if anyone knows whether there is a clean way to do this (or at least what the cleanest workaround is)... Thanks, Peter Armstrong Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/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] TextArea - getting the caret x,y location?
Hi, I have an editable TextArea that will probably have to contain HTML text and may have a vertical scrollbar. Does anyone know how to get the x,y location of the caret inside of it (while typing)? I can handle the change event, but I don't know of any properties to use or methods to call to get the caret x,y coordinates. If there were no scroll bars, no HTML text and a monospaced font I could possibly use Selection.getCaretIndex() and do some really cheesy math -- but this isn't the case. Thanks! Peter Armstrong Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/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] Problem with trying to set the focusedCell in a Tree
Hi, I am trying to set the focusedCell in a Tree and having no luck. (Flex 1.5, Flash 8 beta). In the following test app, while the Select bar button works correctly (selecting the bar node), the Edit bar button edits the foo node. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Button label=Edit bar click=EmployeeTrace.focusedCell = EmployeeTrace.getTreeNodeAt(1)/ mx:Button label=Select bar click=EmployeeTrace.selectedNode = EmployeeTrace.getTreeNodeAt(1)/ mx:XML id=myxml node label=foo/ node label=bar/ node label=baz/ /mx:XML mx:Panel id=treePanel title=Tree Trace Panel marginTop=10 mx:VBox mx:Tree id=EmployeeTrace width=285 height=196 editable=true mx:dataProvider {myxml} /mx:dataProvider /mx:Tree /mx:VBox /mx:Panel /mx:Application Am I doing anything wrong? Or, if this is a bug (it sure seems like a bug), does anyone know of any workarounds? Thanks, Peter Armstrong Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/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] Tree node labels: how to get the new value the user entered when handling the cellEdit event?
Hi, I have created a Tree and made it editable. I handle the cellEdit event with a cellEdit=handleCellEdit(event). In my handler, I use Log4F to inspect the event and see a handy oldValue property. However, I cannot for the life of me figure out where the new value is! There certainly does not seem to be a newValue property on the cellEdit event, which is extremely unfortunate... Not only does it not seem to be in the event, it also doesn't seem to be found anywhere on the selectedNode of the Tree. Does anyone know? Presumably, it is reasonable to want to be able to find out the new value when the value changes!? Thanks, Peter Armstrong Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/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/
Re: [flexcoders] Tree node labels: how to get the new value the user entered when handling the cellEdit event?
That worked. Thanks! -PeterOn 9/14/05, Mika Kiljunen [EMAIL PROTECTED] wrote: Try YourTree.cellEditor.text ? -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter Armstrong Sent: 14. syyskuuta 2005 9:52 To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree node labels: how to get the new value the user entered when handling the cellEdit event? Hi, I have created a Tree and made it editable. I handle the cellEdit event with a cellEdit=handleCellEdit(event). In my handler, I use Log4F to inspect the event and see a handy oldValue property. However, I cannot for the life of me figure out where the new value is! There certainly does not seem to be a newValue property on the cellEdit event, which is extremely unfortunate... Not only does it not seem to be in the event, it also doesn't seem to be found anywhere on the selectedNode of the Tree. Does anyone know? Presumably, it is reasonable to want to be able to find out the new value when the value changes!? Thanks, Peter Armstrong -- 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 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 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.