You don't need to modify any file, you can do it the Tapestry way, by
contributing to a service.
You should read this to understand the concept better:
http://tapestry.apache.org/tapestry5/tapestry-ioc/symbols.html

In your use case you should add the following method to you module
builder class:

public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration) {
        configuration.add("tapestry.scriptaculous.path",
"my/path/to/my/scripts");
}

lebenski wrote:
> This looks great thank you.  I am new to Tapestry and can't find the file
> containing application defaults that you mention.  Could you please provide
> further details about exactly which file I need to modify.
>
> Many Thanks,
> Ben.
>
>
> HugoPalma wrote:
>   
>> I don't think you can remove the inclusion of the prototype.js, but you
>> should be able to change the base path where Tapestry looks for the
>> scriptaculous files enabling you to provide your own implementation.
>>
>> Tapestry adds the "tapestry.scriptaculous.path" symbol to the factory
>> defaults with the value "org/apache/tapestry/scriptaculous_1_8". All you
>> should have to do is contribute the same symbol to application defaults
>> with value you want.
>>
>> lebenski wrote:
>>     
>>> Hi,
>>>
>>> I have a requirement to remove the auto import of the tapestry bundled
>>> version of prototype.js.  I am implementing this:
>>> http://www.jimbojw.com/wiki/index.php?title=SWFHttpRequest_Flash/Ajax_Utility
>>> to facilitate cross-domain javascript.  The elegant implementation of
>>> this
>>> requires a minor change to the getTransport function in prototype.js. 
>>> Therefore, I need to include my own version of prototype.js in Tapestry
>>> pages rather than the Tapestry bundled version.
>>>
>>> Several hours googling has provided no leads.  Can anyone help?
>>>
>>> Ben.
>>>   
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>     
>
>   

Reply via email to