You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Pedro Ayala (Created) (JIRA)" <ji...@apache.org> on 2011/10/21 12:50:32 UTC

[jira] [Created] (TAP5-1715) @Component annotation doesn't work properly with "parameters"

@Component annotation doesn't work properly with "parameters"
-------------------------------------------------------------

                 Key: TAP5-1715
                 URL: https://issues.apache.org/jira/browse/TAP5-1715
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.3
            Reporter: Pedro Ayala


While defining a new @Component in a java class, we can declare the parameters of it. If some of the parameters are in a parent class the compiler reports an error because it can't find it.
Moving this parameters from the @Component annotation to the tml file solve the issue.


public class PinkynailPreview extends ContentItemBase {
...
@Component(parameters = {"item=source", "results=results"}, publishParameters = "ajaxLoad")
private PinkynailPreviewBubble pinkynailBubble;
...
}

public class ContentItemBase extends AbstractContentItemBase
{
....
@Parameter(name = "source", required = true)
private ResultsItem item;
...
}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (TAP5-1715) @Component annotation doesn't work properly with "parameters"

Posted by "Pedro Ayala (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pedro Ayala closed TAP5-1715.
-----------------------------

    Resolution: Invalid
    
> @Component annotation doesn't work properly with "parameters"
> -------------------------------------------------------------
>
>                 Key: TAP5-1715
>                 URL: https://issues.apache.org/jira/browse/TAP5-1715
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Pedro Ayala
>              Labels: annotations, component, parameters
>
> While defining a new @Component in a java class, we can declare the parameters of it. If some of the parameters are in a parent class the compiler reports an error because it can't find it.
> Moving this parameters from the @Component annotation to the tml file solve the issue.
> public class PinkynailPreview extends ContentItemBase {
> ...
> @Component(parameters = {"item=source", "results=results"}, publishParameters = "ajaxLoad")
> private PinkynailPreviewBubble pinkynailBubble;
> ...
> }
> public class ContentItemBase extends AbstractContentItemBase
> {
> ....
> @Parameter(name = "source", required = true)
> private ResultsItem item;
> ...
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (TAP5-1715) @Component annotation doesn't work properly with "parameters"

Posted by "Pedro Ayala (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pedro Ayala closed TAP5-1715.
-----------------------------

    Resolution: Invalid
    
> @Component annotation doesn't work properly with "parameters"
> -------------------------------------------------------------
>
>                 Key: TAP5-1715
>                 URL: https://issues.apache.org/jira/browse/TAP5-1715
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Pedro Ayala
>              Labels: annotations, component, parameters
>
> While defining a new @Component in a java class, we can declare the parameters of it. If some of the parameters are in a parent class the compiler reports an error because it can't find it.
> Moving this parameters from the @Component annotation to the tml file solve the issue.
> public class PinkynailPreview extends ContentItemBase {
> ...
> @Component(parameters = {"item=source", "results=results"}, publishParameters = "ajaxLoad")
> private PinkynailPreviewBubble pinkynailBubble;
> ...
> }
> public class ContentItemBase extends AbstractContentItemBase
> {
> ....
> @Parameter(name = "source", required = true)
> private ResultsItem item;
> ...
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira