1 2011-06-24 Ben Konrath <ben@bagu.org>
3 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
5 This allows the primary key to be retrieved by the Details button. This
6 functionality has not been implemented yet but it's in the works.
8 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
9 the LayoutGroup result to ListView.setCellTable instead of all of its
11 * src/main/java/org/glom/web/client/ui/ListView.java:
12 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
13 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
14 get the primary key for the table.
15 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
16 index of the primary key in the LayoutGroup accounting for hidden
17 primary keys. Rename getJavaNumberFormat() to
18 convertToJavaNumberFormat() for consistency. Cleanup / add some
20 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
21 field for primary key index and a field to indicate whether the
22 primary key is hidden or not.
24 2011-06-23 Ben Konrath <ben@bagu.org>
26 Rename getTableData methods to getListData.
28 This is a rename refactor for consistency with other methods.
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/ui/ListViewImpl.java:
33 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
35 2011-06-23 Ben Konrath <ben@bagu.org>
37 Extract the ConfiguredDocument innerclass into its own class.
39 This makes the servlet code more object oriented.
41 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
42 from private ConfiguredDocument class in OnlineGlomServiceImpl.
43 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
44 new ConfiguredDocument class.
46 2011-06-21 Ben Konrath <ben@bagu.org>
48 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
50 This makes things more inline with how libglom works and reduces code
51 duplication. This refactor lays the groundwork for adding the primary key to
52 the LayoutGroup object.
54 * src/main/java/org/glom/web/client/OnlineGlomService.java:
55 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
56 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
57 Change method names to getListLayout and getDefaultListLayout for
58 consistency. Use LayoutGroup as the DTO for the list layout instead of
59 ColumnInfo and LayoutListTable.
60 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
61 new method names along with the LayoutGroup object for transferring the
63 * src/main/java/org/glom/web/client/ui/ListView.java:
64 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
65 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
66 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
68 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
69 Replaced with LayoutGroup.
70 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
71 expectedResultSize and defaultTableName fields which are needed for
73 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
74 type field which is needed for the list layout but will also be
75 useful for the details layout as things progress.
76 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
77 Make class abstract. Remove the unnecessary
78 getFormattingHorizontalAlignment method. Add setFormatting method.
80 2011-06-16 Ben Konrath <ben@bagu.org>
82 Add scripts for building and installing war.
84 These will help when updating OnlineGlom but they're also good
85 supplemental documentation of the build and deployment proceeding.
87 * utils/build-onlineglom-war.sh: New file.
88 * utils/install-onlineglom-war.sh: New file.
90 2011-06-16 Ben Konrath <ben@bagu.org>
92 Create wrapper class to create consistent log messages.
94 I wrapped methods in the Log class of gwt-log to add the method names
95 from the servlet and create consistent formatting of the document title
96 and table names in the log messages.
98 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
99 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
100 log methods to use methods from wrapped Log class.
102 2011-06-16 Ben Konrath <ben@bagu.org>
104 Remove superfluous conditional return.
106 Thanks to Murray Cumming for pointing this out!
108 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
110 2011-06-15 Ben Konrath <ben@bagu.org>
112 Return an ArrayList of LayoutGroups for the Details layout.
114 This corrects a problem with the details layout as it can have more
115 than one top level LayoutGroup.
117 * src/main/java/org/glom/web/client/OnlineGlomService.java:
118 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
119 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
120 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
121 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
122 with ArrayList of LayoutGroups for the details view layout.
123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
124 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
125 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
126 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
127 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
128 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
130 2011-06-14 Ben Konrath <ben@bagu.org>
132 Use cast_dynamic method to determine the libglom LayoutItem type.
134 This is better than finding the LayoutItem type by using the string
135 returned from the get_part_type_name() method.
137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
139 2011-06-14 Ben Konrath <ben@bagu.org>
141 Add method names to log entries in the servlet.
143 This helps when tracking down deployment problems.
145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
147 2011-06-14 Ben Konrath <ben@bagu.org>
149 Add data to the DetailsView using a hard-coded primary key value.
151 The layout and functionality of the DetailsView is not complete. This
152 is just a checkpoint so the patch doesn't get too big.
154 * src/main/java/org/glom/web/client/OnlineGlomService.java:
155 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
156 Add getDetailsData() servlet method.
157 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
158 Add RPC to getDetailsData(). Change the way the LayoutGroups and
159 LayoutFields are added to the DetailsView.
160 * src/main/java/org/glom/web/client/ui/DetailsView.java:
161 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
162 Add setData() method. Change addLayoutGroup() and addLayoutField() to
163 take the string for the title instead of the object.
164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
165 Add implementation getDetailsData() along with some private helper
167 * src/main/webapp/style.css: Add padding to details-data class. Add a
168 details-label class with the same padding as the details-data class.
170 2011-06-03 Ben Konrath <ben@bagu.org>
172 Use presenter.goTo() to change to the DetailsPlace.
174 This will make things easier when we need to open the DetailsView with
175 data specific to the row that was clicked.
177 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
179 2011-06-02 Ben Konrath <ben@bagu.org>
181 Add CSS file from mockups.
183 I'm adding this now because it's going to be useful to have when
184 developing the DetailsView. The TableSelectionView and ListView aren't
187 * src/main/webapp/OnlineGlom.html:
188 * src/main/webapp/style.css:
190 2011-06-02 Ben Konrath <ben@bagu.org>
192 Use String.isEmpty() to check for empty string.
194 * src/main/java/org/glom/web/client/activity/ListActivity.java:
196 2011-06-02 Ben Konrath <ben@bagu.org>
198 Display main layout group titles in the DetailsView.
200 This is the start of the DetailsActivity/DetailsView implementation.
202 * src/main/java/org/glom/web/client/OnlineGlomService.java:
203 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
204 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
205 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
206 Get the layout information for the details view from the server and set
207 the main layout group titles.
208 * src/main/java/org/glom/web/client/ui/DetailsView.java:
209 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
210 Add addLayoutGroup() and addLayoutField() methods. This are just
211 temporary methods for creating the the details view that will change
213 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
214 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
216 * src/main/java/org/glom/web/shared/layout/Formatting.java:
217 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
218 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
219 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
220 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
221 Data Transfer Objects that mimic the libglom object structure. These are
222 used for transferring the details layout but could also be used for
223 transferring the list layout.
225 2011-05-27 Ben Konrath <ben@bagu.org>
227 Reset the AuthenticationPopup when clearing the ListView.
229 * src/main/java/org/glom/web/client/activity/ListActivity.java:
231 2011-05-27 Ben Konrath <ben@bagu.org>
233 Fix problem with onlineglom.properties file loading.
235 The old way worked in Eclipse but not on the server. Loading the
236 onlineglom.properties file now works in Eclipse and on the server.
238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
240 2011-05-24 Ben Konrath <ben@bagu.org>
242 Update gwt-log from 3.1.0 to 3.1.2.
244 Gwt-log 3.1.0 has been marked as depreciated.
248 2011-05-24 Ben Konrath <ben@bagu.org>
250 Add comment to ListActivity.goTo() method.
252 * src/main/java/org/glom/web/client/activity/ListActivity.java:
254 2011-05-24 Ben Konrath <ben@bagu.org>
256 Remove FIXME in convertGdkColorToHtmlColour()
258 The Gdk::Color value returned by libglom is 16-bits per channel on both
259 64 and 32-bit platforms.
261 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
263 2011-05-19 Ben Konrath <ben@bagu.org>
265 Improve performance of initial ListView load.
267 I removed a round trip to the server for getting the default table name
268 and then requesting information about that table. This also removes a potential
269 problem with the table change handler not being setup in time to receive the
270 table change event from the ListActivity.
272 * src/main/java/org/glom/web/client/OnlineGlomService.java:
273 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
274 getDefaultLayoutListTable() method. Improve comments.
275 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
276 getDefaultLayoutListTable() method instead of firing a table change
277 event to get the table to load.
278 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
279 implementation of getDefaultLayoutListTable() method.
280 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
283 2011-05-19 Ben Konrath <ben@bagu.org>
285 Override toDebugString() in TableChangeEvent.
287 This is useful to have for debugging.
289 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
291 2011-05-19 Ben Konrath <ben@bagu.org>
293 Add a "Back to List" link when at the DetailsPlace.
295 * src/main/java/org/glom/web/client/activity/ListActivity.java:
296 Populate the CellTable based on the selected table of the ListBox if
297 it's set otherwise use the default table. This allows the "Back to
299 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
300 Remove Place from constructors. Add a setPlace() method. Add
301 goToPlace() method. Set class as presenter for TableSelectionView.
302 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
303 Use the same TableSelectionActivity when switching between the List and
305 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
306 Subclass the new HasSelectableTablePlace. This removes some duplicate
308 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
309 New class to represent Places that display the TableSelectionView.
310 * src/main/java/org/glom/web/client/place/ListPlace.java:
311 Subclass the new HasSelectableTablePlace. This removes some duplicate
313 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
314 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
315 Add Presenter interface. Add setBackLinkVisible() method. Add
316 setBackLink() method.
318 2011-05-18 Ben Konrath <ben@bagu.org>
320 Enable the "Details" buttons.
322 Right now only an empty details view is displayed.
324 * src/main/java/org/glom/web/client/ClientFactory.java:
325 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
326 Add DetailsView to ClientFactory.
327 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
328 A basic activity for the details view.
329 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
330 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
332 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
333 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
335 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
336 Create a new DetailsActivity when a DetailsPlace is requested. Remove
337 unnecessary super() in constructor.
338 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
339 Create a new TableSelectionActivity when a DetailsPlace is requested. We
340 really shouldn't create a new TableSelectionActivity for both the ListPlace
341 and the DetailsPlace so this should be considered a temporary solution.
342 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
343 New file. Represents a URL for the details view.
344 * src/main/java/org/glom/web/client/ui/DetailsView.java:
345 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
346 A basic details view interface and implementation.
347 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
348 Enable the "Details" buttons.
350 2011-05-12 Ben Konrath <ben@bagu.org>
352 Use a LayoutPanel with multiple display areas for main layout.
354 This is mostly a refactor in that there are no changes from the user
355 point of view. These changes are required so that we can swap out the list view
356 with the details view when the user clicks the "Details" button.
358 * src/main/java/org/glom/web/client/ClientFactory.java:
359 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
360 OnlineGlomView. Add TableSelectionView, ListView and
362 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
363 for main layout. Add display regions for main activities. Add
364 activity manager for for main activities.
365 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
366 file from parts of the deleted OnlineGlomActivity.
367 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
368 New file from parts of the deleted OnlineGlomActivity.
369 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
370 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
371 New files for app wide table change event.
372 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
373 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
374 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
375 Activity mappers for the main activities replace the deleted app-wide
377 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
378 Fix a spelling error in he comment.
379 * src/main/java/org/glom/web/client/ui/ListView.java:
380 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
381 Renamed from LayoutListView and modified for MVP. This still not a
382 proper dumb view as prescribed by the MVP pattern but it works for now.
383 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
384 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
385 New widget stripped out of the deleted OnlineGlomView.
386 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
387 Remove hack that is fixed by this patch.
389 2011-05-06 Ben Konrath <ben@bagu.org>
391 Rename OnlineGlomPlace to ListPlace.
393 The only change besides the rename is that url will now display #list
394 instead of #Document.
396 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
397 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
398 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
399 * src/main/java/org/glom/web/client/place/ListPlace.java:
400 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
402 2011-05-06 Ben Konrath <ben@bagu.org>
404 Use Presenter for app navigation.
406 This is the proper way to deal with Place (URL) changes with the MVP
409 * src/main/java/org/glom/web/client/ClientFactory.java:
410 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
411 PlaceHistoryMapper and PlaceHistoryHandler.
412 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
413 PlaceHistoryMapper and PlaceHistoryHandler.
414 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
415 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
416 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
417 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
418 Add Presenter interface and setPresenter methods. Rename addHyperLink
419 to addDocumentLink taking only the document title as a parameter.
421 2011-04-14 Ben Konrath <ben@bagu.org>
423 Prompt for db username/password if they haven't been set.
425 This is implemented with a popup widget that is contained within the
426 OnlineGlomView and managed by the OnlineGlomActivity.
428 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
429 methods for checking and setting the database username and password.
430 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
431 new methods for checking and setting the database username and
433 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
434 Display authentication popup if the JDBC connection to the database
435 has not been authenticated.
436 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
438 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
439 for dealing with the authentication popup.
440 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
441 Implement the methods for dealing with the authentication popup.
442 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
443 try to executed queries if the database connection hasn't been
444 authenticated. Implement methods for checking and setting the
445 database username and password.
447 2011-04-12 Ben Konrath <ben@bagu.org>
449 Make log messages a little clearer.
451 Add a dash betweeen the document title and the table name.
453 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
455 2011-04-12 Ben Konrath <ben@bagu.org>
457 Protect against NPEs when cleaning up database resources.
459 While this isn't strictly necessary because the exception is caught,
460 not protecting against the NPEs makes it harder to find the real error
463 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
465 2011-04-12 Ben Konrath <ben@bagu.org>
467 Move configuration of the servlet to the constructor.
469 The servlet will be initialized even if the database authentication
470 information is not set or correct. I still need to add the UI for prompting
471 the user for the authentication information when it's required.
473 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
474 javadocs for getDocumentTitles() method.
475 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
476 Set error message when RPC fails.
477 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
478 glom files directory from the configuration file. Try to set the
479 database authentication information for the specific document if it's
480 set and works otherwise try to use the global authentication
481 information set for the directory.
482 * src/main/resources/onlineglom.properties: Moved from
483 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
484 Added detailed comments for the new keys.
486 2011-04-11 Ben Konrath <ben@bagu.org>
488 Remove unnecessary @Override in DocumentSelectionViewImpl.
490 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
492 2011-04-11 Ben Konrath <ben@bagu.org>
494 Remove center alignment in DocumentSelectionView.
496 The title element is still centred but the document titles and bottom
497 sentence are both left-aligned.
499 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
501 2011-04-11 Ben Konrath <ben@bagu.org>
503 Change 'Demo' naming convention to 'Document'.
505 This is just a rename refactor with no functional changes to the code.
507 * src/main/java/org/glom/web/client/ClientFactory.java:
508 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
509 * src/main/java/org/glom/web/client/OnlineGlom.java:
510 * src/main/java/org/glom/web/client/OnlineGlomService.java:
511 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
512 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
513 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
514 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
515 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
516 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
517 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
518 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
519 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
521 2011-04-08 Ben Konrath <ben@bagu.org>
523 Remove FIXME from safeLongToInt() method.
525 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
528 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
530 2011-04-08 Ben Konrath <ben@bagu.org>
532 Display an error if no glom documents are found in the specified directory.
534 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
535 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
536 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
539 2011-04-08 Ben Konrath <ben@bagu.org>
541 Add copyright header to one more file ... oops.
543 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
545 2011-04-08 Ben Konrath <ben@bagu.org>
547 Add copyright header to files without it.
549 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
550 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
551 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
552 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
553 * src/main/java/org/glom/web/shared/ColumnInfo.java:
554 * src/main/java/org/glom/web/shared/GlomField.java:
556 2011-04-08 Ben Konrath <ben@bagu.org>
558 Add support for accessing multiple glom documents in the servlet.
560 This completes the demo selection functionality.
562 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
563 document title to methods.
564 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
565 document title to methods.
566 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
567 Set browser window title when the activity starts. Correct name of
568 document title variable.
569 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
570 Set browser window title when the activity starts. Set the table
571 selector change handler after table selector has been set. Clear the
572 OnlineGlomView when the activity has been stopped.
573 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
574 document title as the place token. Use "#Document:" instead of
575 "#OnlineGlomPlace:" in the URL.
576 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
577 Change heading to "Online Glom"
578 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
579 document title in RPC methods.
580 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
581 setDocumentTitle() method. Add clear() method.
582 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
583 setDocumentTitle() method. Implement clear() method which removes the
584 change handler on the ListBox, clears the ListBox and clears the
586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
587 Implement methods with document title. Keep track for the configured
588 glom documents and their corresponding JDBC configurations in a hash
589 table. This information is retrieved using the document title as the
590 key in the hash table.
591 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
592 document title field as it's no longer needed.
594 2011-04-08 Ben Konrath <ben@bagu.org>
596 Update the Eclipse JDT configuration.
598 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
599 methods. Automatically add the copyright header to new files.
601 2011-04-05 Ben Konrath <ben@bagu.org>
603 Add new page for demo selection.
605 This patch adds all the components required to view and start an
606 OnlineGlom demo by clicking on the desired hyperlink. The user is
607 able to return to the demo selection page with the browser's back
608 button. I still need to modify the servlet to work with multiple
609 documents so all demo links will load the file defined in the
610 OnlineGlom.properties.
612 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
613 This is only useful during development so we don't need to save it.
614 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
615 get a reference to the DemoSelectionView.
616 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
617 method to get a reference to the DemoSelectionView.
618 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
619 default view to DemoSelectionView.
620 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
621 to get glom document titles for glom files in a hard-coded directory.
622 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
623 method to get glom document titles for glom files in a hard-coded
625 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
626 Presenter for DemoSelectionView.
627 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
628 for DemoSelectionView.
629 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
630 Update for DemoSelectionView.
631 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
632 Basic 'Place' implementation for the DemoSelectionView.
633 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
634 The interface for the DemoSelectionView.
635 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
636 The implementation of the DemoSelectionView.
637 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
638 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
640 implementation of method to get glom document titles for glom files
641 in a hard-coded directory.
642 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
643 on longer being used.
644 * src/main/webapp/glom.png: Glom logo.
646 2011-04-05 Ben Konrath <ben@bagu.org>
648 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
650 This is the forth and final commit of a refactor that will allow
651 OnlineGlom to be used with multiple documents.
653 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
654 Move RPC code from OnlineGlomViewImpl to this class.
655 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
657 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
658 RPC code to the presenter class (the P in MVP).
660 2011-04-04 Ben Konrath <ben@bagu.org>
662 Start moving the existing OnlineGlom code to MVP.
664 This work is based on the GWT MVP framework that is documented here:
666 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
668 This is the third commit of a refactor that will allow OnlineGlom to
669 be used with multiple documents.
671 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
672 Interface for client factory which is used to get instances of various
673 classes throughout the app.
674 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
675 Implementation of client factory.
676 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
677 initialize the MVP framework.
678 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
679 New file. Activity manager for the main container widget. This is the
681 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
682 Maps place (URL) to its corresponding activity.
683 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
684 New file. This is just a place holder for a generated file.
685 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
686 New file. Represents the URL for the main Online Glom app.
687 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
688 for changes in LayoutListViewImpl.
689 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
690 interface for View. Move code to OnlineGlomViewImpl class.
691 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
692 file. Implementation of OnlineGlomView.
693 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
694 Place resources. Use ClientFactoryImpl by default.
696 2011-04-04 Ben Konrath <ben@bagu.org>
698 Move View classes to their own package.
700 This is the second commit of a refactor that will allow OnlineGlom to
701 be used with multiple documents.
703 * src/main/java/org/glom/web/client/OnlineGlom.java:
704 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
705 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
707 2011-04-02 Ben Konrath <ben@bagu.org>
709 Move UI code from the main module to its own class.
711 This is the first commit of a refactor that will allow OnlineGlom to be
712 used with multiple documents.
714 * src/main/java/org/glom/web/client/LayoutListView.java: Update
715 references to OnlineGlom to OnlineGlomView.
716 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
717 OnlineGlomView and instantiate it here.
718 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
719 represents the main OnlineGlomView with one document.
721 2011-04-01 Ben Konrath <ben@bagu.org>
723 Fix formatting of gwt.xml and add DTD.
725 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
727 2011-03-30 Ben Konrath <ben@bagu.org>
729 Propperly convert gdkColor string to html colour string.
731 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
733 2011-03-28 Ben Konrath <ben@bagu.org>
735 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
737 This implementation matches
738 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
739 readable and is not tied to Swig.
741 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
743 2011-03-28 Ben Konrath <ben@bagu.org>
745 Use read-only checkboxes for boolean field types.
747 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
748 in the CellTable based on the field type. It currently only
749 distinguishes between boolean and text columns but I'll need to add
750 support for more types.
751 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
752 column type in the ColumnInfo object. Add method to convert between the
753 glom field type enum in ColumnInfo and the glom field type in libglom.
754 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
756 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
757 getting and setting booleans.
759 2011-03-25 Ben Konrath <ben@bagu.org>
761 Don't get the Date twice from the ResultSet.
763 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
765 2011-03-25 Ben Konrath <ben@bagu.org>
767 Cleanup code in the servlet.
769 * TODO: Remove item about row count. Add item about testing row count
770 query with large number of rows.
771 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
772 spelling mistakes, change method parameter to be consistent with
775 2011-03-25 Ben Konrath <ben@bagu.org>
777 Add server side logging with the gwt-log library.
779 * .gitignore: Ignore the log file we're now producing.
780 * TODO: Add a couple TODO item for logging.
781 * pom.xml: Add gwt-log and log4j as a dependency.
782 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
783 logging of errors, warnings and some important info.
784 * src/main/resources/log4j.properties: New file to configure log4j.
786 2011-03-24 Ben Konrath <ben@bagu.org>
788 Add a disable button for the Details view.
790 * src/main/java/org/glom/web/client/LayoutListView.java:
792 2011-03-22 Ben Konrath <ben@bagu.org>
794 Use a count query to get the number of rows for the list view pager.
796 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
798 2011-03-22 Ben Konrath <ben@bagu.org>
800 Add more TODO information about CellTable pager positioning.
804 2011-03-19 Ben Konrath <ben@bagu.org>
806 Add TODO item about CellTable pager positioning.
810 2011-03-18 Ben Konrath <ben@bagu.org>
812 Remove unneeded GlomFieldColumn class.
814 This is just a small code cleanup.
816 * src/main/java/org/glom/web/client/LayoutListView.java:
818 2011-03-18 Ben Konrath <ben@bagu.org>
820 Use cursor mode in the query that gets data for the list view.
822 I still need to fix the potential memory problem when getting the row
823 count for the list view.
825 * TODO: Add note about testing memory usage with large data sets. Add
826 item about fixing row counting with large data sets.
827 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
828 PostgreSQL JDBC driver into cursor mode when getting data for the
831 2011-03-15 Ben Konrath <ben@bagu.org>
833 Remove the GWT Container from the Eclipse build classpath.
835 The GWT dependencies are set by Maven so this isn't needed.
839 2011-03-15 Murray Cumming <murrayc@murrayc.com>
841 Added some earlier mockups to git, but not to the tarball dist.
843 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
844 Openismus. These hopefully show how we might structure the HTML so that
845 it can be styled easily with CSS. However, we probably need to adapt them
846 for the CSS structure that GWT dictates for common widgets.
848 2011-03-14 Ben Konrath <ben@bagu.org>
850 Locate OnlineGlom.properties using the ServletContext.
852 This is required to be able to locate the file in the deployed servlet.
854 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
855 Configure the database and glom document in in a helper method so
856 that the ServletContext can be used to locate OnlineGlom.properties.
857 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
858 src/main/webapp. This is the proper location for .properites files.
860 2011-03-12 Ben Konrath <ben@bagu.org>
862 Add note to README about why we're compiling down to obfuscated JavaScript.
866 2011-03-11 Ben Konrath <ben@bagu.org>
868 Use properties file to configure servlet.
870 This allows people to change the glom file path, db username and db
871 password without recompiling the code.
873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 * src/main/webapp/OnlineGlom.properties:
876 2011-03-11 Ben Konrath <ben@bagu.org>
878 Use table fields in layout list view if the layout list is not defined.
880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
881 Manually create a LayoutFieldVector for the query builder using the
882 table fields when a layout list is not defined in the glom file.
884 2011-03-11 Ben Konrath <ben@bagu.org>
886 Only show FIXME string for images when there's an image.
888 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
889 in this change are some small code cleanups.
891 2011-03-11 Ben Konrath <ben@bagu.org>
893 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
897 2011-03-11 Ben Konrath <ben@bagu.org>
899 Correctly set the index of the default table.
901 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
902 Correctly set the index of the default table. Add commented out example
905 2011-03-10 Ben Konrath <ben@bagu.org>
907 Add comment to pom.xml about the previous change.
909 * pom.xml: Add comment about the deployment issue so that it's obvious
910 why java-libglom is set to the provided scope.
912 2011-03-10 Ben Konrath <ben@bagu.org>
914 Change java-libglom dependency from compile to provided in pom.xml.
916 Since java-libglom uses jni it can only be loaded once and therefore
917 must be placed in $CATALINA_HOME/lib and not included in each war.
918 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
919 More information about this issue can be found in the Tomcat 6 release
920 notes in the "JNI Based Applications" section:
922 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
924 * README: Remove note about this issue. Deployment info should really
925 be on the wiki anyway so I'll add it right now.
926 * pom.xml: Change java-libglom dependency from compile to provided so
927 that it's copied in to the packaged war.
929 2011-03-09 Ben Konrath <ben@bagu.org>
931 Change to using a neutral locale for currency, date and time formatting.
933 This solves the problem of currency values being represented without a
934 space between the currency code and the number (e.g. "EUR5.89" is now
935 represented as "EUR 5.89"). More work is required when we implement
936 a locale preference setting.
938 * TODO: Add note about currency formatting issues with different
940 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
941 to using the neutral ROOT locale.
943 2011-03-09 Ben Konrath <ben@bagu.org>
945 Add support for currency codes that are not ISO 4217 codes.
947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
948 the currency code defined in the glom file when it's not 3 characters
949 long or when Java doesn't recognize the string as an ISO 4217 code.
951 2011-03-08 Ben Konrath <ben@bagu.org>
953 Remove test classes, launch configurations and configuration.
955 The test stuff was getting in the way when creating the war. To make
956 the war file you can now do 'mvn clean package'. The packaged war file
957 will be in the target directory.
959 * .classpath: Remove unused classpathentry for tests and i18n.
960 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
961 property. Don't run test or i18n goals when packaging the war.
962 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
967 * OnlineGlomTest-dev.launch:
968 * OnlineGlomTest-prod.launch:
969 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
970 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
972 2011-03-07 Ben Konrath <ben@bagu.org>
974 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
976 These fixes allow me to use 'mvn deploy' to create the war file.
978 * .classpath: This generated config has been updated by Eclipse. This
979 change was probably triggered by me updating from Eclipse 3.6.1 to
981 * .gitignore: Add entry to ignore the directory
982 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
983 * .project: The generated config has been updated by Eclipse. This
984 change was probably triggered by me updating from Eclipse 3.6.1 to
986 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
987 so that Eclipse doesn't complain
988 * pom.xml: Update to gwt-maven-plugin 2.2.0.
989 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
990 'tests' directory to 'client' directory. This is the new
991 gwt-maven-plugin convension.
992 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
993 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
995 2011-03-07 Ben Konrath <ben@bagu.org>
997 Add support for horizontal alignment in the LayoutList columns.
999 * TODO: Remove item about horizontal alignment. Add item about
1000 improvements to ColumnInfo.
1001 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1002 alignment on the columns. Use ColumnInfo RPC object get the column
1003 title and horizontal alignment.
1004 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1005 LayoutListView creation with ColumnInfo RPC object.
1006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1007 a ColumnInfo object for every LayoutList columnn. Convert the
1008 FieldFormatting.HorizontalAlignment to the correct
1009 ColumnnInfo.HorizontatlAlignment with the new
1010 getColumnInfoHorizontalAlignment helper method.
1011 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1012 to encapsulate column information like alignment and title. This
1013 could be used to set the colour instead of on a per cell field basis.
1014 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1015 column title storage and retrieval with ColumnInfo.
1017 2011-03-04 Ben Konrath <ben@bagu.org>
1019 Add support for column sorting.
1021 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1022 AsynDataProvider to be an anonymous inner class. Use new
1023 getSortedTableData RPC method when column sort is requested. Set all
1024 columns sortable and add an AsyncHandler to activate sorting in the
1026 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1027 method getSortedTableData(). Cleanup other method signatures.
1028 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1029 new method getSortedTableData(). Cleanup other method signatures.
1030 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1031 Implement getSortedTableData() and getTableData() methods by using a
1032 private helper method with the appropriate parameters filled in. Use
1033 user supplied sort clause when supplied, otherwise fall back to
1034 sorting by the primary key. Move destroy() method to be underneath
1035 constructor for readability. Cleanup comments.
1037 2011-03-03 Ben Konrath <ben@bagu.org>
1039 Add support for colour text and colour backgrounds to the layout list cells.
1041 Only the cell backgrounds are coloured which leaves a gap between the
1042 cells that isn't coloured. I need to figure out a way to set
1043 'style=background-colour:' on the whole column rather than just the
1046 * TODO: Add a note about colouring the background of the whole column.
1047 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1048 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1049 render the coloured text and backgrounds. Use GlomField[] for the row type.
1050 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1052 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1053 GlomField[] for the row type.
1054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1055 GlomField[] for the row type. Set the text, text colour and background
1056 colour in the GlomField objects as specified in the glom document. Add
1057 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1058 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1059 the glom field text, foreground colour and background colour.
1061 2011-03-02 Ben Konrath <ben@bagu.org>
1063 Don't display hidden tables in the combo box.
1065 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1067 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1068 code to ignore hidden tables using ArrayLists for the table names and
1070 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1071 tableNames to use ArrayLists instead of String[]. Update getter and setter
1074 2011-03-01 Ben Konrath <ben@bagu.org>
1076 Add support for Date and Time number types.
1078 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1079 Implement formatting for Date and Time values. Change the default glom
1080 file to small business example.
1082 2011-03-01 Ben Konrath <ben@bagu.org>
1084 Add support for formatting glom types as specified in the glom file.
1086 Formatting isn't finished yet - I still need to add support for Date
1089 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1090 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1091 checks for null values in JDBC cleanup code and catch all exceptions
1092 instead of just SQLExceptions.
1093 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1096 2011-03-01 Ben Konrath <ben@bagu.org>
1098 Use GWT 2.2.0 instead of 2.1.1.
1100 * pom.xml: Change GWT version numbers.
1102 2011-03-01 Ben Konrath <ben@bagu.org>
1104 A few small code cleanups.
1106 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1108 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1109 unnecessary object creation in constructor.
1110 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1111 unnecessary object creation in constructor.
1113 2011-02-28 Ben Konrath <ben@bagu.org>
1115 Add file for TODO list.
1119 2011-02-18 Ben Konrath <ben@bagu.org>
1121 Enable the CellTable Pager when more than 20 rows need to be viewed.
1123 The Pager will automatically become active when the results are larger
1124 than the CellTable size which is currently set to 20 lines.
1126 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1127 name on debug statment in RPC call in LayoutListDataProvider, add
1128 numRows parameter to LayoutListView constructor, propperly set rowCount
1130 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1131 name on debug statment in RPC call, use LayoutListTable object in RPC
1132 calls, pass rowCount to LayoutListView.
1133 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1134 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1136 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1137 interface for changes in OnlineGlomService.
1138 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1139 getLayoutListHeaders() to getLayoutListTable() and return
1140 LayoutListTable. Using this object allows me to pass other information
1141 about the LayoutList like the expected number of rows in the result set.
1142 The Connection object from the connection pool is now propperly closed.
1143 Only the requested number of lines are returned to the client in
1145 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1146 GlomTable and add columnTitles and numRows.
1148 2011-02-18 Ben Konrath <ben@bagu.org>
1150 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1152 This is a small performance boost. I'll use GlomTable to get the required
1153 layoutlist information.
1155 * src/main/java/org/glom/web/client/OnlineGlom.java:
1156 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1157 * src/main/java/org/glom/web/shared/GlomDocument.java:
1159 2011-02-18 Ben Konrath <ben@bagu.org>
1161 Add option to turn off formatting in JDT formatter preferences.
1163 * .settings/org.eclipse.jdt.core.prefs:
1165 2011-02-18 Ben Konrath <ben@bagu.org>
1167 Rename LayoutList to LayoutListView.
1169 I'm working towards setting things up to easily use MVP when the time
1172 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1174 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1177 2011-02-17 Ben Konrath <ben@bagu.org>
1179 Move LayoutListDataProvider class into LayoutList.java.
1181 * src/main/java/org/glom/web/client/LayoutList.java:
1183 2011-02-17 Ben Konrath <ben@bagu.org>
1185 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1187 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1189 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1190 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1191 from LibGlomServer.java.
1192 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1193 Rename from LibGlomServiceAsync.java.
1194 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1195 Rename from LibGlomServiceImpl.java.
1196 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1198 2011-02-17 Ben Konrath <ben@bagu.org>
1200 Update JDT settings.
1202 * .settings/org.eclipse.jdt.core.prefs:
1204 2011-02-17 Ben Konrath <ben@bagu.org>
1206 Move GWT-RPC objects to shared package (where they should be).
1208 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1209 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1210 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1211 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1212 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1213 org.glom.web.shared package.
1214 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1215 org.glom.web.shared package.
1216 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1217 directory in compilation to javascript.
1219 2011-02-16 Ben Konrath <ben@bagu.org>
1221 Add sort clause to the sql query that grabs table information.
1223 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1224 if one of the columns is a primary key.
1226 2011-02-16 Ben Konrath <ben@bagu.org>
1228 Disable generateAsync feature of gwt-maven.
1230 The generated interface does not correctly match the methods in LibGlomService
1231 and the generated singleton Util inner-class doesn't respect the servlet
1234 * pom.xml: Turn off generateAsync feature.
1235 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1236 with singleton Util inner-class.
1238 2011-02-14 Ben Konrath <ben@bagu.org>
1240 Add LGPL v3 licence notices.
1242 Followed directions listed here:
1243 http://www.gnu.org/licenses/gpl-howto.html
1245 * COPYING: This file is a copy of the GPL v3.
1246 * COPYING.LESSER: This file is a copy of the LGPL v3.
1247 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1249 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1251 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1253 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1255 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1257 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1259 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1262 2011-02-14 Ben Konrath <ben@bagu.org>
1264 Use ArrayList instead of Array in GWT-RPC calls.
1266 Apparently this gives a slight performance boost to the compiled
1269 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1271 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1274 2011-02-14 Ben Konrath <ben@bagu.org>
1276 Access data from a postgres db rather than the example glom file.
1278 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1279 compile down to obfuscated javascript.
1280 * pom.xml: Add c3p0 and postgres JDBC libraries.
1281 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1282 using a postgres db accessed through the c3p0 connection pooling library.
1284 2011-02-14 Ben Konrath <ben@bagu.org>
1286 Update Java formatter settings.
1288 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1290 2011-02-02 Ben Konrath <ben@bagu.org>
1292 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1294 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1296 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1297 the compiled webapp directory that Eclipse uses as we're using Maven now.
1298 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1299 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1301 * pom.xml: Format file, change target Java version to 1.6.
1303 2011-02-02 Ben Konrath <ben@bagu.org>
1305 Add information about a deployment related issue.
1307 * README: Add Notes section with the problem outlined.
1309 2011-02-02 Ben Konrath <ben@bagu.org>
1311 Call Glom.libglom_deinit() when the servlet is shutdown.
1313 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1314 Glom.libglom_deinit() to destroy() method.
1316 2011-01-28 Ben Konrath <ben@bagu.org>
1318 Use generated Util class to get the RPC Async interface.
1320 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1322 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1323 getInstance() method to get a reference to the RPC Async interface.
1324 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1325 getInstance() method to get a reference to the RPC Async interface, remove
1326 the now unused getLibGlomServiceProxy() method.
1328 2011-01-27 Ben Konrath <ben@bagu.org>
1330 Cleanup ChangeLog entry from previous commit.
1332 * ChangeLog: Group logical changes together and add comments.
1334 2011-01-25 Ben Konrath <ben@bagu.org>
1336 Convert to gwt-maven project.
1338 * .gitignore: Update for new project structure.
1339 * README: New file with a link to the online documentation.
1340 * pom.xml: The generated maven configuration file with some tweaks.
1342 Add / update Eclipse settings. These files are a merge of the files that
1343 were generated with the gwt-maven plugin and the files we were previously
1347 * .settings/.jsdtscope:
1348 * .settings/com.google.gdt.eclipse.core.prefs:
1349 * .settings/com.google.gwt.eclipse.core.prefs:
1350 * .settings/org.eclipse.jdt.core.prefs:
1351 * .settings/org.eclipse.wst.common.component:
1352 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1353 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1354 * .settings/org.maven.ide.eclipse.prefs:
1355 * OnlineGlomTest-dev.launch:
1356 * OnlineGlomTest-prod.launch:
1358 Java source files moved from the 'src' directory to the directory structure
1360 * src/main/java/org/glom/web/client/GlomDocument.java:
1361 * src/main/java/org/glom/web/client/GlomTable.java:
1362 * src/main/java/org/glom/web/client/LayoutList.java:
1363 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1364 * src/main/java/org/glom/web/client/LibGlomService.java:
1365 * src/main/java/org/glom/web/client/OnlineGlom.java:
1366 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1368 Non-functional property file used for translations. I included this as
1369 reminder that it's something I need to sort out.
1370 * src/main/resources/org/glom/web/client/Messages.properties:
1372 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1373 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1375 The servlet configuration files moved from the 'war' directory.
1376 * src/main/webapp/OnlineGlom.css:
1377 * src/main/webapp/OnlineGlom.html:
1378 * src/main/webapp/WEB-INF/web.xml:
1380 Generated test files with most of the code commented out. I included these
1381 so that it's easy to add tests when we're ready for them.
1382 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1383 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1385 2011-01-25 Ben Konrath <ben@bagu.org>
1387 Remove unused println.
1389 * src/org/glom/web/server/LibGlomServiceImpl.java:
1391 2011-01-25 Ben Konrath <ben@bagu.org>
1393 Add project specific JDT settings.
1395 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1396 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1398 2011-01-25 Ben Konrath <ben@bagu.org>
1400 Populate celltable with example data.
1402 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1403 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1404 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1405 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1406 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1407 asynchronously gets the example data.
1408 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1409 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1410 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1411 curently selected table to be retrieved by other widgets.
1412 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1413 implement getTableData() in a hacky way. This method needs to be updated
1414 to grab information from the database when database creating is
1417 2011-01-20 Ben Konrath <ben@bagu.org>
1419 Set table headers when table dropBox changes.
1421 * src/org/glom/web/client/GlomDocument.java: Correct some method
1423 * src/org/glom/web/client/LibGlomService.java: Add method
1424 to get list layout field names.
1425 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1426 to get list layout field names.
1427 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1428 widget for list layout table.
1429 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1430 the table drop box and add new updateTable() method to asynchronously
1431 get the layout list field names for the currently selected table.
1432 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1433 implementation of getLayoutListHeaders() method.
1434 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1436 2011-01-18 Ben Konrath <ben@bagu.org>
1438 Make a listBox with table titles instead of the flexTable demo.
1440 This is the start of something more useful.
1442 * .classpath: Exclude a bunch of packages from the JVM that are
1443 getting in the way of the Eclipse content assist.
1444 * src/org/glom/web/client/GlomDocument.java:
1445 * src/org/glom/web/client/GlomTable.java:
1446 * src/org/glom/web/client/LibGlomService.java:
1447 * src/org/glom/web/client/LibGlomServiceAsync.java:
1448 * src/org/glom/web/client/OnlineGlom.java:
1449 * src/org/glom/web/server/LibGlomServiceImpl.java:
1450 * war/OnlineGlom.html:
1451 * war/WEB-INF/web.xml:
1453 211-01-13 Ben Konrath <ben@bagu.org>
1455 Update to new java-libglom API.
1457 * .gitignore: Ignore OnlineGlom.war.
1458 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1460 2010-12-20 Ben Konrath <ben@bagu.org>
1462 Add some basic style to the table listing.
1464 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1465 header, print useful error message on async callback failure.
1466 * war/OnlineGlom.css: Add style for table header, remove defaults
1467 provided by the Eclipse project wizard.
1469 2010-12-20 Ben Konrath <ben@bagu.org>
1471 Load example file from installed glom dir.
1473 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1474 provided by java-libglom to find the example file.
1476 2010-12-20 Ben Konrath <ben@bagu.org>
1478 Update Eclipse settings.
1481 * .settings/com.google.gdt.eclipse.core.prefs:
1482 * .settings/com.google.gwt.eclipse.core.prefs:
1484 2010-12-17 Ben Konrath <ben@bagu.org>
1488 * .classpath: New file.
1489 * .gitignore: New file.
1490 * .project: New file.
1491 * .settings/com.google.gdt.eclipse.core.prefs: New file.
1492 * .settings/com.google.gwt.eclipse.core.prefs: New file.
1493 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1494 * src/org/glom/web/client/GlomTable.java: New file.
1495 * src/org/glom/web/client/OnlineGlom.java: New file.
1496 * src/org/glom/web/client/TableNameService.java: New file.
1497 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1498 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1499 * war/OnlineGlom.css: New file.
1500 * war/OnlineGlom.html: New file.
1501 * war/WEB-INF/web.xml: New file.
1502 * war/images/glom.png: New file.