Re: Custom cell in CellTable with TextCell and SelectionCell
Hi everybody, my cell now reacts on changes. But this brings up new questions, first of all: How do I get my event from my custom cell to to my CellTable to trigger an FieldUpdater? Thanks a lot. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Custom cell in CellTable with TextCell and SelectionCell
Hi everybody, I am trying to implement a custom cell for my CellTable showing a TextCell or a SelectionCell. The decision is made by an enum value in my model. To add the cell to my table I made a custom column, source under the cell. The Last snippets shows how I add the cell to my table. *Problem / question:* Rendering is working well. But the cell doesn't react on changes. When I try to add a FieldUpdater to the cell, eclipse says I need to provide a FieldUpdater in my column class. I have no idea how it looks like. Is there a proper way to add FieldUpdater to my class? Sources below. Thanks a lot in advance. When it works, I am going to publish a simplified example and will share the link here. Best regards Jochen *CustomStatusCell* public class CustomStatusCell extends AbstractCell { public static final MasterDataConstants CONSTANTS = (MasterDataConstants) GWT.create(MasterDataConstants.class); private TextCell textCell; private SelectionCell selectCell; private String text = ""; public CustomStatusCell() { textCell = new TextCell(); } @Override public void render(com.google.gwt.cell.client.Cell.Context context, C object, SafeHtmlBuilder sb) { if (shouldRenderInput(object)) { selectCell.render(context, text, sb); } else { textCell.render(context, text, sb); } } @Override public void onBrowserEvent(Context context, Element parent, final C object, NativeEvent event, final ValueUpdater valueUpdater) { if (shouldRenderInput(object)) { selectCell.onBrowserEvent(context, parent, (String) object, event, new ValueUpdater() { @Override public void update(String value) { updateValue(value, object); } }); } else { textCell.onBrowserEvent(context, parent, (String) object, event, new ValueUpdater() { @Override public void update(String value) { updateValue(value, object); } }); } } protected void updateValue(String value, C object) { } boolean shouldRenderInput(C object) { Model model = (Model) object; switch (m.getStatus()) { case NEW: { List list = new ArrayList(); list.add(CONSTANTS.statusValueNewNew()); list.add(CONSTANTS.statusValueNewReleased()); list.add(CONSTANTS.statusValueNewNoImport()); selectCell = new SelectionCell(list); return true; } case RELEASED: { text = CONSTANTS.statusValueReleased(); return false; } case ERROR: { text = CONSTANTS.statusValueError(); return false; } default: { return false; } } } *Column* CustomStatusColumn statusColumn = new CustomStatusColumn() { @Override public ImportModel getValue(Model model) { return model; } }; *CellTable* CustomStatusColumn statusColumn = new CustomStatusColumn() { @Override public ImportModel getValue(Model model) { return model; } };statusColumn.setDataStoreName(ImportDataStoreConstants.getStatus()); statusColumn.setSortable(true); this.addColumn(statusColumn, CONSTANTS.statusLabel()); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Where to initialize an AsyncDataProvider?
Hi, like I announced before here is the link to a working example's sources on github. https://github.com/JochenSchnaidt/AsyncDataProviderExample Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Where to initialize an AsyncDataProvider?
Hi, works perfect now. Thank you all very much. I am going to publish a simplified example soon and will share the link here. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Where to initialize an AsyncDataProvider?
Hi all, thank you for your fast responds. My favorite way is to subclass my own provider and instantiate it in the constructor, like Jens wrote above. When I do it this way, how do I trigger a new search, besides onRangeChanged event? Thats the point I am worried about and the reason I didn't do that the first time. Regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Where to initialize an AsyncDataProvider?
Hi everybody, I have a short but painful question: Where is the right place to initialize my AsyncDataProvider? Story so far: In my Controller class I have my AsyncDataProvider as reference and the search method where I built the asynchronous callback and process my data, looks like this. private final ClientServiceAsync service = GWT.create(ClientService.class); private AsyncDataProvider provider; private List dataList = new ArrayList(); // other stuff here... void search(final TO_Search pSearchCriteria) { // Associate an async data provider to the table provider = new AsyncDataProvider() { @Override protected void onRangeChanged(HasData display) { final int start = display.getVisibleRange().getStart(); int length = display.getVisibleRange().getLength(); // Get the ColumnSortInfo from the table. final ColumnSortList sortList = view.cellTable.getColumnSortList(); final ColumnSortInfo sortInfo = sortList.get(0); final String dataStoreName = sortInfo.getColumn().getDataStoreName(); final boolean isAscending = sortInfo.isAscending(); AsyncCallback callback = new AsyncCallback() { @Override public void onFailure(Throwable caught) { Window.alert(caught.getMessage()); } @Override public void onSuccess(TO_Result data) { if (!GWT.isProdMode()) { GWT.log(this.getClass() + ": Remote Procedure Call - Success"); GWT.log(this.getClass() + ": No. of results = " + data.getCount()); } if (data.getCount() != 0) { dataList.addAll(data.getResults()); updateRowData(start, data.getResults()); updateRowCount(data.getCount(), true); if (data.isGoToFirstPage()) { view.setPagerFirstPage(); } } else { dataList.clear(); updateRowData(start, dataList); updateRowCount(data.getCount(), true); view.simplePopup.setWidget(new HTML(CONSTANTS.noSearchResults())); } } }; service.search(searchCriteria, start, length, dataStoreName, isAscending, callback); } }; } // end search() This solution works very well, most of time. Sometimes it shows a very strange behavior and comes up with old search results. And it looks absolutely wrong for me that the AsyncDataProvider is always new created for every search. Until now I have no other idea, how I could do this, because in the end, I need to call my service, which is defined in the AsyncDataProvider. Is this the right design? Thanks a lot in advance. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Design Decision RPC with AsyncDataProvider
Hi, I now started to give my columns DataStoreNames, works much better for a couple of requirements. Thank you so much for helping me on this topic. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Design Decision RPC with AsyncDataProvider
Hi all, I need an advice about a design question of my application. I am searching for a best practise for the following setup. Project is about an application for maintaining huge amounts of data from a database. Therefore I implemented a ui with UIBinder and a CellTable, data is provided by AsyncDataProvider. Layout is including paging. So basically in my ui class I have something like this: @UiHandler("loadButton") void onLoadButtonClick(ClickEvent event) { AsyncDataProvider provider = new AsyncDataProvider() { @Override protected void onRangeChanged(HasData display) { final int start = display.getVisibleRange().getStart(); int length = display.getVisibleRange().getLength(); // Get the ColumnSortInfo from the table. final ColumnSortList sortList = cellTable.getColumnSortList(); AsyncCallback> callback = new AsyncCallback>() { @Override public void onFailure(Throwable caught) { Window.alert(caught.getMessage()); } @Override public void onSuccess(List result) { updateRowData(start, result); } }; dataService.loadData(start, length, callback); } }; } I want to add column sorting to my view as well. Colum sorting also works with the onRangeChanged method. And here starts my problem. What is the best way to differ between my normal search request and a column sorting request? Do I need to differ? In my application so far I calculate which the next datasets for the ui are ( <- sounds strange? MS Word told me so). When processing always the same requests I need to analyse the source of the onRangeChanged event to go back on page one for a sort event. I don’t want to build a wrapping request with internal processing mode or something. Also I didn’t thought of the how to until now. So please group, what is the best way to get a clean interface with different methods for the different ui events? I hope my question is clear because it was very hard to describe and even now I must say the description is not good. I hope the point will be clear. Thanks in Advance. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: TabLayoutPanel get index of tab which added a special widget
Hi Donald, works perfect. Thank you very much. Have a great day. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
TabLayoutPanel get index of tab which added a special widget
Hi, I'm struggling getting the index of a tab in a TabLayoutPanel. I am working on legacy code so no big chance changing panel types and stuff. Code looks like this: TabLayoutPanel tabLayoutPanel = new TabLayoutPanel(); MyView myView = new MyView(); tabLayoutPanel.add(myView , "Tab name"); Later I need to select the right tab. tabPanel.selectTab(3); At the moment the tab containing myView is the fourth which is added but I want to avoid magic numbers. Is there an appropriate way to get the tab's index which contains myView? I tried searching by widget but without success. May be not a big question but till now my attempts failed. Today is not my day. Thanks in advance. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Mix up of the JavaScript files in modules
Hi everyone, I have a serious problem with my GWT project. I have two modules, each with client code, shared and server parts. One is called ‘administration’ and one ‘signup’. The module inherit each other because of some shared files (server classes of appengine) I call my JavaScript files via HTTP Servlets in the different packages. I differentiate the calls via servlet mapping in my web.xml Looks like this: administrationHTTP com.developergarden.app.eventmanagement.administration.server.AdministrationHTTPServlet signupHTTP com.developergarden.app.eventmanagement.signup.server.SignUpHTTPServlet signupHTTP /signup administrationHTTP So when I open http://...appspot.com should be called the administrationHTTP and when I open http://...appspot.com/signup should be called the signupHTTP. Fact is when I try to open the administrationHTTP the two servlets mix up and serve both JavaScripts. I first see my UI of the administration but then the signup disables all interaction. When I call my signup it works in first step (the part of the HTTP Servlet), but when the JavaScript is loaded it tries to load a login (which is the first action of my administration module) and so it dumps. I compile my modules in different folders ‘administration’ and ‘signup’ with ‘administration.nocache.js’ and ’signup.nocache.js’ and when signup/login is called (doesn’t exist, it only exists administration/login) it all fails. Has anybody an idea or know why my different modules mix up? I’m thankful for any advice. Best regards Jochen -- 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.
Re: Design of a GWT project
Hi, now I know what you mean with dictionary, works perfect thanks. I dont't need two html, like you explained to me earlier, I tried to explain why I thought I would need them. I did like you told me, works great with one page. At the moment I still run a servlet, but with the next update I will change it to a JSP. Thank you very very much. Best regards Jochen On Apr 21, 11:16 am, Jan Ehrhardt wrote: > In your host page add something like this: > > > var modules = {start:"module-name"}; > > > You can use it as a > Dictionaryhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... > your GWT code. > > From my point of view, I still don't understand, why you have to deal with > two different pages. A GWT application is a real client application. It is > started, when the host page loads and it is shut down, when you leave the > page (e. g. you're going to a different URL). In a well designed GWT > application, you should make the registration module a part of your > application and send the entered data through an Ajax request to the server > in the background. This would prevent you from shutting down your > application for registration and start it again after registration is done. > > The other point is, that JSPs might be easier to handle than servlets for > realizing the host page on the server. So use the JSP as your welcome file. > > Regards > Jan Ehrhardt > > 2010/4/20 Jochen Schnaidt > > > to 4) This is clear, that is what the httpservlet does. > > > to 3) I set the servlet as my welcome-file and it does ... nothing. > > Must I change another XML anywhere? By the way, the only way I found > > to set a script the way I need it is script/XML and I have not the > > faintest idea how I should use an XML to decide which module should be > > loaded. > > > Until yesterday I thought I know enough to handle this challenge but > > today I am feeling down. Thanks to Jan for helping me. > > > On 20 Apr., 15:04, Jan Ehrhardt wrote: > > > 3. The httpServlet makes anything on the html document > > > It makes the HTML including a script tag containing your > > configuration. > > > A JSP might be fine too. > > > > 4. The html is called > > > It's loaded inside the browser. > > > > Regards > > > Jan Ehrhardt > > > > 2010/4/20 Jochen Schnaidt > > > > > Okay, I don't understand how this should work... > > > > > So, you mean: > > > > 1. Requesting the application for example 'http://appname.appspot.com/ > > > > singnup?asdfghjkl' > > > > 2. A httpServlet gets this > > > > 3. The httpServlet makes anything on the html document > > > > 4. The html is called > > > > 5. In the OnModuleLoad this anything will be evaluated > > > > 6 According to this evaluation the right module will be loaded. > > > > > Is this right? > > > > > On Apr 20, 1:03 pm, Jan Ehrhardt wrote: > > > > > You can add a property (e. g. a Dictionary) to your host page. Your > > entry > > > > > point checks the property and loads the required module. Setting the > > > > > property is a task, the server has to do. > > > > > > I think, using one host page instead of two different pages with two > > > > > different URLs might be more efficient. > > > > > > Regards > > > > > Jan Ehrhardt > > > > > > 2010/4/20 Jochen Schnaidt > > > > > > > Okay, I read the docs and understand most of it. Is it possiple to > > > > > > describe which sequence should be loaded by the URL? > > > > > > > I planed that 'http://appname.appspot.com'istheadministration and > > > > > > 'http://appname.appspot.com/singnup?asdfghjkl' > > > > > > is the signup page for event 'asdfghjkl'. > > > > > > > I don't know if it is possible. My next step was to learn about > > > > > > servlet. But for a servlet I need a site to show my data, this is > > how > > > > > > I came to the 2nd page. I understand it this way, that code > > splitting > > > > > > mainly works on user events. So I need something like a switch in > > my > > > > > > onModuleLoad with the different splitpoints in the cases and the > > URL > > > > > > parameter in the statemant. > > > > > > > Is this right? Is it feasible? > > > > >
Re: Design of a GWT project
to 4) This is clear, that is what the httpservlet does. to 3) I set the servlet as my welcome-file and it does ... nothing. Must I change another XML anywhere? By the way, the only way I found to set a script the way I need it is script/XML and I have not the faintest idea how I should use an XML to decide which module should be loaded. Until yesterday I thought I know enough to handle this challenge but today I am feeling down. Thanks to Jan for helping me. On 20 Apr., 15:04, Jan Ehrhardt wrote: > 3. The httpServlet makes anything on the html document > It makes the HTML including a script tag containing your configuration. > A JSP might be fine too. > > 4. The html is called > It's loaded inside the browser. > > Regards > Jan Ehrhardt > > 2010/4/20 Jochen Schnaidt > > > > > Okay, I don't understand how this should work... > > > So, you mean: > > 1. Requesting the application for example 'http://appname.appspot.com/ > > singnup?asdfghjkl' > > 2. A httpServlet gets this > > 3. The httpServlet makes anything on the html document > > 4. The html is called > > 5. In the OnModuleLoad this anything will be evaluated > > 6 According to this evaluation the right module will be loaded. > > > Is this right? > > > On Apr 20, 1:03 pm, Jan Ehrhardt wrote: > > > You can add a property (e. g. a Dictionary) to your host page. Your entry > > > point checks the property and loads the required module. Setting the > > > property is a task, the server has to do. > > > > I think, using one host page instead of two different pages with two > > > different URLs might be more efficient. > > > > Regards > > > Jan Ehrhardt > > > > 2010/4/20 Jochen Schnaidt > > > > > Okay, I read the docs and understand most of it. Is it possiple to > > > > describe which sequence should be loaded by the URL? > > > > > I planed that 'http://appname.appspot.com'isthe administration and > > > > 'http://appname.appspot.com/singnup?asdfghjkl' > > > > is the signup page for event 'asdfghjkl'. > > > > > I don't know if it is possible. My next step was to learn about > > > > servlet. But for a servlet I need a site to show my data, this is how > > > > I came to the 2nd page. I understand it this way, that code splitting > > > > mainly works on user events. So I need something like a switch in my > > > > onModuleLoad with the different splitpoints in the cases and the URL > > > > parameter in the statemant. > > > > > Is this right? Is it feasible? > > > > > On Apr 20, 11:17 am, Jan Ehrhardt wrote: > > > > > In GWT 2.0 code splitting was introduced. You can have one big > > > > application, > > > > > that contains both modules. In the standard case you load your > > > > application > > > > > as before. In the registration case you can load a second module and > > use > > > > it. > > > > > This is much better than having two applications with different entry > > > > > points. It also allows you, to have some basic infrastructure, that's > > > > used > > > > > by both modules. So you can create a third module. > > > > > > If you design this correct, you'll get an extendable and modularized > > > > > application, that loads modules if required. That happens all in the > > same > > > > > host page, so no page reload. > > > > > > Regards > > > > > Jan Ehrhardt > > > > > > 2010/4/20 Jochen Schnaidt > > > > > > > Hi all, > > > > > > > I have a question about the design of a GWT project. > > > > > > I am working on an application for registration to events based on > > GWT > > > > > > and GAE. The application consists of three modules: administration > > > > > > (create, edit an event and reporting), signup (registration of > > guests) > > > > > > and a ‘desktop’ for the people working on the desk. > > > > > > At the moment I am finishing the first part administration. It is a > > > > > > classical RIA based on a DockLayout on one webpage. What I need now > > is > > > > > > a second Webpage where I can send my guests to register them to an > > > > > > event. I read a lot about this in the community but never found an > > > > > > answer h
Re: Design of a GWT project
Okay, I don't understand how this should work... So, you mean: 1. Requesting the application for example 'http://appname.appspot.com/ singnup?asdfghjkl' 2. A httpServlet gets this 3. The httpServlet makes anything on the html document 4. The html is called 5. In the OnModuleLoad this anything will be evaluated 6 According to this evaluation the right module will be loaded. Is this right? On Apr 20, 1:03 pm, Jan Ehrhardt wrote: > You can add a property (e. g. a Dictionary) to your host page. Your entry > point checks the property and loads the required module. Setting the > property is a task, the server has to do. > > I think, using one host page instead of two different pages with two > different URLs might be more efficient. > > Regards > Jan Ehrhardt > > 2010/4/20 Jochen Schnaidt > > > > > Okay, I read the docs and understand most of it. Is it possiple to > > describe which sequence should be loaded by the URL? > > > I planed that 'http://appname.appspot.com'is the administration and > > 'http://appname.appspot.com/singnup?asdfghjkl' > > is the signup page for event 'asdfghjkl'. > > > I don't know if it is possible. My next step was to learn about > > servlet. But for a servlet I need a site to show my data, this is how > > I came to the 2nd page. I understand it this way, that code splitting > > mainly works on user events. So I need something like a switch in my > > onModuleLoad with the different splitpoints in the cases and the URL > > parameter in the statemant. > > > Is this right? Is it feasible? > > > On Apr 20, 11:17 am, Jan Ehrhardt wrote: > > > In GWT 2.0 code splitting was introduced. You can have one big > > application, > > > that contains both modules. In the standard case you load your > > application > > > as before. In the registration case you can load a second module and use > > it. > > > This is much better than having two applications with different entry > > > points. It also allows you, to have some basic infrastructure, that's > > used > > > by both modules. So you can create a third module. > > > > If you design this correct, you'll get an extendable and modularized > > > application, that loads modules if required. That happens all in the same > > > host page, so no page reload. > > > > Regards > > > Jan Ehrhardt > > > > 2010/4/20 Jochen Schnaidt > > > > > Hi all, > > > > > I have a question about the design of a GWT project. > > > > I am working on an application for registration to events based on GWT > > > > and GAE. The application consists of three modules: administration > > > > (create, edit an event and reporting), signup (registration of guests) > > > > and a ‘desktop’ for the people working on the desk. > > > > At the moment I am finishing the first part administration. It is a > > > > classical RIA based on a DockLayout on one webpage. What I need now is > > > > a second Webpage where I can send my guests to register them to an > > > > event. I read a lot about this in the community but never found an > > > > answer how to do it right. > > > > When I add a second Webpage to my project and add a second entry point > > > > to the XML everything dumps. > > > > Must I create a second GWT project or is it possible to integrate this > > > > functions in a separated part of the existing project? > > > > > Ideas, comments are welcome. > > > > > Thanks a lot, greetings Jochen > > > > > -- > > > > 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. > > > > -- > > > 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 athttp:// > > grou
Re: Design of a GWT project
Okay, I read the docs and understand most of it. Is it possiple to describe which sequence should be loaded by the URL? I planed that 'http://appname.appspot.com' is the administration and 'http://appname.appspot.com/singnup?asdfghjkl' is the signup page for event 'asdfghjkl'. I don't know if it is possible. My next step was to learn about servlet. But for a servlet I need a site to show my data, this is how I came to the 2nd page. I understand it this way, that code splitting mainly works on user events. So I need something like a switch in my onModuleLoad with the different splitpoints in the cases and the URL parameter in the statemant. Is this right? Is it feasible? On Apr 20, 11:17 am, Jan Ehrhardt wrote: > In GWT 2.0 code splitting was introduced. You can have one big application, > that contains both modules. In the standard case you load your application > as before. In the registration case you can load a second module and use it. > This is much better than having two applications with different entry > points. It also allows you, to have some basic infrastructure, that's used > by both modules. So you can create a third module. > > If you design this correct, you'll get an extendable and modularized > application, that loads modules if required. That happens all in the same > host page, so no page reload. > > Regards > Jan Ehrhardt > > 2010/4/20 Jochen Schnaidt > > > > > Hi all, > > > I have a question about the design of a GWT project. > > I am working on an application for registration to events based on GWT > > and GAE. The application consists of three modules: administration > > (create, edit an event and reporting), signup (registration of guests) > > and a ‘desktop’ for the people working on the desk. > > At the moment I am finishing the first part administration. It is a > > classical RIA based on a DockLayout on one webpage. What I need now is > > a second Webpage where I can send my guests to register them to an > > event. I read a lot about this in the community but never found an > > answer how to do it right. > > When I add a second Webpage to my project and add a second entry point > > to the XML everything dumps. > > Must I create a second GWT project or is it possible to integrate this > > functions in a separated part of the existing project? > > > Ideas, comments are welcome. > > > Thanks a lot, greetings Jochen > > > -- > > 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. > > -- > 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 > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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.
Design of a GWT project
Hi all, I have a question about the design of a GWT project. I am working on an application for registration to events based on GWT and GAE. The application consists of three modules: administration (create, edit an event and reporting), signup (registration of guests) and a ‘desktop’ for the people working on the desk. At the moment I am finishing the first part administration. It is a classical RIA based on a DockLayout on one webpage. What I need now is a second Webpage where I can send my guests to register them to an event. I read a lot about this in the community but never found an answer how to do it right. When I add a second Webpage to my project and add a second entry point to the XML everything dumps. Must I create a second GWT project or is it possible to integrate this functions in a separated part of the existing project? Ideas, comments are welcome. Thanks a lot, greetings Jochen -- 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.
Re: Serialization of lists
Thank you very much. First problem solved. The javax.jdo.JDOException still occurs :-( On Apr 13, 4:06 pm, kozura wrote: > Check out these threads, it's a bug in the RPC serializer, there's a > workaround on the second link. > > http://groups.google.com/group/google-web-toolkit/browse_thread/threa...http://code.google.com/p/google-web-toolkit/issues/detail?id=4438 > > On Apr 13, 7:27 am, Jochen Schnaidt wrote: > > > Hi, > > I posted this already at the AppEngine forum but I think this is an > > interface problem so I post here as well. > > > I’m building an application with GWT and GAE and have a problem saving > > data in the datastore. In my application I generate a list which > > consists of lists of strings, looks this way: List> > > trackList; > > > It compiles but gives me a warning: > > > [WARN] Warnings in > > generated://D271BF8A9063BFFBB6E2618C9E23EF15/eventManagement/shared/HandleEventService_TypeSerializer.java' > > [WARN] Line 31: Referencing deprecated class > > 'com.google.gwt.user.client.ui.ChangeListenerCollection' > > And 3 other deprecated classes > > > When I run the application and call the method for saving data I get > > the following error: > > > javax.jdo.JDOException: Error creating the MetaDataManager for API > > "JDO" : > > NestedThrowables: > > java.lang.reflect.InvocationTargetException > > > I think the problem is that the compiler uses old GWT classes for > > serialization and not the classes of the GAE. Right? > > > Any idea how I could fix this problem? > > > Thanks a lot. Greetings -- 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.
Serialization of lists
Hi, I posted this already at the AppEngine forum but I think this is an interface problem so I post here as well. I’m building an application with GWT and GAE and have a problem saving data in the datastore. In my application I generate a list which consists of lists of strings, looks this way: List> trackList; It compiles but gives me a warning: [WARN] Warnings in generated://D271BF8A9063BFFBB6E2618C9E23EF15/eventManagement/shared/HandleEventService_TypeSerializer.java' [WARN] Line 31: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection' And 3 other deprecated classes When I run the application and call the method for saving data I get the following error: javax.jdo.JDOException: Error creating the MetaDataManager for API "JDO" : NestedThrowables: java.lang.reflect.InvocationTargetException I think the problem is that the compiler uses old GWT classes for serialization and not the classes of the GAE. Right? Any idea how I could fix this problem? Thanks a lot. Greetings -- 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.
Re: Using GlassPanel with DockLayoutPanel
In my preview I show data the user types in in a kind of form. Most text from several TextBoxes. I will test if the Dialog you mentioned is the right solution. On 7 Apr., 16:52, kozura wrote: > What are you displaying your preview in? If you use a PopupPanel or > Dialog, they have a method included for using a glasspanel around the > popup/dialog. I'm not sure about the incubator GlassPanel, things in > there are experimental and not necessarily brought up to date with new > GWT code. > > On Apr 7, 6:00 am, Jochen Schnaidt wrote: > > > Hi everybody, > > I have a question about the GlassPanel from the incubator. At the > > moment I have a layout this way > > > … > > RootLayoutPanel myRootLayoutPanel = RootLayoutPanel.get(); > > > // Initializing the DockLayoutPanel > > DockLayoutPanel myDockLayoutPanel = new DockLayoutPanel(Unit.PX); > > > public void onModuleLoad() { > > > // Adding the DockLayoutPanel to the RootLayoutPanel > > myRootLayoutPanel.add(myDockLayoutPanel); > > > myDockLayoutPanel.addNorth(new HTML("header"), 20); > > myDockLayoutPanel.addSouth(new HTML("footer"), 20); > > … > > > In my application I need to implement a preview window. So I thought I > > do it the new stylish way with a GlassPanel. I like to get a > > GlassPanel all over my Window but in the Docs the GlassPanel is only > > added to the RootPanel. Is there a possibility to use a Glass Panel in > > this way with a DockLayoutPanel? Plan is to add a button which closes > > the GlassPanel after the user hits it. > > Thanks for ideas. Greetings -- 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.
Re: Using GlassPanel with DockLayoutPanel
I show data the user types in in a kind of form in my preview. Most text from several TextBoxes. I will test if the Dialog you mentioned is the right solution. On 7 Apr., 16:52, kozura wrote: > What are you displaying your preview in? If you use a PopupPanel or > Dialog, they have a method included for using a glasspanel around the > popup/dialog. I'm not sure about the incubator GlassPanel, things in > there are experimental and not necessarily brought up to date with new > GWT code. > > On Apr 7, 6:00 am, Jochen Schnaidt wrote: > > > Hi everybody, > > I have a question about the GlassPanel from the incubator. At the > > moment I have a layout this way > > > … > > RootLayoutPanel myRootLayoutPanel = RootLayoutPanel.get(); > > > // Initializing the DockLayoutPanel > > DockLayoutPanel myDockLayoutPanel = new DockLayoutPanel(Unit.PX); > > > public void onModuleLoad() { > > > // Adding the DockLayoutPanel to the RootLayoutPanel > > myRootLayoutPanel.add(myDockLayoutPanel); > > > myDockLayoutPanel.addNorth(new HTML("header"), 20); > > myDockLayoutPanel.addSouth(new HTML("footer"), 20); > > … > > > In my application I need to implement a preview window. So I thought I > > do it the new stylish way with a GlassPanel. I like to get a > > GlassPanel all over my Window but in the Docs the GlassPanel is only > > added to the RootPanel. Is there a possibility to use a Glass Panel in > > this way with a DockLayoutPanel? Plan is to add a button which closes > > the GlassPanel after the user hits it. > > Thanks for ideas. Greetings -- 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.
Using GlassPanel with DockLayoutPanel
Hi everybody, I have a question about the GlassPanel from the incubator. At the moment I have a layout this way … RootLayoutPanel myRootLayoutPanel = RootLayoutPanel.get(); // Initializing the DockLayoutPanel DockLayoutPanel myDockLayoutPanel = new DockLayoutPanel(Unit.PX); public void onModuleLoad() { // Adding the DockLayoutPanel to the RootLayoutPanel myRootLayoutPanel.add(myDockLayoutPanel); myDockLayoutPanel.addNorth(new HTML("header"), 20); myDockLayoutPanel.addSouth(new HTML("footer"), 20); … In my application I need to implement a preview window. So I thought I do it the new stylish way with a GlassPanel. I like to get a GlassPanel all over my Window but in the Docs the GlassPanel is only added to the RootPanel. Is there a possibility to use a Glass Panel in this way with a DockLayoutPanel? Plan is to add a button which closes the GlassPanel after the user hits it. Thanks for ideas. Greetings -- 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.
Re: Coding dynamic parts with GWT
Hi, at the moment my 'number' is a Integer.parse of a String from a TextBox in a try/catch with errorhandling but my layout is not finished yet. Thanks for the idea, I didn't thought of that until now. On Mar 24, 4:19 pm, Jeff Chimene wrote: > Hi Jochen: > > One other item of note: you might want to eliminate the ability of the user > to enter an arbitrary value. For example, what happens if I enter -32767? or > 65536 as the value for "number"? > > Consider implementing the source of "number" as a listbox with a limited > size so that it't not possible to generate an absurd value for "number". Is > it the case that cardinality can range from zero to (say) five? > > On Wed, Mar 24, 2010 at 8:13 AM, Jochen Schnaidt > wrote: > > > Hi, > > I got it. The solution via List works. > > > For the next with this problem, here is my solution: > > > List trackList = new ArrayList(); > > > > for (int i = 0; i < number; i++) { > > TextBox track = new TextBox(); > > trackList.add(track); > > generateEventHeadPanel.add(track); > > } > > ... > > String text = trackList.get(index).getText(); > > > Thanks a lot. > > Jochen > > > -- > > 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. -- 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.
Re: Coding dynamic parts with GWT
Hi, I got it. The solution via List works. For the next with this problem, here is my solution: List trackList = new ArrayList(); for (int i = 0; i < number; i++) { TextBox track = new TextBox(); trackList.add(track); generateEventHeadPanel.add(track); } ... String text = trackList.get(index).getText(); Thanks a lot. Jochen -- 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.
Re: Coding dynamic parts with GWT
Thanks a lot. I will try it this way. -- 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.
Coding dynamic parts with GWT
Hi, I have a question about coding dynamic parts with GWT. I already searched for an answer, but didn’t find something which could help me. May be I have the wrong keywords? I don’t know… So, the problem: My concept is that my application reads a integer from a TextBox after the user wrote it in there e.g. 3 and then creates 3 new TextBoxes. I read the 3 no problems and have it in a variable but now I want to add the TextBoxes. In a scripting language I can build new objects and give a “dummyname” + digit as name to it and use it normal but in Java I can’t modify my variable’s name. So I need another method. I tried to make something like an array of TextBox but it didn’t work out. So please help me with this. I don’t get it on my own. Thanks a lot. Greetings Jochen -- 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.