1 2011-07-07 Murray Cumming <murrayc@murrayc.com>
3 onlineglom.properties: Add explanatory comments.
5 * src/main/resources/onlineglom.properties: Also change the default user
6 from ben to someuser, to avoid the risk of people thinking we just
7 stupidly hard-coded a locale path, when they see that on stderr or in a log.
9 2011-06-28 Ben Konrath <ben@bagu.org>
11 Use filename in Log for incorrect passwords.
13 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
14 getFileName(String) method to get the filename from the URI.
16 2011-06-28 Ben Konrath <ben@bagu.org>
18 Add the table name to the URL token for the ListPlace.
20 This makes things consistent between the DetailsPlace and the
21 ListPlace. It also allows the the ListPlace to be bookmarked.
23 * src/main/java/org/glom/web/client/OnlineGlomService.java:
24 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
25 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
26 Remove getDefaultListLayout(). The default layout is now returned
27 by the getListLayout() method when the table name is an empty string.
28 * src/main/java/org/glom/web/client/activity/ListActivity.java:
29 Add table name field. Change to a new ListPlace when the table
30 has been changed. Use getListLayout() for getting the default
32 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
33 Add table name field. Set the correct table name in the list box
34 when loading from bookmark. This corrects a problem for the
36 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
37 Move table name to super-class (HasSelectableTable). Move document
38 and table URL keys to super-class in HasSelectableTable.
39 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
40 Add table name field. Add Tokenizer class with URL key common to
41 the subclasses (DetailsPlace and ListPlace).
42 * src/main/java/org/glom/web/client/place/ListPlace.java:
43 Add table name. Add code to parse the URL token.
44 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
45 Update ListPlace construction with empty table name string.
46 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
47 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
48 Change setTableSelectedIndex(int) to setSelectedTableName(String).
49 Update ListPlace construction with table name string.
50 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
51 Change defaultTableName field to tableName to reflect how it's now
52 used. Update the getter and setter methods.
54 2011-06-28 Ben Konrath <ben@bagu.org>
56 Enable the table selector in the DetailsView.
58 * src/main/java/org/glom/web/client/OnlineGlomService.java:
59 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
60 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
61 Remove getDefaultDetailsLayout(). The default layout is now returned
62 by the getDetailsLayout() method when the table name is an empty
64 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
65 event handler for table change event. Change to using
66 getDetailsLayout() for the default details layout.
67 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
69 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
70 when navigating to the details place.
72 2011-06-27 Ben Konrath <ben@bagu.org>
74 Use filename based unique document ID in URL and for RPC.
76 The document ID is the glom document name with spaces (' ') replaced
77 with pluses ('+') and without the .glom extension.
79 This change is mostly a string substitution of 'documentTitle' for
80 'documentID'. The only code change is the addition of a Documents DTO to get the
81 filename to document title mappings as indicated below.
83 * src/main/java/org/glom/web/client/OnlineGlomService.java:
84 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
85 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
86 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
87 Use Documents DTO to create the document links in the document
89 * src/main/java/org/glom/web/client/activity/ListActivity.java:
90 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
91 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
92 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
93 * src/main/java/org/glom/web/client/place/ListPlace.java:
94 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
95 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
96 * src/main/java/org/glom/web/client/ui/ListView.java:
97 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
98 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
99 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
100 * src/main/java/org/glom/web/server/Log.java:
101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
102 getDocumentTitles() to getDocuments() and return the Documents DTO.
103 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
104 transferring the filename to document title mappings.
106 2011-06-25 Ben Konrath <ben@bagu.org>
108 Make the authentication popup work again.
110 This bug was introduced when I extracted ConfiguredDocument to its own class.
112 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
113 correct success / fail status in setUsernameAndPassword().
115 2011-06-25 Ben Konrath <ben@bagu.org>
117 Use filename as unique key for configuring database usernames and passwords.
119 This replaces the use of the Glom document title which could change
120 depending on the locale. Thanks to Murray Cumming for pointing out this
123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
124 * src/main/resources/onlineglom.properties:
126 2011-06-24 Ben Konrath <ben@bagu.org>
128 Pass primary key value to DetailsView.
130 This enables the DetailsView to load the correct data.
132 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
133 primary key value field and set in constructor. Pass primary key
134 value to getDetailsData().
135 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
136 variables for document title and primary key value.
137 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
138 key value to the DetailsPlace.
140 2011-06-24 Ben Konrath <ben@bagu.org>
142 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
144 This allows the primary key to be retrieved by the Details button. This
145 functionality has not been implemented yet but it's in the works.
147 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
148 the LayoutGroup result to ListView.setCellTable instead of all of its
150 * src/main/java/org/glom/web/client/ui/ListView.java:
151 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
152 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
153 get the primary key for the table.
154 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
155 index of the primary key in the LayoutGroup accounting for hidden
156 primary keys. Rename getJavaNumberFormat() to
157 convertToJavaNumberFormat() for consistency. Cleanup / add some
159 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
160 field for primary key index and a field to indicate whether the
161 primary key is hidden or not.
163 2011-06-23 Ben Konrath <ben@bagu.org>
165 Rename getTableData methods to getListData.
167 This is a rename refactor for consistency with other methods.
169 * src/main/java/org/glom/web/client/OnlineGlomService.java:
170 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
171 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
172 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
174 2011-06-23 Ben Konrath <ben@bagu.org>
176 Extract the ConfiguredDocument innerclass into its own class.
178 This makes the servlet code more object oriented.
180 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
181 from private ConfiguredDocument class in OnlineGlomServiceImpl.
182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
183 new ConfiguredDocument class.
185 2011-06-21 Ben Konrath <ben@bagu.org>
187 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
189 This makes things more inline with how libglom works and reduces code
190 duplication. This refactor lays the groundwork for adding the primary key to
191 the LayoutGroup object.
193 * src/main/java/org/glom/web/client/OnlineGlomService.java:
194 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
195 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
196 Change method names to getListLayout and getDefaultListLayout for
197 consistency. Use LayoutGroup as the DTO for the list layout instead of
198 ColumnInfo and LayoutListTable.
199 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
200 new method names along with the LayoutGroup object for transferring the
202 * src/main/java/org/glom/web/client/ui/ListView.java:
203 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
204 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
205 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
207 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
208 Replaced with LayoutGroup.
209 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
210 expectedResultSize and defaultTableName fields which are needed for
212 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
213 type field which is needed for the list layout but will also be
214 useful for the details layout as things progress.
215 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
216 Make class abstract. Remove the unnecessary
217 getFormattingHorizontalAlignment method. Add setFormatting method.
219 2011-06-16 Ben Konrath <ben@bagu.org>
221 Add scripts for building and installing war.
223 These will help when updating OnlineGlom but they're also good
224 supplemental documentation of the build and deployment proceeding.
226 * utils/build-onlineglom-war.sh: New file.
227 * utils/install-onlineglom-war.sh: New file.
229 2011-06-16 Ben Konrath <ben@bagu.org>
231 Create wrapper class to create consistent log messages.
233 I wrapped methods in the Log class of gwt-log to add the method names
234 from the servlet and create consistent formatting of the document title
235 and table names in the log messages.
237 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
239 log methods to use methods from wrapped Log class.
241 2011-06-16 Ben Konrath <ben@bagu.org>
243 Remove superfluous conditional return.
245 Thanks to Murray Cumming for pointing this out!
247 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
249 2011-06-15 Ben Konrath <ben@bagu.org>
251 Return an ArrayList of LayoutGroups for the Details layout.
253 This corrects a problem with the details layout as it can have more
254 than one top level LayoutGroup.
256 * src/main/java/org/glom/web/client/OnlineGlomService.java:
257 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
258 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
259 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
260 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
261 with ArrayList of LayoutGroups for the details view layout.
262 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
263 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
264 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
265 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
266 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
267 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
269 2011-06-14 Ben Konrath <ben@bagu.org>
271 Use cast_dynamic method to determine the libglom LayoutItem type.
273 This is better than finding the LayoutItem type by using the string
274 returned from the get_part_type_name() method.
276 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
278 2011-06-14 Ben Konrath <ben@bagu.org>
280 Add method names to log entries in the servlet.
282 This helps when tracking down deployment problems.
284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
286 2011-06-14 Ben Konrath <ben@bagu.org>
288 Add data to the DetailsView using a hard-coded primary key value.
290 The layout and functionality of the DetailsView is not complete. This
291 is just a checkpoint so the patch doesn't get too big.
293 * src/main/java/org/glom/web/client/OnlineGlomService.java:
294 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
295 Add getDetailsData() servlet method.
296 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
297 Add RPC to getDetailsData(). Change the way the LayoutGroups and
298 LayoutFields are added to the DetailsView.
299 * src/main/java/org/glom/web/client/ui/DetailsView.java:
300 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
301 Add setData() method. Change addLayoutGroup() and addLayoutField() to
302 take the string for the title instead of the object.
303 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
304 Add implementation getDetailsData() along with some private helper
306 * src/main/webapp/style.css: Add padding to details-data class. Add a
307 details-label class with the same padding as the details-data class.
309 2011-06-03 Ben Konrath <ben@bagu.org>
311 Use presenter.goTo() to change to the DetailsPlace.
313 This will make things easier when we need to open the DetailsView with
314 data specific to the row that was clicked.
316 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
318 2011-06-02 Ben Konrath <ben@bagu.org>
320 Add CSS file from mockups.
322 I'm adding this now because it's going to be useful to have when
323 developing the DetailsView. The TableSelectionView and ListView aren't
326 * src/main/webapp/OnlineGlom.html:
327 * src/main/webapp/style.css:
329 2011-06-02 Ben Konrath <ben@bagu.org>
331 Use String.isEmpty() to check for empty string.
333 * src/main/java/org/glom/web/client/activity/ListActivity.java:
335 2011-06-02 Ben Konrath <ben@bagu.org>
337 Display main layout group titles in the DetailsView.
339 This is the start of the DetailsActivity/DetailsView implementation.
341 * src/main/java/org/glom/web/client/OnlineGlomService.java:
342 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
343 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
344 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
345 Get the layout information for the details view from the server and set
346 the main layout group titles.
347 * src/main/java/org/glom/web/client/ui/DetailsView.java:
348 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
349 Add addLayoutGroup() and addLayoutField() methods. This are just
350 temporary methods for creating the the details view that will change
352 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
353 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
355 * src/main/java/org/glom/web/shared/layout/Formatting.java:
356 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
357 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
358 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
359 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
360 Data Transfer Objects that mimic the libglom object structure. These are
361 used for transferring the details layout but could also be used for
362 transferring the list layout.
364 2011-05-27 Ben Konrath <ben@bagu.org>
366 Reset the AuthenticationPopup when clearing the ListView.
368 * src/main/java/org/glom/web/client/activity/ListActivity.java:
370 2011-05-27 Ben Konrath <ben@bagu.org>
372 Fix problem with onlineglom.properties file loading.
374 The old way worked in Eclipse but not on the server. Loading the
375 onlineglom.properties file now works in Eclipse and on the server.
377 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
379 2011-05-24 Ben Konrath <ben@bagu.org>
381 Update gwt-log from 3.1.0 to 3.1.2.
383 Gwt-log 3.1.0 has been marked as depreciated.
387 2011-05-24 Ben Konrath <ben@bagu.org>
389 Add comment to ListActivity.goTo() method.
391 * src/main/java/org/glom/web/client/activity/ListActivity.java:
393 2011-05-24 Ben Konrath <ben@bagu.org>
395 Remove FIXME in convertGdkColorToHtmlColour()
397 The Gdk::Color value returned by libglom is 16-bits per channel on both
398 64 and 32-bit platforms.
400 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
402 2011-05-19 Ben Konrath <ben@bagu.org>
404 Improve performance of initial ListView load.
406 I removed a round trip to the server for getting the default table name
407 and then requesting information about that table. This also removes a potential
408 problem with the table change handler not being setup in time to receive the
409 table change event from the ListActivity.
411 * src/main/java/org/glom/web/client/OnlineGlomService.java:
412 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
413 getDefaultLayoutListTable() method. Improve comments.
414 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
415 getDefaultLayoutListTable() method instead of firing a table change
416 event to get the table to load.
417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
418 implementation of getDefaultLayoutListTable() method.
419 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
422 2011-05-19 Ben Konrath <ben@bagu.org>
424 Override toDebugString() in TableChangeEvent.
426 This is useful to have for debugging.
428 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
430 2011-05-19 Ben Konrath <ben@bagu.org>
432 Add a "Back to List" link when at the DetailsPlace.
434 * src/main/java/org/glom/web/client/activity/ListActivity.java:
435 Populate the CellTable based on the selected table of the ListBox if
436 it's set otherwise use the default table. This allows the "Back to
438 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
439 Remove Place from constructors. Add a setPlace() method. Add
440 goToPlace() method. Set class as presenter for TableSelectionView.
441 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
442 Use the same TableSelectionActivity when switching between the List and
444 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
445 Subclass the new HasSelectableTablePlace. This removes some duplicate
447 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
448 New class to represent Places that display the TableSelectionView.
449 * src/main/java/org/glom/web/client/place/ListPlace.java:
450 Subclass the new HasSelectableTablePlace. This removes some duplicate
452 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
453 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
454 Add Presenter interface. Add setBackLinkVisible() method. Add
455 setBackLink() method.
457 2011-05-18 Ben Konrath <ben@bagu.org>
459 Enable the "Details" buttons.
461 Right now only an empty details view is displayed.
463 * src/main/java/org/glom/web/client/ClientFactory.java:
464 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
465 Add DetailsView to ClientFactory.
466 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
467 A basic activity for the details view.
468 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
469 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
471 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
472 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
474 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
475 Create a new DetailsActivity when a DetailsPlace is requested. Remove
476 unnecessary super() in constructor.
477 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
478 Create a new TableSelectionActivity when a DetailsPlace is requested. We
479 really shouldn't create a new TableSelectionActivity for both the ListPlace
480 and the DetailsPlace so this should be considered a temporary solution.
481 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
482 New file. Represents a URL for the details view.
483 * src/main/java/org/glom/web/client/ui/DetailsView.java:
484 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
485 A basic details view interface and implementation.
486 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
487 Enable the "Details" buttons.
489 2011-05-12 Ben Konrath <ben@bagu.org>
491 Use a LayoutPanel with multiple display areas for main layout.
493 This is mostly a refactor in that there are no changes from the user
494 point of view. These changes are required so that we can swap out the list view
495 with the details view when the user clicks the "Details" button.
497 * src/main/java/org/glom/web/client/ClientFactory.java:
498 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
499 OnlineGlomView. Add TableSelectionView, ListView and
501 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
502 for main layout. Add display regions for main activities. Add
503 activity manager for for main activities.
504 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
505 file from parts of the deleted OnlineGlomActivity.
506 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
507 New file from parts of the deleted OnlineGlomActivity.
508 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
509 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
510 New files for app wide table change event.
511 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
512 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
513 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
514 Activity mappers for the main activities replace the deleted app-wide
516 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
517 Fix a spelling error in he comment.
518 * src/main/java/org/glom/web/client/ui/ListView.java:
519 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
520 Renamed from LayoutListView and modified for MVP. This still not a
521 proper dumb view as prescribed by the MVP pattern but it works for now.
522 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
523 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
524 New widget stripped out of the deleted OnlineGlomView.
525 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
526 Remove hack that is fixed by this patch.
528 2011-05-06 Ben Konrath <ben@bagu.org>
530 Rename OnlineGlomPlace to ListPlace.
532 The only change besides the rename is that url will now display #list
533 instead of #Document.
535 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
536 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
537 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
538 * src/main/java/org/glom/web/client/place/ListPlace.java:
539 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
541 2011-05-06 Ben Konrath <ben@bagu.org>
543 Use Presenter for app navigation.
545 This is the proper way to deal with Place (URL) changes with the MVP
548 * src/main/java/org/glom/web/client/ClientFactory.java:
549 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
550 PlaceHistoryMapper and PlaceHistoryHandler.
551 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
552 PlaceHistoryMapper and PlaceHistoryHandler.
553 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
554 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
555 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
556 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
557 Add Presenter interface and setPresenter methods. Rename addHyperLink
558 to addDocumentLink taking only the document title as a parameter.
560 2011-04-14 Ben Konrath <ben@bagu.org>
562 Prompt for db username/password if they haven't been set.
564 This is implemented with a popup widget that is contained within the
565 OnlineGlomView and managed by the OnlineGlomActivity.
567 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
568 methods for checking and setting the database username and password.
569 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
570 new methods for checking and setting the database username and
572 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
573 Display authentication popup if the JDBC connection to the database
574 has not been authenticated.
575 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
577 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
578 for dealing with the authentication popup.
579 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
580 Implement the methods for dealing with the authentication popup.
581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
582 try to executed queries if the database connection hasn't been
583 authenticated. Implement methods for checking and setting the
584 database username and password.
586 2011-04-12 Ben Konrath <ben@bagu.org>
588 Make log messages a little clearer.
590 Add a dash betweeen the document title and the table name.
592 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
594 2011-04-12 Ben Konrath <ben@bagu.org>
596 Protect against NPEs when cleaning up database resources.
598 While this isn't strictly necessary because the exception is caught,
599 not protecting against the NPEs makes it harder to find the real error
602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
604 2011-04-12 Ben Konrath <ben@bagu.org>
606 Move configuration of the servlet to the constructor.
608 The servlet will be initialized even if the database authentication
609 information is not set or correct. I still need to add the UI for prompting
610 the user for the authentication information when it's required.
612 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
613 javadocs for getDocumentTitles() method.
614 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
615 Set error message when RPC fails.
616 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
617 glom files directory from the configuration file. Try to set the
618 database authentication information for the specific document if it's
619 set and works otherwise try to use the global authentication
620 information set for the directory.
621 * src/main/resources/onlineglom.properties: Moved from
622 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
623 Added detailed comments for the new keys.
625 2011-04-11 Ben Konrath <ben@bagu.org>
627 Remove unnecessary @Override in DocumentSelectionViewImpl.
629 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
631 2011-04-11 Ben Konrath <ben@bagu.org>
633 Remove center alignment in DocumentSelectionView.
635 The title element is still centred but the document titles and bottom
636 sentence are both left-aligned.
638 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
640 2011-04-11 Ben Konrath <ben@bagu.org>
642 Change 'Demo' naming convention to 'Document'.
644 This is just a rename refactor with no functional changes to the code.
646 * src/main/java/org/glom/web/client/ClientFactory.java:
647 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
648 * src/main/java/org/glom/web/client/OnlineGlom.java:
649 * src/main/java/org/glom/web/client/OnlineGlomService.java:
650 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
651 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
652 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
653 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
654 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
655 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
656 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
657 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
660 2011-04-08 Ben Konrath <ben@bagu.org>
662 Remove FIXME from safeLongToInt() method.
664 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
667 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
669 2011-04-08 Ben Konrath <ben@bagu.org>
671 Display an error if no glom documents are found in the specified directory.
673 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
674 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
675 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
676 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
678 2011-04-08 Ben Konrath <ben@bagu.org>
680 Add copyright header to one more file ... oops.
682 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
684 2011-04-08 Ben Konrath <ben@bagu.org>
686 Add copyright header to files without it.
688 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
689 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
690 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
691 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
692 * src/main/java/org/glom/web/shared/ColumnInfo.java:
693 * src/main/java/org/glom/web/shared/GlomField.java:
695 2011-04-08 Ben Konrath <ben@bagu.org>
697 Add support for accessing multiple glom documents in the servlet.
699 This completes the demo selection functionality.
701 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
702 document title to methods.
703 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
704 document title to methods.
705 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
706 Set browser window title when the activity starts. Correct name of
707 document title variable.
708 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
709 Set browser window title when the activity starts. Set the table
710 selector change handler after table selector has been set. Clear the
711 OnlineGlomView when the activity has been stopped.
712 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
713 document title as the place token. Use "#Document:" instead of
714 "#OnlineGlomPlace:" in the URL.
715 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
716 Change heading to "Online Glom"
717 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
718 document title in RPC methods.
719 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
720 setDocumentTitle() method. Add clear() method.
721 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
722 setDocumentTitle() method. Implement clear() method which removes the
723 change handler on the ListBox, clears the ListBox and clears the
725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
726 Implement methods with document title. Keep track for the configured
727 glom documents and their corresponding JDBC configurations in a hash
728 table. This information is retrieved using the document title as the
729 key in the hash table.
730 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
731 document title field as it's no longer needed.
733 2011-04-08 Ben Konrath <ben@bagu.org>
735 Update the Eclipse JDT configuration.
737 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
738 methods. Automatically add the copyright header to new files.
740 2011-04-05 Ben Konrath <ben@bagu.org>
742 Add new page for demo selection.
744 This patch adds all the components required to view and start an
745 OnlineGlom demo by clicking on the desired hyperlink. The user is
746 able to return to the demo selection page with the browser's back
747 button. I still need to modify the servlet to work with multiple
748 documents so all demo links will load the file defined in the
749 OnlineGlom.properties.
751 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
752 This is only useful during development so we don't need to save it.
753 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
754 get a reference to the DemoSelectionView.
755 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
756 method to get a reference to the DemoSelectionView.
757 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
758 default view to DemoSelectionView.
759 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
760 to get glom document titles for glom files in a hard-coded directory.
761 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
762 method to get glom document titles for glom files in a hard-coded
764 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
765 Presenter for DemoSelectionView.
766 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
767 for DemoSelectionView.
768 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
769 Update for DemoSelectionView.
770 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
771 Basic 'Place' implementation for the DemoSelectionView.
772 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
773 The interface for the DemoSelectionView.
774 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
775 The implementation of the DemoSelectionView.
776 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
777 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
778 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
779 implementation of method to get glom document titles for glom files
780 in a hard-coded directory.
781 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
782 on longer being used.
783 * src/main/webapp/glom.png: Glom logo.
785 2011-04-05 Ben Konrath <ben@bagu.org>
787 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
789 This is the forth and final commit of a refactor that will allow
790 OnlineGlom to be used with multiple documents.
792 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
793 Move RPC code from OnlineGlomViewImpl to this class.
794 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
796 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
797 RPC code to the presenter class (the P in MVP).
799 2011-04-04 Ben Konrath <ben@bagu.org>
801 Start moving the existing OnlineGlom code to MVP.
803 This work is based on the GWT MVP framework that is documented here:
805 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
807 This is the third commit of a refactor that will allow OnlineGlom to
808 be used with multiple documents.
810 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
811 Interface for client factory which is used to get instances of various
812 classes throughout the app.
813 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
814 Implementation of client factory.
815 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
816 initialize the MVP framework.
817 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
818 New file. Activity manager for the main container widget. This is the
820 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
821 Maps place (URL) to its corresponding activity.
822 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
823 New file. This is just a place holder for a generated file.
824 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
825 New file. Represents the URL for the main Online Glom app.
826 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
827 for changes in LayoutListViewImpl.
828 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
829 interface for View. Move code to OnlineGlomViewImpl class.
830 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
831 file. Implementation of OnlineGlomView.
832 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
833 Place resources. Use ClientFactoryImpl by default.
835 2011-04-04 Ben Konrath <ben@bagu.org>
837 Move View classes to their own package.
839 This is the second commit of a refactor that will allow OnlineGlom to
840 be used with multiple documents.
842 * src/main/java/org/glom/web/client/OnlineGlom.java:
843 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
844 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
846 2011-04-02 Ben Konrath <ben@bagu.org>
848 Move UI code from the main module to its own class.
850 This is the first commit of a refactor that will allow OnlineGlom to be
851 used with multiple documents.
853 * src/main/java/org/glom/web/client/LayoutListView.java: Update
854 references to OnlineGlom to OnlineGlomView.
855 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
856 OnlineGlomView and instantiate it here.
857 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
858 represents the main OnlineGlomView with one document.
860 2011-04-01 Ben Konrath <ben@bagu.org>
862 Fix formatting of gwt.xml and add DTD.
864 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
866 2011-03-30 Ben Konrath <ben@bagu.org>
868 Propperly convert gdkColor string to html colour string.
870 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
872 2011-03-28 Ben Konrath <ben@bagu.org>
874 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
876 This implementation matches
877 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
878 readable and is not tied to Swig.
880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
882 2011-03-28 Ben Konrath <ben@bagu.org>
884 Use read-only checkboxes for boolean field types.
886 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
887 in the CellTable based on the field type. It currently only
888 distinguishes between boolean and text columns but I'll need to add
889 support for more types.
890 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
891 column type in the ColumnInfo object. Add method to convert between the
892 glom field type enum in ColumnInfo and the glom field type in libglom.
893 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
895 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
896 getting and setting booleans.
898 2011-03-25 Ben Konrath <ben@bagu.org>
900 Don't get the Date twice from the ResultSet.
902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
904 2011-03-25 Ben Konrath <ben@bagu.org>
906 Cleanup code in the servlet.
908 * TODO: Remove item about row count. Add item about testing row count
909 query with large number of rows.
910 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
911 spelling mistakes, change method parameter to be consistent with
914 2011-03-25 Ben Konrath <ben@bagu.org>
916 Add server side logging with the gwt-log library.
918 * .gitignore: Ignore the log file we're now producing.
919 * TODO: Add a couple TODO item for logging.
920 * pom.xml: Add gwt-log and log4j as a dependency.
921 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
922 logging of errors, warnings and some important info.
923 * src/main/resources/log4j.properties: New file to configure log4j.
925 2011-03-24 Ben Konrath <ben@bagu.org>
927 Add a disable button for the Details view.
929 * src/main/java/org/glom/web/client/LayoutListView.java:
931 2011-03-22 Ben Konrath <ben@bagu.org>
933 Use a count query to get the number of rows for the list view pager.
935 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
937 2011-03-22 Ben Konrath <ben@bagu.org>
939 Add more TODO information about CellTable pager positioning.
943 2011-03-19 Ben Konrath <ben@bagu.org>
945 Add TODO item about CellTable pager positioning.
949 2011-03-18 Ben Konrath <ben@bagu.org>
951 Remove unneeded GlomFieldColumn class.
953 This is just a small code cleanup.
955 * src/main/java/org/glom/web/client/LayoutListView.java:
957 2011-03-18 Ben Konrath <ben@bagu.org>
959 Use cursor mode in the query that gets data for the list view.
961 I still need to fix the potential memory problem when getting the row
962 count for the list view.
964 * TODO: Add note about testing memory usage with large data sets. Add
965 item about fixing row counting with large data sets.
966 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
967 PostgreSQL JDBC driver into cursor mode when getting data for the
970 2011-03-15 Ben Konrath <ben@bagu.org>
972 Remove the GWT Container from the Eclipse build classpath.
974 The GWT dependencies are set by Maven so this isn't needed.
978 2011-03-15 Murray Cumming <murrayc@murrayc.com>
980 Added some earlier mockups to git, but not to the tarball dist.
982 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
983 Openismus. These hopefully show how we might structure the HTML so that
984 it can be styled easily with CSS. However, we probably need to adapt them
985 for the CSS structure that GWT dictates for common widgets.
987 2011-03-14 Ben Konrath <ben@bagu.org>
989 Locate OnlineGlom.properties using the ServletContext.
991 This is required to be able to locate the file in the deployed servlet.
993 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
994 Configure the database and glom document in in a helper method so
995 that the ServletContext can be used to locate OnlineGlom.properties.
996 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
997 src/main/webapp. This is the proper location for .properites files.
999 2011-03-12 Ben Konrath <ben@bagu.org>
1001 Add note to README about why we're compiling down to obfuscated JavaScript.
1005 2011-03-11 Ben Konrath <ben@bagu.org>
1007 Use properties file to configure servlet.
1009 This allows people to change the glom file path, db username and db
1010 password without recompiling the code.
1012 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1013 * src/main/webapp/OnlineGlom.properties:
1015 2011-03-11 Ben Konrath <ben@bagu.org>
1017 Use table fields in layout list view if the layout list is not defined.
1019 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1020 Manually create a LayoutFieldVector for the query builder using the
1021 table fields when a layout list is not defined in the glom file.
1023 2011-03-11 Ben Konrath <ben@bagu.org>
1025 Only show FIXME string for images when there's an image.
1027 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1028 in this change are some small code cleanups.
1030 2011-03-11 Ben Konrath <ben@bagu.org>
1032 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1034 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1036 2011-03-11 Ben Konrath <ben@bagu.org>
1038 Correctly set the index of the default table.
1040 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1041 Correctly set the index of the default table. Add commented out example
1044 2011-03-10 Ben Konrath <ben@bagu.org>
1046 Add comment to pom.xml about the previous change.
1048 * pom.xml: Add comment about the deployment issue so that it's obvious
1049 why java-libglom is set to the provided scope.
1051 2011-03-10 Ben Konrath <ben@bagu.org>
1053 Change java-libglom dependency from compile to provided in pom.xml.
1055 Since java-libglom uses jni it can only be loaded once and therefore
1056 must be placed in $CATALINA_HOME/lib and not included in each war.
1057 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1058 More information about this issue can be found in the Tomcat 6 release
1059 notes in the "JNI Based Applications" section:
1061 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1063 * README: Remove note about this issue. Deployment info should really
1064 be on the wiki anyway so I'll add it right now.
1065 * pom.xml: Change java-libglom dependency from compile to provided so
1066 that it's copied in to the packaged war.
1068 2011-03-09 Ben Konrath <ben@bagu.org>
1070 Change to using a neutral locale for currency, date and time formatting.
1072 This solves the problem of currency values being represented without a
1073 space between the currency code and the number (e.g. "EUR5.89" is now
1074 represented as "EUR 5.89"). More work is required when we implement
1075 a locale preference setting.
1077 * TODO: Add note about currency formatting issues with different
1079 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1080 to using the neutral ROOT locale.
1082 2011-03-09 Ben Konrath <ben@bagu.org>
1084 Add support for currency codes that are not ISO 4217 codes.
1086 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1087 the currency code defined in the glom file when it's not 3 characters
1088 long or when Java doesn't recognize the string as an ISO 4217 code.
1090 2011-03-08 Ben Konrath <ben@bagu.org>
1092 Remove test classes, launch configurations and configuration.
1094 The test stuff was getting in the way when creating the war. To make
1095 the war file you can now do 'mvn clean package'. The packaged war file
1096 will be in the target directory.
1098 * .classpath: Remove unused classpathentry for tests and i18n.
1099 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1100 property. Don't run test or i18n goals when packaging the war.
1101 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1106 * OnlineGlomTest-dev.launch:
1107 * OnlineGlomTest-prod.launch:
1108 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1109 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1111 2011-03-07 Ben Konrath <ben@bagu.org>
1113 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1115 These fixes allow me to use 'mvn deploy' to create the war file.
1117 * .classpath: This generated config has been updated by Eclipse. This
1118 change was probably triggered by me updating from Eclipse 3.6.1 to
1120 * .gitignore: Add entry to ignore the directory
1121 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1122 * .project: The generated config has been updated by Eclipse. This
1123 change was probably triggered by me updating from Eclipse 3.6.1 to
1125 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1126 so that Eclipse doesn't complain
1127 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1128 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1129 'tests' directory to 'client' directory. This is the new
1130 gwt-maven-plugin convension.
1131 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1132 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1134 2011-03-07 Ben Konrath <ben@bagu.org>
1136 Add support for horizontal alignment in the LayoutList columns.
1138 * TODO: Remove item about horizontal alignment. Add item about
1139 improvements to ColumnInfo.
1140 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1141 alignment on the columns. Use ColumnInfo RPC object get the column
1142 title and horizontal alignment.
1143 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1144 LayoutListView creation with ColumnInfo RPC object.
1145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1146 a ColumnInfo object for every LayoutList columnn. Convert the
1147 FieldFormatting.HorizontalAlignment to the correct
1148 ColumnnInfo.HorizontatlAlignment with the new
1149 getColumnInfoHorizontalAlignment helper method.
1150 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1151 to encapsulate column information like alignment and title. This
1152 could be used to set the colour instead of on a per cell field basis.
1153 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1154 column title storage and retrieval with ColumnInfo.
1156 2011-03-04 Ben Konrath <ben@bagu.org>
1158 Add support for column sorting.
1160 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1161 AsynDataProvider to be an anonymous inner class. Use new
1162 getSortedTableData RPC method when column sort is requested. Set all
1163 columns sortable and add an AsyncHandler to activate sorting in the
1165 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1166 method getSortedTableData(). Cleanup other method signatures.
1167 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1168 new method getSortedTableData(). Cleanup other method signatures.
1169 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1170 Implement getSortedTableData() and getTableData() methods by using a
1171 private helper method with the appropriate parameters filled in. Use
1172 user supplied sort clause when supplied, otherwise fall back to
1173 sorting by the primary key. Move destroy() method to be underneath
1174 constructor for readability. Cleanup comments.
1176 2011-03-03 Ben Konrath <ben@bagu.org>
1178 Add support for colour text and colour backgrounds to the layout list cells.
1180 Only the cell backgrounds are coloured which leaves a gap between the
1181 cells that isn't coloured. I need to figure out a way to set
1182 'style=background-colour:' on the whole column rather than just the
1185 * TODO: Add a note about colouring the background of the whole column.
1186 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1187 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1188 render the coloured text and backgrounds. Use GlomField[] for the row type.
1189 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1191 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1192 GlomField[] for the row type.
1193 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1194 GlomField[] for the row type. Set the text, text colour and background
1195 colour in the GlomField objects as specified in the glom document. Add
1196 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1197 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1198 the glom field text, foreground colour and background colour.
1200 2011-03-02 Ben Konrath <ben@bagu.org>
1202 Don't display hidden tables in the combo box.
1204 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1207 code to ignore hidden tables using ArrayLists for the table names and
1209 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1210 tableNames to use ArrayLists instead of String[]. Update getter and setter
1213 2011-03-01 Ben Konrath <ben@bagu.org>
1215 Add support for Date and Time number types.
1217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1218 Implement formatting for Date and Time values. Change the default glom
1219 file to small business example.
1221 2011-03-01 Ben Konrath <ben@bagu.org>
1223 Add support for formatting glom types as specified in the glom file.
1225 Formatting isn't finished yet - I still need to add support for Date
1228 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1229 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1230 checks for null values in JDBC cleanup code and catch all exceptions
1231 instead of just SQLExceptions.
1232 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1235 2011-03-01 Ben Konrath <ben@bagu.org>
1237 Use GWT 2.2.0 instead of 2.1.1.
1239 * pom.xml: Change GWT version numbers.
1241 2011-03-01 Ben Konrath <ben@bagu.org>
1243 A few small code cleanups.
1245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1247 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1248 unnecessary object creation in constructor.
1249 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1250 unnecessary object creation in constructor.
1252 2011-02-28 Ben Konrath <ben@bagu.org>
1254 Add file for TODO list.
1258 2011-02-18 Ben Konrath <ben@bagu.org>
1260 Enable the CellTable Pager when more than 20 rows need to be viewed.
1262 The Pager will automatically become active when the results are larger
1263 than the CellTable size which is currently set to 20 lines.
1265 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1266 name on debug statment in RPC call in LayoutListDataProvider, add
1267 numRows parameter to LayoutListView constructor, propperly set rowCount
1269 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1270 name on debug statment in RPC call, use LayoutListTable object in RPC
1271 calls, pass rowCount to LayoutListView.
1272 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1273 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1275 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1276 interface for changes in OnlineGlomService.
1277 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1278 getLayoutListHeaders() to getLayoutListTable() and return
1279 LayoutListTable. Using this object allows me to pass other information
1280 about the LayoutList like the expected number of rows in the result set.
1281 The Connection object from the connection pool is now propperly closed.
1282 Only the requested number of lines are returned to the client in
1284 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1285 GlomTable and add columnTitles and numRows.
1287 2011-02-18 Ben Konrath <ben@bagu.org>
1289 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1291 This is a small performance boost. I'll use GlomTable to get the required
1292 layoutlist information.
1294 * src/main/java/org/glom/web/client/OnlineGlom.java:
1295 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1296 * src/main/java/org/glom/web/shared/GlomDocument.java:
1298 2011-02-18 Ben Konrath <ben@bagu.org>
1300 Add option to turn off formatting in JDT formatter preferences.
1302 * .settings/org.eclipse.jdt.core.prefs:
1304 2011-02-18 Ben Konrath <ben@bagu.org>
1306 Rename LayoutList to LayoutListView.
1308 I'm working towards setting things up to easily use MVP when the time
1311 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1313 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1316 2011-02-17 Ben Konrath <ben@bagu.org>
1318 Move LayoutListDataProvider class into LayoutList.java.
1320 * src/main/java/org/glom/web/client/LayoutList.java:
1322 2011-02-17 Ben Konrath <ben@bagu.org>
1324 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1326 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1328 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1329 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1330 from LibGlomServer.java.
1331 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1332 Rename from LibGlomServiceAsync.java.
1333 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1334 Rename from LibGlomServiceImpl.java.
1335 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1337 2011-02-17 Ben Konrath <ben@bagu.org>
1339 Update JDT settings.
1341 * .settings/org.eclipse.jdt.core.prefs:
1343 2011-02-17 Ben Konrath <ben@bagu.org>
1345 Move GWT-RPC objects to shared package (where they should be).
1347 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1348 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1349 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1350 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1351 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1352 org.glom.web.shared package.
1353 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1354 org.glom.web.shared package.
1355 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1356 directory in compilation to javascript.
1358 2011-02-16 Ben Konrath <ben@bagu.org>
1360 Add sort clause to the sql query that grabs table information.
1362 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1363 if one of the columns is a primary key.
1365 2011-02-16 Ben Konrath <ben@bagu.org>
1367 Disable generateAsync feature of gwt-maven.
1369 The generated interface does not correctly match the methods in LibGlomService
1370 and the generated singleton Util inner-class doesn't respect the servlet
1373 * pom.xml: Turn off generateAsync feature.
1374 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1375 with singleton Util inner-class.
1377 2011-02-14 Ben Konrath <ben@bagu.org>
1379 Add LGPL v3 licence notices.
1381 Followed directions listed here:
1382 http://www.gnu.org/licenses/gpl-howto.html
1384 * COPYING: This file is a copy of the GPL v3.
1385 * COPYING.LESSER: This file is a copy of the LGPL v3.
1386 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1388 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1390 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1392 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1394 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1396 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1398 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1401 2011-02-14 Ben Konrath <ben@bagu.org>
1403 Use ArrayList instead of Array in GWT-RPC calls.
1405 Apparently this gives a slight performance boost to the compiled
1408 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1410 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1413 2011-02-14 Ben Konrath <ben@bagu.org>
1415 Access data from a postgres db rather than the example glom file.
1417 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1418 compile down to obfuscated javascript.
1419 * pom.xml: Add c3p0 and postgres JDBC libraries.
1420 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1421 using a postgres db accessed through the c3p0 connection pooling library.
1423 2011-02-14 Ben Konrath <ben@bagu.org>
1425 Update Java formatter settings.
1427 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1429 2011-02-02 Ben Konrath <ben@bagu.org>
1431 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1433 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1435 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1436 the compiled webapp directory that Eclipse uses as we're using Maven now.
1437 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1438 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1440 * pom.xml: Format file, change target Java version to 1.6.
1442 2011-02-02 Ben Konrath <ben@bagu.org>
1444 Add information about a deployment related issue.
1446 * README: Add Notes section with the problem outlined.
1448 2011-02-02 Ben Konrath <ben@bagu.org>
1450 Call Glom.libglom_deinit() when the servlet is shutdown.
1452 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1453 Glom.libglom_deinit() to destroy() method.
1455 2011-01-28 Ben Konrath <ben@bagu.org>
1457 Use generated Util class to get the RPC Async interface.
1459 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1461 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1462 getInstance() method to get a reference to the RPC Async interface.
1463 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1464 getInstance() method to get a reference to the RPC Async interface, remove
1465 the now unused getLibGlomServiceProxy() method.
1467 2011-01-27 Ben Konrath <ben@bagu.org>
1469 Cleanup ChangeLog entry from previous commit.
1471 * ChangeLog: Group logical changes together and add comments.
1473 2011-01-25 Ben Konrath <ben@bagu.org>
1475 Convert to gwt-maven project.
1477 * .gitignore: Update for new project structure.
1478 * README: New file with a link to the online documentation.
1479 * pom.xml: The generated maven configuration file with some tweaks.
1481 Add / update Eclipse settings. These files are a merge of the files that
1482 were generated with the gwt-maven plugin and the files we were previously
1486 * .settings/.jsdtscope:
1487 * .settings/com.google.gdt.eclipse.core.prefs:
1488 * .settings/com.google.gwt.eclipse.core.prefs:
1489 * .settings/org.eclipse.jdt.core.prefs:
1490 * .settings/org.eclipse.wst.common.component:
1491 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1492 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1493 * .settings/org.maven.ide.eclipse.prefs:
1494 * OnlineGlomTest-dev.launch:
1495 * OnlineGlomTest-prod.launch:
1497 Java source files moved from the 'src' directory to the directory structure
1499 * src/main/java/org/glom/web/client/GlomDocument.java:
1500 * src/main/java/org/glom/web/client/GlomTable.java:
1501 * src/main/java/org/glom/web/client/LayoutList.java:
1502 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1503 * src/main/java/org/glom/web/client/LibGlomService.java:
1504 * src/main/java/org/glom/web/client/OnlineGlom.java:
1505 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1507 Non-functional property file used for translations. I included this as
1508 reminder that it's something I need to sort out.
1509 * src/main/resources/org/glom/web/client/Messages.properties:
1511 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1512 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1514 The servlet configuration files moved from the 'war' directory.
1515 * src/main/webapp/OnlineGlom.css:
1516 * src/main/webapp/OnlineGlom.html:
1517 * src/main/webapp/WEB-INF/web.xml:
1519 Generated test files with most of the code commented out. I included these
1520 so that it's easy to add tests when we're ready for them.
1521 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1522 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1524 2011-01-25 Ben Konrath <ben@bagu.org>
1526 Remove unused println.
1528 * src/org/glom/web/server/LibGlomServiceImpl.java:
1530 2011-01-25 Ben Konrath <ben@bagu.org>
1532 Add project specific JDT settings.
1534 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1535 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1537 2011-01-25 Ben Konrath <ben@bagu.org>
1539 Populate celltable with example data.
1541 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1542 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1543 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1544 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1545 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1546 asynchronously gets the example data.
1547 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1548 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1549 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1550 curently selected table to be retrieved by other widgets.
1551 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1552 implement getTableData() in a hacky way. This method needs to be updated
1553 to grab information from the database when database creating is
1556 2011-01-20 Ben Konrath <ben@bagu.org>
1558 Set table headers when table dropBox changes.
1560 * src/org/glom/web/client/GlomDocument.java: Correct some method
1562 * src/org/glom/web/client/LibGlomService.java: Add method
1563 to get list layout field names.
1564 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1565 to get list layout field names.
1566 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1567 widget for list layout table.
1568 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1569 the table drop box and add new updateTable() method to asynchronously
1570 get the layout list field names for the currently selected table.
1571 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1572 implementation of getLayoutListHeaders() method.
1573 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1575 2011-01-18 Ben Konrath <ben@bagu.org>
1577 Make a listBox with table titles instead of the flexTable demo.
1579 This is the start of something more useful.
1581 * .classpath: Exclude a bunch of packages from the JVM that are
1582 getting in the way of the Eclipse content assist.
1583 * src/org/glom/web/client/GlomDocument.java:
1584 * src/org/glom/web/client/GlomTable.java:
1585 * src/org/glom/web/client/LibGlomService.java:
1586 * src/org/glom/web/client/LibGlomServiceAsync.java:
1587 * src/org/glom/web/client/OnlineGlom.java:
1588 * src/org/glom/web/server/LibGlomServiceImpl.java:
1589 * war/OnlineGlom.html:
1590 * war/WEB-INF/web.xml:
1592 211-01-13 Ben Konrath <ben@bagu.org>
1594 Update to new java-libglom API.
1596 * .gitignore: Ignore OnlineGlom.war.
1597 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1599 2010-12-20 Ben Konrath <ben@bagu.org>
1601 Add some basic style to the table listing.
1603 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1604 header, print useful error message on async callback failure.
1605 * war/OnlineGlom.css: Add style for table header, remove defaults
1606 provided by the Eclipse project wizard.
1608 2010-12-20 Ben Konrath <ben@bagu.org>
1610 Load example file from installed glom dir.
1612 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1613 provided by java-libglom to find the example file.
1615 2010-12-20 Ben Konrath <ben@bagu.org>
1617 Update Eclipse settings.
1620 * .settings/com.google.gdt.eclipse.core.prefs:
1621 * .settings/com.google.gwt.eclipse.core.prefs:
1623 2010-12-17 Ben Konrath <ben@bagu.org>
1627 * .classpath: New file.
1628 * .gitignore: New file.
1629 * .project: New file.
1630 * .settings/com.google.gdt.eclipse.core.prefs: New file.
1631 * .settings/com.google.gwt.eclipse.core.prefs: New file.
1632 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1633 * src/org/glom/web/client/GlomTable.java: New file.
1634 * src/org/glom/web/client/OnlineGlom.java: New file.
1635 * src/org/glom/web/client/TableNameService.java: New file.
1636 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1637 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1638 * war/OnlineGlom.css: New file.
1639 * war/OnlineGlom.html: New file.
1640 * war/WEB-INF/web.xml: New file.
1641 * war/images/glom.png: New file.