Apple has lifted the non disclosure agreement on us developers, so we can actually start talking about developing on the iphone. DashCode is a module of the xcode development ide. Dashcode is used to create web applications. DashCode uses an extensive helper library of js functions, exposing the most of the iphone UI . But parts is comprised of many small js files in a "parts" directory, this makes it difficult to use it in a custom icefaces control. But there is a way to easily add parts or other libraries like yahoo to an icefaces components project. Combine and compress it like icefaces does with the bridge.
if you look in the bridge directory you will see a compressor.jar file and build.xml
Whats not apparent is that you can substitute your own javascript files and create your own parts-extra file.
<target name="build.bridge" depends="copy, compress" description="Collate bridge code">
<delete file="${script}"/>
<concat destfile="${script}" append="yes" fixlastline="yes" force="no">
<filelist dir="${build.dir}/lib/extras">
<file name="List.js"/>
<file name="setup.js"/>
<file name="Text.js"/>
<file name="ActivityIndicator.js" />
<file name="Transitions.js"/>
<file name="ButtonHandler.js"/>
<file name="StackLayout.js"/>
<file name="Transitions.css"/>
<file name="utilities.js"/>
</filelist>
<filelist dir="${build.dir}/component">
<file name="menu.js"/>
</filelist>
</concat>
</target>
Now from a teminal window in os X or the command prompt in windows. Execute : ant in the directory with the build.xml file. If you did this correctly you now have all the helper js fiiles in one compressed files. parts-extras you can add this to the javascriptContext located in your componets jar file. Like described here.
http://web.mac.com/cannonwc/component_writing/Blog/Entries/2008/6/2_Loading_background_javascript.html