Hey everyone,

I've been struggling with the autoCommit option of the DataService for
some time now. The rational part of me wants to set it to false, so
that each commit will product an async token, allowing me to
effectively handle faults and any logic needed after the data's been
sent to the database. The problem is all these valueCommits and such
that I have scattered throughout the application. I haven't found a
good way of making updates to every text input in my app be
immediately recognized, and using the Cairngorm ServiceLocator to
track down the service to commit seems a bit unnecessary (as does
making it a command and dispatching a Cairngorm event for each update.)

Now I'm at a pivotal part of my application where I need to retrieve
the id of the last inserted object (using Hibernate, btw.) This
obviously requires a commit, but I just hate needing to go back and forth.

Any suggestions on ways to simplify data synchronization while also
not needing to figure out how to commit() from any part of the
application?

Thanks,
Brennan






--
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/
 



Reply via email to