commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriele Mariotti (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BETWIXT-68) Difference between null and empty string
Date Tue, 26 Jan 2010 16:26:37 GMT

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


Mime
View raw message