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

Johan Compagner commented on WICKET-1340:
-----------------------------------------

I fixed the message for testResource, deleted the testEmpty because when i 
thought about it that one didn't make any sense.
Because the empty one is completely depending on the markup the image has.

improved the javadoc: "@return true if it has a resourceReference. (it points 
to a shared resource)"

stateless is not about variables or that kind of stuff.
A component is statefull if it generates a callback link to itself. And if an 
Image doesn't have a resourceReference but only a Resource then it generates a 
callback link so that it will serve the Resource itself.

> Bogus LocalizedImageResource#isStateless()
> ------------------------------------------
>
>                 Key: WICKET-1340
>                 URL: https://issues.apache.org/jira/browse/WICKET-1340
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-final, 1.3.1
>            Reporter: Marat Radchenko
>            Assignee: Johan Compagner
>             Fix For: 1.3.2
>
>         Attachments: Image2Test.java, ImageTest.java
>
>
> Image without resource/resource reference should be stateless.
> Bug is located in LocalizedImageResource#isStateless(), which should read 
> "return resourceReference == null;"
> Test case is attached.

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

Reply via email to