Hi Dorel,
On Jul 26, 5:53 pm, dorel <
dorel.va...@gmail.com> wrote:
> Hey Andrew. First of all thanks for the nice model binding solution,
> I've been waiting too long for a similar solution to JGoodies binding
> for GWT. I'm using pecting since 0.5, everything works nice,
Yep, I seriously missed a ValueModel style framework when I started
using GWT. Once you've used one it's hard to go back.
> still I
> have encountered a minor issue lately, when using formatted fields. I
> am using this code to format a money field:
>
> public FormattedFieldModel<Double> fldPrice =
> formattedFieldOfType(Double.class).using(new
> MoneyAmountFormat()).boundTo(bindings, "price");
>
> However, after editing it with the value '2.2' and leaving (blurring)
> the field the value should change to '$2.2' due to the formatter.
> However the field remains '2.2'
Yep this is a bug, can you raise an issue for it?
The problem is the binding doesn't do a round trip so when the process
of text->parse->value->format->text produces a different text value
the widget doesn't get udpated. Hopefully I should be able to just re-
format the value in the binding and push it back to the widget.
Version 0.8 still has a little bit of work to do on nested properties
so I should be able to get it in for the next release.
Cheers
Andrew