You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matej Knopp (JIRA)" <ji...@apache.org> on 2007/10/15 00:15:51 UTC

[jira] Resolved: (WICKET-1074) Image resource parameters fail to output in src attribute

     [ https://issues.apache.org/jira/browse/WICKET-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matej Knopp resolved WICKET-1074.
---------------------------------

    Resolution: Fixed

> Image resource parameters fail to output in src attribute
> ---------------------------------------------------------
>
>                 Key: WICKET-1074
>                 URL: https://issues.apache.org/jira/browse/WICKET-1074
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta4
>            Reporter: Nathan Hamblen
>            Assignee: Matej Knopp
>
> Resource parameters that are passed to an image constructor are set in its localizedImageResource instance, but are erased in the onComponentTag method. In Image line 229 getImageResourceReference() returns the reference from the localized resource, and then in the not-null if block calls localizedImageResource.setResourceReference(resourceReference), which sets the resource parameters to null in LocalizedImageResource line 212. That line should pass in the object's resourceReference field instead of null, or else the Image.getImageResourceReference() method should be reevaluated. Should it return null in the base class, instead of calling localized image resource? (It doesn't seem to be called from anywhere but onComponentTag.)

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