You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Marat Radchenko (JIRA)" <ji...@apache.org> on 2008/02/13 13:28:09 UTC

[jira] Issue Comment Edited: (WICKET-1340) Bogus LocalizedImageResource#isStateless()

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

slonopotamus edited comment on WICKET-1340 at 2/13/08 4:26 AM:
------------------------------------------------------------------

Ok, let's sum up.

1) Image should be stateful if it has Resource [either in LocalizedImageResource or in model].
2) Otherwise (if it has ResourceReference [either in LocalizedImageResource or in model]) it should be stateless.
3) If image is empty (it doesn't have R/RR in model and it doesn't have R/RR in LocalizedImageResource) then it cannot become stateful because in this case src tag attribute will be used and RR will be created so image will be the same as in 2.

Right?

      was (Author: slonopotamus):
    Ok, let's sum up.

Image should be stateful if it has Resource [either in LocalizedImageResource or in model]. Otherwise (if it has ResourceReference [either in LocalizedImageResource or in model]) it should be stateless. Right?
  
> 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.