[ 
https://issues.apache.org/jira/browse/WICKET-6578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16711192#comment-16711192
 ] 

Sven Meier commented on WICKET-6578:
------------------------------------

What about making the existing ResourceLink smarter?
{code:java}
    /**
     * If a resource is referenced, this link is stateless.
     */
    @Override
    protected boolean getStatelessHint()
    {
        return resourceReference != null;
    }{code}
 

> StatelessResourceLink
> ---------------------
>
>                 Key: WICKET-6578
>                 URL: https://issues.apache.org/jira/browse/WICKET-6578
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 8.0.0
>            Reporter: Michael Gerhards
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Wicket provides many Stateless Versions of classes such as StatelessLink. It 
> would be nice to also have a StatelessResourceLink:
> Complete code for StatelessResourceLink analogous to StatelessLink:
> public class StatelessResourceLink<T> extends ResourceLink<T> {
>     public StatelessResourceLink(String wicketId, ResourceReference 
> resourceReference) {
>         super(wicketId, resourceReference);
>     }
>     public StatelessResourceLink(String wicketId, ResourceReference 
> resourceReference, PageParameters resourceParameters) {
>         super(wicketId, resourceReference, resourceParameters);
>     }
>     public StatelessResourceLink(String wicketId, IResource resource) {
>         super(wicketId, resource);
>     }
>     @Override
>     protected boolean getStatelessHint() {
>         return true;
>     }
>     
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to