The FormComponentEventWorker tries to load the file /net/sf/tacos/util/Masks.script in the createScriptAccessor method using this code:
Location location = spec.getLocation();
Resource resource = location.getResource().getRelativeResource(MASK_SCRIPT_RESOURCE);
spec being the spec file of the component that is enhanced by the worker. The problem is that we have some components that inherit from AbstractFormComponent and our spec file location points to context:/WEB-INF/MyComponent.swf, not classpath:com/whatever/MyComponent.swf like standard Tapestry form components. The getRelativeResource doesn't find the requested file at all since it is located somewhere in the classpath and throws an Exception.
To make it work, I changed the previous 2 lines with this one:
ClasspathResource resource = new ClasspathResource(new DefaultClassResolver(), MASK_SCRIPT_RESOURCE);
I don't think that the best way to do it (I'm newbie to Tapestry and hivemind...), but thought you could use the hint. Should I file a bug report on this?
Fred
On 2/10/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote:
Ahh right... hehe ;).
--
Ing. Leonardo Quijano Vincenzi
DTQ Software
Jesse Kuhnert wrote:
> Something similar to this?
> http://jakarta.apache.org/tapestry/tapestry-contrib/ComponentReference/MaskEdit.html
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel
