If you need to do it in Flex 1.5 you relally need
to put significant amount of code in your
base objects. We implemented in 1.5 just what Dave is suggesting with
"PowerBuilder" approach ( which was considered a standard of Enterprise RAD
- Rapid Application Development)- high-level objects that keep track of the
state of each database record, with an ability to send the changes to the
server. Unlike Flex 2, we implemented automatic generation of "updates"
based on original "selects" and minimal metadata so you do not need to write
your own persistence layer. Just write SQL to select the data - and
Java/Flex UI is generated for you automatically - including
Java DAO, updatable datagrids, forms and master/details. And we also placed nice
toolkit on the top of it so users can select/apply their own layouts (persisted
in database) in run-time if needed. Of course, code generators can be tuned for
iBatis or Hibernate or any other - as long as there is justification for
it.
Other things that I have not seen in Flex 2 but are
the must for real-life applications are "transaction" services, when you can
submit changes to multiple objects at once. For that we had to write specialized
gateway so we would preserve AMF/HTTP infrastructure for development (called RPC
in Flex 2) while adding "transactional" methodology to the calls.
So, it is very possible - the only bad news is that
any framework as such has learning curve, especially if the team is skilled
with Web technologies, and do not have PowerBuilder one. When we bring this
to our customers it takes anywhere between 2 to 4 weeks of mentoring to get the
team to RAD mode. While it is definetly more economical then writing all
modification code for any application that is more then just few screens, and
proved to produce much fewer "errors", decision to use it has to be made
very early in the development process (or pilot if possible).
Hope this helps,
Anatole Tartakovsky
----- Original Message -----
|
- Re: [flexcoders] Re: Updating the data back to databas... Anatole Tartakovsky
- [flexcoders] Re: Updating the data back to databa... anatolet
- [flexcoders] Re: Updating the data back to databa... Anatole Tartakovsky