Hi folks,

in 1.4 I was doing (pseudo code, real code is longer):

public class MyPage extends WebPage
{
  public MyPage()
  {
    ...
    DynamicImageResource image = new DynamicImageResource();
    image.setImageData(_my_generated_byte_array_);
    ...
    MyApp.get().getSharedResources().remove("/my/custom/resource.jpg");
    MyApp.get().getSharedResources().add("/my/custom/resource_new",
                                                                image);
    ...
        }
}

Not know if it's optimal but it works and resources are dynamicaly
mounted and dismounted.

In 1.5 I can't do:
MyApp.get().getSharedResources().remove("/my/custom/resource.jpg");
because remove() method in 1.5 needs "ResourceReference.Key"

Is there example how to work with remove() in 1.5 or how to rewrite
my code in example above?

Thanks,

JT

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to