alvaro tovar schrieb:
> hello
> 
> i am loking for the url of s:graphicImageDynamic,
> look like
> /faces/myFacesExtensionResource/org.apache.myfaces.custom.graphicimagedynamic.GraphicImageDynamicRenderer/12332460/?idR='+trueId[1]+'&_renderer=com.redi5.backingbean.util.ImageDynamic'
> 
> also i see that the number 12332460 is not a constant, is there a url
> generic for the image?

This url is generated by Tomahawk's "AddResources/ExtensionsFilter"
feature that allows static resources (.js, .css, .png etc) to be served
out of a jarfile rather than having to be unpacked into the local
filesystem.

The "/faces/myFacesExtensionResource/*" path will be handled by the
Tomahawk ExtensionsFilter. The next part
(org.*.GraphicImageDynamicRenderer) is the class that the tomahawk
resources framework will invoke to actually return the resource.

The number is supposed to be generated at tomahawk jarfile compilation
time. This allows the browser to cache the specified resource, but
changes when a new jarfile is released so that stale cached resources do
not get used. This compile-time processing was actually broken for a
while (don't know if it has been fixed yet) causing this number to
actually be the webapp startup time; this also works ok for resource
caching (although not quite as efficient).

The url you quote looks a bit weird though. Normally the actual resource
name (eg "foo.png") would be present at the end of the url. And if I
remember correctly, resource urls don't have query parameters (these
would intefere with caching). In addition, the query params really look
screwed up here. But I don't know anything about the
s:graphicImageDynamic component....

As with all sandbox components, you are welcome to use the code but they
are not tested or reviewed to the level of proper (non-sandbox) tomahawk
components...

Regards,
Simon
-- 
-- Emails in "mixed" posting style will be ignored
-- (http://en.wikipedia.org/wiki/Posting_style)

Reply via email to