JWebSocket using GWT
Folks , I am build a chat Server App in GWT .I came across JWebSocket . (http://jwebsocket.org/) This seems to be useful . But I am not sure how to build using GWT . Has anybody worked on this or can give me some example of how to wrap the JWebScoket calls in GWT . . -- 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 navigate to particular tab of GWT automatically
I have a Module called Employer inside my app . The employer module has a jsp page to it called Employer.jsp . This Module builds various Parent Tabs and Child Tabs and Each Tab has its own data content rendered from different onModule Load on its own . Now I have a requirement like if the user is on the 2 child Tab and clicks on send message to a different user . Then I should be able to capture the link and send it across to the user . So when the second user sees the message and clicks on the link he should directly go to this tab . The message will be viewed within the app . Since there is only one module . i am not sure how to capture this link and send it across . Because when i take a look at the url it only says myappContextPath/Employer.jsp it does not say which Tab item is selected and so forth. -- 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-tool...@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.
Grid GWT
Unable to get Bean Model Data Grid working . Can anyone help me out on why my data grid is not working . I checked the callback object . Its comming up right from the server . Here is my code . Just the data grid with collumn header comes up . MY DTO : EmpCounty implements BeanModelTag, Serializable VerticalPanel vp = new VerticalPanel(); // proxy and reader final RpcProxyList EmpCounty proxyB = new RpcProxyListEmpCounty () { @Override public void load(Object loadConfig, AsyncCallbackListEmpCounty callback) { String key = israel; myService.loadObject(key, callback); loader.load(); } }; BeanModelReader reader = new BeanModelReader(); // loader and store ListLoaderListLoadResultModelData loader = new BaseListLoaderListLoadResultModelData(proxyB, reader); ListStoreBeanModel store ; store = new ListStoreBeanModel(loader); loader.load(); // column model ListColumnConfig columns = new ArrayListColumnConfig(); columns.add(new ColumnConfig(name, name, 200)); columns.add(new ColumnConfig(country, country, 100)); ColumnModel cm = new ColumnModel(columns); GridBeanModel grid = new GridBeanModel(store, cm); grid.setAutoExpandColumn(country); grid.setHeight(300); vp.add(grid); RootPanel.get().add(vp); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
java.lang.IllegalStateException: Should only call onDetach when the widget is attached to the browser's document
I am trying to draw a comboBox using EXT GWT . My issue is i get an illegalStateException when i do the following code . final ComboBoxCountryState combo = new ComboBox CountryState (); combo.setEmptyText(Select a Country...); combo.setDisplayField(value); combo.setStore(countryStateStore); //At this Stage the Store Value is empty , if i dont do this it throws an exception combo.setTypeAhead(true); myService.loadCountryState( new HelpAsyncCallbackListCountrySate() { @Override public void onSuccess(List CountrySate obj) { GWT.log(obj is +obj, null); countryStateStore.add(obj); combo.setStore(countryStateStore); } }); //I do not want to push the the following 2 line of code in the loadCountryState method . I am not sure whats causing the exception vp.add(new HTML(SELECT Country LIST)); vp.add(combo);// Vp : Vertical Panel . I think this is what is happening , maybe even before the async Value is returned , these two lines of code are drawn . At this point the combo box gets painted with maybe empty store . Maybe I am wrong . vp.add(new HTML(SELECT FAVORITES LIST)); vp.add(combo); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
EXT GWT ComboxBox
I am using a EXT GWT ComboBox. I want to show something like for every change of county i want to populate State . I think i need to add some listener events to capture the selected index . Can anyone show me a sample of how to do a country state dropdown in GWT . I also want to know how to setSelectedINdex of the County down to some default value in the xombox box I just got the county populated. This is my code ComboBoxCountryList combo = new ComboBox CountryList (); combo.setEmptyText(Select a Country ...); combo.setDisplayField(key); combo.setWidth(150); combo.setStore(countryValues); combo.setTypeAhead(true); combo.setTriggerAction(TriggerAction.ALL); --~--~-~--~~~---~--~~ 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: Tab Panel Dynamic Content .
Alex , Thanks for you reply . I am a new bie . I am not quite sure to translate this into an actual working code . Could you direct me to a complete working example or share a complete working code . On Aug 5, 11:55 pm, alex.d alex.dukhov...@googlemail.com wrote: tabPanel.addTabListener(new TabListener() { public boolean onBeforeTabSelected(final SourcesTabEvents sender, final int tabIndex) { // do stuff return true;} public void onTabSelected(final SourcesTabEvents sender, final int tabIndex) { // do even more stuff } }); hth On 6 Aug., 05:49, Guess What gang...@gmail.com wrote: I am using EXT GWT . I have two isues. 1. I want to load the contents inside a Tab Panel Dynamically , when the tab is being clicked i wanted to go to the server and getch data . Can anyone show me some sample .I have attached my piece of code . (ripped from examples) 2. The code below compiles but when i run i on the hosted mode , i get an exception . java.lang.IllegalStateException: Should only call onDetach when the widget is attached to the browser's document. Any help would be appreciated . TabPanel folder = new TabPanel(); //Create Pie Chart final Chart chart = new Chart(resources/gxt/chart/open-flash- chart.swf); chart.setBorders(true); chart.setChartModel(getPieChartData()); TabItem shortText = new TabItem(Short Text); shortText.add(chart)// folder.add(shortText);- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Tab Panel Dynamic Content .
I am using EXT GWT . I have two isues. 1. I want to load the contents inside a Tab Panel Dynamically , when the tab is being clicked i wanted to go to the server and getch data . Can anyone show me some sample .I have attached my piece of code . (ripped from examples) 2. The code below compiles but when i run i on the hosted mode , i get an exception . java.lang.IllegalStateException: Should only call onDetach when the widget is attached to the browser's document. Any help would be appreciated . TabPanel folder = new TabPanel(); //Create Pie Chart final Chart chart = new Chart(resources/gxt/chart/open-flash- chart.swf); chart.setBorders(true); chart.setChartModel(getPieChartData()); TabItem shortText = new TabItem(Short Text); shortText.add(chart)// folder.add(shortText); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Basic Response redirect Question GWT
I am a newbie to GWT . This is an issue which i am running into since all along I have been working on HTML and JSP . Lets say I have a scenario , where I have a url /myapp/test.jsp? oderId= 123 Now my Entry Point class for this test.jsp is say Test.java onModuleLoad of Test.java { is this Possible . if(orderId == null) response.rediret(error.jsp) } PS: I did figire put how to get orderID from request into on Entry Point class. Thanks to this group . --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
JPA with GWT
I am trying to use JPA with GWT . I am not sure how to make this communication work . I did googling around on this quite a bit . People suggest dozer and gilead . Dozer plug in is not working currently . Gilead there is aproblem with lazy fetching . This must be a time and tested approach . So Can anyone suggest how do i take those JPA entities to my GWT Client . I dont want to create Manually DTO for every single entity . (This is where I was looking @ Dozer) It does it automatically . I am running out of time of figuring out whats the best approach . Folks help would 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 -~--~~~~--~~--~--~---