You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/06/29 21:01:57 UTC
[jira] Created: (PIVOT-556) Add a tag
Add a <bxml:value> tag
----------------------
Key: PIVOT-556
URL: https://issues.apache.org/jira/browse/PIVOT-556
Project: Pivot
Issue Type: New Feature
Components: core-beans
Reporter: Greg Brown
Priority: Minor
Fix For: 2.0
This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-556) Add a tag
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883668#action_12883668 ]
Greg Brown commented on PIVOT-556:
----------------------------------
Yes, the object would have to be defined before this tag was processed. Post-processing would require additional work and would be inconsistent with other means of accessing variables (via attributes or script).
> Add a <bxml:value> tag
> ----------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Priority: Minor
> Fix For: 2.0
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-556) Add a tag
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-556:
-----------------------------
Fix Version/s: 2.1
(was: 2.0)
> Add a <bxml:value> tag
> ----------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Priority: Minor
> Fix For: 2.1
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-556) Add a tag
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-556:
-----------------------------
Summary: Add a <bxml:reference> tag (was: Add a <bxml:value> tag)
Priority: Major (was: Minor)
> Add a <bxml:reference> tag
> --------------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Fix For: 2.0
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-556) Add a tag
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-556:
-----------------------------
Fix Version/s: 2.0
(was: 2.1)
Moving back to 2.0 since at least one use case has come up for this feature.
> Add a <bxml:value> tag
> ----------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Priority: Minor
> Fix For: 2.0
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-556) Add a tag
Posted by "Dirk Moebius (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901382#action_12901382 ]
Dirk Moebius commented on PIVOT-556:
------------------------------------
I also prefer <bxml:ref> to <bxml:value>. It _is_ a reference. "value" is reminiscent of "copy-by-value", suggesting that a copy would be made.
Spring names it <ref>, too.
> Add a <bxml:value> tag
> ----------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Priority: Minor
> Fix For: 2.1
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIVOT-556) Add a tag
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown resolved PIVOT-556.
------------------------------
Resolution: Fixed
Resolved. I ended up going with "<bxml:reference>" vs. "<bxml:label>". The implementation allows a caller to set properties on the source object, which is more consistent with the reference concept ("value" implies that the additional properties might only be applied to the "local" object, which isn't the case).
However, we try to avoid abbreviations in Pivot, so "reference" is preferable to "ref".
> Add a <bxml:reference> tag
> --------------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Fix For: 2.0
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-556) Add a tag
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901397#action_12901397 ]
Greg Brown commented on PIVOT-556:
----------------------------------
It is true that the result of dereferencing the variable is a reference, but:
a) Everything in BXML is a reference type (not to mention that Java doesn't even support true value types), so that distinction is not really relevant.
b) A Java reference is also a value - the value is a pointer.
So I think "value" is more appropriate, because the element will be replaced by the value referred to by the variable name. Under the hood, that value will be a reference, but again, that's not really relevant to the caller. The caller is simply interested in getting the value of the variable.
> Add a <bxml:value> tag
> ----------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Priority: Minor
> Fix For: 2.1
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-556) Add a tag
Posted by "Appddevvv (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883661#action_12883661 ]
Appddevvv commented on PIVOT-556:
---------------------------------
You may want to call this <bxml:ref id="the id you are ref'ing"/> since this is a reference to an existing object.
Would this still have the limitation of requiring an id to be defined before using it? You could inject a proxy as a placeholder until all objects have been created, then fix the references later.
> Add a <bxml:value> tag
> ----------------------
>
> Key: PIVOT-556
> URL: https://issues.apache.org/jira/browse/PIVOT-556
> Project: Pivot
> Issue Type: New Feature
> Components: core-beans
> Reporter: Greg Brown
> Priority: Minor
> Fix For: 2.0
>
>
> This tag will support an "id" attribute specifying the name of a serializer-scoped variable. It will allow callers to dereference variables as elements (current, variable dereferencing is limited to attributes and script).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.