I just read Emmanuel's reply a second time...sharing the JSONObject between all Component instances as he has described will do pretty much just what I was looking for without having to pass the JSONObject. Not enough coffee yet. :) Sorry for the chatter...
On Tue, Aug 21, 2012 at 2:13 AM, Emmanuel DEMEY <demey.emman...@gmail.com>wrote: > Hi Chris, > > At the same time, a not well-known feature of Tapestry5-jQuery. If you want > to specify a default JSONObject for your fullcalendar (that will be used > for each fullcalendar), you should contribute to the WidgetParams service > in your AppModule : > Please have a look to the AppModule of the demo website : > > https://github.com/got5/tapestry5-jquery-demo/blob/master/src/main/java/org/got5/tapestry5/jquery/services/AppModule.java > > > This default JSON will be merged with the one that you will define as a > parameter of your component. > > Emmanuel > > 2012/8/20 Chris Cureau <cmcur...@gmail.com> > > > Thanks, François...that might solve the issue. I want to contribute this > > back to tapestry5-jquery, and the easier I can make it to use the better > > IMHO. > > > > This component is created from fullcalendar ( > > http://arshaw.com/fullcalendar/). > > It's a javascript utility that displays a calendar in the browser and > > allows the programmer to write code to interact with it. As it comes, it > > only gives enough functionality to display events (json, xml, or google > > calendar with additional javascript) but it gives the hooks necessary to > > allow for a good amount of customization. Exactly the component I need > for > > a scheduling utility. > > > > I think I mistakenly typed freecalendar instead of fullcalendar > > earlier...my apologies. :) > > > > On Mon, Aug 20, 2012 at 9:17 AM, François Facon <francois.fa...@atos.net > > >wrote: > > > > > Hi Chris, > > > > > > In order to avoid having so much makup in your tml you can generate a > > > JSon array in java class and pass it as property to your calendar > > > component parameter. > > > > > > By way could you give us more details about the jQuery plugin you are > > > using? > > > > > > > > > Regards > > > François > > > > > > 2012/8/20 Chris Cureau <cmcur...@gmail.com>: > > > > I could do this, yes...I guess I was just trying to avoid having > quite > > so > > > > much markup in the tml file... > > > > > > > > On Mon, Aug 20, 2012 at 8:34 AM, trsvax <trs...@gmail.com> wrote: > > > > > > > >> Most jQuery components can be implemented by simply extending the > > Widget > > > >> mixin > > > >> > > > >> for example > > > >> > > > >> @Import (library={"your js file"}) > > > >> public Class FreeCalendar extends Widget { > > > >> } > > > >> > > > >> Then in your tml file > > > >> > > > >> <t:any mixins="FreeCalendar" options="JSON String of options"/> > > > >> > > > >> > > > >> > > > >> > > > >> -- > > > >> View this message in context: > > > >> > > > > > > http://tapestry.1045711.n5.nabble.com/javascript-component-questions-tp5715582p5715594.html > > > >> Sent from the Tapestry - User mailing list archive at Nabble.com. > > > >> > > > >> > --------------------------------------------------------------------- > > > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > > >> For additional commands, e-mail: users-h...@tapestry.apache.org > > > >> > > > >> > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > > > > > -- > Emmanuel DEMEY > Ingénieur Etude et Développement > ATOS Worldline > +33 (0)6 47 47 42 02 > demey.emman...@gmail.com > http://emmanueldemey.fr/ > > Twitter : @EmmanuelDemey >