You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Sandro Martini <sa...@gmail.com> on 2011/03/25 10:42:03 UTC
TableRowEditor demo (PIVOT-681) and empty values
Hi all,
yesterday I resolved the problem in TableRowEditor demo (
https://issues.apache.org/jira/browse/PIVOT-681 ), thanks to Dirk for the
initial patch... but in my fix I have added in its Validator a check for the
amount value to be not empty otherwise an Exception will be thrown (but at
the moment I can't attach here a sample stacktrace, sorry).
So my question: someone has already seen this ? Or this caused problems is
application of someone ?
My use case in this demo was to empty an amount value, and confirm it but in
this case a default value (0.00) is generated. But what if I'd want to leave
it empty (and save it as null, for example to send later to the backend and
save in DB a null value in the related column of the record) ?
Tell me what you think (I hope to be clear explaining this :-) ).
Bye,
Sandro
--
View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/TableRowEditor-demo-PIVOT-681-and-empty-values-tp2729684p2729684.html
Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.
Re: TableRowEditor demo (PIVOT-681) and empty values
Posted by Sandro Martini <sa...@gmail.com>.
Hi Greg,
thanks, probably I miss it :-) ... so my trouble on this has gone.
Bye,
Sandro
--
View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/TableRowEditor-demo-PIVOT-681-and-empty-values-tp2729684p2730291.html
Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.
Re: TableRowEditor demo (PIVOT-681) and empty values
Posted by Greg Brown <gk...@verizon.net>.
Yes, this came up a few weeks back and is the expected behavior.
On Mar 25, 2011, at 5:42 AM, Sandro Martini wrote:
> Hi all,
> yesterday I resolved the problem in TableRowEditor demo (
> https://issues.apache.org/jira/browse/PIVOT-681 ), thanks to Dirk for the
> initial patch... but in my fix I have added in its Validator a check for the
> amount value to be not empty otherwise an Exception will be thrown (but at
> the moment I can't attach here a sample stacktrace, sorry).
>
> So my question: someone has already seen this ? Or this caused problems is
> application of someone ?
> My use case in this demo was to empty an amount value, and confirm it but in
> this case a default value (0.00) is generated. But what if I'd want to leave
> it empty (and save it as null, for example to send later to the backend and
> save in DB a null value in the related column of the record) ?
>
> Tell me what you think (I hope to be clear explaining this :-) ).
>
> Bye,
> Sandro
>
>
>
> --
> View this message in context: http://apache-pivot-developers.417237.n3.nabble.com/TableRowEditor-demo-PIVOT-681-and-empty-values-tp2729684p2729684.html
> Sent from the Apache Pivot - Developers mailing list archive at Nabble.com.