Help needed regarding grid with grouping and paging toolbar
Dear All , I have a problem with my grid. I have a grid that contains Grouping and at the same time paging . My problem is that my datas are not displayed correctly . I have datas that display as Top 20 countries in each month . ie for january,top20 countries will dispaly,for february top 20 countries will display like that . Datas are displaying ,But problem is while displaying for eg,for january it will display first six countries( 1 to 6 ),then in next page again january 7 to 12 Countries ,then next page 13 to 19 countries then in fourth page remaining 20th country . Like that for every month . What i need to display is first top 20 countries for january,Then Top 20 countries for february etc. For eg, Datas in the first page.see feb 2009 Order : Country Feb 2009 1 : usa 2 : china 3 : Britain 4 : france 5 : italy 6 : russia March 2009 1: 2: 3: ... Aug 2009 Datas in the second page March 2009 1: 2: 3: 4: 5 Feb 2009 7: denmark 8:Hongkong 9:japan 10:india 11:australia Datas in third page 12: new-zealand 13: south africa 14: brazil 15: Below is my code for the grid. RecordDef recordDef = new RecordDef(createfieldDefs()); final GroupingStore store = new GroupingStore(new GWTProxyImpl(), new ArrayReader(recordDef), true); //store.setBaseParams(new UrlParam[]{new UrlParam("paramName", "paramValue")}); store.setSortInfo(new SortState("order_num", SortDir.ASC)); store.setGroupField("up_to"); GroupingView gridView = new GroupingView(); gridView.setForceFit(true); gridView.setGroupTextTpl("{text} ({[values.rs.length]} {[values.rs.length > 1 ? \"Items\" : \"Item\"]})"); GridPanel grid = new GridPanel(store, createColModel()); grid.setView(gridView); grid.setWidth(650); grid.setHeight(600); grid.setLoadMask(true); grid.stripeRows(true); grid.setCollapsible(true); grid.setAnimCollapse(false); grid.setTitle("Report Title"); final PagingToolbar pagingToolbar = new PagingToolbar(store); pagingToolbar.setPageSize(60); pagingToolbar.setDisplayInfo(true); pagingToolbar.setDisplayMsg("Displaying records {0} - {1} of {2}"); pagingToolbar.setEmptyMsg("No records to display"); NumberField pageSizeField = new NumberField(); pageSizeField.setWidth(40); pageSizeField.setSelectOnFocus(true); pageSizeField.addListener(new FieldListenerAdapter() { public void onSpecialKey(Field field, EventObject e) { if (e.getKey() == EventObject.ENTER) { int pageSize = Integer.parseInt(field.getValueAsString()); pagingToolbar.setPageSize(pageSize); } } }); if(urlParameters.size() > 0) { UrlParam[] u = new UrlParam[urlParameters.size()]; for(int i=0;ihttp://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Regarding Editable Grids
Daer All, I am a newbie in GWT . Can any one tell me how to save data that is edited in an Editable grid and save the changes made in a grid to a database . Any one please give me the link to know about editable grid in RPC and save the datas in database . Any help will be appreciated --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Regarding an Uncaught Exception Displaying
Hi salvador, i tried by giving the size to my panel. Panel.setsize("100%","100%"); But still the same issues. i am not geting where i am doing wrong..Please help... On Sun, Apr 19, 2009 at 2:14 PM, shajeer kt wrote: > > > Hi, > > Thanks for your reply. > > I am pretty new to GWT . Please dont harsh on me if i asked any foolish > question. > > I am not using an Absolute Panel . I am using > Panel(com.gwtext.client.widgets.Panel) . > > I am using a similar application like http://www.gwt-ext.com/demo/ . > There they are using Panel. > > > On Sun, Apr 19, 2009 at 1:07 PM, Salvador Diaz wrote: > >> >> You either didn't bother to read my post or you didn't bother trying >> what I suggested. As I said before: >> >> "if you don't set the size of the absolutePanel (ie: >> absolutePanel.setSize("100%", "100%")) the widgets will be visible in >> Firefox but not in IE" >> >> So try setting a size for your panels ! >> >> Salvador >> >> On Apr 19, 11:56 am, shajeer kt wrote: >> > Helloo, >> > >> > Some body please help me to solve this issue >> > >> > On Tue, Apr 14, 2009 at 4:29 PM, shajeer kt >> wrote: >> > >> > > Hiii, >> > >> > > Thanks for your reply, >> > >> > > Fusioncharts are widgets which are working with Flash. >> > >> > > FusionCharts is a flash charting component that can be used to render >> > > data-driven animated charts. Made in Adobe Flash 8 (formerly >> Macromedia >> > > Flash), >> > >> > > My application is like that,initially when the page is loaded a fusion >> > > chart is loaded along with that.Now if i clicked on the fusion chart >> bar >> > > another chart is getting loaded.If i clicked the second one,third >> fusion >> > > chart is loaded. So this is in a drill down manner. >> > >> > > That means fusion charts are working fine. >> > > Now i am going to load the second page and the fusion chart is loaded >> > > perfectly.Now i am going to click the fusion chart for the drill down >> chart. >> > > But it is going to blank page where nothing is viewed even the grid in >> the >> > > page.. >> > >> > > Now again i tried to restart my application and loaded the page which >> > > caused problem previously,it will work fine,But the other page which >> was >> > > working fine had gone to a blank page as i said early. >> > >> > > This is happening only in gogle hosted mode and IE.Its working fine in >> > > Mozilla firefox. >> > >> > > I am calling the fusion chart in GWT in below manner. >> > >> > > *public static Panel createRequestFusionChart(Map >> > > urlsParam,int chartWidth, int chartHigh) { >> > >> > > Panel chartPanel = new Panel(); >> > > final Panel fusionPanel1 = new Panel(); >> > >> > > chartPanel.setWidth(chartWidth); >> > >> > > final Map parameters = new HashMap> > > Object>(); >> > > Iterator params = urlsParam.values().iterator(); >> > > UrlParam urlParam; >> > > while(params.hasNext()) >> > > { >> > > urlParam = params.next(); >> > > parameters.put(urlParam.getName(), urlParam.getValue()); >> > >> > > } >> > >> > > ParametersProvider parmParametersProvider = new >> > > ParametersProvider() { >> > >> > > public Map getParameters() { >> > >> > > //Map parameters = new HashMap(); >> > > parameters.put("userid", "0"); >> > > parameters.put("charttype", "1"); >> > > parameters.put("chartmethod", "Request"); >> > > parameters.put("dept", "19"); >> > > parameters.put("link", "1"); >> > > return parameters ; >> > > } >> > > } ; >> > >> > > String chartName = "StackedColumn3D"; >> > > String chartUrl = GWT.getModuleBaseURL() + "FusionCharts/" + >&
Re: Regarding an Uncaught Exception Displaying
Hi, Thanks for your reply. I am pretty new to GWT . Please dont harsh on me if i asked any foolish question. I am not using an Absolute Panel . I am using Panel(com.gwtext.client.widgets.Panel) . I am using a similar application like http://www.gwt-ext.com/demo/ . There they are using Panel. On Sun, Apr 19, 2009 at 1:07 PM, Salvador Diaz wrote: > > You either didn't bother to read my post or you didn't bother trying > what I suggested. As I said before: > > "if you don't set the size of the absolutePanel (ie: > absolutePanel.setSize("100%", "100%")) the widgets will be visible in > Firefox but not in IE" > > So try setting a size for your panels ! > > Salvador > > On Apr 19, 11:56 am, shajeer kt wrote: > > Helloo, > > > > Some body please help me to solve this issue > > > > On Tue, Apr 14, 2009 at 4:29 PM, shajeer kt > wrote: > > > > > Hiii, > > > > > Thanks for your reply, > > > > > Fusioncharts are widgets which are working with Flash. > > > > > FusionCharts is a flash charting component that can be used to render > > > data-driven animated charts. Made in Adobe Flash 8 (formerly Macromedia > > > Flash), > > > > > My application is like that,initially when the page is loaded a fusion > > > chart is loaded along with that.Now if i clicked on the fusion chart > bar > > > another chart is getting loaded.If i clicked the second one,third > fusion > > > chart is loaded. So this is in a drill down manner. > > > > > That means fusion charts are working fine. > > > Now i am going to load the second page and the fusion chart is loaded > > > perfectly.Now i am going to click the fusion chart for the drill down > chart. > > > But it is going to blank page where nothing is viewed even the grid in > the > > > page.. > > > > > Now again i tried to restart my application and loaded the page which > > > caused problem previously,it will work fine,But the other page which > was > > > working fine had gone to a blank page as i said early. > > > > > This is happening only in gogle hosted mode and IE.Its working fine in > > > Mozilla firefox. > > > > > I am calling the fusion chart in GWT in below manner. > > > > > *public static Panel createRequestFusionChart(Map > > > urlsParam,int chartWidth, int chartHigh) { > > > > > Panel chartPanel = new Panel(); > > > final Panel fusionPanel1 = new Panel(); > > > > > chartPanel.setWidth(chartWidth); > > > > > final Map parameters = new HashMap > > Object>(); > > > Iterator params = urlsParam.values().iterator(); > > > UrlParam urlParam; > > > while(params.hasNext()) > > > { > > > urlParam = params.next(); > > > parameters.put(urlParam.getName(), urlParam.getValue()); > > > > > } > > > > > ParametersProvider parmParametersProvider = new > > > ParametersProvider() { > > > > > public Map getParameters() { > > > > > //Map parameters = new HashMap(); > > > parameters.put("userid", "0"); > > > parameters.put("charttype", "1"); > > > parameters.put("chartmethod", "Request"); > > > parameters.put("dept", "19"); > > > parameters.put("link", "1"); > > > return parameters ; > > > } > > > } ; > > > > > String chartName = "StackedColumn3D"; > > > String chartUrl = GWT.getModuleBaseURL() + "FusionCharts/" + > > > chartName + ".swf"; > > > String dataUrl = GWT.getModuleBaseURL() + "ChartServletNew"; > > > > > FusionChart fusionChart = new FusionChart(chartUrl, 450, 400, > > > dataUrl, parmParametersProvider) ; > > > > > fusionPanel1.add(fusionChart); > > > > > final Panel firstRowPanel = new Panel("Requests"); > > > firstRowPanel.setLayout(new HorizontalLayout(30)); > > > > > > > > > > ParametersProvider parmParametersProvider1 = new > > > ParametersProvider() { > > > > >
Re: Regarding an Uncaught Exception Displaying
Helloo, Some body please help me to solve this issue On Tue, Apr 14, 2009 at 4:29 PM, shajeer kt wrote: > > Hiii, > > Thanks for your reply, > > Fusioncharts are widgets which are working with Flash. > > FusionCharts is a flash charting component that can be used to render > data-driven animated charts. Made in Adobe Flash 8 (formerly Macromedia > Flash), > > My application is like that,initially when the page is loaded a fusion > chart is loaded along with that.Now if i clicked on the fusion chart bar > another chart is getting loaded.If i clicked the second one,third fusion > chart is loaded. So this is in a drill down manner. > > That means fusion charts are working fine. > Now i am going to load the second page and the fusion chart is loaded > perfectly.Now i am going to click the fusion chart for the drill down chart. > But it is going to blank page where nothing is viewed even the grid in the > page.. > > > Now again i tried to restart my application and loaded the page which > caused problem previously,it will work fine,But the other page which was > working fine had gone to a blank page as i said early. > > This is happening only in gogle hosted mode and IE.Its working fine in > Mozilla firefox. > > I am calling the fusion chart in GWT in below manner. > > *public static Panel createRequestFusionChart(Map > urlsParam,int chartWidth, int chartHigh) { > > Panel chartPanel = new Panel(); > final Panel fusionPanel1 = new Panel(); > > chartPanel.setWidth(chartWidth); > > > final Map parameters = new HashMap Object>(); > Iterator params = urlsParam.values().iterator(); > UrlParam urlParam; > while(params.hasNext()) > { > urlParam = params.next(); > parameters.put(urlParam.getName(), urlParam.getValue()); > > > } > > ParametersProvider parmParametersProvider = new > ParametersProvider() { > > public Map getParameters() { > > //Map parameters = new HashMap(); > parameters.put("userid", "0"); > parameters.put("charttype", "1"); > parameters.put("chartmethod", "Request"); > parameters.put("dept", "19"); > parameters.put("link", "1"); > return parameters ; > } > } ; > > > String chartName = "StackedColumn3D"; > String chartUrl = GWT.getModuleBaseURL() + "FusionCharts/" + > chartName + ".swf"; > String dataUrl = GWT.getModuleBaseURL() + "ChartServletNew"; > > FusionChart fusionChart = new FusionChart(chartUrl, 450, 400, > dataUrl, parmParametersProvider) ; > > > fusionPanel1.add(fusionChart); > > final Panel firstRowPanel = new Panel("Requests"); > firstRowPanel.setLayout(new HorizontalLayout(30)); > > > > ParametersProvider parmParametersProvider1 = new > ParametersProvider() { > > public Map getParameters() { > //Map parameters = new HashMap(); > parameters.put("userid", "0"); > parameters.put("charttype", "1"); > parameters.put("chartmethod", "emptychart"); > > return parameters ; > } > } ; > > chartName = "StackedBar3D"; > chartUrl = GWT.getModuleBaseURL() + "FusionCharts/" + chartName + > ".swf?ChartNoDataText=Click left chart to view Services Details"; > dataUrl = GWT.getModuleBaseURL() + "ChartServletNew"; > > fusionChart = new FusionChart(chartUrl, 450, 550, "Human Resources > (Development)ServDetails", dataUrl, parmParametersProvider1) ; > > final Panel fusionPanel2 = new Panel(); > fusionPanel2.add(fusionChart); > > > > firstRowPanel.add(fusionPanel1); > firstRowPanel.add(fusionPanel2); > > > > > ParametersProvider parmParametersProviderSubServ = new > ParametersProvider() { > > public Map getParameters() { > > //Map parameters = new HashMap(); > parameters.put("userid", "0"); > parameters.put("charttype", "1"); > parameters.put("chartmethod", "emptychart");
Re: Regarding an Uncaught Exception Displaying
Panel; } * Here *ChartServletNew* is a Servlet which is used to create the xml of fusion chart. Inside this *ChartServletNew *there is a link attrubute in which will call a javascript function which in turn will call the Servlet again. This is done in this manner *xStreamWriter2.writeAttribute("link","JavaScript:updateFusionChart(\""+newCondQuery+"\",\""+funcNameList.get(k)+"\",\""+statusNameList.get(k)+"\",\""+DrillDownKPI+"\" );"); * Below is my javascript function *function updateFusionChart(condQuery,Mngmnt,stutus,kpi,serviceID){ if ( !serviceID){ var strURL = "ChartServletNew?GM=" + Mngmnt + "&status=" +stutus + "&kpi=" +kpi+ "&condQuery=" +condQuery; strURL = escape(strURL); var chart_CityDetails = new FusionCharts('FusionCharts/StackedBar3D.swf?ChartNoDataText=Click right chart to view Services Details', 'ServDetails', '550', '450', '0', '1'); chart_CityDetails.setDataURL(strURL); chart_CityDetails.render(Mngmnt+kpi+"ServDetailsDiv"); } else if (serviceID){ var strURL = "ChartServletNew?GM=" + Mngmnt + "&status=" +stutus + "&serviceID=" +serviceID + "&kpi=" +kpi+"&condQuery="+condQuery; //URLEncode it - NECESSARY. strURL = escape(strURL); var chart_CityDetails = new FusionCharts('FusionCharts/StackedBar3D.swf?ChartNoDataText=Click right chart to view Services Details', 'SubServDetails', '800', '450', '0', '1'); chart_CityDetails.setDataURL(strURL); chart_CityDetails.render(Mngmnt+kpi+"SubServDetailsDiv"); } else { //Show error alert("Please wait for the charts to load."); return; } } * So like this it will again call the GWT fusion chart calling method and give the appropriate chart. So according to my issue if i loaded a page with a fusion chart and clicked on the link attribute on the fusion chart,then the second time i am loading another page with On Mon, Apr 13, 2009 at 8:34 PM, Salvador Diaz wrote: > > It looks like you're having several problems and they might be > unrelated, you should try to explain your setup a little more clearly > (for instance, what are those fusion charts you're talking about and > how do you call them from your gwt code ?). > > As for the display differences between Firefox and IE, I've > encountered similar issues when widgets are displayed in an > AbsolutePanel: if you don't set the size of the absolutePanel (ie: > absolutePanel.setSize("100%", "100%")) the widgets will be visible in > Firefox but not in IE, so make sure you're setting the size of the > absolutePanel. > > Cheers, > > Salvador > > On Apr 13, 12:11 pm, shajeer kt wrote: > > Hii, > > > >Where can i get OOPHM plugin.. Whether i have to add the jar file to > my > > existing project. Or adding that plugin directly to Internet Explorer > > Browser . Please any one tell me,what should i do?? > > > > On Sun, Apr 12, 2009 at 8:23 AM, shajeer kt > wrote: > > > So what may be the reason it is working perfectly in mozilla firefox > and > > > not in IE. > > > Whether Mozilla firefox already have this OOPHM plugin . > > >Could any one give me more informations regarding OOPHM with > respect > > > to my issue.? > > > > > On Sat, Apr 11, 2009 at 3:44 PM, Vitali Lovich > wrote: > > > > >> It looks like you start your code in hosted mode, but then hit the > page > > >> using a regular browser. You cannot run HostedMode code against a > regular > > >> browser without the OOPHM plugin for obvious reasons. In HostedMode, > your > > >> code runs ins a regular JVM with GWT code that acts as a communication > layer > > >> between the browser & native Java code. But without the hosted mode > browser > > >> or the OOPHM plugin, there's nothing for it to communicate with. > > > > >> So what you are seeing here is perfectly expected. Either use the > > >> HostedMode browser or build from trunk & use the OOPHM plugin > according to > > >> the instructions on the wiki. Or run the regular browser against the > > >> compiled code. > > > > >> Those are your options. > > > > >>
Re: Regarding an Uncaught Exception Displaying
Hii, Where can i get OOPHM plugin.. Whether i have to add the jar file to my existing project. Or adding that plugin directly to Internet Explorer Browser . Please any one tell me,what should i do?? On Sun, Apr 12, 2009 at 8:23 AM, shajeer kt wrote: > So what may be the reason it is working perfectly in mozilla firefox and > not in IE. > Whether Mozilla firefox already have this OOPHM plugin . >Could any one give me more informations regarding OOPHM with respect > to my issue.? > > > > On Sat, Apr 11, 2009 at 3:44 PM, Vitali Lovich wrote: > >> It looks like you start your code in hosted mode, but then hit the page >> using a regular browser. You cannot run HostedMode code against a regular >> browser without the OOPHM plugin for obvious reasons. In HostedMode, your >> code runs ins a regular JVM with GWT code that acts as a communication layer >> between the browser & native Java code. But without the hosted mode browser >> or the OOPHM plugin, there's nothing for it to communicate with. >> >> So what you are seeing here is perfectly expected. Either use the >> HostedMode browser or build from trunk & use the OOPHM plugin according to >> the instructions on the wiki. Or run the regular browser against the >> compiled code. >> >> Those are your options. >> >> >> On Sat, Apr 11, 2009 at 8:28 AM, babu wrote: >> >>> >>> Dear all, >>> >>> I am currently facing a problem in which i am not able to understand >>> the reason. This problem is happening only in hosted mode and when >>> using IE.In Mozilla firefox it is working fine. >>> I am currently having an application in GWT containing Some grids and >>> some drill down charts using fusion charts . If i clicked on a fusion >>> chart the other drill down chart is loading.When i clicked the second >>> one,the third drill down chart is loading.Its working perfect. >>> Now if i took another page then tried the above procedures in hosted >>> mode or in IE, All the charts are going to an invinsible mode . I can >>> see only a white screen which contains nothing . Only i can view the >>> back,forward,refresh,stop button and the url. >>> >>> Now if i again load the application and took the page that gone blank >>> before it will work fine,but the other page which was working fine >>> will be going to the blank page which i told above. >>> >>> In GWT development shell i was getting an uncaught Exception which is >>> attached below.( Even i am getting this exception rarely,Not every >>> time ) >>> >>> [source][ERROR] Uncaught exception escaped >>> >>> java.lang.NullPointerException: null >>> at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject >>> (JavaScriptHost.java:91) >>> at com.google.gwt.http.client.XMLHTTPRequest.getBrowserSpecificFailure >>> (XMLHTTPRequest.java) >>> at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl >>> (Request.java:248) >>> at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch >>> (Request.java:226) >>> at com.google.gwt.http.client.Request.fireOnResponseReceived >>> (Request.java:217) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke >>> (NativeMethodAccessorImpl.java:39) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke >>> (DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:585) >>> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: >>> 103) >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod >>> (IDispatchImpl.java:126) >>> at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke >>> (IDispatchProxy.java:155) >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: >>> 294) >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 >>> (IDispatchImpl.java:194) >>> at org.eclipse.swt.internal.ole.win32.COMObject.callback6 >>> (COMObject.java:117) >>> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) >>> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) >>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) >>> at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) >>> at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) >>> at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)[/source] >&
Re: Regarding an Uncaught Exception Displaying
So what may be the reason it is working perfectly in mozilla firefox and not in IE. Whether Mozilla firefox already have this OOPHM plugin . Could any one give me more informations regarding OOPHM with respect to my issue.? On Sat, Apr 11, 2009 at 3:44 PM, Vitali Lovich wrote: > It looks like you start your code in hosted mode, but then hit the page > using a regular browser. You cannot run HostedMode code against a regular > browser without the OOPHM plugin for obvious reasons. In HostedMode, your > code runs ins a regular JVM with GWT code that acts as a communication layer > between the browser & native Java code. But without the hosted mode browser > or the OOPHM plugin, there's nothing for it to communicate with. > > So what you are seeing here is perfectly expected. Either use the > HostedMode browser or build from trunk & use the OOPHM plugin according to > the instructions on the wiki. Or run the regular browser against the > compiled code. > > Those are your options. > > > On Sat, Apr 11, 2009 at 8:28 AM, babu wrote: > >> >> Dear all, >> >> I am currently facing a problem in which i am not able to understand >> the reason. This problem is happening only in hosted mode and when >> using IE.In Mozilla firefox it is working fine. >> I am currently having an application in GWT containing Some grids and >> some drill down charts using fusion charts . If i clicked on a fusion >> chart the other drill down chart is loading.When i clicked the second >> one,the third drill down chart is loading.Its working perfect. >> Now if i took another page then tried the above procedures in hosted >> mode or in IE, All the charts are going to an invinsible mode . I can >> see only a white screen which contains nothing . Only i can view the >> back,forward,refresh,stop button and the url. >> >> Now if i again load the application and took the page that gone blank >> before it will work fine,but the other page which was working fine >> will be going to the blank page which i told above. >> >> In GWT development shell i was getting an uncaught Exception which is >> attached below.( Even i am getting this exception rarely,Not every >> time ) >> >> [source][ERROR] Uncaught exception escaped >> >> java.lang.NullPointerException: null >> at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject >> (JavaScriptHost.java:91) >> at com.google.gwt.http.client.XMLHTTPRequest.getBrowserSpecificFailure >> (XMLHTTPRequest.java) >> at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl >> (Request.java:248) >> at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch >> (Request.java:226) >> at com.google.gwt.http.client.Request.fireOnResponseReceived >> (Request.java:217) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke >> (NativeMethodAccessorImpl.java:39) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) >> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: >> 103) >> at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod >> (IDispatchImpl.java:126) >> at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke >> (IDispatchProxy.java:155) >> at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: >> 294) >> at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 >> (IDispatchImpl.java:194) >> at org.eclipse.swt.internal.ole.win32.COMObject.callback6 >> (COMObject.java:117) >> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) >> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) >> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) >> at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) >> at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) >> at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)[/source] >> >> >> But when i compiled and run it in a Mozilla FireFox browser. it is >> working fine and there is no problem at all. >> Only in hosted mode and IE i am facing the problem. >> >> When i asked the fusion chart Forum they replied as it may be a GWT >> issue. >> >> What may be the reason for this bug ? Any body faced such an >> exception before ? >> Somebody please help. >> >> > > > > -- Regards, Shajeer Kannamthodi Riyadh Mob:009665-64566832 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to call a servlet from GWT
In my GWT class i was calling the servlet "ChartServlet" in the below manner Map parameters = new HashMap(); String chartName = "StackedColumn3D"; String dataUrl = GWT.getModuleBaseURL() + "*ChartServlet*"; FusionChart fusionChart = new FusionChart(chartUrl, 450, 400, dataUrl, parmParametersProvider) ; So my requirement is to pass a method along with the Servlet call Instead of String dataUrl = GWT.getModuleBaseURL() + "*ChartServlet*"; is it possible like this String dataUrl = GWT.getModuleBaseURL() + "*ChartServlet?* "+this.getParams(parameters); getParams will return a String value. But in the Fusion Chart it is showing " Invalid XML Date " Chart is not displaying. Or is there any better way to do this. Please help to solve this issue. On Thu, Mar 12, 2009 at 8:49 AM, Saeed Zarinfam wrote: > > With use RequestBuilder you can send a request to a servlet and with > use RPC you ca call a method from server and send to this method > parameters. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to Reload or Refresh the page
Dear All, I am very new to GWT. I have a doubt. I have a page that contains a Grid and a Chart.The Grid has a button that can filter the values of the grid according to the Date what i am giving in FromDate and ToDate field. In the same page i have a FusionChart which is gererated from a servlet. Currently if i am filtering the Grid, Grid is getting filtered,But chart will be the previous chart that i loaded before. My requirement is when i am clicking on the filter button the changes that i got in grid page shold be reflected in Chart also. this is what i am doing currently when clicked on Filter button, ButtonListenerAdapter listener = new ButtonListenerAdapter() { public void onClick(Button button, EventObject e) { button.setText("Filter"); store.reload(); } }; where store is a ' GroupingStore '. Currently Chart is loaded along with the Grid in the first time. But when i cahnged the Date that changes is reflecting only on Grid.I want to reflect these changes to Chart also. My Grid is working perfectly. As i am new to GWT i dont know it is a simple or a difficult quesion. Please Help ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to call a servlet from GWT
Dear all, How to call a servlet from GWT code . Along with calling servlet i want to pass some parameters with it.. How is it possible. Is it the wrong forum to ask this question . Any help would be appreciaated, -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Help regarding Date in GWT
*Dear All,* ** * I got a doubt. please help me .* ** * i have a DateField 'from_date' which is a 'com.gwtext.client.widgets.form.DateField .'* * i want to convert this date to java.util.Date. * * I have to do this in a GWT-page which is in client side . * ** *Is it possible to do?How ?* ** *Your help will be appreciated...* -- Regards, Shajeer Kannamthodi Jeddah Mob:009665-64566832 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
MY Grid's page toolbar is not working properly
Dear all, I created a grid that can access the database.Data loading is working perfect. Supose there are 100 data that is loaded from the data base my grid is displaying 100 items even after giving PagingToolbar.setPagesize(15).. It shud display the first 15 in the first oage,Second 15 in the second page ike thatBut it is displaying the whole 100 itemsDue to this i want to scroll down the grid for viewing the whole item.. Please any one give me a solution for this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---