Add support sub-group in the details view.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-07-13  Ben Konrath  <ben@bagu.org>
2
3         Add support sub-group in the details view.
4
5         I also removed the code that special-cased the default details view
6         layout. See:
7
8         http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
9
10         I still have to make a proper flowtable.
11
12         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
13         Don't special-case default details view layout.
14         * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
15         addLayoutField() as I'm going to use it.
16         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
17         GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
18         method.
19         * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
20         extracted from DetailsViewImpl.GroupPanel. Add support for
21         sub-groups.
22         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
23         column count when getting the details layout.
24
25 2011-07-12  Ben Konrath  <ben@bagu.org>
26
27         Set browser title with database and table titles.
28
29         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
30         Set the browser title when the table changes and when the activity
31         first starts.
32         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
33         title when retrieving document info (the GlomDocument object).
34         * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
35         with getter and setter methods. Remove unused convenience constructor.
36         Use default code formatting.
37
38 2011-07-12  Ben Konrath  <ben@bagu.org>
39
40         Ignore LayoutItemPortals in the details view.
41
42         I added a new DTO for the LayoutItemPortal so that I can ignore it in
43         the client code.
44
45         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
46         LayoutItemPortal layout objects.
47         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
48         LayoutItemPortal objects when retrieving the details layout.
49         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
50         file. This is an empty class and just used to get type information for
51         now.
52
53 2011-07-12  Ben Konrath  <ben@bagu.org>
54
55         Use java-libglom 1.17.0.
56
57         * pom.xml:
58
59 2011-07-11  Ben Konrath  <ben@bagu.org>
60
61         Remove "Table:" label from table selector.
62
63         This matches a recent change in the Glom UI.
64
65         * mockups/details-contacts.html:
66         * mockups/details-projects.html:
67         * mockups/listview-contacts.html:
68         * mockups/listview-projects.html: Remove the "Table:" label from the
69         mockups as well.
70         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
71
72 2011-07-11  Ben Konrath  <ben@bagu.org>
73
74         Add main groups to the details view.
75
76         This makes things look a little nicer in the details view. The next step
77         is to implement the flowtable.
78
79         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
80         resources from the standard gwt css theme. Standard.css is now
81         included in OnlineGlom.html so that the online glom css rules have
82         precedence over the gwt theme.
83         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
84         the whole LayoutGroup to the DetailsView instead of just the titles.
85         * src/main/java/org/glom/web/client/ui/DetailsView.java:
86         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
87         details layout with a helper class (GroupPanel). I might extract this
88         class when I make the full flowtable.
89         * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
90         string as default so I don't have to worry about NPEs when processing
91         the layout objects.
92         * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
93         note beside OnlineGlom.gwt.xml above).
94         * src/main/webapp/style.css: Add default font-size to body to override
95         the font-size set by the standard theme. Don't use h2 tags for
96         group-title. Create new details-cell class.
97
98 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
99
100         ConfiguredDocument: Set the port number too.
101
102         * src/main/java/org/glom/web/server/ConfiguredDocument.java
103         (ConfiguredDocument.ConfiguredDocument): Get the port number from the 
104         Glom document. Presumably this worked sometimes so far because there is a 
105         default port number.
106
107 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
108
109         ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
110
111         * src/main/java/org/glom/web/server/ConfiguredDocument.java
112         (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is 
113         correct, though we should throw an exception too.
114
115 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
116
117         Fix a addDocuemnt typo.
118
119         * src/main/java/org/glom/web/shared/Documents.java
120         (Documents.addDocuemnt): Rename to addDocument().
121         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
122         (OnlineGlomServiceImpl.getDocuments): Adapt.
123         
124 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
125
126         Slightly improved log output when connection fails.
127
128         * src/main/java/org/glom/web/server/ConfiguredDocument.java
129         (ConfiguredDocument.setUsernameAndPassword):
130         We don't know for sure if it' the username/password that's wrong, so 
131         rephrase the message.
132         Also ouput the exception message, though it's generic in this case.
133
134 2011-07-08  Ben Konrath  <ben@bagu.org>
135
136         Cleanup comments.
137
138         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
139         added braces to a one line if statement because the Eclipse formatter
140         was getting confused.
141
142 2011-07-07  Ben Konrath  <ben@bagu.org>
143
144         Update project config files for Eclipse 3.7 and use GWT 2.3.0.
145
146         These should really be two separate tasks but I counldn't get things to
147         work with GWT 2.2.0 and Eclipse 3.7.
148
149         * .classpath:
150         * .project:
151         * .settings/org.eclipse.jdt.core.prefs:
152         * .settings/org.eclipse.jdt.ui.prefs:
153         * .settings/org.eclipse.ltk.core.refactoring.prefs:
154         * .settings/org.eclipse.m2e.core.prefs:
155         Add new config files. Update current files. Remove references to the
156         webtools plugins as we're not using any of the webtools features.
157         * .gitignore: Add logs directory which is created when running with
158         'mvn gwt:run'.
159         * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
160         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
161         src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
162         limitation:
163         http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
164
165 2011-07-07  Murray Cumming  <murrayc@murrayc.com>
166
167         onlineglom.properties: Add explanatory comments.
168
169         * src/main/resources/onlineglom.properties: Also change the default user 
170         from ben to someuser, to avoid the risk of people thinking we just 
171         stupidly hard-coded a locale path, when they see that on stderr or in a log.
172
173 2011-06-28  Ben Konrath  <ben@bagu.org>
174
175         Use filename in Log for incorrect passwords.
176
177         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
178         getFileName(String) method to get the filename from the URI.
179
180 2011-06-28  Ben Konrath  <ben@bagu.org>
181
182         Add the table name to the URL token for the ListPlace.
183
184         This makes things consistent between the DetailsPlace and the
185         ListPlace. It also allows the the ListPlace to be bookmarked.
186
187         * src/main/java/org/glom/web/client/OnlineGlomService.java:
188         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
189         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
190         Remove getDefaultListLayout(). The default layout is now returned
191         by the getListLayout() method when the table name is an empty string.
192         * src/main/java/org/glom/web/client/activity/ListActivity.java:
193         Add table name field. Change to a new ListPlace when the table
194         has been changed. Use getListLayout() for getting the default
195         list layout.
196         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
197         Add table name field. Set the correct table name in the list box
198         when loading from bookmark. This corrects a problem for the
199         DetailsPlace too.
200         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
201         Move table name to super-class (HasSelectableTable). Move document
202         and table URL keys to super-class in HasSelectableTable.
203         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
204         Add table name field. Add Tokenizer class with URL key common to
205         the subclasses (DetailsPlace and ListPlace).
206         * src/main/java/org/glom/web/client/place/ListPlace.java:
207         Add table name. Add code to parse the URL token.
208         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
209         Update ListPlace construction with empty table name string.
210         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
211         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
212         Change setTableSelectedIndex(int) to setSelectedTableName(String).
213         Update ListPlace construction with table name string.
214         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
215         Change defaultTableName field to tableName to reflect how it's now
216         used. Update the getter and setter methods.
217
218 2011-06-28  Ben Konrath  <ben@bagu.org>
219
220         Enable the table selector in the DetailsView.
221
222         * src/main/java/org/glom/web/client/OnlineGlomService.java:
223         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
224         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
225         Remove getDefaultDetailsLayout(). The default layout is now returned
226         by the getDetailsLayout() method when the table name is an empty
227         string.
228         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
229         event handler for table change event. Change to using
230         getDetailsLayout() for the default details layout.
231         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
232         name to URL token.
233         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
234         when navigating to the details place.
235
236 2011-06-27  Ben Konrath  <ben@bagu.org>
237
238         Use filename based unique document ID in URL and for RPC.
239
240         The document ID is the glom document name with spaces (' ') replaced
241         with pluses ('+') and without the .glom extension.
242
243         This change is mostly a string substitution of 'documentTitle' for
244         'documentID'. The only code change is the addition of a Documents DTO to get the
245         filename to document title mappings as indicated below.
246
247         * src/main/java/org/glom/web/client/OnlineGlomService.java:
248         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
249         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
250         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
251         Use Documents DTO to create the document links in the document
252         selection view.
253         * src/main/java/org/glom/web/client/activity/ListActivity.java:
254         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
255         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
256         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
257         * src/main/java/org/glom/web/client/place/ListPlace.java:
258         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
259         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
260         * src/main/java/org/glom/web/client/ui/ListView.java:
261         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
262         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
263         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
264         * src/main/java/org/glom/web/server/Log.java:
265         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
266         getDocumentTitles() to getDocuments() and return the Documents DTO.
267         * src/main/java/org/glom/web/shared/Documents.java: New DTO for
268         transferring the filename to document title mappings.
269
270 2011-06-25  Ben Konrath  <ben@bagu.org>
271
272         Make the authentication popup work again.
273
274         This bug was introduced when I extracted ConfiguredDocument to its own class.
275
276         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
277         correct success / fail status in setUsernameAndPassword().
278
279 2011-06-25  Ben Konrath  <ben@bagu.org>
280
281         Use filename as unique key for configuring database usernames and passwords.
282
283         This replaces the use of the Glom document title which could change
284         depending on the locale. Thanks to Murray Cumming for pointing out this
285         problem.
286
287         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
288         * src/main/resources/onlineglom.properties:
289
290 2011-06-24  Ben Konrath  <ben@bagu.org>
291
292         Pass primary key value to DetailsView.
293
294         This enables the DetailsView to load the correct data.
295
296         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
297         primary key value field and set in constructor. Pass primary key
298         value to getDetailsData().
299         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
300         variables for document title and primary key value.
301         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
302         key value to the DetailsPlace.
303
304 2011-06-24  Ben Konrath  <ben@bagu.org>
305
306         Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
307
308         This allows the primary key to be retrieved by the Details button. This
309         functionality has not been implemented yet but it's in the works.
310
311         * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
312         the LayoutGroup result to ListView.setCellTable instead of all of its
313         fields individually.
314         * src/main/java/org/glom/web/client/ui/ListView.java:
315         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
316         LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
317         get the primary key for the table.
318         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
319         index of the primary key in the LayoutGroup accounting for hidden
320         primary keys. Rename getJavaNumberFormat() to
321         convertToJavaNumberFormat() for consistency. Cleanup / add some
322         comments.
323         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
324         field for primary key index and a field to indicate whether the
325         primary key is hidden or not.
326
327 2011-06-23  Ben Konrath  <ben@bagu.org>
328
329         Rename getTableData methods to getListData.
330
331         This is a rename refactor for consistency with other methods.
332
333         * src/main/java/org/glom/web/client/OnlineGlomService.java:
334         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
335         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
336         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
337
338 2011-06-23  Ben Konrath  <ben@bagu.org>
339
340         Extract the ConfiguredDocument innerclass into its own class.
341
342         This makes the servlet code more object oriented.
343
344         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
345         from private ConfiguredDocument class in OnlineGlomServiceImpl.
346         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
347         new ConfiguredDocument class.
348
349 2011-06-21  Ben Konrath  <ben@bagu.org>
350
351         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
352
353         This makes things more inline with how libglom works and reduces code
354         duplication. This refactor lays the groundwork for adding the primary key to
355         the LayoutGroup object.
356
357         * src/main/java/org/glom/web/client/OnlineGlomService.java:
358         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
359         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
360         Change method names to getListLayout and getDefaultListLayout for
361         consistency. Use LayoutGroup as the DTO for the list layout instead of
362         ColumnInfo and LayoutListTable.
363         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
364         new method names along with the LayoutGroup object for transferring the
365         list layout.
366         * src/main/java/org/glom/web/client/ui/ListView.java:
367         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
368         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
369         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
370         with LayoutGroup.
371         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
372         Replaced with LayoutGroup.
373         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
374         expectedResultSize and defaultTableName fields which are needed for
375         the list layout.
376         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
377         type field which is needed for the list layout but will also be
378         useful for the details layout as things progress.
379         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
380         Make class abstract. Remove the unnecessary
381         getFormattingHorizontalAlignment method. Add setFormatting method.
382
383 2011-06-16  Ben Konrath  <ben@bagu.org>
384
385         Add scripts for building and installing war.
386
387         These will help when updating OnlineGlom but they're also good
388         supplemental documentation of the build and deployment proceeding.
389
390         * utils/build-onlineglom-war.sh: New file.
391         * utils/install-onlineglom-war.sh: New file.
392
393 2011-06-16  Ben Konrath  <ben@bagu.org>
394
395         Create wrapper class to create consistent log messages.
396
397         I wrapped methods in the Log class of gwt-log to add the method names
398         from the servlet and create consistent formatting of the document title
399         and table names in the log messages.
400
401         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
402         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
403         log methods to use methods from wrapped Log class.
404
405 2011-06-16  Ben Konrath  <ben@bagu.org>
406
407         Remove superfluous conditional return.
408
409         Thanks to Murray Cumming for pointing this out!
410
411         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
412
413 2011-06-15  Ben Konrath  <ben@bagu.org>
414
415         Return an ArrayList of LayoutGroups for the Details layout.
416
417         This corrects a problem with the details layout as it can have more
418         than one top level LayoutGroup.
419
420         * src/main/java/org/glom/web/client/OnlineGlomService.java:
421         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
422         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
423         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
424         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
425         with ArrayList of LayoutGroups for the details view layout.
426         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
427         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
428         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
429         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
430         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
431         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
432
433 2011-06-14  Ben Konrath  <ben@bagu.org>
434
435         Use cast_dynamic method to determine the libglom LayoutItem type.
436
437         This is better than finding the LayoutItem type by using the string
438         returned from the get_part_type_name() method.
439
440         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
441
442 2011-06-14  Ben Konrath  <ben@bagu.org>
443
444         Add method names to log entries in the servlet.
445
446         This helps when tracking down deployment problems.
447
448         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
449
450 2011-06-14  Ben Konrath  <ben@bagu.org>
451
452         Add data to the DetailsView using a hard-coded primary key value.
453
454         The layout and functionality of the DetailsView is not complete. This
455         is just a checkpoint so the patch doesn't get too big.
456
457         * src/main/java/org/glom/web/client/OnlineGlomService.java:
458         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
459         Add getDetailsData() servlet method.
460         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
461         Add RPC to getDetailsData(). Change the way the LayoutGroups and
462         LayoutFields are added to the DetailsView.
463         * src/main/java/org/glom/web/client/ui/DetailsView.java:
464         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
465         Add setData() method. Change addLayoutGroup() and addLayoutField() to
466         take the string for the title instead of the object.
467         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
468         Add implementation getDetailsData() along with some private helper
469         methods.
470         * src/main/webapp/style.css: Add padding to details-data class. Add a
471         details-label class with the same padding as the details-data class.
472
473 2011-06-03  Ben Konrath  <ben@bagu.org>
474
475         Use presenter.goTo() to change to the DetailsPlace.
476
477         This will make things easier when we need to open the DetailsView with
478         data specific to the row that was clicked.
479
480         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
481
482 2011-06-02  Ben Konrath  <ben@bagu.org>
483
484         Add CSS file from mockups.
485
486         I'm adding this now because it's going to be useful to have when
487         developing the DetailsView. The TableSelectionView and ListView aren't
488         setup properly yet.
489
490         * src/main/webapp/OnlineGlom.html:
491         * src/main/webapp/style.css:
492
493 2011-06-02  Ben Konrath  <ben@bagu.org>
494
495         Use String.isEmpty() to check for empty string.
496
497         * src/main/java/org/glom/web/client/activity/ListActivity.java:
498
499 2011-06-02  Ben Konrath  <ben@bagu.org>
500
501         Display main layout group titles in the DetailsView.
502
503         This is the start of the DetailsActivity/DetailsView implementation.
504
505         * src/main/java/org/glom/web/client/OnlineGlomService.java:
506         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
507         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
508         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
509         Get the layout information for the details view from the server and set
510         the main layout group titles.
511         * src/main/java/org/glom/web/client/ui/DetailsView.java:
512         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
513         Add addLayoutGroup() and addLayoutField() methods. This are just
514         temporary methods for creating the the details view that will change
515         in the future.
516         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
517         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
518         methods.
519         * src/main/java/org/glom/web/shared/layout/Formatting.java:
520         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
521         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
522         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
523         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
524         Data Transfer Objects that mimic the libglom object structure. These are
525         used for transferring the details layout but could also be used for
526         transferring the list layout.
527
528 2011-05-27  Ben Konrath  <ben@bagu.org>
529
530         Reset the AuthenticationPopup when clearing the ListView.
531
532         * src/main/java/org/glom/web/client/activity/ListActivity.java:
533
534 2011-05-27  Ben Konrath  <ben@bagu.org>
535
536         Fix problem with onlineglom.properties file loading.
537
538         The old way worked in Eclipse but not on the server. Loading the
539         onlineglom.properties file now works in Eclipse and on the server.
540
541         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
542
543 2011-05-24  Ben Konrath  <ben@bagu.org>
544
545         Update gwt-log from 3.1.0 to 3.1.2.
546
547         Gwt-log 3.1.0 has been marked as depreciated.
548
549         * pom.xml:
550
551 2011-05-24  Ben Konrath  <ben@bagu.org>
552
553         Add comment to ListActivity.goTo() method.
554
555         * src/main/java/org/glom/web/client/activity/ListActivity.java:
556
557 2011-05-24  Ben Konrath  <ben@bagu.org>
558
559         Remove FIXME in convertGdkColorToHtmlColour()
560
561         The Gdk::Color value returned by libglom is 16-bits per channel on both
562         64 and 32-bit platforms.
563
564         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
565
566 2011-05-19  Ben Konrath  <ben@bagu.org>
567
568         Improve performance of initial ListView load.
569
570         I removed a round trip to the server for getting the default table name
571         and then requesting information about that table. This also removes a potential
572         problem with the table change handler not being setup in time to receive the
573         table change event from the ListActivity.
574
575         * src/main/java/org/glom/web/client/OnlineGlomService.java:
576         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
577         getDefaultLayoutListTable() method. Improve comments.
578         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
579         getDefaultLayoutListTable() method instead of firing a table change
580         event to get the table to load.
581         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
582         implementation of getDefaultLayoutListTable() method.
583         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
584         table name.
585
586 2011-05-19  Ben Konrath  <ben@bagu.org>
587
588         Override toDebugString() in TableChangeEvent.
589
590         This is useful to have for debugging.
591
592         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
593
594 2011-05-19  Ben Konrath  <ben@bagu.org>
595
596         Add a "Back to List" link when at the DetailsPlace.
597
598         * src/main/java/org/glom/web/client/activity/ListActivity.java:
599         Populate the CellTable based on the selected table of the ListBox if
600         it's set otherwise use the default table. This allows the "Back to
601         List" link to work.
602         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
603         Remove Place from constructors. Add a setPlace() method. Add
604         goToPlace() method. Set class as presenter for TableSelectionView.
605         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
606         Use the same TableSelectionActivity when switching between the List and
607         Details Places.
608         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
609         Subclass the new HasSelectableTablePlace. This removes some duplicate
610         code.
611         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
612         New class to represent Places that display the TableSelectionView.
613         * src/main/java/org/glom/web/client/place/ListPlace.java:
614         Subclass the new HasSelectableTablePlace. This removes some duplicate
615         code.
616         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
617         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
618         Add Presenter interface. Add setBackLinkVisible() method. Add
619         setBackLink() method.
620
621 2011-05-18  Ben Konrath  <ben@bagu.org>
622
623         Enable the "Details" buttons.
624
625         Right now only an empty details view is displayed.
626
627         * src/main/java/org/glom/web/client/ClientFactory.java:
628         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
629         Add DetailsView to ClientFactory.
630         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
631         A basic activity for the details view.
632         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
633         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
634         clearView().
635         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
636         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
637         GWT.
638         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
639         Create a new DetailsActivity when a DetailsPlace is requested. Remove
640         unnecessary super() in constructor.
641         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
642         Create a new TableSelectionActivity when a DetailsPlace is requested. We
643         really shouldn't create a new TableSelectionActivity for both the ListPlace
644         and the DetailsPlace so this should be considered a temporary solution.
645         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
646         New file. Represents a URL for the details view.
647         * src/main/java/org/glom/web/client/ui/DetailsView.java:
648         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
649         A basic details view interface and implementation.
650         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
651         Enable the "Details" buttons.
652
653 2011-05-12  Ben Konrath  <ben@bagu.org>
654
655         Use a LayoutPanel with multiple display areas for main layout.
656
657         This is mostly a refactor in that there are no changes from the user
658         point of view. These changes are required so that we can swap out the list view
659         with the details view when the user clicks the "Details" button.
660
661         * src/main/java/org/glom/web/client/ClientFactory.java:
662         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
663         OnlineGlomView. Add TableSelectionView, ListView and
664         AuthenticationPopup.
665         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
666         for main layout. Add display regions for main activities. Add
667         activity manager for for main activities.
668         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
669         file from parts of the deleted OnlineGlomActivity.
670         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
671         New file from parts of the deleted OnlineGlomActivity.
672         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
673         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
674         New files for app wide table change event.
675         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
676         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
677         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
678         Activity mappers for the main activities replace the deleted app-wide
679         AppActivityMapper.
680         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
681         Fix a spelling error in he comment.
682         * src/main/java/org/glom/web/client/ui/ListView.java:
683         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
684         Renamed from LayoutListView and modified for MVP. This still not a
685         proper dumb view as prescribed by the MVP pattern but it works for now.
686         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
687         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
688         New widget stripped out of the deleted OnlineGlomView.
689         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
690         Remove hack that is fixed by this patch.
691
692 2011-05-06  Ben Konrath  <ben@bagu.org>
693
694         Rename OnlineGlomPlace to ListPlace.
695
696         The only change besides the rename is that url will now display #list
697         instead of #Document.
698
699         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
700         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
701         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
702         * src/main/java/org/glom/web/client/place/ListPlace.java:
703         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
704
705 2011-05-06  Ben Konrath  <ben@bagu.org>
706
707         Use Presenter for app navigation.
708
709         This is the proper way to deal with Place (URL) changes with the MVP
710         framework.
711
712         * src/main/java/org/glom/web/client/ClientFactory.java:
713         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
714         PlaceHistoryMapper and PlaceHistoryHandler.
715         * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
716         PlaceHistoryMapper and PlaceHistoryHandler.
717         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
718         Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
719         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
720         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
721         Add Presenter interface and setPresenter methods. Rename addHyperLink
722         to addDocumentLink taking only the document title as a parameter.
723
724 2011-04-14  Ben Konrath  <ben@bagu.org>
725
726         Prompt for db username/password if they haven't been set.
727
728         This is implemented with a popup widget that is contained within the
729         OnlineGlomView and managed by the OnlineGlomActivity.
730
731         * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
732         methods for checking and setting the database username and password.
733         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
734         new methods for checking and setting the database username and
735         password.
736         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
737         Display authentication popup if the JDBC connection to the database
738         has not been authenticated.
739         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
740         file.
741         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
742         for dealing with the authentication popup.
743         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
744         Implement the methods for dealing with the authentication popup.
745         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
746         try to executed queries if the database connection hasn't been
747         authenticated. Implement methods for checking and setting the
748         database username and password.
749
750 2011-04-12  Ben Konrath  <ben@bagu.org>
751
752         Make log messages a little clearer.
753
754         Add a dash betweeen the document title and the table name.
755
756         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
757
758 2011-04-12  Ben Konrath  <ben@bagu.org>
759
760         Protect against NPEs when cleaning up database resources.
761
762         While this isn't strictly necessary because the exception is caught,
763         not protecting against the NPEs makes it harder to find the real error
764         in the log file.
765
766         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
767
768 2011-04-12  Ben Konrath  <ben@bagu.org>
769
770         Move configuration of the servlet to the constructor.
771
772         The servlet will be initialized even if the database authentication
773         information is not set or correct. I still need to add the UI for prompting
774         the user for the authentication information when it's required.
775
776         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
777         javadocs for getDocumentTitles() method.
778         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
779         Set error message when RPC fails.
780         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
781         glom files directory from the configuration file. Try to set the
782         database authentication information for the specific document if it's
783         set and works otherwise try to use the global authentication
784         information set for the directory.
785         * src/main/resources/onlineglom.properties: Moved from
786         src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
787         Added detailed comments for the new keys.
788
789 2011-04-11  Ben Konrath  <ben@bagu.org>
790
791         Remove unnecessary @Override in DocumentSelectionViewImpl.
792
793         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
794
795 2011-04-11  Ben Konrath  <ben@bagu.org>
796
797         Remove center alignment in DocumentSelectionView.
798
799         The title element is still centred but the document titles and bottom
800         sentence are both left-aligned.
801
802         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
803
804 2011-04-11  Ben Konrath  <ben@bagu.org>
805
806         Change 'Demo' naming convention to 'Document'.
807
808         This is just a rename refactor with no functional changes to the code.
809
810         * src/main/java/org/glom/web/client/ClientFactory.java:
811         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
812         * src/main/java/org/glom/web/client/OnlineGlom.java:
813         * src/main/java/org/glom/web/client/OnlineGlomService.java:
814         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
815         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
816         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
817         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
818         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
819         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
820         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
821         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
822         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
823
824 2011-04-08  Ben Konrath  <ben@bagu.org>
825
826         Remove FIXME from safeLongToInt() method.
827
828         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
829         this method.
830
831         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
832
833 2011-04-08  Ben Konrath  <ben@bagu.org>
834
835         Display an error if no glom documents are found in the specified directory.
836
837         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
838         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
839         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
840         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
841
842 2011-04-08  Ben Konrath  <ben@bagu.org>
843
844         Add copyright header to one more file ... oops.
845
846         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
847
848 2011-04-08  Ben Konrath  <ben@bagu.org>
849
850         Add copyright header to files without it.
851
852         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
853         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
854         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
855         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
856         * src/main/java/org/glom/web/shared/ColumnInfo.java:
857         * src/main/java/org/glom/web/shared/GlomField.java:
858
859 2011-04-08  Ben Konrath  <ben@bagu.org>
860
861         Add support for accessing multiple glom documents in the servlet.
862
863         This completes the demo selection functionality.
864
865         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
866         document title to methods.
867         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
868         document title to methods.
869         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
870         Set browser window title when the activity starts. Correct name of
871         document title variable.
872         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
873         Set browser window title when the activity starts. Set the table
874         selector change handler after table selector has been set. Clear the
875         OnlineGlomView when the activity has been stopped.
876         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
877         document title as the place token. Use "#Document:" instead of
878         "#OnlineGlomPlace:" in the URL.
879         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
880         Change heading to "Online Glom"
881         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
882         document title in RPC methods.
883         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
884         setDocumentTitle() method. Add clear() method.
885         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
886         setDocumentTitle() method. Implement clear() method which removes the
887         change handler on the ListBox, clears the ListBox and clears the
888         DataPanel.
889         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
890         Implement methods with document title. Keep track for the configured
891         glom documents and their corresponding JDBC configurations in a hash
892         table. This information is retrieved using the document title as the
893         key in the hash table.
894         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
895         document title field as it's no longer needed.
896
897 2011-04-08  Ben Konrath  <ben@bagu.org>
898
899         Update the Eclipse JDT configuration.
900
901         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
902         methods. Automatically add the copyright header to new files.
903
904 2011-04-05  Ben Konrath  <ben@bagu.org>
905
906         Add new page for demo selection.
907
908         This patch adds all the components required to view and start an
909         OnlineGlom demo by clicking on the desired hyperlink. The user is
910         able to return to the demo selection page with the browser's back
911         button. I still need to modify the servlet to work with multiple
912         documents so all demo links will load the file defined in the
913         OnlineGlom.properties.
914
915         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
916         This is only useful during development so we don't need to save it.
917         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
918         get a reference to the DemoSelectionView.
919         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
920         method to get a reference to the DemoSelectionView.
921         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
922         default view to DemoSelectionView.
923         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
924         to get glom document titles for glom files in a hard-coded directory.
925         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
926         method to get glom document titles for glom files in a hard-coded
927         directory.
928         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
929         Presenter for DemoSelectionView.
930         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
931         for DemoSelectionView.
932         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
933         Update for DemoSelectionView.
934         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
935         Basic 'Place' implementation for the DemoSelectionView.
936         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
937         The interface for the DemoSelectionView.
938         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
939         The implementation of the DemoSelectionView.
940         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
941         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
942         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
943         implementation of method to get glom document titles for glom files
944         in a hard-coded directory.
945         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
946         on longer being used.
947         * src/main/webapp/glom.png: Glom logo.
948
949 2011-04-05  Ben Konrath  <ben@bagu.org>
950
951         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
952
953         This is the forth and final commit of a refactor that will allow
954         OnlineGlom to be used with multiple documents.
955
956         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
957         Move RPC code from OnlineGlomViewImpl to this class.
958         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
959         to inferface.
960         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
961         RPC code to the presenter class (the P in MVP).
962
963 2011-04-04  Ben Konrath  <ben@bagu.org>
964
965         Start moving the existing OnlineGlom code to MVP.
966
967         This work is based on the GWT MVP framework that is documented here:
968
969         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
970
971         This is the third commit of a refactor that will allow OnlineGlom to
972         be used with multiple documents.
973
974         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
975         Interface for client factory which is used to get instances of various
976         classes throughout the app.
977         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
978         Implementation of client factory.
979         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
980         initialize the MVP framework.
981         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
982         New file. Activity manager for the main container widget. This is the
983         Presenter in MVP.
984         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
985         Maps place (URL) to its corresponding activity.
986         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
987         New file. This is just a place holder for a generated file.
988         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
989         New file. Represents the URL for the main Online Glom app.
990         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
991         for changes in LayoutListViewImpl.
992         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
993         interface for View. Move code to OnlineGlomViewImpl class.
994         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
995         file. Implementation of OnlineGlomView.
996         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
997         Place resources. Use ClientFactoryImpl by default.
998
999 2011-04-04  Ben Konrath  <ben@bagu.org>
1000
1001         Move View classes to their own package.
1002
1003         This is the second commit of a refactor that will allow OnlineGlom to
1004         be used with multiple documents.
1005
1006         * src/main/java/org/glom/web/client/OnlineGlom.java:
1007         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1008         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1009
1010 2011-04-02  Ben Konrath  <ben@bagu.org>
1011
1012         Move UI code from the main module to its own class.
1013
1014         This is the first commit of a refactor that will allow OnlineGlom to be
1015         used with multiple documents.
1016
1017         * src/main/java/org/glom/web/client/LayoutListView.java: Update
1018         references to OnlineGlom to OnlineGlomView.
1019         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1020         OnlineGlomView and instantiate it here.
1021         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1022         represents the main OnlineGlomView with one document.
1023
1024 2011-04-01  Ben Konrath  <ben@bagu.org>
1025
1026         Fix formatting of gwt.xml and add DTD.
1027
1028         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1029
1030 2011-03-30  Ben Konrath  <ben@bagu.org>
1031
1032         Propperly convert gdkColor string to html colour string.
1033
1034         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1035
1036 2011-03-28  Ben Konrath  <ben@bagu.org>
1037
1038         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1039
1040         This implementation matches
1041         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1042         readable and is not tied to Swig.
1043
1044         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1045
1046 2011-03-28  Ben Konrath  <ben@bagu.org>
1047
1048         Use read-only checkboxes for boolean field types.
1049
1050         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1051         in the CellTable based on the field type. It currently only
1052         distinguishes between boolean and text columns but I'll need to add
1053         support for more types.
1054         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1055         column type in the ColumnInfo object. Add method to convert between the
1056         glom field type enum in ColumnInfo and the glom field type in libglom.
1057         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1058         field type.
1059         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1060         getting and setting booleans.
1061
1062 2011-03-25  Ben Konrath  <ben@bagu.org>
1063
1064         Don't get the Date twice from the ResultSet.
1065
1066         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1067
1068 2011-03-25  Ben Konrath  <ben@bagu.org>
1069
1070         Cleanup code in the servlet.
1071
1072         * TODO: Remove item about row count. Add item about testing row count
1073         query with large number of rows.
1074         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1075         spelling mistakes, change method parameter to be consistent with
1076         other methods.
1077
1078 2011-03-25  Ben Konrath  <ben@bagu.org>
1079
1080         Add server side logging with the gwt-log library.
1081
1082         * .gitignore: Ignore the log file we're now producing.
1083         * TODO: Add a couple TODO item for logging.
1084         * pom.xml: Add gwt-log and log4j as a dependency.
1085         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1086         logging of errors, warnings and some important info.
1087         * src/main/resources/log4j.properties: New file to configure log4j.
1088
1089 2011-03-24  Ben Konrath  <ben@bagu.org>
1090
1091         Add a disable button for the Details view.
1092
1093         * src/main/java/org/glom/web/client/LayoutListView.java:
1094
1095 2011-03-22  Ben Konrath  <ben@bagu.org>
1096
1097         Use a count query to get the number of rows for the list view pager.
1098
1099         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1100
1101 2011-03-22  Ben Konrath  <ben@bagu.org>
1102
1103         Add more TODO information about CellTable pager positioning. 
1104
1105         * TODO:
1106
1107 2011-03-19  Ben Konrath  <ben@bagu.org>
1108
1109         Add TODO item about CellTable pager positioning.
1110
1111         * TODO:
1112
1113 2011-03-18  Ben Konrath  <ben@bagu.org>
1114
1115         Remove unneeded GlomFieldColumn class.
1116
1117         This is just a small code cleanup.
1118
1119         * src/main/java/org/glom/web/client/LayoutListView.java:
1120
1121 2011-03-18  Ben Konrath  <ben@bagu.org>
1122
1123         Use cursor mode in the query that gets data for the list view.
1124
1125         I still need to fix the potential memory problem when getting the row
1126         count for the list view.
1127
1128         * TODO: Add note about testing memory usage with large data sets. Add
1129         item about fixing row counting with large data sets.
1130         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1131         PostgreSQL JDBC driver into cursor mode when getting data for the
1132         list view.
1133
1134 2011-03-15  Ben Konrath  <ben@bagu.org>
1135
1136         Remove the GWT Container from the Eclipse build classpath.
1137
1138         The GWT dependencies are set by Maven so this isn't needed.
1139
1140         * .classpath:
1141
1142 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
1143
1144         Added some earlier mockups to git, but not to the tarball dist.
1145
1146         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1147         Openismus. These hopefully show how we might structure the HTML so that
1148         it can be styled easily with CSS. However, we probably need to adapt them
1149         for the CSS structure that GWT dictates for common widgets.
1150
1151 2011-03-14  Ben Konrath  <ben@bagu.org>
1152
1153         Locate OnlineGlom.properties using the ServletContext.
1154
1155         This is required to be able to locate the file in the deployed servlet.
1156
1157         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1158         Configure the database and glom document in in a helper method so
1159         that the ServletContext can be used to locate OnlineGlom.properties.
1160         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1161         src/main/webapp. This is the proper location for .properites files.
1162
1163 2011-03-12  Ben Konrath  <ben@bagu.org>
1164
1165         Add note to README about why we're compiling down to obfuscated JavaScript.
1166
1167         * README:
1168
1169 2011-03-11  Ben Konrath  <ben@bagu.org>
1170
1171         Use properties file to configure servlet.
1172
1173         This allows people to change the glom file path, db username and db
1174         password without recompiling the code.
1175
1176         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1177         * src/main/webapp/OnlineGlom.properties:
1178
1179 2011-03-11  Ben Konrath  <ben@bagu.org>
1180
1181         Use table fields in layout list view if the layout list is not defined.
1182
1183         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1184         Manually create a LayoutFieldVector for the query builder using the
1185         table fields when a layout list is not defined in the glom file.
1186
1187 2011-03-11  Ben Konrath  <ben@bagu.org>
1188
1189         Only show FIXME string for images when there's an image.
1190
1191         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1192         in this change are some small code cleanups.
1193
1194 2011-03-11  Ben Konrath  <ben@bagu.org>
1195
1196         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1197
1198         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1199
1200 2011-03-11  Ben Konrath  <ben@bagu.org>
1201
1202         Correctly set the index of the default table.
1203
1204         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1205         Correctly set the index of the default table. Add commented out example
1206         file paths.
1207
1208 2011-03-10  Ben Konrath  <ben@bagu.org>
1209
1210         Add comment to pom.xml about the previous change.
1211
1212         * pom.xml: Add comment about the deployment issue so that it's obvious
1213         why java-libglom is set to the provided scope.
1214
1215 2011-03-10  Ben Konrath  <ben@bagu.org>
1216
1217         Change java-libglom dependency from compile to provided in pom.xml.
1218
1219         Since java-libglom uses jni it can only be loaded once and therefore
1220         must be placed in $CATALINA_HOME/lib and not included in each war.
1221         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1222         More information about this issue can be found in the Tomcat 6 release
1223         notes in the "JNI Based Applications" section:
1224
1225         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1226
1227         * README: Remove note about this issue. Deployment info should really
1228         be on the wiki anyway so I'll add it right now.
1229         * pom.xml: Change java-libglom dependency from compile to provided so
1230         that it's copied in to the packaged war.
1231
1232 2011-03-09  Ben Konrath  <ben@bagu.org>
1233
1234         Change to using a neutral locale for currency, date and time formatting.
1235
1236         This solves the problem of currency values being represented without a
1237         space between the currency code and the number (e.g. "EUR5.89" is now
1238         represented as "EUR 5.89"). More work is required when we implement
1239         a locale preference setting.
1240
1241         * TODO: Add note about currency formatting issues with different
1242         locales.
1243         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1244         to using the neutral ROOT locale.
1245
1246 2011-03-09  Ben Konrath  <ben@bagu.org>
1247
1248         Add support for currency codes that are not ISO 4217 codes.
1249
1250         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1251         the currency code defined in the glom file when it's not 3 characters
1252         long or when Java doesn't recognize the string as an ISO 4217 code.
1253
1254 2011-03-08  Ben Konrath  <ben@bagu.org>
1255
1256         Remove test classes, launch configurations and configuration.
1257
1258         The test stuff was getting in the way when creating the war. To make
1259         the war file you can now do 'mvn clean package'. The packaged war file
1260         will be in the target directory.
1261
1262         * .classpath: Remove unused classpathentry for tests and i18n.
1263         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1264         property. Don't run test or i18n goals when packaging the war.
1265         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1266         formatting.
1267
1268         Removed files:
1269
1270         * OnlineGlomTest-dev.launch:
1271         * OnlineGlomTest-prod.launch:
1272         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1273         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1274
1275 2011-03-07  Ben Konrath  <ben@bagu.org>
1276
1277         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1278
1279         These fixes allow me to use 'mvn deploy' to create the war file.
1280
1281         * .classpath: This generated config has been updated by Eclipse. This
1282         change was probably triggered by me updating from Eclipse 3.6.1 to
1283         3.6.2.
1284         * .gitignore: Add entry to ignore the directory
1285         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1286         * .project: The generated config has been updated by Eclipse. This
1287         change was probably triggered by me updating from Eclipse 3.6.1 to
1288         3.6.2.
1289         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1290         so that Eclipse doesn't complain
1291         * pom.xml: Update to gwt-maven-plugin 2.2.0.
1292         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1293         'tests' directory to 'client' directory. This is the new
1294         gwt-maven-plugin convension.
1295         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1296         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1297
1298 2011-03-07  Ben Konrath  <ben@bagu.org>
1299
1300         Add support for horizontal alignment in the LayoutList columns.
1301
1302         * TODO: Remove item about horizontal alignment. Add item about
1303         improvements to ColumnInfo.
1304         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1305         alignment on the columns. Use ColumnInfo RPC object get the column
1306         title and horizontal alignment.
1307         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1308         LayoutListView creation with ColumnInfo RPC object.
1309         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1310         a ColumnInfo object for every LayoutList columnn. Convert the
1311         FieldFormatting.HorizontalAlignment to the correct
1312         ColumnnInfo.HorizontatlAlignment with the new
1313         getColumnInfoHorizontalAlignment helper method.
1314         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1315         to encapsulate column information like alignment and title. This
1316         could be used to set the colour instead of on a per cell field basis.
1317         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1318         column title storage and retrieval with ColumnInfo.
1319
1320 2011-03-04  Ben Konrath  <ben@bagu.org>
1321
1322         Add support for column sorting.
1323
1324         * src/main/java/org/glom/web/client/LayoutListView.java: Change
1325         AsynDataProvider to be an anonymous inner class. Use new
1326         getSortedTableData RPC method when column sort is requested. Set all
1327         columns sortable and add an AsyncHandler to activate sorting in the
1328         AsyncDataProvider.
1329         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1330         method getSortedTableData(). Cleanup other method signatures.
1331         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1332         new method getSortedTableData(). Cleanup other method signatures.
1333         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1334         Implement getSortedTableData() and getTableData() methods by using a
1335         private helper method with the appropriate parameters filled in. Use
1336         user supplied sort clause when supplied, otherwise fall back to
1337         sorting by the primary key. Move destroy() method to be underneath
1338         constructor for readability.  Cleanup comments.
1339
1340 2011-03-03  Ben Konrath  <ben@bagu.org>
1341
1342         Add support for colour text and colour backgrounds to the layout list cells.
1343
1344         Only the cell backgrounds are coloured which leaves a gap between the
1345         cells that isn't coloured. I need to figure out a way to set
1346         'style=background-colour:' on the whole column rather than just the
1347         cell.
1348
1349         * TODO: Add a note about colouring the background of the whole column.
1350         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1351         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1352         render the coloured text and backgrounds. Use GlomField[] for the row type.
1353         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1354         for the row type.
1355         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1356         GlomField[] for the row type.
1357         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1358         GlomField[] for the row type. Set the text, text colour and background
1359         colour in the GlomField objects as specified in the glom document. Add
1360         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1361         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1362         the glom field text, foreground colour and background colour.
1363
1364 2011-03-02  Ben Konrath  <ben@bagu.org>
1365
1366         Don't display hidden tables in the combo box.
1367
1368         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1369         ArrayLists.
1370         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1371         code to ignore hidden tables using ArrayLists for the table names and
1372         titles.
1373         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1374         tableNames to use ArrayLists instead of String[]. Update getter and setter
1375         methods.
1376
1377 2011-03-01  Ben Konrath  <ben@bagu.org>
1378
1379         Add support for Date and Time number types.
1380
1381         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1382         Implement formatting for Date and Time values. Change the default glom
1383         file to small business example.
1384
1385 2011-03-01  Ben Konrath  <ben@bagu.org>
1386
1387         Add support for formatting glom types as specified in the glom file.
1388
1389         Formatting isn't finished yet - I still need to add support for Date
1390         and Time values.
1391
1392         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1393         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1394         checks for null values in JDBC cleanup code and catch all exceptions
1395         instead of just SQLExceptions.
1396         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1397         method name.
1398
1399 2011-03-01  Ben Konrath  <ben@bagu.org>
1400
1401         Use GWT 2.2.0 instead of 2.1.1.
1402
1403         * pom.xml: Change GWT version numbers.
1404
1405 2011-03-01  Ben Konrath  <ben@bagu.org>
1406
1407         A few small code cleanups.
1408
1409         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1410         duplicate for loop.
1411         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1412         unnecessary object creation in constructor.
1413         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1414         unnecessary object creation in constructor.
1415
1416 2011-02-28  Ben Konrath  <ben@bagu.org>
1417
1418         Add file for TODO list.
1419
1420         * TODO: New file.
1421
1422 2011-02-18  Ben Konrath  <ben@bagu.org>
1423
1424         Enable the CellTable Pager when more than 20 rows need to be viewed.
1425
1426         The Pager will automatically become active when the results are larger
1427         than the CellTable size which is currently set to 20 lines.
1428
1429         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1430         name on debug statment in RPC call in LayoutListDataProvider, add
1431         numRows parameter to LayoutListView constructor, propperly set rowCount
1432         in CellTable.
1433         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1434         name on debug statment in RPC call, use LayoutListTable object in RPC
1435         calls, pass rowCount to LayoutListView.
1436         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1437         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1438         object.
1439         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1440         interface for changes in OnlineGlomService.
1441         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1442         getLayoutListHeaders() to getLayoutListTable() and return
1443         LayoutListTable. Using this object allows me to pass other information
1444         about the LayoutList like the expected number of rows in the result set.
1445         The Connection object from the connection pool is now propperly closed.
1446         Only the requested number of lines are returned to the client in
1447         getTableData().
1448         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1449         GlomTable and add columnTitles and numRows.
1450
1451 2011-02-18  Ben Konrath  <ben@bagu.org>
1452
1453         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1454
1455         This is a small performance boost. I'll use GlomTable to get the required
1456         layoutlist information.
1457
1458         * src/main/java/org/glom/web/client/OnlineGlom.java:
1459         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1460         * src/main/java/org/glom/web/shared/GlomDocument.java:
1461
1462 2011-02-18  Ben Konrath  <ben@bagu.org>
1463
1464         Add option to turn off formatting in JDT formatter preferences.
1465
1466         * .settings/org.eclipse.jdt.core.prefs:
1467
1468 2011-02-18  Ben Konrath  <ben@bagu.org>
1469
1470         Rename LayoutList to LayoutListView.
1471
1472         I'm working towards setting things up to easily use MVP when the time
1473         comes.
1474
1475         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1476         LayoutList.java.
1477         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1478         references.
1479
1480 2011-02-17  Ben Konrath  <ben@bagu.org>
1481
1482         Move LayoutListDataProvider class into LayoutList.java.
1483
1484         * src/main/java/org/glom/web/client/LayoutList.java:
1485
1486 2011-02-17  Ben Konrath  <ben@bagu.org>
1487
1488         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1489
1490         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1491         references.
1492         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1493         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1494         from LibGlomServer.java.
1495         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1496         Rename from LibGlomServiceAsync.java.
1497         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1498         Rename from LibGlomServiceImpl.java.
1499         * src/main/webapp/WEB-INF/web.xml: Update configuration.
1500
1501 2011-02-17  Ben Konrath  <ben@bagu.org>
1502
1503         Update JDT settings.
1504
1505         * .settings/org.eclipse.jdt.core.prefs:
1506
1507 2011-02-17  Ben Konrath  <ben@bagu.org>
1508
1509         Move GWT-RPC objects to shared package (where they should be).
1510
1511         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1512         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1513         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1514         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1515         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1516         org.glom.web.shared package.
1517         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1518         org.glom.web.shared package.
1519         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1520         directory in compilation to javascript.
1521
1522 2011-02-16  Ben Konrath  <ben@bagu.org>
1523
1524         Add sort clause to the sql query that grabs table information.
1525
1526         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1527         if one of the columns is a primary key.
1528
1529 2011-02-16  Ben Konrath  <ben@bagu.org>
1530
1531         Disable generateAsync feature of gwt-maven.
1532
1533         The generated interface does not correctly match the methods in LibGlomService
1534         and the generated singleton Util inner-class doesn't respect the servlet
1535         mappings.
1536
1537         * pom.xml: Turn off generateAsync feature.
1538         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1539         with singleton Util inner-class.
1540
1541 2011-02-14  Ben Konrath  <ben@bagu.org>
1542
1543         Add LGPL v3 licence notices.
1544
1545         Followed directions listed here:
1546         http://www.gnu.org/licenses/gpl-howto.html
1547
1548         * COPYING: This file is a copy of the GPL v3.
1549         * COPYING.LESSER: This file is a copy of the LGPL v3.
1550         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1551         notice.
1552         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1553         notice.
1554         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1555         notice.
1556         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1557         licence notice.
1558         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1559         notice.
1560         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1561         notice.
1562         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1563         licence notice.
1564
1565 2011-02-14  Ben Konrath  <ben@bagu.org>
1566
1567         Use ArrayList instead of Array in GWT-RPC calls.
1568
1569         Apparently this gives a slight performance boost to the compiled
1570         java script.
1571
1572         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1573         instead of Array.
1574         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1575         of Array.
1576
1577 2011-02-14  Ben Konrath  <ben@bagu.org>
1578
1579         Access data from a postgres db rather than the example glom file.
1580
1581         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1582         compile down to obfuscated javascript.
1583         * pom.xml: Add c3p0 and postgres JDBC libraries.
1584         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1585         using a postgres db accessed through the c3p0 connection pooling library.
1586
1587 2011-02-14  Ben Konrath  <ben@bagu.org>
1588
1589         Update Java formatter settings.
1590
1591         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1592
1593 2011-02-02  Ben Konrath  <ben@bagu.org>
1594
1595         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1596
1597         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1598         using Maven.
1599         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1600         the compiled webapp directory that Eclipse uses as we're using Maven now.
1601         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1602         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1603         to 1.6.
1604         * pom.xml: Format file, change target Java version to 1.6.
1605
1606 2011-02-02  Ben Konrath  <ben@bagu.org>
1607
1608         Add information about a deployment related issue.
1609
1610         * README: Add Notes section with the problem outlined.
1611
1612 2011-02-02  Ben Konrath  <ben@bagu.org>
1613
1614         Call Glom.libglom_deinit() when the servlet is shutdown.
1615
1616         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1617         Glom.libglom_deinit() to destroy() method.
1618
1619 2011-01-28  Ben Konrath  <ben@bagu.org>
1620
1621         Use generated Util class to get the RPC Async interface.
1622
1623         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1624         file.
1625         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1626         getInstance() method to get a reference to the RPC Async interface.
1627         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1628         getInstance() method to get a reference to the RPC Async interface, remove
1629         the now unused getLibGlomServiceProxy() method.
1630
1631 2011-01-27  Ben Konrath  <ben@bagu.org>
1632
1633         Cleanup ChangeLog entry from previous commit.
1634
1635         * ChangeLog: Group logical changes together and add comments.
1636
1637 2011-01-25  Ben Konrath  <ben@bagu.org>
1638
1639         Convert to gwt-maven project.
1640
1641         * .gitignore: Update for new project structure.
1642         * README: New file with a link to the online documentation.
1643         * pom.xml: The generated maven configuration file with some tweaks.
1644
1645         Add / update Eclipse settings. These files are a merge of the files that
1646         were generated with the gwt-maven plugin and the files we were previously
1647         using.
1648         * .classpath:
1649         * .project:
1650         * .settings/.jsdtscope:
1651         * .settings/com.google.gdt.eclipse.core.prefs:
1652         * .settings/com.google.gwt.eclipse.core.prefs:
1653         * .settings/org.eclipse.jdt.core.prefs:
1654         * .settings/org.eclipse.wst.common.component:
1655         * .settings/org.eclipse.wst.common.project.facet.core.xml:
1656         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1657         * .settings/org.maven.ide.eclipse.prefs:
1658         * OnlineGlomTest-dev.launch:
1659         * OnlineGlomTest-prod.launch:
1660
1661         Java source files moved from the 'src' directory to the directory structure
1662         required by maven.
1663         * src/main/java/org/glom/web/client/GlomDocument.java:
1664         * src/main/java/org/glom/web/client/GlomTable.java:
1665         * src/main/java/org/glom/web/client/LayoutList.java:
1666         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1667         * src/main/java/org/glom/web/client/LibGlomService.java:
1668         * src/main/java/org/glom/web/client/OnlineGlom.java:
1669         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1670
1671         Non-functional property file used for translations. I included this as
1672         reminder that it's something I need to sort out.
1673         * src/main/resources/org/glom/web/client/Messages.properties:
1674
1675         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1676         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1677
1678         The servlet configuration files moved from the 'war' directory.
1679         * src/main/webapp/OnlineGlom.css:
1680         * src/main/webapp/OnlineGlom.html:
1681         * src/main/webapp/WEB-INF/web.xml:
1682
1683         Generated test files with most of the code commented out. I included these
1684         so that it's easy to add tests when we're ready for them.
1685         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1686         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1687
1688 2011-01-25  Ben Konrath  <ben@bagu.org>
1689
1690         Remove unused println.
1691
1692         * src/org/glom/web/server/LibGlomServiceImpl.java:
1693
1694 2011-01-25  Ben Konrath  <ben@bagu.org>
1695
1696         Add project specific JDT settings.
1697
1698         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1699         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1700
1701 2011-01-25  Ben Konrath  <ben@bagu.org>
1702
1703         Populate celltable with example data.
1704
1705         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1706         * src/org/glom/web/client/GlomTable.java: Correct formatting.
1707         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1708         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1709         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1710         asynchronously gets the example data.
1711         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1712         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1713         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1714         curently selected table to be retrieved by other widgets.
1715         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1716         implement getTableData() in a hacky way. This method needs to be updated
1717         to grab information from the database when database creating is
1718         implemented.
1719
1720 2011-01-20  Ben Konrath  <ben@bagu.org>
1721
1722         Set table headers when table dropBox changes.
1723
1724         * src/org/glom/web/client/GlomDocument.java: Correct some method
1725         names.
1726         * src/org/glom/web/client/LibGlomService.java: Add method
1727         to get list layout field names.
1728         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1729         to get list layout field names.
1730         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1731         widget for list layout table.
1732         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1733         the table drop box and add new updateTable() method to asynchronously
1734         get the layout list field names for the currently selected table.
1735         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1736         implementation of getLayoutListHeaders() method.
1737         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1738
1739 2011-01-18  Ben Konrath  <ben@bagu.org>
1740
1741         Make a listBox with table titles instead of the flexTable demo.
1742
1743         This is the start of something more useful.
1744
1745         * .classpath: Exclude a bunch of packages from the JVM that are
1746         getting in the way of the Eclipse content assist.
1747         * src/org/glom/web/client/GlomDocument.java:
1748         * src/org/glom/web/client/GlomTable.java:
1749         * src/org/glom/web/client/LibGlomService.java:
1750         * src/org/glom/web/client/LibGlomServiceAsync.java:
1751         * src/org/glom/web/client/OnlineGlom.java:
1752         * src/org/glom/web/server/LibGlomServiceImpl.java:
1753         * war/OnlineGlom.html:
1754         * war/WEB-INF/web.xml:
1755
1756 211-01-13  Ben Konrath  <ben@bagu.org>
1757
1758         Update to new java-libglom API.
1759
1760         * .gitignore: Ignore OnlineGlom.war.
1761         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1762
1763 2010-12-20  Ben Konrath  <ben@bagu.org>
1764
1765         Add some basic style to the table listing.
1766
1767         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1768         header, print useful error message on async callback failure.
1769         * war/OnlineGlom.css: Add style for table header, remove defaults
1770         provided by the Eclipse project wizard.
1771
1772 2010-12-20  Ben Konrath  <ben@bagu.org>
1773
1774         Load example file from installed glom dir.
1775
1776         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1777         provided by java-libglom to find the example file.
1778
1779 2010-12-20  Ben Konrath  <ben@bagu.org>
1780
1781         Update Eclipse settings.
1782
1783         * .classpath:
1784         * .settings/com.google.gdt.eclipse.core.prefs:
1785         * .settings/com.google.gwt.eclipse.core.prefs:
1786
1787 2010-12-17  Ben Konrath  <ben@bagu.org>
1788
1789         Initial commit.
1790
1791         * .classpath: New file.
1792         * .gitignore: New file.
1793         * .project: New file.
1794         * .settings/com.google.gdt.eclipse.core.prefs: New file.
1795         * .settings/com.google.gwt.eclipse.core.prefs: New file.
1796         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1797         * src/org/glom/web/client/GlomTable.java: New file.
1798         * src/org/glom/web/client/OnlineGlom.java: New file.
1799         * src/org/glom/web/client/TableNameService.java: New file.
1800         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1801         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1802         * war/OnlineGlom.css: New file.
1803         * war/OnlineGlom.html: New file.
1804         * war/WEB-INF/web.xml: New file.
1805         * war/images/glom.png: New file.