1 2011-06-28 Ben Konrath <ben@bagu.org>
3 Enable the table selector in the DetailsView.
5 * src/main/java/org/glom/web/client/OnlineGlomService.java:
6 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
7 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
8 Remove getDefaultDetailsLayout(). The default layout is now returned
9 by the getDetailsLayout() method when the table name is an empty
11 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
12 event handler for table change event. Change to using
13 getDetailsLayout() for the default details layout.
14 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
16 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
17 when navigating to the details place.
19 2011-06-27 Ben Konrath <ben@bagu.org>
21 Use filename based unique document ID in URL and for RPC.
23 The document ID is the glom document name with spaces (' ') replaced
24 with pluses ('+') and without the .glom extension.
26 This change is mostly a string substitution of 'documentTitle' for
27 'documentID'. The only code change is the addition of a Documents DTO to get the
28 filename to document title mappings as indicated below.
30 * src/main/java/org/glom/web/client/OnlineGlomService.java:
31 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
32 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
33 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
34 Use Documents DTO to create the document links in the document
36 * src/main/java/org/glom/web/client/activity/ListActivity.java:
37 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
38 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
39 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
40 * src/main/java/org/glom/web/client/place/ListPlace.java:
41 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
42 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
43 * src/main/java/org/glom/web/client/ui/ListView.java:
44 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
45 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
46 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
47 * src/main/java/org/glom/web/server/Log.java:
48 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
49 getDocumentTitles() to getDocuments() and return the Documents DTO.
50 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
51 transferring the filename to document title mappings.
53 2011-06-25 Ben Konrath <ben@bagu.org>
55 Make the authentication popup work again.
57 This bug was introduced when I extracted ConfiguredDocument to its own class.
59 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
60 correct success / fail status in setUsernameAndPassword().
62 2011-06-25 Ben Konrath <ben@bagu.org>
64 Use filename as unique key for configuring database usernames and passwords.
66 This replaces the use of the Glom document title which could change
67 depending on the locale. Thanks to Murray Cumming for pointing out this
70 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
71 * src/main/resources/onlineglom.properties:
73 2011-06-24 Ben Konrath <ben@bagu.org>
75 Pass primary key value to DetailsView.
77 This enables the DetailsView to load the correct data.
79 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
80 primary key value field and set in constructor. Pass primary key
81 value to getDetailsData().
82 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
83 variables for document title and primary key value.
84 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
85 key value to the DetailsPlace.
87 2011-06-24 Ben Konrath <ben@bagu.org>
89 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
91 This allows the primary key to be retrieved by the Details button. This
92 functionality has not been implemented yet but it's in the works.
94 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
95 the LayoutGroup result to ListView.setCellTable instead of all of its
97 * src/main/java/org/glom/web/client/ui/ListView.java:
98 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
99 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
100 get the primary key for the table.
101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
102 index of the primary key in the LayoutGroup accounting for hidden
103 primary keys. Rename getJavaNumberFormat() to
104 convertToJavaNumberFormat() for consistency. Cleanup / add some
106 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
107 field for primary key index and a field to indicate whether the
108 primary key is hidden or not.
110 2011-06-23 Ben Konrath <ben@bagu.org>
112 Rename getTableData methods to getListData.
114 This is a rename refactor for consistency with other methods.
116 * src/main/java/org/glom/web/client/OnlineGlomService.java:
117 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
118 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
119 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
121 2011-06-23 Ben Konrath <ben@bagu.org>
123 Extract the ConfiguredDocument innerclass into its own class.
125 This makes the servlet code more object oriented.
127 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
128 from private ConfiguredDocument class in OnlineGlomServiceImpl.
129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
130 new ConfiguredDocument class.
132 2011-06-21 Ben Konrath <ben@bagu.org>
134 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
136 This makes things more inline with how libglom works and reduces code
137 duplication. This refactor lays the groundwork for adding the primary key to
138 the LayoutGroup object.
140 * src/main/java/org/glom/web/client/OnlineGlomService.java:
141 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
142 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
143 Change method names to getListLayout and getDefaultListLayout for
144 consistency. Use LayoutGroup as the DTO for the list layout instead of
145 ColumnInfo and LayoutListTable.
146 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
147 new method names along with the LayoutGroup object for transferring the
149 * src/main/java/org/glom/web/client/ui/ListView.java:
150 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
151 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
152 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
154 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
155 Replaced with LayoutGroup.
156 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
157 expectedResultSize and defaultTableName fields which are needed for
159 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
160 type field which is needed for the list layout but will also be
161 useful for the details layout as things progress.
162 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
163 Make class abstract. Remove the unnecessary
164 getFormattingHorizontalAlignment method. Add setFormatting method.
166 2011-06-16 Ben Konrath <ben@bagu.org>
168 Add scripts for building and installing war.
170 These will help when updating OnlineGlom but they're also good
171 supplemental documentation of the build and deployment proceeding.
173 * utils/build-onlineglom-war.sh: New file.
174 * utils/install-onlineglom-war.sh: New file.
176 2011-06-16 Ben Konrath <ben@bagu.org>
178 Create wrapper class to create consistent log messages.
180 I wrapped methods in the Log class of gwt-log to add the method names
181 from the servlet and create consistent formatting of the document title
182 and table names in the log messages.
184 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
186 log methods to use methods from wrapped Log class.
188 2011-06-16 Ben Konrath <ben@bagu.org>
190 Remove superfluous conditional return.
192 Thanks to Murray Cumming for pointing this out!
194 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
196 2011-06-15 Ben Konrath <ben@bagu.org>
198 Return an ArrayList of LayoutGroups for the Details layout.
200 This corrects a problem with the details layout as it can have more
201 than one top level LayoutGroup.
203 * src/main/java/org/glom/web/client/OnlineGlomService.java:
204 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
205 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
206 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
207 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
208 with ArrayList of LayoutGroups for the details view layout.
209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
210 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
211 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
212 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
213 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
214 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
216 2011-06-14 Ben Konrath <ben@bagu.org>
218 Use cast_dynamic method to determine the libglom LayoutItem type.
220 This is better than finding the LayoutItem type by using the string
221 returned from the get_part_type_name() method.
223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
225 2011-06-14 Ben Konrath <ben@bagu.org>
227 Add method names to log entries in the servlet.
229 This helps when tracking down deployment problems.
231 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
233 2011-06-14 Ben Konrath <ben@bagu.org>
235 Add data to the DetailsView using a hard-coded primary key value.
237 The layout and functionality of the DetailsView is not complete. This
238 is just a checkpoint so the patch doesn't get too big.
240 * src/main/java/org/glom/web/client/OnlineGlomService.java:
241 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
242 Add getDetailsData() servlet method.
243 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
244 Add RPC to getDetailsData(). Change the way the LayoutGroups and
245 LayoutFields are added to the DetailsView.
246 * src/main/java/org/glom/web/client/ui/DetailsView.java:
247 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
248 Add setData() method. Change addLayoutGroup() and addLayoutField() to
249 take the string for the title instead of the object.
250 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
251 Add implementation getDetailsData() along with some private helper
253 * src/main/webapp/style.css: Add padding to details-data class. Add a
254 details-label class with the same padding as the details-data class.
256 2011-06-03 Ben Konrath <ben@bagu.org>
258 Use presenter.goTo() to change to the DetailsPlace.
260 This will make things easier when we need to open the DetailsView with
261 data specific to the row that was clicked.
263 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
265 2011-06-02 Ben Konrath <ben@bagu.org>
267 Add CSS file from mockups.
269 I'm adding this now because it's going to be useful to have when
270 developing the DetailsView. The TableSelectionView and ListView aren't
273 * src/main/webapp/OnlineGlom.html:
274 * src/main/webapp/style.css:
276 2011-06-02 Ben Konrath <ben@bagu.org>
278 Use String.isEmpty() to check for empty string.
280 * src/main/java/org/glom/web/client/activity/ListActivity.java:
282 2011-06-02 Ben Konrath <ben@bagu.org>
284 Display main layout group titles in the DetailsView.
286 This is the start of the DetailsActivity/DetailsView implementation.
288 * src/main/java/org/glom/web/client/OnlineGlomService.java:
289 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
290 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
291 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
292 Get the layout information for the details view from the server and set
293 the main layout group titles.
294 * src/main/java/org/glom/web/client/ui/DetailsView.java:
295 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
296 Add addLayoutGroup() and addLayoutField() methods. This are just
297 temporary methods for creating the the details view that will change
299 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
300 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
302 * src/main/java/org/glom/web/shared/layout/Formatting.java:
303 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
304 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
305 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
306 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
307 Data Transfer Objects that mimic the libglom object structure. These are
308 used for transferring the details layout but could also be used for
309 transferring the list layout.
311 2011-05-27 Ben Konrath <ben@bagu.org>
313 Reset the AuthenticationPopup when clearing the ListView.
315 * src/main/java/org/glom/web/client/activity/ListActivity.java:
317 2011-05-27 Ben Konrath <ben@bagu.org>
319 Fix problem with onlineglom.properties file loading.
321 The old way worked in Eclipse but not on the server. Loading the
322 onlineglom.properties file now works in Eclipse and on the server.
324 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
326 2011-05-24 Ben Konrath <ben@bagu.org>
328 Update gwt-log from 3.1.0 to 3.1.2.
330 Gwt-log 3.1.0 has been marked as depreciated.
334 2011-05-24 Ben Konrath <ben@bagu.org>
336 Add comment to ListActivity.goTo() method.
338 * src/main/java/org/glom/web/client/activity/ListActivity.java:
340 2011-05-24 Ben Konrath <ben@bagu.org>
342 Remove FIXME in convertGdkColorToHtmlColour()
344 The Gdk::Color value returned by libglom is 16-bits per channel on both
345 64 and 32-bit platforms.
347 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
349 2011-05-19 Ben Konrath <ben@bagu.org>
351 Improve performance of initial ListView load.
353 I removed a round trip to the server for getting the default table name
354 and then requesting information about that table. This also removes a potential
355 problem with the table change handler not being setup in time to receive the
356 table change event from the ListActivity.
358 * src/main/java/org/glom/web/client/OnlineGlomService.java:
359 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
360 getDefaultLayoutListTable() method. Improve comments.
361 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
362 getDefaultLayoutListTable() method instead of firing a table change
363 event to get the table to load.
364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
365 implementation of getDefaultLayoutListTable() method.
366 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
369 2011-05-19 Ben Konrath <ben@bagu.org>
371 Override toDebugString() in TableChangeEvent.
373 This is useful to have for debugging.
375 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
377 2011-05-19 Ben Konrath <ben@bagu.org>
379 Add a "Back to List" link when at the DetailsPlace.
381 * src/main/java/org/glom/web/client/activity/ListActivity.java:
382 Populate the CellTable based on the selected table of the ListBox if
383 it's set otherwise use the default table. This allows the "Back to
385 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
386 Remove Place from constructors. Add a setPlace() method. Add
387 goToPlace() method. Set class as presenter for TableSelectionView.
388 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
389 Use the same TableSelectionActivity when switching between the List and
391 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
392 Subclass the new HasSelectableTablePlace. This removes some duplicate
394 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
395 New class to represent Places that display the TableSelectionView.
396 * src/main/java/org/glom/web/client/place/ListPlace.java:
397 Subclass the new HasSelectableTablePlace. This removes some duplicate
399 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
400 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
401 Add Presenter interface. Add setBackLinkVisible() method. Add
402 setBackLink() method.
404 2011-05-18 Ben Konrath <ben@bagu.org>
406 Enable the "Details" buttons.
408 Right now only an empty details view is displayed.
410 * src/main/java/org/glom/web/client/ClientFactory.java:
411 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
412 Add DetailsView to ClientFactory.
413 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
414 A basic activity for the details view.
415 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
416 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
418 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
419 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
421 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
422 Create a new DetailsActivity when a DetailsPlace is requested. Remove
423 unnecessary super() in constructor.
424 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
425 Create a new TableSelectionActivity when a DetailsPlace is requested. We
426 really shouldn't create a new TableSelectionActivity for both the ListPlace
427 and the DetailsPlace so this should be considered a temporary solution.
428 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
429 New file. Represents a URL for the details view.
430 * src/main/java/org/glom/web/client/ui/DetailsView.java:
431 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
432 A basic details view interface and implementation.
433 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
434 Enable the "Details" buttons.
436 2011-05-12 Ben Konrath <ben@bagu.org>
438 Use a LayoutPanel with multiple display areas for main layout.
440 This is mostly a refactor in that there are no changes from the user
441 point of view. These changes are required so that we can swap out the list view
442 with the details view when the user clicks the "Details" button.
444 * src/main/java/org/glom/web/client/ClientFactory.java:
445 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
446 OnlineGlomView. Add TableSelectionView, ListView and
448 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
449 for main layout. Add display regions for main activities. Add
450 activity manager for for main activities.
451 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
452 file from parts of the deleted OnlineGlomActivity.
453 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
454 New file from parts of the deleted OnlineGlomActivity.
455 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
456 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
457 New files for app wide table change event.
458 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
459 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
460 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
461 Activity mappers for the main activities replace the deleted app-wide
463 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
464 Fix a spelling error in he comment.
465 * src/main/java/org/glom/web/client/ui/ListView.java:
466 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
467 Renamed from LayoutListView and modified for MVP. This still not a
468 proper dumb view as prescribed by the MVP pattern but it works for now.
469 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
470 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
471 New widget stripped out of the deleted OnlineGlomView.
472 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
473 Remove hack that is fixed by this patch.
475 2011-05-06 Ben Konrath <ben@bagu.org>
477 Rename OnlineGlomPlace to ListPlace.
479 The only change besides the rename is that url will now display #list
480 instead of #Document.
482 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
483 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
484 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
485 * src/main/java/org/glom/web/client/place/ListPlace.java:
486 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
488 2011-05-06 Ben Konrath <ben@bagu.org>
490 Use Presenter for app navigation.
492 This is the proper way to deal with Place (URL) changes with the MVP
495 * src/main/java/org/glom/web/client/ClientFactory.java:
496 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
497 PlaceHistoryMapper and PlaceHistoryHandler.
498 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
499 PlaceHistoryMapper and PlaceHistoryHandler.
500 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
501 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
502 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
503 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
504 Add Presenter interface and setPresenter methods. Rename addHyperLink
505 to addDocumentLink taking only the document title as a parameter.
507 2011-04-14 Ben Konrath <ben@bagu.org>
509 Prompt for db username/password if they haven't been set.
511 This is implemented with a popup widget that is contained within the
512 OnlineGlomView and managed by the OnlineGlomActivity.
514 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
515 methods for checking and setting the database username and password.
516 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
517 new methods for checking and setting the database username and
519 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
520 Display authentication popup if the JDBC connection to the database
521 has not been authenticated.
522 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
524 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
525 for dealing with the authentication popup.
526 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
527 Implement the methods for dealing with the authentication popup.
528 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
529 try to executed queries if the database connection hasn't been
530 authenticated. Implement methods for checking and setting the
531 database username and password.
533 2011-04-12 Ben Konrath <ben@bagu.org>
535 Make log messages a little clearer.
537 Add a dash betweeen the document title and the table name.
539 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
541 2011-04-12 Ben Konrath <ben@bagu.org>
543 Protect against NPEs when cleaning up database resources.
545 While this isn't strictly necessary because the exception is caught,
546 not protecting against the NPEs makes it harder to find the real error
549 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
551 2011-04-12 Ben Konrath <ben@bagu.org>
553 Move configuration of the servlet to the constructor.
555 The servlet will be initialized even if the database authentication
556 information is not set or correct. I still need to add the UI for prompting
557 the user for the authentication information when it's required.
559 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
560 javadocs for getDocumentTitles() method.
561 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
562 Set error message when RPC fails.
563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
564 glom files directory from the configuration file. Try to set the
565 database authentication information for the specific document if it's
566 set and works otherwise try to use the global authentication
567 information set for the directory.
568 * src/main/resources/onlineglom.properties: Moved from
569 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
570 Added detailed comments for the new keys.
572 2011-04-11 Ben Konrath <ben@bagu.org>
574 Remove unnecessary @Override in DocumentSelectionViewImpl.
576 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
578 2011-04-11 Ben Konrath <ben@bagu.org>
580 Remove center alignment in DocumentSelectionView.
582 The title element is still centred but the document titles and bottom
583 sentence are both left-aligned.
585 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
587 2011-04-11 Ben Konrath <ben@bagu.org>
589 Change 'Demo' naming convention to 'Document'.
591 This is just a rename refactor with no functional changes to the code.
593 * src/main/java/org/glom/web/client/ClientFactory.java:
594 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
595 * src/main/java/org/glom/web/client/OnlineGlom.java:
596 * src/main/java/org/glom/web/client/OnlineGlomService.java:
597 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
598 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
599 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
600 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
601 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
602 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
603 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
604 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
605 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
607 2011-04-08 Ben Konrath <ben@bagu.org>
609 Remove FIXME from safeLongToInt() method.
611 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
616 2011-04-08 Ben Konrath <ben@bagu.org>
618 Display an error if no glom documents are found in the specified directory.
620 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
621 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
622 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
623 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
625 2011-04-08 Ben Konrath <ben@bagu.org>
627 Add copyright header to one more file ... oops.
629 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
631 2011-04-08 Ben Konrath <ben@bagu.org>
633 Add copyright header to files without it.
635 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
636 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
637 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
638 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
639 * src/main/java/org/glom/web/shared/ColumnInfo.java:
640 * src/main/java/org/glom/web/shared/GlomField.java:
642 2011-04-08 Ben Konrath <ben@bagu.org>
644 Add support for accessing multiple glom documents in the servlet.
646 This completes the demo selection functionality.
648 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
649 document title to methods.
650 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
651 document title to methods.
652 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
653 Set browser window title when the activity starts. Correct name of
654 document title variable.
655 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
656 Set browser window title when the activity starts. Set the table
657 selector change handler after table selector has been set. Clear the
658 OnlineGlomView when the activity has been stopped.
659 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
660 document title as the place token. Use "#Document:" instead of
661 "#OnlineGlomPlace:" in the URL.
662 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
663 Change heading to "Online Glom"
664 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
665 document title in RPC methods.
666 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
667 setDocumentTitle() method. Add clear() method.
668 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
669 setDocumentTitle() method. Implement clear() method which removes the
670 change handler on the ListBox, clears the ListBox and clears the
672 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
673 Implement methods with document title. Keep track for the configured
674 glom documents and their corresponding JDBC configurations in a hash
675 table. This information is retrieved using the document title as the
676 key in the hash table.
677 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
678 document title field as it's no longer needed.
680 2011-04-08 Ben Konrath <ben@bagu.org>
682 Update the Eclipse JDT configuration.
684 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
685 methods. Automatically add the copyright header to new files.
687 2011-04-05 Ben Konrath <ben@bagu.org>
689 Add new page for demo selection.
691 This patch adds all the components required to view and start an
692 OnlineGlom demo by clicking on the desired hyperlink. The user is
693 able to return to the demo selection page with the browser's back
694 button. I still need to modify the servlet to work with multiple
695 documents so all demo links will load the file defined in the
696 OnlineGlom.properties.
698 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
699 This is only useful during development so we don't need to save it.
700 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
701 get a reference to the DemoSelectionView.
702 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
703 method to get a reference to the DemoSelectionView.
704 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
705 default view to DemoSelectionView.
706 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
707 to get glom document titles for glom files in a hard-coded directory.
708 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
709 method to get glom document titles for glom files in a hard-coded
711 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
712 Presenter for DemoSelectionView.
713 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
714 for DemoSelectionView.
715 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
716 Update for DemoSelectionView.
717 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
718 Basic 'Place' implementation for the DemoSelectionView.
719 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
720 The interface for the DemoSelectionView.
721 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
722 The implementation of the DemoSelectionView.
723 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
724 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
726 implementation of method to get glom document titles for glom files
727 in a hard-coded directory.
728 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
729 on longer being used.
730 * src/main/webapp/glom.png: Glom logo.
732 2011-04-05 Ben Konrath <ben@bagu.org>
734 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
736 This is the forth and final commit of a refactor that will allow
737 OnlineGlom to be used with multiple documents.
739 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
740 Move RPC code from OnlineGlomViewImpl to this class.
741 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
743 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
744 RPC code to the presenter class (the P in MVP).
746 2011-04-04 Ben Konrath <ben@bagu.org>
748 Start moving the existing OnlineGlom code to MVP.
750 This work is based on the GWT MVP framework that is documented here:
752 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
754 This is the third commit of a refactor that will allow OnlineGlom to
755 be used with multiple documents.
757 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
758 Interface for client factory which is used to get instances of various
759 classes throughout the app.
760 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
761 Implementation of client factory.
762 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
763 initialize the MVP framework.
764 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
765 New file. Activity manager for the main container widget. This is the
767 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
768 Maps place (URL) to its corresponding activity.
769 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
770 New file. This is just a place holder for a generated file.
771 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
772 New file. Represents the URL for the main Online Glom app.
773 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
774 for changes in LayoutListViewImpl.
775 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
776 interface for View. Move code to OnlineGlomViewImpl class.
777 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
778 file. Implementation of OnlineGlomView.
779 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
780 Place resources. Use ClientFactoryImpl by default.
782 2011-04-04 Ben Konrath <ben@bagu.org>
784 Move View classes to their own package.
786 This is the second commit of a refactor that will allow OnlineGlom to
787 be used with multiple documents.
789 * src/main/java/org/glom/web/client/OnlineGlom.java:
790 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
791 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
793 2011-04-02 Ben Konrath <ben@bagu.org>
795 Move UI code from the main module to its own class.
797 This is the first commit of a refactor that will allow OnlineGlom to be
798 used with multiple documents.
800 * src/main/java/org/glom/web/client/LayoutListView.java: Update
801 references to OnlineGlom to OnlineGlomView.
802 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
803 OnlineGlomView and instantiate it here.
804 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
805 represents the main OnlineGlomView with one document.
807 2011-04-01 Ben Konrath <ben@bagu.org>
809 Fix formatting of gwt.xml and add DTD.
811 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
813 2011-03-30 Ben Konrath <ben@bagu.org>
815 Propperly convert gdkColor string to html colour string.
817 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
819 2011-03-28 Ben Konrath <ben@bagu.org>
821 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
823 This implementation matches
824 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
825 readable and is not tied to Swig.
827 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
829 2011-03-28 Ben Konrath <ben@bagu.org>
831 Use read-only checkboxes for boolean field types.
833 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
834 in the CellTable based on the field type. It currently only
835 distinguishes between boolean and text columns but I'll need to add
836 support for more types.
837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
838 column type in the ColumnInfo object. Add method to convert between the
839 glom field type enum in ColumnInfo and the glom field type in libglom.
840 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
842 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
843 getting and setting booleans.
845 2011-03-25 Ben Konrath <ben@bagu.org>
847 Don't get the Date twice from the ResultSet.
849 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
851 2011-03-25 Ben Konrath <ben@bagu.org>
853 Cleanup code in the servlet.
855 * TODO: Remove item about row count. Add item about testing row count
856 query with large number of rows.
857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
858 spelling mistakes, change method parameter to be consistent with
861 2011-03-25 Ben Konrath <ben@bagu.org>
863 Add server side logging with the gwt-log library.
865 * .gitignore: Ignore the log file we're now producing.
866 * TODO: Add a couple TODO item for logging.
867 * pom.xml: Add gwt-log and log4j as a dependency.
868 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
869 logging of errors, warnings and some important info.
870 * src/main/resources/log4j.properties: New file to configure log4j.
872 2011-03-24 Ben Konrath <ben@bagu.org>
874 Add a disable button for the Details view.
876 * src/main/java/org/glom/web/client/LayoutListView.java:
878 2011-03-22 Ben Konrath <ben@bagu.org>
880 Use a count query to get the number of rows for the list view pager.
882 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
884 2011-03-22 Ben Konrath <ben@bagu.org>
886 Add more TODO information about CellTable pager positioning.
890 2011-03-19 Ben Konrath <ben@bagu.org>
892 Add TODO item about CellTable pager positioning.
896 2011-03-18 Ben Konrath <ben@bagu.org>
898 Remove unneeded GlomFieldColumn class.
900 This is just a small code cleanup.
902 * src/main/java/org/glom/web/client/LayoutListView.java:
904 2011-03-18 Ben Konrath <ben@bagu.org>
906 Use cursor mode in the query that gets data for the list view.
908 I still need to fix the potential memory problem when getting the row
909 count for the list view.
911 * TODO: Add note about testing memory usage with large data sets. Add
912 item about fixing row counting with large data sets.
913 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
914 PostgreSQL JDBC driver into cursor mode when getting data for the
917 2011-03-15 Ben Konrath <ben@bagu.org>
919 Remove the GWT Container from the Eclipse build classpath.
921 The GWT dependencies are set by Maven so this isn't needed.
925 2011-03-15 Murray Cumming <murrayc@murrayc.com>
927 Added some earlier mockups to git, but not to the tarball dist.
929 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
930 Openismus. These hopefully show how we might structure the HTML so that
931 it can be styled easily with CSS. However, we probably need to adapt them
932 for the CSS structure that GWT dictates for common widgets.
934 2011-03-14 Ben Konrath <ben@bagu.org>
936 Locate OnlineGlom.properties using the ServletContext.
938 This is required to be able to locate the file in the deployed servlet.
940 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
941 Configure the database and glom document in in a helper method so
942 that the ServletContext can be used to locate OnlineGlom.properties.
943 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
944 src/main/webapp. This is the proper location for .properites files.
946 2011-03-12 Ben Konrath <ben@bagu.org>
948 Add note to README about why we're compiling down to obfuscated JavaScript.
952 2011-03-11 Ben Konrath <ben@bagu.org>
954 Use properties file to configure servlet.
956 This allows people to change the glom file path, db username and db
957 password without recompiling the code.
959 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
960 * src/main/webapp/OnlineGlom.properties:
962 2011-03-11 Ben Konrath <ben@bagu.org>
964 Use table fields in layout list view if the layout list is not defined.
966 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
967 Manually create a LayoutFieldVector for the query builder using the
968 table fields when a layout list is not defined in the glom file.
970 2011-03-11 Ben Konrath <ben@bagu.org>
972 Only show FIXME string for images when there's an image.
974 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
975 in this change are some small code cleanups.
977 2011-03-11 Ben Konrath <ben@bagu.org>
979 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
981 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
983 2011-03-11 Ben Konrath <ben@bagu.org>
985 Correctly set the index of the default table.
987 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
988 Correctly set the index of the default table. Add commented out example
991 2011-03-10 Ben Konrath <ben@bagu.org>
993 Add comment to pom.xml about the previous change.
995 * pom.xml: Add comment about the deployment issue so that it's obvious
996 why java-libglom is set to the provided scope.
998 2011-03-10 Ben Konrath <ben@bagu.org>
1000 Change java-libglom dependency from compile to provided in pom.xml.
1002 Since java-libglom uses jni it can only be loaded once and therefore
1003 must be placed in $CATALINA_HOME/lib and not included in each war.
1004 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1005 More information about this issue can be found in the Tomcat 6 release
1006 notes in the "JNI Based Applications" section:
1008 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1010 * README: Remove note about this issue. Deployment info should really
1011 be on the wiki anyway so I'll add it right now.
1012 * pom.xml: Change java-libglom dependency from compile to provided so
1013 that it's copied in to the packaged war.
1015 2011-03-09 Ben Konrath <ben@bagu.org>
1017 Change to using a neutral locale for currency, date and time formatting.
1019 This solves the problem of currency values being represented without a
1020 space between the currency code and the number (e.g. "EUR5.89" is now
1021 represented as "EUR 5.89"). More work is required when we implement
1022 a locale preference setting.
1024 * TODO: Add note about currency formatting issues with different
1026 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1027 to using the neutral ROOT locale.
1029 2011-03-09 Ben Konrath <ben@bagu.org>
1031 Add support for currency codes that are not ISO 4217 codes.
1033 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1034 the currency code defined in the glom file when it's not 3 characters
1035 long or when Java doesn't recognize the string as an ISO 4217 code.
1037 2011-03-08 Ben Konrath <ben@bagu.org>
1039 Remove test classes, launch configurations and configuration.
1041 The test stuff was getting in the way when creating the war. To make
1042 the war file you can now do 'mvn clean package'. The packaged war file
1043 will be in the target directory.
1045 * .classpath: Remove unused classpathentry for tests and i18n.
1046 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1047 property. Don't run test or i18n goals when packaging the war.
1048 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1053 * OnlineGlomTest-dev.launch:
1054 * OnlineGlomTest-prod.launch:
1055 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1056 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1058 2011-03-07 Ben Konrath <ben@bagu.org>
1060 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1062 These fixes allow me to use 'mvn deploy' to create the war file.
1064 * .classpath: This generated config has been updated by Eclipse. This
1065 change was probably triggered by me updating from Eclipse 3.6.1 to
1067 * .gitignore: Add entry to ignore the directory
1068 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1069 * .project: The generated config has been updated by Eclipse. This
1070 change was probably triggered by me updating from Eclipse 3.6.1 to
1072 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1073 so that Eclipse doesn't complain
1074 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1075 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1076 'tests' directory to 'client' directory. This is the new
1077 gwt-maven-plugin convension.
1078 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1079 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1081 2011-03-07 Ben Konrath <ben@bagu.org>
1083 Add support for horizontal alignment in the LayoutList columns.
1085 * TODO: Remove item about horizontal alignment. Add item about
1086 improvements to ColumnInfo.
1087 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1088 alignment on the columns. Use ColumnInfo RPC object get the column
1089 title and horizontal alignment.
1090 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1091 LayoutListView creation with ColumnInfo RPC object.
1092 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1093 a ColumnInfo object for every LayoutList columnn. Convert the
1094 FieldFormatting.HorizontalAlignment to the correct
1095 ColumnnInfo.HorizontatlAlignment with the new
1096 getColumnInfoHorizontalAlignment helper method.
1097 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1098 to encapsulate column information like alignment and title. This
1099 could be used to set the colour instead of on a per cell field basis.
1100 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1101 column title storage and retrieval with ColumnInfo.
1103 2011-03-04 Ben Konrath <ben@bagu.org>
1105 Add support for column sorting.
1107 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1108 AsynDataProvider to be an anonymous inner class. Use new
1109 getSortedTableData RPC method when column sort is requested. Set all
1110 columns sortable and add an AsyncHandler to activate sorting in the
1112 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1113 method getSortedTableData(). Cleanup other method signatures.
1114 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1115 new method getSortedTableData(). Cleanup other method signatures.
1116 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1117 Implement getSortedTableData() and getTableData() methods by using a
1118 private helper method with the appropriate parameters filled in. Use
1119 user supplied sort clause when supplied, otherwise fall back to
1120 sorting by the primary key. Move destroy() method to be underneath
1121 constructor for readability. Cleanup comments.
1123 2011-03-03 Ben Konrath <ben@bagu.org>
1125 Add support for colour text and colour backgrounds to the layout list cells.
1127 Only the cell backgrounds are coloured which leaves a gap between the
1128 cells that isn't coloured. I need to figure out a way to set
1129 'style=background-colour:' on the whole column rather than just the
1132 * TODO: Add a note about colouring the background of the whole column.
1133 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1134 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1135 render the coloured text and backgrounds. Use GlomField[] for the row type.
1136 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1138 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1139 GlomField[] for the row type.
1140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1141 GlomField[] for the row type. Set the text, text colour and background
1142 colour in the GlomField objects as specified in the glom document. Add
1143 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1144 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1145 the glom field text, foreground colour and background colour.
1147 2011-03-02 Ben Konrath <ben@bagu.org>
1149 Don't display hidden tables in the combo box.
1151 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1153 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1154 code to ignore hidden tables using ArrayLists for the table names and
1156 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1157 tableNames to use ArrayLists instead of String[]. Update getter and setter
1160 2011-03-01 Ben Konrath <ben@bagu.org>
1162 Add support for Date and Time number types.
1164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1165 Implement formatting for Date and Time values. Change the default glom
1166 file to small business example.
1168 2011-03-01 Ben Konrath <ben@bagu.org>
1170 Add support for formatting glom types as specified in the glom file.
1172 Formatting isn't finished yet - I still need to add support for Date
1175 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1176 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1177 checks for null values in JDBC cleanup code and catch all exceptions
1178 instead of just SQLExceptions.
1179 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1182 2011-03-01 Ben Konrath <ben@bagu.org>
1184 Use GWT 2.2.0 instead of 2.1.1.
1186 * pom.xml: Change GWT version numbers.
1188 2011-03-01 Ben Konrath <ben@bagu.org>
1190 A few small code cleanups.
1192 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1194 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1195 unnecessary object creation in constructor.
1196 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1197 unnecessary object creation in constructor.
1199 2011-02-28 Ben Konrath <ben@bagu.org>
1201 Add file for TODO list.
1205 2011-02-18 Ben Konrath <ben@bagu.org>
1207 Enable the CellTable Pager when more than 20 rows need to be viewed.
1209 The Pager will automatically become active when the results are larger
1210 than the CellTable size which is currently set to 20 lines.
1212 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1213 name on debug statment in RPC call in LayoutListDataProvider, add
1214 numRows parameter to LayoutListView constructor, propperly set rowCount
1216 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1217 name on debug statment in RPC call, use LayoutListTable object in RPC
1218 calls, pass rowCount to LayoutListView.
1219 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1220 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1222 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1223 interface for changes in OnlineGlomService.
1224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1225 getLayoutListHeaders() to getLayoutListTable() and return
1226 LayoutListTable. Using this object allows me to pass other information
1227 about the LayoutList like the expected number of rows in the result set.
1228 The Connection object from the connection pool is now propperly closed.
1229 Only the requested number of lines are returned to the client in
1231 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1232 GlomTable and add columnTitles and numRows.
1234 2011-02-18 Ben Konrath <ben@bagu.org>
1236 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1238 This is a small performance boost. I'll use GlomTable to get the required
1239 layoutlist information.
1241 * src/main/java/org/glom/web/client/OnlineGlom.java:
1242 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1243 * src/main/java/org/glom/web/shared/GlomDocument.java:
1245 2011-02-18 Ben Konrath <ben@bagu.org>
1247 Add option to turn off formatting in JDT formatter preferences.
1249 * .settings/org.eclipse.jdt.core.prefs:
1251 2011-02-18 Ben Konrath <ben@bagu.org>
1253 Rename LayoutList to LayoutListView.
1255 I'm working towards setting things up to easily use MVP when the time
1258 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1260 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1263 2011-02-17 Ben Konrath <ben@bagu.org>
1265 Move LayoutListDataProvider class into LayoutList.java.
1267 * src/main/java/org/glom/web/client/LayoutList.java:
1269 2011-02-17 Ben Konrath <ben@bagu.org>
1271 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1273 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1275 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1276 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1277 from LibGlomServer.java.
1278 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1279 Rename from LibGlomServiceAsync.java.
1280 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1281 Rename from LibGlomServiceImpl.java.
1282 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1284 2011-02-17 Ben Konrath <ben@bagu.org>
1286 Update JDT settings.
1288 * .settings/org.eclipse.jdt.core.prefs:
1290 2011-02-17 Ben Konrath <ben@bagu.org>
1292 Move GWT-RPC objects to shared package (where they should be).
1294 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1295 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1296 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1297 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1298 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1299 org.glom.web.shared package.
1300 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1301 org.glom.web.shared package.
1302 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1303 directory in compilation to javascript.
1305 2011-02-16 Ben Konrath <ben@bagu.org>
1307 Add sort clause to the sql query that grabs table information.
1309 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1310 if one of the columns is a primary key.
1312 2011-02-16 Ben Konrath <ben@bagu.org>
1314 Disable generateAsync feature of gwt-maven.
1316 The generated interface does not correctly match the methods in LibGlomService
1317 and the generated singleton Util inner-class doesn't respect the servlet
1320 * pom.xml: Turn off generateAsync feature.
1321 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1322 with singleton Util inner-class.
1324 2011-02-14 Ben Konrath <ben@bagu.org>
1326 Add LGPL v3 licence notices.
1328 Followed directions listed here:
1329 http://www.gnu.org/licenses/gpl-howto.html
1331 * COPYING: This file is a copy of the GPL v3.
1332 * COPYING.LESSER: This file is a copy of the LGPL v3.
1333 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1335 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1337 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1339 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1341 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1343 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1345 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1348 2011-02-14 Ben Konrath <ben@bagu.org>
1350 Use ArrayList instead of Array in GWT-RPC calls.
1352 Apparently this gives a slight performance boost to the compiled
1355 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1357 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1360 2011-02-14 Ben Konrath <ben@bagu.org>
1362 Access data from a postgres db rather than the example glom file.
1364 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1365 compile down to obfuscated javascript.
1366 * pom.xml: Add c3p0 and postgres JDBC libraries.
1367 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1368 using a postgres db accessed through the c3p0 connection pooling library.
1370 2011-02-14 Ben Konrath <ben@bagu.org>
1372 Update Java formatter settings.
1374 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1376 2011-02-02 Ben Konrath <ben@bagu.org>
1378 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1380 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1382 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1383 the compiled webapp directory that Eclipse uses as we're using Maven now.
1384 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1385 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1387 * pom.xml: Format file, change target Java version to 1.6.
1389 2011-02-02 Ben Konrath <ben@bagu.org>
1391 Add information about a deployment related issue.
1393 * README: Add Notes section with the problem outlined.
1395 2011-02-02 Ben Konrath <ben@bagu.org>
1397 Call Glom.libglom_deinit() when the servlet is shutdown.
1399 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1400 Glom.libglom_deinit() to destroy() method.
1402 2011-01-28 Ben Konrath <ben@bagu.org>
1404 Use generated Util class to get the RPC Async interface.
1406 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1408 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1409 getInstance() method to get a reference to the RPC Async interface.
1410 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1411 getInstance() method to get a reference to the RPC Async interface, remove
1412 the now unused getLibGlomServiceProxy() method.
1414 2011-01-27 Ben Konrath <ben@bagu.org>
1416 Cleanup ChangeLog entry from previous commit.
1418 * ChangeLog: Group logical changes together and add comments.
1420 2011-01-25 Ben Konrath <ben@bagu.org>
1422 Convert to gwt-maven project.
1424 * .gitignore: Update for new project structure.
1425 * README: New file with a link to the online documentation.
1426 * pom.xml: The generated maven configuration file with some tweaks.
1428 Add / update Eclipse settings. These files are a merge of the files that
1429 were generated with the gwt-maven plugin and the files we were previously
1433 * .settings/.jsdtscope:
1434 * .settings/com.google.gdt.eclipse.core.prefs:
1435 * .settings/com.google.gwt.eclipse.core.prefs:
1436 * .settings/org.eclipse.jdt.core.prefs:
1437 * .settings/org.eclipse.wst.common.component:
1438 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1439 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1440 * .settings/org.maven.ide.eclipse.prefs:
1441 * OnlineGlomTest-dev.launch:
1442 * OnlineGlomTest-prod.launch:
1444 Java source files moved from the 'src' directory to the directory structure
1446 * src/main/java/org/glom/web/client/GlomDocument.java:
1447 * src/main/java/org/glom/web/client/GlomTable.java:
1448 * src/main/java/org/glom/web/client/LayoutList.java:
1449 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1450 * src/main/java/org/glom/web/client/LibGlomService.java:
1451 * src/main/java/org/glom/web/client/OnlineGlom.java:
1452 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1454 Non-functional property file used for translations. I included this as
1455 reminder that it's something I need to sort out.
1456 * src/main/resources/org/glom/web/client/Messages.properties:
1458 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1459 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1461 The servlet configuration files moved from the 'war' directory.
1462 * src/main/webapp/OnlineGlom.css:
1463 * src/main/webapp/OnlineGlom.html:
1464 * src/main/webapp/WEB-INF/web.xml:
1466 Generated test files with most of the code commented out. I included these
1467 so that it's easy to add tests when we're ready for them.
1468 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1469 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1471 2011-01-25 Ben Konrath <ben@bagu.org>
1473 Remove unused println.
1475 * src/org/glom/web/server/LibGlomServiceImpl.java:
1477 2011-01-25 Ben Konrath <ben@bagu.org>
1479 Add project specific JDT settings.
1481 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1482 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1484 2011-01-25 Ben Konrath <ben@bagu.org>
1486 Populate celltable with example data.
1488 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1489 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1490 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1491 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1492 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1493 asynchronously gets the example data.
1494 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1495 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1496 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1497 curently selected table to be retrieved by other widgets.
1498 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1499 implement getTableData() in a hacky way. This method needs to be updated
1500 to grab information from the database when database creating is
1503 2011-01-20 Ben Konrath <ben@bagu.org>
1505 Set table headers when table dropBox changes.
1507 * src/org/glom/web/client/GlomDocument.java: Correct some method
1509 * src/org/glom/web/client/LibGlomService.java: Add method
1510 to get list layout field names.
1511 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1512 to get list layout field names.
1513 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1514 widget for list layout table.
1515 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1516 the table drop box and add new updateTable() method to asynchronously
1517 get the layout list field names for the currently selected table.
1518 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1519 implementation of getLayoutListHeaders() method.
1520 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1522 2011-01-18 Ben Konrath <ben@bagu.org>
1524 Make a listBox with table titles instead of the flexTable demo.
1526 This is the start of something more useful.
1528 * .classpath: Exclude a bunch of packages from the JVM that are
1529 getting in the way of the Eclipse content assist.
1530 * src/org/glom/web/client/GlomDocument.java:
1531 * src/org/glom/web/client/GlomTable.java:
1532 * src/org/glom/web/client/LibGlomService.java:
1533 * src/org/glom/web/client/LibGlomServiceAsync.java:
1534 * src/org/glom/web/client/OnlineGlom.java:
1535 * src/org/glom/web/server/LibGlomServiceImpl.java:
1536 * war/OnlineGlom.html:
1537 * war/WEB-INF/web.xml:
1539 211-01-13 Ben Konrath <ben@bagu.org>
1541 Update to new java-libglom API.
1543 * .gitignore: Ignore OnlineGlom.war.
1544 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1546 2010-12-20 Ben Konrath <ben@bagu.org>
1548 Add some basic style to the table listing.
1550 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1551 header, print useful error message on async callback failure.
1552 * war/OnlineGlom.css: Add style for table header, remove defaults
1553 provided by the Eclipse project wizard.
1555 2010-12-20 Ben Konrath <ben@bagu.org>
1557 Load example file from installed glom dir.
1559 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1560 provided by java-libglom to find the example file.
1562 2010-12-20 Ben Konrath <ben@bagu.org>
1564 Update Eclipse settings.
1567 * .settings/com.google.gdt.eclipse.core.prefs:
1568 * .settings/com.google.gwt.eclipse.core.prefs:
1570 2010-12-17 Ben Konrath <ben@bagu.org>
1574 * .classpath: New file.
1575 * .gitignore: New file.
1576 * .project: New file.
1577 * .settings/com.google.gdt.eclipse.core.prefs: New file.
1578 * .settings/com.google.gwt.eclipse.core.prefs: New file.
1579 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1580 * src/org/glom/web/client/GlomTable.java: New file.
1581 * src/org/glom/web/client/OnlineGlom.java: New file.
1582 * src/org/glom/web/client/TableNameService.java: New file.
1583 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1584 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1585 * war/OnlineGlom.css: New file.
1586 * war/OnlineGlom.html: New file.
1587 * war/WEB-INF/web.xml: New file.
1588 * war/images/glom.png: New file.