[
https://issues.apache.org/jira/browse/BETWIXT-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805077#action_12805077
]
Gabriele Mariotti commented on BETWIXT-68:
------------------------------------------
You can solve with this code:
beanWriter.getBindingConfiguration().setValueSuppressionStrategy(ValueSuppressionStrategy.ALLOW_ALL_VALUES);
The default value is ValueSuppressionStrategy.SUPPRESS_EMPTY
> Difference between null and empty string
> ----------------------------------------
>
> Key: BETWIXT-68
> URL: https://issues.apache.org/jira/browse/BETWIXT-68
> Project: Commons Betwixt
> Issue Type: Improvement
> Reporter: Soocheon Kim
>
> Now, betwixt(v0.8) does not show attribute, if the primitive value is null or
> empty string.
> But, There is a difference between null and empty string("").
> Attributes that have null value should not be shown in it's tag, but
> attributes that have empty string should be shown.
> Like this.
> MyTag.value == null
> <myTag>
> MyTag.value == ""
> <myTag value="">
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.