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

Marat Radchenko commented on WICKET-1340:
-----------------------------------------

> 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.

I understand case with Resource. However empty image (that takes url from 
template) doesn't have any resource. And it doesn't generate callback to itself.

If image is empty then LocalizedImageResource searches for src attribute on tag 
and invokes LocalizedImageResource#loadStaticImage. Which sets 
ResourceReference! So empty image turns into image with ResourceReference 
(which is stateless as you say).

> 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