Patches item #1576415, was opened at 2006-10-13 07:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1576415&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Russell (paulrussell)
Assigned to: Nobody/Anonymous (nobody)
Summary: [Patch] R'Ref and Resource support in Image Models

Initial Comment:
The attached patch provides the ability to support providing resources 
and resource references to images through their model, rather than 
having to override Image.getImageResource or 
Image.getImageResourceReference. This patch /should not/ change the 
behaviour of any existing applications, since it only comes into play where 
the model object supplied implements either ResourceReference or 
Resource; previously any such models would have been interpreted as 
strings, which would not have worked.

NOTE: This patch is against for wicket 1.2-SNAPSHOT from SVN. I will 
forward port to 2.0 ASAP.

Summary of changes:
* Updated LocalizedImageResource.setSrcAttribute such that it resolves 
the resource reference or resource from the image component's model. 
Note that it does this for each request; the resulting resource is not 
cached, so that it may be updated upon each request.
* Added two new images to wicket-examples, one providing a resource 
reference via its model, and one providing a dynamic image resource.

Results:
mvn clean install on wicket-parent successful (after hacking profiles in 
pom.xml to include standard wicket projects on JDK1.5 -- more on this 
later!), and wicket-examples/images works as expected.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1576415&group_id=119783

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to