[
https://issues.apache.org/jira/browse/VELOCITY-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12687997#action_12687997
]
Byron Foster commented on VELOCITY-496:
---------------------------------------
I wonder if VELOCITY-406 is good enough for this since in 1.7 you can now do:
$a["b.c"]
> Allow periods in references secondary keys.
> -------------------------------------------
>
> Key: VELOCITY-496
> URL: https://issues.apache.org/jira/browse/VELOCITY-496
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Affects Versions: 1.6
> Reporter: Claude Brisson
> Priority: Minor
> Attachments: identifiers-merging.patch
>
>
> This is a quite prospective proposal that emerged from a discussion in a
> VelocityTools JIRA issue (https://issues.apache.org/jira/browse/VELTOOLS-69).
> Its goal is to have the short syntax $map.foo.bar chek the existence of
> $map.get("foo.bar") when $map.foo is null.
> Backward compatibility is 99%, since it only breaks templates that rely on
> $map.foo.bar being an invalid reference while having foo.bar as key in map.
> The implementation doesn't look obvious, and we must ensure that there are no
> other side effects, yet this behaviour can be quite usefull when dealing with
> HTML field names that contain a period.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]