You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2010/02/25 20:46:28 UTC
[jira] Commented: (SLING-1412) Add support for a @IgnoreBlanks hint
[ https://issues.apache.org/jira/browse/SLING-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838506#action_12838506 ]
Justin Edelson commented on SLING-1412:
---------------------------------------
done in r916419
Need to update the post documentation
> Add support for a @IgnoreBlanks hint
> ------------------------------------
>
> Key: SLING-1412
> URL: https://issues.apache.org/jira/browse/SLING-1412
> Project: Sling
> Issue Type: Improvement
> Components: Servlets
> Reporter: Justin Edelson
> Assignee: Justin Edelson
> Fix For: Servlets Post 2.0.6
>
>
> Given these post parameters:
> ./stringProperty@TypeHint=String[]
> ./stringProperty@IgnoreBlanks=true
> ./stringProperty=foo
> ./stringProperty=bar
> ./stringProperty=
> stringProperty will be set to an array of two values
> ALSO...
> ./stringProperty@IgnoreBlanks=true
> ./stringProperty=
> makes the post sevlet behave as if neither param had been passed. Same thing is true for a mutli-value property if all params are blank:
> ./stringProperty@TypeHint=String[]
> ./stringProperty@IgnoreBlanks=true
> ./stringProperty=
> ./stringProperty=
> ./stringProperty=
> As I mentioned on the dev list, this is really a UI issue, but it seems like something Sling can easily handle.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.