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


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.

Reply via email to