pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Appddevvv (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIVOT-520) add a name property to Component
Date Wed, 09 Jun 2010 03:08:20 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876933#action_12876933

Appddevvv commented on PIVOT-520:

I think with regard to your next before last post, no I don't expect magic in that the variable
name is injected back into the actual component name. I think your last comment is right although
you have the option of choosing the same id annotation that already exists.

Spring actually, I think a little confusing, defines the bean id but also says that a bean
can have names and aliases. All of those are logically defined in the container and unrelated
of course to the java code. My comment is that the component name would be used by tooling
to generate code (someday in the future). I think, but don't recall, that the named components
in wpf get translated into variable names in the code-behind, which today in pivot, is not
relevant, but is something to keep in mind.

I would like to think that the name can come from the wtkx:id (if no name is set) or the name
property directly. Injection into the actual instance object could just be allowed if you
specify the id or, as a backup the name. Its seems like a bit of duplication but I think its
explainable, there is a tiny bit of logic in it and its backward compatible.

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

View raw message