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