Thanks for the info Thiago!

>>  Couldn't you just @Import to get the JS files included and
JavaScriptSupport.addScript() to invoke JS functions?

That's the route I ended up taking to import the necessary js files, but
I'm still unclear on exactly how to use  JavaScriptSupport.addScript() to
create an instance of the sigma viewer. For example, I don't understand
when it's appropriate to use JavaScriptSupport.addInitializerCall()
vs. JavaScriptSupport.addScript()



On Tue, Jul 2, 2013 at 12:01 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 02 Jul 2013 15:35:20 -0300, George Ludwig <georgelud...@gmail.com>
> wrote:
>
>  I'm working on a custom component of the SigmaJS visualization library (
>> http://sigmajs.org).
>> Specifically, this example: http://sigmajs.org/examples/**
>> gexf_example.html <http://sigmajs.org/examples/gexf_example.html>
>>
>
> Interesting!
>
>
>  I've been studying the got5 examples of js library integration, and they
>> are all pretty complex, and it's a challenge to figure out what I really
>> need to do.
>>
>
> They are complex because the project tapestry-jquery is about
> reimplementing Tapestry's built-in Java in jQuery. You're thinking what you
> need to do in your example is way too complex than reality. Couldn't you
> just @Import to get the JS files included and JavaScriptSupport.addScript()
> to invoke JS functions?
>
>
>  I've been working form this tutorial:
>> http://wiki.apache.org/**tapestry/**Tapestry5AndJavaScriptExplaine**d<http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained>however,
>> it's for a mixin and I'm unclear if there is a material difference
>> between creating a component vs. a mixin.
>>
>
> For the JavaScript part, it's absolutely the same in pages, components and
> mixins.
>
>
>
>> Any guidance is much appreciated!
>>
>> -George
>>
>
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to