0

Plain Java Databinding

asked 2012-10-30 14:04:59 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2012-10-30 14:07:59 +0800

For all who need databinding in pure java i have made a sample for downloading.

4 Files:
SampleDatabindingDialog.java (the data binded dialog with listbox and detail fields)
Person.java (The model class)
PersonDAOImpl.java (The CRUD methods for person, simulates the database )
MyBeanUtils.java ( for storing/resetting the bean values by onCancel; needs org.apache.commons.beanutils.BeanUtils )

Put all 4 files in a package, correct the imports and start with

SampleDatabindingDialog.show(parentComponent);

where parentComponent should be the parent for the dialog window.
Many thanks to Todd ('twiegand') for helping me with the binder.

best
Stephan

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2012-10-31 05:51:57 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Many thanks stephan. Can we use this for any type master CRUD not only for person ?

link publish delete flag offensive edit

answered 2012-10-31 08:29:16 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2012-10-31 08:30:31 +0800

Sure.
What i have seen by adapting the skeleton to productive mode:

If you have working with more than one model type it's easier to create a Databinder for each type:

binderCustomer = new Databinder();
binderPerson = new Databinder();

best
Stephan

PS: Have you get my email?

link publish delete flag offensive edit

answered 2012-10-31 10:23:04 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Thanks . Email ? to which email id ?

My Personnel email id is [email protected]

link publish delete flag offensive edit

answered 2012-10-31 12:10:19 +0800

Steva77 gravatar image Steva77 flag of Italy
1014 3
http://www.research.softe...

So this is a kind of "template/pattern" to natively support CRUD funcionality for generic items in plain java!?
Cool...

link publish delete flag offensive edit

answered 2012-10-31 14:00:08 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

@Steva I have some little CRUD dialogs where i will not have zul files. So this sample is a fast copy and paste skeleton ( where i used an extended version with db paging).

@Senthil yes this is exactly the email address to which i have send. I will send again.

best
Stephan

link publish delete flag offensive edit

answered 2012-12-05 11:38:41 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hi Stephen the above example have issue with the Zk6.0.3 jar If you will get time please update your example
thanks

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-10-30 14:04:59 +0800

Seen: 190 times

Last updated: Dec 05 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More