Yeah just yesterday I started working again with the Tacos beta and the
mask resources and noted that deploying it outside of tacos demo gave me
problems. Thanks for the suggestion.
--
Ing. Leonardo Quijano Vincenzi
DTQ Software
Jesse Kuhnert wrote:
That would be great Frederic. Thank you very much! I will apply this
to cvs tomorrow.
On 2/25/06, *Frederic Barnabe* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I recently switched form the official beta jar file to the CVS
repository version so I could use the new calendar and ran across
a problem that looks related to the mask change. Here is the
context:
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]
<mailto:[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
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
_______________________________________________
Tacos-devel mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/tacos-devel
<https://lists.sourceforge.net/lists/listinfo/tacos-devel>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel