Starting with Tapestry 4.1.4, it is possible to completely remove dojo from the generated pages, and instead use other javascript libraries. Here are the required steps:
<implementation service-id="tapestry.js.JavascriptManager">
<invoke-factory>
<construct class="org.apache.tapestry.javascript.JavascriptManagerImpl">
<set-service property="assetSource" service-id="tapestry.asset.AssetSource"/>
<set property="files"
value="classpath:/yui/yahoo/yahoo-min.js,classpath:/yui/dom/dom-min.js,classpath:/yui/event/event-min.js"/>
<set property="formFiles" value=""/>
<set property="widgetFiles" value=""/>
<set property="path" value=""/>
<set property="tapestryFile" value="classpath:/yui/yui-tapestry.js"/>
<set property="tapestryPath" value=""/>
</construct>
</invoke-factory>
</implementation>