Re: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-10 Thread Rizen
Thank you very much for this explication. However I had already added a div id=chart1/div Element into the HTML page to be sure that it was adding correctly. But I will use your method for the wrapper. After this I make two different test. First I used only the JQuery library with a simple $wnd.$

Re: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-10 Thread Rizen
I'm a stupid boy... I forgot to replace ALL $.jqplot() by $wnd. $.jqplot(); It's an improvement, but now the error has changed by : com.google.gwt.core.client.JavaScriptException: (String): Improper Data Array The table works in a HTML page, so I don't know why not here :/ I'm going to

Re: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-09 Thread Rizen
Finally I think I'm going to try with the JavaScriptObject class, cause I can cast it in Element object. public class CallChartView extends Widget implements CallChartPresenter.Display { public CallChartView() { setElement(Element.as(createChart())); }

Re: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-09 Thread Rizen
I've already tried but it's exactly the same problem. Here is a part of the error log : [...] com.google.gwt.core.client.JavaScriptException: (ReferenceError): $ is not defined fileName: http://127.0.0.1: lineNumber: 4 stack: ()@http://127.0.0.1::4 [...] -- You received this message

Re: Using jqPlot library (javascript chart) with the MVP pattern

2010-06-09 Thread Rizen
I want to cast a JavaScriptObject to an Element cause I think is the best solution for the moment. Using the MVP architecture I don't know how to do that in a different way. If there is something better I will be interested as well. About the problem with $, I wrote typeof($) in FireBug's

Using jqPlot library (javascript chart) with the MVP pattern

2010-06-08 Thread Rizen
Hello, I'm creating a chart thanks to the jqplot plugin, which depends of the JQuery library. From the jqPlot website I try to implement the simple following example : public native void createChart() /*-{ line1 = [1,4,9, 16]; line2 = [25, 12.5, 6.25,

Re: Personalized table using thead / tfoot / tbody

2010-06-01 Thread Rizen
I created my table with TableElement and for the moment it seems to be the best way. The code is a little long and complex but less than the DOM.createTable function directly. Do you think the UIBinder is better by using a dynamic table or I can keep TableElement ? -- You received this message

Re: MVP + appController useful for the big projects ?

2010-05-31 Thread Rizen
Yes I think it's probably the best solution for the big project. So now I need to learn it ^^ Thanks very much. On May 30, 7:09 pm, Subhrajyoti Moitra subhrajyo...@gmail.com wrote: i think one of the mvp frameworks could help. gwt-dispatch,gwt-presenter, mvp4g.. there are more.. HTH. Subhro.

Personalized table using thead / tfoot / tbody

2010-05-31 Thread Rizen
Hello everybody ! I'm trying to create a table using thead, tfoot and tbody. Moreover I have to reuse an existing CSS file. This one is using few table properties like thead, tbody, tfoot and others styles name. So I must create a personalized table thanks to the DOM tree. First of all, I tried

How to add an Element object into a Widget.

2010-05-28 Thread Rizen
Hello, For my project, I would like to create a table in HTML by means of the DOM tree. For this, I'm just using the functions DOM.createTable(), DOM.createTBody(), DOM.createTR()... However the generated table is an Element type. Except that I'm using the MVP as a pattern for my application. So

Convert a DOM Element to Widget

2010-05-28 Thread Rizen
Hello ! For my project, I'm using the MVP pattern and inside my view I need to create a table from the DOM tree. For this, I just use the functions DOM.createTable(), DOM.createTBody()... no difficulty for the moment. But the view in the MVP pattern extends the Composite class, so I need to init

Re: Convert a DOM Element to Widget

2010-05-28 Thread Rizen
I'm so sorry I don't know why I have two discussions but the real discussion is here : http://groups.google.com/group/google-web-toolkit/browse_thread/thread/7ce36cd0423f5428# Please reply on the other discussion. Really sorry. Thank you. -- You received this message because you are subscribed

Re: How to add an Element object into a Widget.

2010-05-28 Thread Rizen
Thank you very much, I tried to replace Composite by Widget and for the moment it seems to work. I can't use the Grid widget cause I need a Dynamic Table. Moreover I have to reuse an existing CSS file. This one uses few table elements like thead, tbody, tfoot et others styles name. So I must

Re: Convert a DOM Element to Widget

2010-05-28 Thread Rizen
Oh thank you very much, it seems to work for this moment. I didn't think to use the Widget class. Thanks a lot for your help. But now, I don't know which method is better to construct a table with the DOM tree. I post the problem here :