[
https://issues.apache.org/jira/browse/WICKET-720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alastair Maw updated WICKET-720:
--------------------------------
Summary: Image does not regenerate its LocalizedImageResource
resource/resourceReference when you call setModel() (was: AjaxLink not
updating Image)
AJAX is a complete red herring - the behaviour is the same if you use a normal
Link.
The issue here is that you're rendering the Image and you're then calling
setModel() on it at a later date, changing the backing model for that object.
This is a very peculiar thing to do. You should almost certainly be calling
setModelObject() instead.
However, it's a valid use case, if an odd one. Am working on a fix right now.
> Image does not regenerate its LocalizedImageResource
> resource/resourceReference when you call setModel()
> --------------------------------------------------------------------------------------------------------
>
> Key: WICKET-720
> URL: https://issues.apache.org/jira/browse/WICKET-720
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta2
> Reporter: Sven Schliesing
> Assignee: Alastair Maw
> Fix For: 1.3.0-beta3
>
> Attachments: ImageChangePage.html, ImageChangePage.java,
> ImageChangePageTest.java
>
>
> Changing the source (model) of an image in an AjaxFallbackLink does not
> change the image shown on the webpage.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.