FYI, Brian Fitzgerald posted a Mach-II filter he wrote that is sorta of like event-bean but for transfer. The thread is here with a link to the zip download: http://groups.google.com/group/mach-ii-for-coldfusion/browse_thread/thread/6393f2889072fab3/284cf03a21554190
Kurt already mentioned we're looking at a generic way for people to plugin different bean utils into event-bean. The BeanUtils.cfc is the guts behind event-bean. So Matt you could use that CFC to populate your beans by calling setBeanAutoFields() with the bean and the event-args collection. We are also upgrading event-bean in Mach-II to help with populate of nested beans (which it current does not support). This is in conjunction with the nest bean support with data binding that will be available the Mach-II form tag lib which is already in the BER / repo. I'm getting out topic here, but just wanted to mention that we are looking on we can improve integration with other frameworks and make things more simple. Best, Peter Matt Williams said the following on 1/23/2009 3:25 PM: > I'm with Kurt. I don't use the event-bean command. I simply pass the > values in as a struct via event.getArgs(). Then Transfer gets me the > bean from the database (empty if key is 0, populated if it is in the > db). I then use a generic populateBean() function to loop through the > data struct and dynamically call the setters of the transfer bean. One > of the advantages of using Transfer is not having to write basic > getter/setter beans. Using event-bean means you are still writing a > bean that Mach-II matches the setters with. > > If you really want to use the event-bean you could do something > similar but you'd have to use the event-bean's metadata to know what > properties to loop through. > > -Matt > > On Jan 23, 3:23 pm, Kurt Wiersma <kwier...@gmail.com> wrote: > >> Currently I don't use event-bean when using Transfer. In the future we >> have plans to enhance event-bean to work better with Transfer. >> >> --Kurt >> >> On Fri, Jan 23, 2009 at 12:48 PM, Jorge Loyo <jorgel...@gmail.com> wrote: >> >> >>> I am new to transfer and I am having trouble with this. I am currently >>> using Mach-II and the "<event-bean>" in an event- >>> handler. >>> >>> If I submit a request to save a new user how can i use my event >>> arguments to populate a transfer object that i can use to save the new >>> record. >>> >>> I posted the same in the transfer group, but i thought i would also >>> ask here, anyone using both frameworks that can help me out? >>> >>> thank you >>> > > ------------------------------------------------------------------------ > > > Internal Virus Database is out of date. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.9/1900 - Release Date: 1/18/2009 > 12:11 PM > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com To unsubscribe from this group, send email to mach-ii-for-coldfusion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---