Name : Akhil Anil Karun

Email : akhil.karun@gmail.com

Proposal Title : Enhance Tuscany Widget Support

Apache Project Name : Tuscany 

Mentor Name : Luciano Resende (Pending Confirmation) 

Link To Project Idea JIRA : Enhance Tuscany Widget Support

Proposal Content Details :

Current Intentions

1. Add the jquery option to implementation.widget to handle jquery codes

<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
targetNamespace="http://store"
name="store">

<component name="store">
<t:implementation.widget location="contents/store.html"/>
<service name="Widget">
<t:binding.http/>
</service>
<reference name="catalog" target="Catalog">
<t:binding.jquery/>
</reference>
...
</component>

.....
</composite>

2. Include a generated jQuery plugin

<\!-\- one js include per sca component -->
<script type="text/javascript" src="jQuery.tuscany.js"></script>jQuery&nbsp;plugins extends the core jQuery nature \[1\]&nbsp;. This file would be generated by a generator function in the server side.&nbsp;

\[1\] Book Reference :&nbsp;jQuery in Action, Chapter 8

3. Defining html In Resources

The user can write everything in under jQuery syntax and we will have code to handle it in the generated plugin file.

For Eg:

var ref2 = $.tuscanyReferenceCall.("catalog");

var ref2 = $.tuscanyReferenceCall.("shoppingCart");