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