The javascript is done in the SWFObject.
To make it work in a Ajax request you need to add :
if (AjaxRequestTarget.get() != null) {
AjaxRequestTarget.get().appendJavascript(js);
}
where js is the javascript generated .
This will make evaluate the javascript and therefore add the flash object.
-PY
Thies Edeling-2 wrote:
>
> Works nicely but how to initialize the chart when the panel is loaded
> through an ajax req/res ? Is there a javascript method that writes out the
> Flash object tag ? That seems to be completely missing.
>
> On Mon, Feb 2, 2009 at 10:28 AM, Maarten Bosteels
> <[email protected]>wrote:
>
>> Also have a look at
>> http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html
>>
>> Maarten
>>
>> On Thu, Jan 29, 2009 at 2:45 PM, newbieabc <[email protected]> wrote:
>>
>> >
>> > If you don't mind, could you post your code to display the chart you
>> used?
>> > I was interested the gradient fill chart they offered, but am really
>> new
>> to
>> > wicket and didn't understand how to add it in wicket.
>> >
>> > Thanks!
>> >
>> >
>> > Jurek Piasek wrote:
>> > >
>> > > I have been using Amcharts
>> > >
>> > > http://www.amcharts.com/
>> > >
>> > > together with SWFObject
>> > >
>> >
>> http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html
>> > >
>> > > Regards,
>> > > Jurek
>> > >
>> > >
>> > > On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel)
>> > > <[email protected]>wrote:
>> > >
>> > >> Hi all,
>> > >>
>> > >>
>> > >>
>> > >> I'd like to put some simple bar graphs, pie graphs and possible line
>> > >> graphs into my wicket pages.
>> > >>
>> > >>
>> > >>
>> > >> Have any of you used a good framework that you can recommend, that
>> also
>> > >> plays nicely with Wicket?
>> > >>
>> > >>
>> > >>
>> > >> Thanks!
>> > >>
>> > >>
>> > >>
>> > >> -Daniel.
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >
>> > >
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21727142.html
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>>
>
>
--
View this message in context:
http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21965728.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]