File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes UI Service Binding Tools Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "UI Service Binding Tools" Watch "UI Service Binding Tools" New topic
Author

UI Service Binding Tools

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

So back in the day when Swing was Sun's step child and there were applications like Forte 4 Java and before we new any better we all dealt with JDBC to get data from a database. So tools like Forte4Java would allow you to create a datasource and pick and choose tables and columns and all this handy dandy code was generated for CRUD operations on said table(s). This was all fine and good because UI's didn't have to be flashy. They just needed to be functional. And all that was required was a view into a database.

Now that we've wised up and started wrapping database operations inside of Service and DAO interfaces and now that our UI's are expected to be magically beautiful things have gotten better for the end user and coding to interfaces, well, that's just the cat's pajamas.

However, our ease of binding data to the UI has taken a turn for the worse. Sure, we have some binding frameworks in the works that allow us to bind UI components to Java objects. But that is only one piece of the puzzle. What I'd like to find is a tool/API/something that allows us to take that one step further and bind to a service/dao method. So where as before I chose what columns in a table I want displayed and bound to specific components I can now choose a service/dao, choose the method, and then choose which Java object properties I want bound. What methods to use for save, update, delete, etc.

Any such bird exist?


GenRocket - Experts at Building Test Data
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Off the top of my head two frameworks that address this are JGoodies Binding, SwingLabs DataBinding.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Nathan Pruett:
Off the top of my head two frameworks that address this are JGoodies Binding, SwingLabs DataBinding.


Yea, but these are pure pojo/javabean to form binding. Not service binding. As I said, this is only one piece of what I'm looking for. Thanks.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Sorry - I focused on the binding part of the question and skimmed over the service part.

What definition of "service" are you using? - Web Service, Spring Service, OSGi service, Generic "Service Oriented Architecture" Service, etc.? All of the above?

I think you'd need to take an existing Swing POJO/JavaBean binding framework and write an Adaptation layer to allow it to use the "service" that you're using.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: UI Service Binding Tools
 
Similar Threads
good desktop application architecture with JSR-295 beansbinding?
Binding a JTable column to a bound combobox
regarding JNDI
Two UIs?
SOFIA 2.2 adds Linux and Portal support