[jira] Created: (TAPESTRY-2528) It should not be possible for component classes to be directly instantiated

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (TAPESTRY-2528) It should not be possible for component classes to be directly instantiated

by Tapestry - Dev mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It should not be possible for component classes to be directly instantiated
----------------------------------------------------------------------------

                 Key: TAPESTRY-2528
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2528
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0.13
            Reporter: Howard M. Lewis Ship
            Assignee: Howard M. Lewis Ship


A common beginner idiom is:

Object onAction() { return new OtherPage(); }

When they should inject OtherPage.

Currently, this code works and produces odd effects.

An explicit error message is needed.

--
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


[jira] Closed: (TAPESTRY-2528) It should not be possible for component classes to be directly instantiated

by Tapestry - Dev mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/TAPESTRY-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-2528.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.14

> It should not be possible for component classes to be directly instantiated
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2528
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2528
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.13
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.14
>
>
> A common beginner idiom is:
> Object onAction() { return new OtherPage(); }
> When they should inject OtherPage.
> Currently, this code works and produces odd effects.
> An explicit error message is needed.

--
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price