Friday, June 1, 2012

Wicket Images Without Using Resource Streams

Wicket's Image object is based on resource streams which is different from more traditional ways of handling images. For more "traditional" ways of handling images, the following options are available:
  1. Construct an Image object without any resource streams i.e. new Image(id) and add a AttributeModifier to change the src attribute.
  2. Use a ContextImage (link).
  3. Create own Image class and add the attribute changing logic in the "onComponentTag" callback (link).

No comments:

Post a Comment