You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gabriele Mariotti (JIRA)" <ji...@apache.org> on 2010/01/26 17:26:37 UTC

[jira] Commented: (BETWIXT-68) Difference between null and empty string

    [ 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.