You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Willis Blackburn (JIRA)" <ji...@apache.org> on 2011/01/22 13:49:44 UTC

[jira] Created: (WICKET-3364) StatelessLink should not force the model type to Void

StatelessLink should not force the model type to Void
-----------------------------------------------------

                 Key: WICKET-3364
                 URL: https://issues.apache.org/jira/browse/WICKET-3364
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.5-M3
            Reporter: Willis Blackburn
            Priority: Minor


StatelessLink is just a shortcut for a Link with the stateless hint set to true.  I don't think that it should force the model type to Void.  Sure, the model that existed at the time the link was created may be gone, but that doesn't mean that there is not another model available.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3364) StatelessLink should not force the model type to Void

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985286#action_12985286 ] 

Martin Grigorov commented on WICKET-3364:
-----------------------------------------

StatelessLink provides only :

public StatelessLink(String id)
{
	super(id);
}

A model can be available only if you call link.setModel(myModel).
What's is the usecase to do that ?

> StatelessLink should not force the model type to Void
> -----------------------------------------------------
>
>                 Key: WICKET-3364
>                 URL: https://issues.apache.org/jira/browse/WICKET-3364
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: Willis Blackburn
>            Priority: Minor
>
> StatelessLink is just a shortcut for a Link with the stateless hint set to true.  I don't think that it should force the model type to Void.  Sure, the model that existed at the time the link was created may be gone, but that doesn't mean that there is not another model available.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-3364) StatelessLink should not force the model type to Void

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-3364.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC2
         Assignee: Martin Grigorov

Improved with r1070199.

> StatelessLink should not force the model type to Void
> -----------------------------------------------------
>
>                 Key: WICKET-3364
>                 URL: https://issues.apache.org/jira/browse/WICKET-3364
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: Willis Blackburn
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 1.5-RC2
>
>
> StatelessLink is just a shortcut for a Link with the stateless hint set to true.  I don't think that it should force the model type to Void.  Sure, the model that existed at the time the link was created may be gone, but that doesn't mean that there is not another model available.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WICKET-3364) StatelessLink should not force the model type to Void

Posted by "Willis Blackburn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985314#action_12985314 ] 

Willis Blackburn commented on WICKET-3364:
------------------------------------------

I often call setDefaultModel in component constructors.

I don't have a specific use case;  I don't have any StatelessLInks in my app. I'm just thinking that model vs. no model and stateful vs. stateless are two separate properties and that there's no compelling reason to require that stateless links also have a Void model type--especially when they can have models.








> StatelessLink should not force the model type to Void
> -----------------------------------------------------
>
>                 Key: WICKET-3364
>                 URL: https://issues.apache.org/jira/browse/WICKET-3364
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: Willis Blackburn
>            Priority: Minor
>
> StatelessLink is just a shortcut for a Link with the stateless hint set to true.  I don't think that it should force the model type to Void.  Sure, the model that existed at the time the link was created may be gone, but that doesn't mean that there is not another model available.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3364) StatelessLink should not force the model type to Void

Posted by "Willis Blackburn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994085#comment-12994085 ] 

Willis Blackburn commented on WICKET-3364:
------------------------------------------

Thanks!





> StatelessLink should not force the model type to Void
> -----------------------------------------------------
>
>                 Key: WICKET-3364
>                 URL: https://issues.apache.org/jira/browse/WICKET-3364
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: Willis Blackburn
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 1.5-RC2
>
>
> StatelessLink is just a shortcut for a Link with the stateless hint set to true.  I don't think that it should force the model type to Void.  Sure, the model that existed at the time the link was created may be gone, but that doesn't mean that there is not another model available.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira