0

Decimalbox databinding to Wrapper Object

asked 2015-08-04 12:35:45 +0800

prollix gravatar image prollix
1

Hi all,

I have the following scenario:

public class BigDecimalWrapper{

      private BigDecimal value;

      //additional functionality...
      //.........................

}

If I try to bind a decimalbox to a VM property that works with the above BigDecimalWrapper, I get "coerce" exceptions caused by the data binding engine.

I know that @converter can do this thing but it has a drawback: the developer has to remember to add the converter. Is there an alternative solution to this (maybe a new component)?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2015-08-05 11:03:22 +0800

Darksu gravatar image Darksu
1991 1 4

Hello prollix,

Probably i would also create a new component as shown at the following url:

http://ben-bai.blogspot.gr/2013/06/zk-decimalbox-support-scientific.html

Best Regards,

Darksu

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
1 follower

RSS

Stats

Asked: 2015-08-04 12:35:45 +0800

Seen: 15 times

Last updated: Aug 05 '15

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