[ https://issues.apache.org/jira/browse/PIVOT-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876870#action_12876870 ]
Greg Brown commented on PIVOT-520: ---------------------------------- Re-posting from dev list. After thinking this through a bit, I am starting to think that Dirk's idea to use an annotation here might make sense. I believe he suggested something along the lines of: @IDProperty(name="foo") If this attribute is specified on a class, WTKXSerializer would propagate the ID value to the given property. This would avoid the name duplication and would be a fairly trivial change. I'm still not convinced that it is absolutely necessary, but it is nice to have and obviously has some use cases. Also, I believe Spring offers a similar feature via the BeanNameAware interface, so it would be nice to have a comparable feature. > add a name property to Component > -------------------------------- > > Key: PIVOT-520 > URL: https://issues.apache.org/jira/browse/PIVOT-520 > Project: Pivot > Issue Type: Improvement > Components: wtk > Reporter: Appddevvv > Priority: Minor > Fix For: 1.6 > > > Add a name property to Component > a) A getter/setter > b) A method to Container for Component getNamedComponent(String componentName) > The name should default to an the wtkx:id if one is specified for that > component or if the name is not specified, null. If a name is specified and > no wtkx:id is specified , it should become the wtkx:id of that component. The > name must be a valid java identifier, otherwise an serialization exception > should be thrown. The name used in the component should be left and right > whitespace trimmed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.