I have mounted an IndexedSharedResourceCodingStrategy in my WebApplication as
such:
getSharedResources().add("photo", new BusinessPhotoSharedResource());
mount(new IndexedSharedResourceCodingStrategy("photo", "photo") );
and I have created an Image with the appropriate resource ref and ValueMap.
ValueMap valueMap = new ValueMap();
valueMap.add("0", photoId.getBusinessID().toString());
valueMap.add("1", photoId.getContentID().toString());
add( new Image( "photo", new ResourceReference(Application.class,
"photo"), valueMap ) );
but the generated URL for that image is not created as expected.
Generated:
src="resources/app/photo?0=50824&1=1401"
Expected:
src="resources/app/50824/1401/photo"
Is there something I am missing?
I set a break point in Eclipse in the encode and it never reached that break
point.
Any help is appreciated.
Thanks
- Doug