1 2011-11-15 Ben Konrath <ben@bagu.org>
3 Add details view mockup with HTML tables and text entries.
5 This is from the attachment on this bug:
7 https://bugzilla.gnome.org/show_bug.cgi?id=663109
9 * mockups/details-view-html-tables-text-entries.html:
11 2011-11-15 Ben Konrath <ben@bagu.org>
13 Add space between the columns of the flow table.
17 https://bugzilla.gnome.org/show_bug.cgi?id=662918
19 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
20 space between columns in the flow table.
22 2011-11-15 Ben Konrath <ben@bagu.org>
24 Add backup files to the .gitignore.
26 * .gitignore: Ignore files that end with ~.
28 2011-11-09 Ben Konrath <ben@bagu.org>
30 Use latest release of gwt-log.
32 Gwt-log releases are now being submitted to the maven central
33 repository so manual installation of the jar is no longer required.
35 * pom.xml: Update version and groupId of gwt-log dependency.
37 2011-10-31 Ben Konrath <ben@bagu.org>
39 Don't use GWT numeric formatting to override the glom currency formatting.
41 Currencies are now displayed like they are in Glom. See this bug:
43 https://bugzilla.gnome.org/show_bug.cgi?id=646216
45 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
47 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
48 currency code to constructor and set it when the cell is rendered.
49 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
50 currency code to the constructor of the NumericCell.
52 2011-10-27 Ben Konrath <ben@bagu.org>
54 Require the latest release of java-libglom (1.17.4).
58 2011-10-26 Ben Konrath <ben@bagu.org>
60 Add style to Notebook that matches current theme.
62 It's not the best style in the world but it's better than the default.
64 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
65 padding at the bottom of the child widgets.
66 * src/main/webapp/style.css: Add style for the Notebook.
68 2011-10-26 Ben Konrath <ben@bagu.org>
70 Move servlet initialization code to overridden init method.
72 This is half of the solution to getting proper error messages
73 displayed when configuration errors occur. Here's the relevant bug:
75 https://bugzilla.gnome.org/show_bug.cgi?id=662792
77 The rest of the solution involves surrounding the init method with a
78 try/catch block and setting a global variable with the error /
79 exception. A new async method should be created to retrieve and display
80 the error message / exception.
82 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
83 code from constructor to init method adding exceptions as needed.
85 2011-10-26 Ben Konrath <ben@bagu.org>
87 Add script to monitor and restart tomcat if required.
89 * utils/check-and-recover-tomcat.py: New file.
91 2011-10-26 Ben Konrath <ben@bagu.org>
93 Display the correct number of data items in the pager.
97 https://bugzilla.gnome.org/show_bug.cgi?id=661441
99 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
100 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
101 The implementation is the same for both tables: Keep track of the
102 number of non-empty rows and fire and RowCountChangeEvent after the data has
104 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
105 custom Pager class that subclasses SimplePager to handle displaying
106 the correct number when empty rows have been added.
108 2011-10-26 Ben Konrath <ben@bagu.org>
110 Correct error in previous commit.
112 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
113 eventBus parameter from listView.setCellTable().
115 2011-10-26 Ben Konrath <ben@bagu.org>
117 Fix error in TODO comment.
119 * src/main/java/org/glom/web/client/activity/ListActivity.java:
121 2011-10-24 Ben Konrath <ben@bagu.org>
123 Create Notebook widgets to the details view.
125 This isn't finished just yet - I still need to create a reasonable
126 style to match the current theme.
128 * src/main/java/org/glom/web/client/Utils.java: Add method for
129 calculating the height of a widget. This is used in the Notebook class.
130 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
131 new constructor method in Group.
132 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
133 method for creating child widget that can be used by subclasses
134 like Notebook. New constructor that allows disabling the group
135 titles - Notebooks don't set a group title for their child groups.
136 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
137 to make Notebooks using GWT's TabLayoutPanel.
138 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
139 constructor that allows disabling the group titles.
140 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
141 LayoutItemNotebook DTO.
142 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
143 DTO for Notebooks. It's just an empty class for now but we might need
144 it to transfer some specific information in the future.
146 2011-10-21 Ben Konrath <ben@bagu.org>
148 Add navigation buttons to related list tables.
150 * src/main/java/org/glom/web/client/OnlineGlomService.java:
151 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
153 method getSuitableRecordToViewDetails() for getting the table name
154 and primary key value for related list navigation buttons.
155 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
156 private cell renderer class to get the navigation information for
157 related list tables from the server. Extract the navigation
158 processing code from the details cell navigation and use it for the
159 related list navigation as well.
160 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
161 cell renderer class for the details open buttons. This was needed
162 because the related list navigation buttons and the list view
163 navigation buttons need to react differently when clicked.
164 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
165 the onEnterKeyDown() method because it's now overriden in the
166 subclasses that are specific to the related list tables and the list
168 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
169 the vertical size a little because the buttons add a bit of vertical
170 space to table. This is not a perfect solution because the vertical
171 size of with table fewer than 5 rows will be a little smaller.
172 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
173 changes in how navigation buttons are handled.
174 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
175 getSuitableRecordToViewDetails() using the new RelatedListNavigation
176 database access object.
177 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
178 to find the portal for a given relationship name from
179 RelatedListDBAccess. Add method to find a primary key field for a
181 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
182 Move code to find the portal for a given relationship name to
184 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
185 New file: database access object for getting the related list
186 navigation information (the table name and the primary key value).
187 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
188 DTO for transferring a table name to navigate to and a primary key
190 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
191 boolean and getter/setter to specifies if the related list should add
194 2011-10-24 Murray Cumming <murrayc@murrayc.com>
196 Use the master branch of java-libglom
198 * pom.xml: Depend on java-libglom 1.19 instead.
200 This is the master branch. See also the libglom-1-18 branch.
202 2011-10-11 Ben Konrath <ben@bagu.org>
204 Enable the open navigation button when the data has been set.
206 This avoids having active buttons that don't do anything when the data
209 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
211 2011-10-11 Ben Konrath <ben@bagu.org>
213 Use IsWidget interface for FlowTableItem.
215 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
216 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
218 2011-10-11 Ben Konrath <ben@bagu.org>
220 Remove GWT styling from open button in details view.
222 There are still some issues with how the details cell is arranged but
223 this should be made to match Glom 1.20. I'm going to leave fixing this
224 until I have Glom 1.20 up and running.
226 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
227 style name on open button.
228 * src/main/webapp/style.css: Move and edit details-navigation class.
229 Re-arrange some classes to make them appear in the same order as the
232 2011-10-07 Ben Konrath <ben@bagu.org>
236 * .gitignore: Ignore new cache directory.
237 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
238 * pom.xml: Change GWT and maven plugin to 2.4.0.
239 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
241 * src/main/java/org/glom/web/client/ClientFactory.java:
242 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
243 * src/main/java/org/glom/web/client/OnlineGlom.java:
244 Update source for API changes.
245 * utils/build-onlineglom-war.sh: Remove cache directory before the
248 2011-10-07 Ben Konrath <ben@bagu.org>
250 Add navigation buttons in the details view.
252 This isn't finished but I thought I'd commit what I have as it's a
253 pretty good start. I still need to:
255 1. Change the style so that it fits better into the current theme
256 2. Adjust the details cell to expand as much as possible.
258 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
259 click handlers to navigation buttons in the DetailsCells. Create a
260 refreshData() method to get just the data from the server without the
262 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
263 Update the tableSelector and browser title when the table name
264 changes without using the tableSelector.
265 * src/main/java/org/glom/web/client/ui/DetailsView.java:
266 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
267 getDetailsCells() to getCells(). Update variable names.
268 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
269 method to set click handler on navigation button. Rename a few
270 variables. Add navigation buttons where needed.
271 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
272 variables and methods.
273 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
274 navigation boolean and navigation table as required in the
276 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
277 variables for navigation along with getter/setter methods.
279 2011-10-07 Ben Konrath <ben@bagu.org>
281 Rename Field to DetailsCell.
283 This is a refactor-only commit. No functionality has been added or
286 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
287 Update variable and method names.
288 * src/main/java/org/glom/web/client/ui/DetailsView.java:
289 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
290 variable and method names.
291 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
293 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
294 variable and method names.
296 2011-10-07 Ben Konrath <ben@bagu.org>
298 Create separate methods for layout and data the details view.
300 This is a refactor-only commit. No functionality has been added or
303 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
304 private methods: setData(), createLayout().
306 2011-10-07 Ben Konrath <ben@bagu.org>
308 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
310 This is part of a change to get navigation buttons in the details view
311 but it should have been done this way from the start.
313 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
314 for method name change in TableSelectionView.
315 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
316 Create TableChangeEvent and set the browser title using the
317 TableSelectionView API.
318 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
319 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
320 Change getSelectedTable() to getSelectedTableName(). Add
321 getSelectedTableTitle().
323 2011-10-07 Ben Konrath <ben@bagu.org>
325 Use primaryKeyValue naming convention in constructor of DetailsPlace.
327 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
329 2011-10-07 Ben Konrath <ben@bagu.org>
331 Update TableChangeEvent to use newTableName naming convention.
333 This makes the class more consistent with GWT naming conventions.
335 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
336 Update for method name change in TableChangeEvent.
337 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
338 for method name change in TableChangeEvent.
339 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
340 newTableName variable and getter method. Make toDebugString()
343 2011-09-30 Ben Konrath <ben@bagu.org>
345 Disable the pager in the list tables when the data row count is less than the minimum.
347 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
348 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
350 2011-09-30 Ben Konrath <ben@bagu.org>
352 Add empty rows to the end of related list and list view tables.
354 I also extracted the cell rendering classes from the ListTable because
355 the code was becoming a little crazy with all the anonymous inner
356 classes. My plan is to use these cell rendering classes in the details
357 view as well so this refactor will be needed for that change.
359 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
360 set the row count in related list tables if the data has more rows
361 than the minimum number of rows visible.
362 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
363 row count in list view tables if the data has more rows than the
364 minimum number of rows visible.
365 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
366 for rendering TYPE_BOOLEAN cells. The code was extracted from the
368 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
369 for rendering TYPE_NUMERIC cells. The code was extracted from the
371 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
372 class for rendering cells with buttons in list views. The code was
373 extracted from the ListTable class.
374 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
375 for rendering TYPE_TEXT cells. The code was extracted from the
377 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
378 Add empty rows to the end of the data if required. Implement
379 ListTable.getMinNumVisibleRows().
380 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
381 cell renderer code to public classes. Return null in
382 Column.getValue() for empty rows. Add new abstract method:
383 getMinNumVisibleRows(). Move code to set the row count of the list view
384 table to ListViewImpl.
385 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
386 empty rows to the end of the data if required. Implement
387 ListTable.getMinNumVisibleRows().
390 2011-09-27 Ben Konrath <ben@bagu.org>
392 Use GWT.log for client-side debugging statements.
394 These are optimized out when deployed so I should have used this method
395 in the first place. These statements will eventually be replaced with some sort
396 of notification in the browser.
398 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
399 * src/main/java/org/glom/web/client/activity/ListActivity.java:
400 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
401 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
402 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
404 2011-09-27 Ben Konrath <ben@bagu.org>
406 Put tableselector on the right, back to list link on right.
408 The idea is that the table selector is acting like a label for the
409 currently displayed table so it should be placed below the document title. This
410 puts the table title in a similar position to where it is in Glom.
412 * mockups/details-contacts.html:
413 * mockups/details-projects.html:
414 * mockups/listview-contacts.html:
415 * mockups/listview-projects.html:
417 Update mockups to match how the interfaces currently look.
418 * src/main/webapp/style.css: Swap positions of backlink with the table
419 selector. Add some space on the left side of the table selector to
420 line things up with the document title.
422 2011-09-27 Ben Konrath <ben@bagu.org>
424 Add field colouring to details view.
426 This change re-works how field colouring works. The colour formatting
427 information is now set to the client with the layout information instead of
428 with the data. This eliminates the need to send the same colour strings for
429 data in list view column when colour information is set.
431 In order to set an alternate colour for negative numeric values, the
432 number is now sent to client and formatted with the GWT NumberFormat class.
434 This change also fixes:
436 https://bugzilla.gnome.org/show_bug.cgi?id=659752
438 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
439 internationalization framework which is needed for client side numeric
441 * src/main/java/org/glom/web/client/Utils.java: New file for some
442 client static utility methods.
443 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
444 the DataItem object to the Field class. Use a utility method to
445 create the foreignKeyValue string.
446 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
447 alignment and text colours in the constructor. Add setData(DataItem)
448 method. Remove setText(String) method.
449 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
450 colour information to GlomTextCell. Create and use GlomNumberCell for
451 rendering numbers. Use utility method to get the string for the
452 primary key of the key provider. Re-work how the horizontal alignment
454 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
455 formatting to layout information. Methods for converting the libglom
456 formatting information were moved from DBAccess.
457 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
458 numeric formatting (it's now done on the client side). Don't set text
459 colours in DataItem. Move libglom formatting conversion methods to
461 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
462 getters/setters for text colour information.
463 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
464 for transferring the libglom NumericFormat information to the client.
465 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
466 and getters/setters for: GlomNumericFormat, background colour and
467 foreground colour strings.
469 2011-09-26 Ben Konrath <ben@bagu.org>
471 Simplify code that iterates through the LayoutGroup.
473 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
475 2011-09-26 Ben Konrath <ben@bagu.org>
477 Accept Eclipse formatting for OnlineGlomServiceAsync.
479 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
481 2011-09-26 Ben Konrath <ben@bagu.org>
483 Don't use the ListDBAccess classes to get the primary key layout information.
485 This was causing a bug where the wrong index for the hidden primary key
486 was being sent to the client.
488 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
489 primary key while creating the LayoutGroup DTO. Create a
490 LayoutItemField DTO for hidden primary keys. Don't use the
491 RelatedListDBAccess because it was only used for getting the primary
493 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
494 access modifier from public to protected for getPrimaryKeyField() and
495 getPrimaryKeyLayoutItemField().
496 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
497 abstract method getExpectedResultSize() because RelatedListDBAccess
498 doesn't have enough info to implement it.
499 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
500 Remove @Override for getExpectedResultSize().
501 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
502 Remove method getExpectedResultSize().
504 2011-09-23 Ben Konrath <ben@bagu.org>
506 Log which layout (list or details) the ignored item is from.
508 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
510 2011-09-23 Ben Konrath <ben@bagu.org>
512 Remove annotations that turn off code formatting in DataItem.
514 * src/main/java/org/glom/web/shared/DataItem.java:
516 2011-09-23 Ben Konrath <ben@bagu.org>
518 Rename GlomField to DataItem and update associated methods.
520 This is a rename-only refactor. No functionality has been added or
523 * src/main/java/org/glom/web/client/OnlineGlomService.java:
524 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
525 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
526 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
527 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
528 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
529 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
530 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
532 * src/main/java/org/glom/web/server/database/DBAccess.java:
533 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
534 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
535 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
536 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
537 * src/main/java/org/glom/web/shared/DataItem.java:
538 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
539 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
541 2011-09-23 Ben Konrath <ben@bagu.org>
543 Rename GlomDocument to DocumentInfo and update associated methods.
545 This is a rename-only refactor. No functionality has been added or
548 * src/main/java/org/glom/web/client/OnlineGlomService.java:
549 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
550 * src/main/java/org/glom/web/client/activity/ListActivity.java:
551 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
552 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
553 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
554 * src/main/java/org/glom/web/shared/DocumentInfo.java:
556 2011-09-20 Ben Konrath <ben@bagu.org>
558 Require java-libglom 1.17.3.
560 This picks up the fix for the seg fault problem with the Scenes table
561 in the Openismus Film Manager example.
565 2011-09-20 Ben Konrath <ben@bagu.org>
567 Change the way sort clause is added for primary key when no sort clause is requested.
569 The primary key is now added to the LayoutFieldVector (fieldsToGet)
570 before the sort clause is created. When a sort clause is not requested, the
571 sort clause is created by finding the primary key in the LayoutFieldVector
574 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
576 2011-09-20 Ben Konrath <ben@bagu.org>
578 Log error message if no documents are found in the configured directory.
580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
581 Extract the glom file extension string to a private static final class
582 variable (mostly as syntactic sugar). Accept a minor formatting change.
583 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
584 the example glom.document.directory configuration property to make it
585 more clear that it can any directory, not just the home directory.
587 2011-09-18 Ben Konrath <ben@bagu.org>
589 Add related lists to details view.
591 The related list table has support for paging and sorting just like the
592 table in the list view.
594 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
595 SQL queries for the related list tables.
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/server/OnlineGlomServiceImpl.java:
599 Rename getList methods to getListView and add comments. Remove
600 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
601 it being unused. Add methods: getDetailsLayoutAndData(),
602 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
603 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
604 Create the layout and set the data for the fields in one async call
605 instead of two. Create related lists where appropriate.
606 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
607 for method name changes in OnlineGlomService.
608 * src/main/java/org/glom/web/client/ui/DetailsView.java:
609 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
610 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
612 * src/main/java/org/glom/web/client/ui/ListView.java:
613 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
614 tableName from setCellTable(). Create a ListViewTable instead of
616 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
617 represent a data field in the details view.
618 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
619 from addDetailsCell() to Field class. Keep track of the Fields and
620 Portals in the details view.
621 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
622 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
623 and add a method to get it. Add method to set the contents of the
625 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
626 New class for related list tables. This class has the data provider
627 for the related list table.
628 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
629 abstract class which is the base class for the ListViewTable and the
631 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
632 New class for list view tables. This class has the data provider for
634 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
635 methods for related list tables. Add more information to the
636 LayoutItemField and LayoutItemPortal DTOs.
637 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
638 Remove debugging print statement.
639 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
640 Remove debugging print statements. Add primary key field to SQL count
642 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
643 Remove unnecessary LayoutFieldVector parameter from
644 getResultSizeOfSQLQuery() method.
645 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
646 New class for related list table database access.
647 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
648 class that is a wrapper DTO for details view layout and data.
649 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
650 new 'fromField' string to this DTO.
651 * src/main/webapp/style.css: Remove bottom margin and override top
654 2011-09-15 Ben Konrath <ben@bagu.org>
656 Breakup the OnlineGlomServiceImpl class to make it more manageable.
658 This sets things up to make it easier to add the data retrieval for
659 related lists (portals). No user noticeable changes were made with
662 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
663 class has the code to retrieve the layouts and access the
664 database using the new database helper classes.
665 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
666 Most of the functionality has been removed from this class. This
667 class now represents the public interface for the client side
668 code. It also deals with configuring the servlet and cleaning
669 things up when the servlet is stopped.
670 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
671 of static methods into this utility class.
672 * src/main/java/org/glom/web/server/database/DBAccess.java:
673 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
674 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
675 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
676 These classes have the database retrieval code. The class hierarchy
677 has been setup to make it easy to reuse code for similar
680 2011-09-06 Ben Konrath <ben@bagu.org>
682 Create separate classes for list table code and the data provider.
684 As part of this refactor, I also split up the code a bit to make it
687 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
688 table code to two new classes (below).
689 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
690 with code from ListViewImpl.
691 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
692 New file with code from ListViewImpl.
694 2011-09-06 Ben Konrath <ben@bagu.org>
696 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
698 This fixes the LayoutItemPortal DTO to match the libglom layout object
701 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
703 2011-09-01 Ben Konrath <ben@bagu.org>
705 Set title of Portals in the Details View.
707 * pom.xml: Bump required version of java-libglom to 1.17.1.
708 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
709 widget creation to its own class. Add comments to constructor.
710 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
711 The code is mostly from the Group class with the title now set.
712 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
713 title of Portal. Update some comments. Fix some code formatting.
715 2011-09-01 Ben Konrath <ben@bagu.org>
717 Remove TODO comment for the flow table column width.
719 The flow table column width is working correctly and doesn't need to be
720 changed. See this mailing list post for more info:
722 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
724 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
726 2011-08-27 Ben Konrath <ben@bagu.org>
728 Add document title (database name) to top of the browser page.
730 I added the document title to the TableSelecitonView but that will
731 change if / when we add a view that doesn't require table selection.
733 * mockups/details-contacts.html:
734 * mockups/details-projects.html:
735 * mockups/listview-contacts.html:
736 * mockups/listview-projects.html:
737 * mockups/style.css: Add document title to mockups to keep things
739 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
740 sizes to account for the document title.
741 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
742 Set the document title when it has been retrieved from the server.
743 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
744 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
745 and implement setDocumentTitle(String) method.
746 * src/main/webapp/style.css: Add ID for document title style.
748 2011-08-25 Ben Konrath <ben@bagu.org>
750 Add NavigationType enum to LayoutItemPortal DTO.
752 This is the start of adding support for Portals to the Details View.
754 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
755 LayoutItem_Portal.navigation_type enum from libglom to
756 LayoutItemPortal.NavigationType enum.
757 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
758 NavigationType enum, field for storing the NavigationType and getter
761 2011-08-25 Ben Konrath <ben@bagu.org>
763 Implement the flow table layout in the Details View.
765 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
766 FlowTable to Group to account for the renamed class.
767 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
768 File. This is a container widget that implements the Glom details view
769 flow table behaviour.
770 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
771 org/glom/web/client/ui/FlowTable.java.
772 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
773 so that the size of the subgroups are a closer match to the size of
774 the Glom subgroups. This makes the flowtable layout match the layout
775 in Glom for the Music Collection example file.
777 2011-08-16 Ben Konrath <ben@bagu.org>
779 Create container element for LayoutItemPortal in Details View.
781 This will help me develop the layout for the FlowTable.
783 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
784 fieldPanel variable to detailsCell.
786 2011-08-15 Ben Konrath <ben@bagu.org>
788 Set the height of the data element in the Details View.
790 I changed the InlineLabels (text in a span element) to Labels (text in
791 a div element) so that I could set the height of the details-data
792 elements instead of the details-cell parent elements. This allows the
793 the details-data element to display the correct height if style is
794 applied that shows the height.
796 This change has the added benefit of allowing the order of the labels
797 and data elements to be changed for right-to-left languages.
799 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
800 InlineLabels to Labels.
801 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
802 InlineLabels to Labels. Set the height of the data element.
803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
804 multiline text height in the Formatting DTO.
805 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
806 for multiline height along with getter and setter methods.
807 * src/main/webapp/style.css: Adjust style to account for the change
808 from span elements to div elements in the details cell.
810 2011-08-15 Ben Konrath <ben@bagu.org>
812 Make the List View appearance match the mockups.
814 It doesn't match exactly but it's much better than it was.
816 * mockups/listview-contacts.html: Remove unused css classes.
817 * mockups/listview-projects.html: Remove unused css classes.
818 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
819 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
820 for mainPanel instead of VerticalPanel (table). Set style name on
821 CellTable. Set style name on Details column. Right-align Details
823 * src/main/webapp/style.css: Adjust properties to match the mockups.
825 2011-08-12 Ben Konrath <ben@bagu.org>
827 Add better support for subgroups in the details view.
829 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
830 changed FlowTable constructor.
831 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
832 support for subgroups and subgroup-titles.
833 * src/main/webapp/style.css: Add CSS class for subgroups and
836 2011-08-12 Ben Konrath <ben@bagu.org>
838 Return the top level LayoutGroup title.
840 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
842 2011-08-11 Ben Konrath <ben@bagu.org>
844 Make the TableSelector header match the mockup.
846 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
847 the layout panel. Properly lineup the table selection header with
848 the list and details view.
849 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
850 margin around the details view.
851 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
852 Rename listBox variable to tableSelector. Set id for the style sheet.
853 Use a FlowPanel instead of a HorizontalPanel.
854 * src/main/webapp/style.css: Add properties to make the TableSelector
855 box match the mockups.
857 2011-07-13 Ben Konrath <ben@bagu.org>
859 Update install script for java-libglom version change.
861 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
864 2011-07-13 Ben Konrath <ben@bagu.org>
866 Add support sub-group in the details view.
868 I also removed the code that special-cased the default details view
871 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
873 I still have to make a proper flowtable.
875 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
876 Don't special-case default details view layout.
877 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
878 addLayoutField() as I'm going to use it.
879 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
880 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
882 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
883 extracted from DetailsViewImpl.GroupPanel. Add support for
885 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
886 column count when getting the details layout.
888 2011-07-12 Ben Konrath <ben@bagu.org>
890 Set browser title with database and table titles.
892 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
893 Set the browser title when the table changes and when the activity
895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
896 title when retrieving document info (the GlomDocument object).
897 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
898 with getter and setter methods. Remove unused convenience constructor.
899 Use default code formatting.
901 2011-07-12 Ben Konrath <ben@bagu.org>
903 Ignore LayoutItemPortals in the details view.
905 I added a new DTO for the LayoutItemPortal so that I can ignore it in
908 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
909 LayoutItemPortal layout objects.
910 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
911 LayoutItemPortal objects when retrieving the details layout.
912 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
913 file. This is an empty class and just used to get type information for
916 2011-07-12 Ben Konrath <ben@bagu.org>
918 Use java-libglom 1.17.0.
922 2011-07-11 Ben Konrath <ben@bagu.org>
924 Remove "Table:" label from table selector.
926 This matches a recent change in the Glom UI.
928 * mockups/details-contacts.html:
929 * mockups/details-projects.html:
930 * mockups/listview-contacts.html:
931 * mockups/listview-projects.html: Remove the "Table:" label from the
933 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
935 2011-07-11 Ben Konrath <ben@bagu.org>
937 Add main groups to the details view.
939 This makes things look a little nicer in the details view. The next step
940 is to implement the flowtable.
942 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
943 resources from the standard gwt css theme. Standard.css is now
944 included in OnlineGlom.html so that the online glom css rules have
945 precedence over the gwt theme.
946 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
947 the whole LayoutGroup to the DetailsView instead of just the titles.
948 * src/main/java/org/glom/web/client/ui/DetailsView.java:
949 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
950 details layout with a helper class (GroupPanel). I might extract this
951 class when I make the full flowtable.
952 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
953 string as default so I don't have to worry about NPEs when processing
955 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
956 note beside OnlineGlom.gwt.xml above).
957 * src/main/webapp/style.css: Add default font-size to body to override
958 the font-size set by the standard theme. Don't use h2 tags for
959 group-title. Create new details-cell class.
961 2011-07-08 Murray Cumming <murrayc@murrayc.com>
963 ConfiguredDocument: Set the port number too.
965 * src/main/java/org/glom/web/server/ConfiguredDocument.java
966 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
967 Glom document. Presumably this worked sometimes so far because there is a
970 2011-07-08 Murray Cumming <murrayc@murrayc.com>
972 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
974 * src/main/java/org/glom/web/server/ConfiguredDocument.java
975 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
976 correct, though we should throw an exception too.
978 2011-07-08 Murray Cumming <murrayc@murrayc.com>
980 Fix a addDocuemnt typo.
982 * src/main/java/org/glom/web/shared/Documents.java
983 (Documents.addDocuemnt): Rename to addDocument().
984 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
985 (OnlineGlomServiceImpl.getDocuments): Adapt.
987 2011-07-08 Murray Cumming <murrayc@murrayc.com>
989 Slightly improved log output when connection fails.
991 * src/main/java/org/glom/web/server/ConfiguredDocument.java
992 (ConfiguredDocument.setUsernameAndPassword):
993 We don't know for sure if it' the username/password that's wrong, so
994 rephrase the message.
995 Also ouput the exception message, though it's generic in this case.
997 2011-07-08 Ben Konrath <ben@bagu.org>
1001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1002 added braces to a one line if statement because the Eclipse formatter
1003 was getting confused.
1005 2011-07-07 Ben Konrath <ben@bagu.org>
1007 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1009 These should really be two separate tasks but I counldn't get things to
1010 work with GWT 2.2.0 and Eclipse 3.7.
1014 * .settings/org.eclipse.jdt.core.prefs:
1015 * .settings/org.eclipse.jdt.ui.prefs:
1016 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1017 * .settings/org.eclipse.m2e.core.prefs:
1018 Add new config files. Update current files. Remove references to the
1019 webtools plugins as we're not using any of the webtools features.
1020 * .gitignore: Add logs directory which is created when running with
1022 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1023 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1024 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1026 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1028 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1030 onlineglom.properties: Add explanatory comments.
1032 * src/main/resources/onlineglom.properties: Also change the default user
1033 from ben to someuser, to avoid the risk of people thinking we just
1034 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1036 2011-06-28 Ben Konrath <ben@bagu.org>
1038 Use filename in Log for incorrect passwords.
1040 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1041 getFileName(String) method to get the filename from the URI.
1043 2011-06-28 Ben Konrath <ben@bagu.org>
1045 Add the table name to the URL token for the ListPlace.
1047 This makes things consistent between the DetailsPlace and the
1048 ListPlace. It also allows the the ListPlace to be bookmarked.
1050 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1051 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1052 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1053 Remove getDefaultListLayout(). The default layout is now returned
1054 by the getListLayout() method when the table name is an empty string.
1055 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1056 Add table name field. Change to a new ListPlace when the table
1057 has been changed. Use getListLayout() for getting the default
1059 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1060 Add table name field. Set the correct table name in the list box
1061 when loading from bookmark. This corrects a problem for the
1063 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1064 Move table name to super-class (HasSelectableTable). Move document
1065 and table URL keys to super-class in HasSelectableTable.
1066 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1067 Add table name field. Add Tokenizer class with URL key common to
1068 the subclasses (DetailsPlace and ListPlace).
1069 * src/main/java/org/glom/web/client/place/ListPlace.java:
1070 Add table name. Add code to parse the URL token.
1071 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1072 Update ListPlace construction with empty table name string.
1073 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1074 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1075 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1076 Update ListPlace construction with table name string.
1077 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1078 Change defaultTableName field to tableName to reflect how it's now
1079 used. Update the getter and setter methods.
1081 2011-06-28 Ben Konrath <ben@bagu.org>
1083 Enable the table selector in the DetailsView.
1085 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1086 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1087 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1088 Remove getDefaultDetailsLayout(). The default layout is now returned
1089 by the getDetailsLayout() method when the table name is an empty
1091 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1092 event handler for table change event. Change to using
1093 getDetailsLayout() for the default details layout.
1094 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1096 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1097 when navigating to the details place.
1099 2011-06-27 Ben Konrath <ben@bagu.org>
1101 Use filename based unique document ID in URL and for RPC.
1103 The document ID is the glom document name with spaces (' ') replaced
1104 with pluses ('+') and without the .glom extension.
1106 This change is mostly a string substitution of 'documentTitle' for
1107 'documentID'. The only code change is the addition of a Documents DTO to get the
1108 filename to document title mappings as indicated below.
1110 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1111 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1112 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1113 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1114 Use Documents DTO to create the document links in the document
1116 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1117 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1118 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1119 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1120 * src/main/java/org/glom/web/client/place/ListPlace.java:
1121 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1122 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1123 * src/main/java/org/glom/web/client/ui/ListView.java:
1124 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1125 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1126 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1127 * src/main/java/org/glom/web/server/Log.java:
1128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1129 getDocumentTitles() to getDocuments() and return the Documents DTO.
1130 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1131 transferring the filename to document title mappings.
1133 2011-06-25 Ben Konrath <ben@bagu.org>
1135 Make the authentication popup work again.
1137 This bug was introduced when I extracted ConfiguredDocument to its own class.
1139 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1140 correct success / fail status in setUsernameAndPassword().
1142 2011-06-25 Ben Konrath <ben@bagu.org>
1144 Use filename as unique key for configuring database usernames and passwords.
1146 This replaces the use of the Glom document title which could change
1147 depending on the locale. Thanks to Murray Cumming for pointing out this
1150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1151 * src/main/resources/onlineglom.properties:
1153 2011-06-24 Ben Konrath <ben@bagu.org>
1155 Pass primary key value to DetailsView.
1157 This enables the DetailsView to load the correct data.
1159 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1160 primary key value field and set in constructor. Pass primary key
1161 value to getDetailsData().
1162 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1163 variables for document title and primary key value.
1164 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1165 key value to the DetailsPlace.
1167 2011-06-24 Ben Konrath <ben@bagu.org>
1169 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1171 This allows the primary key to be retrieved by the Details button. This
1172 functionality has not been implemented yet but it's in the works.
1174 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1175 the LayoutGroup result to ListView.setCellTable instead of all of its
1176 fields individually.
1177 * src/main/java/org/glom/web/client/ui/ListView.java:
1178 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1179 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1180 get the primary key for the table.
1181 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1182 index of the primary key in the LayoutGroup accounting for hidden
1183 primary keys. Rename getJavaNumberFormat() to
1184 convertToJavaNumberFormat() for consistency. Cleanup / add some
1186 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1187 field for primary key index and a field to indicate whether the
1188 primary key is hidden or not.
1190 2011-06-23 Ben Konrath <ben@bagu.org>
1192 Rename getTableData methods to getListData.
1194 This is a rename refactor for consistency with other methods.
1196 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1197 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1198 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1199 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1201 2011-06-23 Ben Konrath <ben@bagu.org>
1203 Extract the ConfiguredDocument innerclass into its own class.
1205 This makes the servlet code more object oriented.
1207 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1208 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1210 new ConfiguredDocument class.
1212 2011-06-21 Ben Konrath <ben@bagu.org>
1214 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1216 This makes things more inline with how libglom works and reduces code
1217 duplication. This refactor lays the groundwork for adding the primary key to
1218 the LayoutGroup object.
1220 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1221 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1222 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1223 Change method names to getListLayout and getDefaultListLayout for
1224 consistency. Use LayoutGroup as the DTO for the list layout instead of
1225 ColumnInfo and LayoutListTable.
1226 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1227 new method names along with the LayoutGroup object for transferring the
1229 * src/main/java/org/glom/web/client/ui/ListView.java:
1230 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1231 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1232 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1234 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1235 Replaced with LayoutGroup.
1236 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1237 expectedResultSize and defaultTableName fields which are needed for
1239 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1240 type field which is needed for the list layout but will also be
1241 useful for the details layout as things progress.
1242 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1243 Make class abstract. Remove the unnecessary
1244 getFormattingHorizontalAlignment method. Add setFormatting method.
1246 2011-06-16 Ben Konrath <ben@bagu.org>
1248 Add scripts for building and installing war.
1250 These will help when updating OnlineGlom but they're also good
1251 supplemental documentation of the build and deployment proceeding.
1253 * utils/build-onlineglom-war.sh: New file.
1254 * utils/install-onlineglom-war.sh: New file.
1256 2011-06-16 Ben Konrath <ben@bagu.org>
1258 Create wrapper class to create consistent log messages.
1260 I wrapped methods in the Log class of gwt-log to add the method names
1261 from the servlet and create consistent formatting of the document title
1262 and table names in the log messages.
1264 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1265 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1266 log methods to use methods from wrapped Log class.
1268 2011-06-16 Ben Konrath <ben@bagu.org>
1270 Remove superfluous conditional return.
1272 Thanks to Murray Cumming for pointing this out!
1274 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1276 2011-06-15 Ben Konrath <ben@bagu.org>
1278 Return an ArrayList of LayoutGroups for the Details layout.
1280 This corrects a problem with the details layout as it can have more
1281 than one top level LayoutGroup.
1283 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1284 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1285 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1286 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1287 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1288 with ArrayList of LayoutGroups for the details view layout.
1289 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1290 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1291 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1292 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1293 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1294 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1296 2011-06-14 Ben Konrath <ben@bagu.org>
1298 Use cast_dynamic method to determine the libglom LayoutItem type.
1300 This is better than finding the LayoutItem type by using the string
1301 returned from the get_part_type_name() method.
1303 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1305 2011-06-14 Ben Konrath <ben@bagu.org>
1307 Add method names to log entries in the servlet.
1309 This helps when tracking down deployment problems.
1311 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1313 2011-06-14 Ben Konrath <ben@bagu.org>
1315 Add data to the DetailsView using a hard-coded primary key value.
1317 The layout and functionality of the DetailsView is not complete. This
1318 is just a checkpoint so the patch doesn't get too big.
1320 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1321 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1322 Add getDetailsData() servlet method.
1323 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1324 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1325 LayoutFields are added to the DetailsView.
1326 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1327 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1328 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1329 take the string for the title instead of the object.
1330 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1331 Add implementation getDetailsData() along with some private helper
1333 * src/main/webapp/style.css: Add padding to details-data class. Add a
1334 details-label class with the same padding as the details-data class.
1336 2011-06-03 Ben Konrath <ben@bagu.org>
1338 Use presenter.goTo() to change to the DetailsPlace.
1340 This will make things easier when we need to open the DetailsView with
1341 data specific to the row that was clicked.
1343 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1345 2011-06-02 Ben Konrath <ben@bagu.org>
1347 Add CSS file from mockups.
1349 I'm adding this now because it's going to be useful to have when
1350 developing the DetailsView. The TableSelectionView and ListView aren't
1353 * src/main/webapp/OnlineGlom.html:
1354 * src/main/webapp/style.css:
1356 2011-06-02 Ben Konrath <ben@bagu.org>
1358 Use String.isEmpty() to check for empty string.
1360 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1362 2011-06-02 Ben Konrath <ben@bagu.org>
1364 Display main layout group titles in the DetailsView.
1366 This is the start of the DetailsActivity/DetailsView implementation.
1368 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1369 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1370 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1371 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1372 Get the layout information for the details view from the server and set
1373 the main layout group titles.
1374 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1375 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1376 Add addLayoutGroup() and addLayoutField() methods. This are just
1377 temporary methods for creating the the details view that will change
1379 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1380 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1382 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1383 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1384 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1385 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1386 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1387 Data Transfer Objects that mimic the libglom object structure. These are
1388 used for transferring the details layout but could also be used for
1389 transferring the list layout.
1391 2011-05-27 Ben Konrath <ben@bagu.org>
1393 Reset the AuthenticationPopup when clearing the ListView.
1395 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1397 2011-05-27 Ben Konrath <ben@bagu.org>
1399 Fix problem with onlineglom.properties file loading.
1401 The old way worked in Eclipse but not on the server. Loading the
1402 onlineglom.properties file now works in Eclipse and on the server.
1404 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1406 2011-05-24 Ben Konrath <ben@bagu.org>
1408 Update gwt-log from 3.1.0 to 3.1.2.
1410 Gwt-log 3.1.0 has been marked as depreciated.
1414 2011-05-24 Ben Konrath <ben@bagu.org>
1416 Add comment to ListActivity.goTo() method.
1418 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1420 2011-05-24 Ben Konrath <ben@bagu.org>
1422 Remove FIXME in convertGdkColorToHtmlColour()
1424 The Gdk::Color value returned by libglom is 16-bits per channel on both
1425 64 and 32-bit platforms.
1427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1429 2011-05-19 Ben Konrath <ben@bagu.org>
1431 Improve performance of initial ListView load.
1433 I removed a round trip to the server for getting the default table name
1434 and then requesting information about that table. This also removes a potential
1435 problem with the table change handler not being setup in time to receive the
1436 table change event from the ListActivity.
1438 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1439 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1440 getDefaultLayoutListTable() method. Improve comments.
1441 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1442 getDefaultLayoutListTable() method instead of firing a table change
1443 event to get the table to load.
1444 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1445 implementation of getDefaultLayoutListTable() method.
1446 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1449 2011-05-19 Ben Konrath <ben@bagu.org>
1451 Override toDebugString() in TableChangeEvent.
1453 This is useful to have for debugging.
1455 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1457 2011-05-19 Ben Konrath <ben@bagu.org>
1459 Add a "Back to List" link when at the DetailsPlace.
1461 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1462 Populate the CellTable based on the selected table of the ListBox if
1463 it's set otherwise use the default table. This allows the "Back to
1465 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1466 Remove Place from constructors. Add a setPlace() method. Add
1467 goToPlace() method. Set class as presenter for TableSelectionView.
1468 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1469 Use the same TableSelectionActivity when switching between the List and
1471 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1472 Subclass the new HasSelectableTablePlace. This removes some duplicate
1474 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1475 New class to represent Places that display the TableSelectionView.
1476 * src/main/java/org/glom/web/client/place/ListPlace.java:
1477 Subclass the new HasSelectableTablePlace. This removes some duplicate
1479 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1480 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1481 Add Presenter interface. Add setBackLinkVisible() method. Add
1482 setBackLink() method.
1484 2011-05-18 Ben Konrath <ben@bagu.org>
1486 Enable the "Details" buttons.
1488 Right now only an empty details view is displayed.
1490 * src/main/java/org/glom/web/client/ClientFactory.java:
1491 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1492 Add DetailsView to ClientFactory.
1493 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1494 A basic activity for the details view.
1495 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1496 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1498 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1499 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1501 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1502 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1503 unnecessary super() in constructor.
1504 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1505 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1506 really shouldn't create a new TableSelectionActivity for both the ListPlace
1507 and the DetailsPlace so this should be considered a temporary solution.
1508 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1509 New file. Represents a URL for the details view.
1510 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1511 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1512 A basic details view interface and implementation.
1513 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1514 Enable the "Details" buttons.
1516 2011-05-12 Ben Konrath <ben@bagu.org>
1518 Use a LayoutPanel with multiple display areas for main layout.
1520 This is mostly a refactor in that there are no changes from the user
1521 point of view. These changes are required so that we can swap out the list view
1522 with the details view when the user clicks the "Details" button.
1524 * src/main/java/org/glom/web/client/ClientFactory.java:
1525 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1526 OnlineGlomView. Add TableSelectionView, ListView and
1527 AuthenticationPopup.
1528 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1529 for main layout. Add display regions for main activities. Add
1530 activity manager for for main activities.
1531 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1532 file from parts of the deleted OnlineGlomActivity.
1533 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1534 New file from parts of the deleted OnlineGlomActivity.
1535 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1536 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1537 New files for app wide table change event.
1538 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1539 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1540 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1541 Activity mappers for the main activities replace the deleted app-wide
1543 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1544 Fix a spelling error in he comment.
1545 * src/main/java/org/glom/web/client/ui/ListView.java:
1546 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1547 Renamed from LayoutListView and modified for MVP. This still not a
1548 proper dumb view as prescribed by the MVP pattern but it works for now.
1549 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1550 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1551 New widget stripped out of the deleted OnlineGlomView.
1552 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1553 Remove hack that is fixed by this patch.
1555 2011-05-06 Ben Konrath <ben@bagu.org>
1557 Rename OnlineGlomPlace to ListPlace.
1559 The only change besides the rename is that url will now display #list
1560 instead of #Document.
1562 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1563 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1564 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1565 * src/main/java/org/glom/web/client/place/ListPlace.java:
1566 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1568 2011-05-06 Ben Konrath <ben@bagu.org>
1570 Use Presenter for app navigation.
1572 This is the proper way to deal with Place (URL) changes with the MVP
1575 * src/main/java/org/glom/web/client/ClientFactory.java:
1576 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1577 PlaceHistoryMapper and PlaceHistoryHandler.
1578 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1579 PlaceHistoryMapper and PlaceHistoryHandler.
1580 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1581 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1582 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1583 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1584 Add Presenter interface and setPresenter methods. Rename addHyperLink
1585 to addDocumentLink taking only the document title as a parameter.
1587 2011-04-14 Ben Konrath <ben@bagu.org>
1589 Prompt for db username/password if they haven't been set.
1591 This is implemented with a popup widget that is contained within the
1592 OnlineGlomView and managed by the OnlineGlomActivity.
1594 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1595 methods for checking and setting the database username and password.
1596 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1597 new methods for checking and setting the database username and
1599 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1600 Display authentication popup if the JDBC connection to the database
1601 has not been authenticated.
1602 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1604 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1605 for dealing with the authentication popup.
1606 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1607 Implement the methods for dealing with the authentication popup.
1608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1609 try to executed queries if the database connection hasn't been
1610 authenticated. Implement methods for checking and setting the
1611 database username and password.
1613 2011-04-12 Ben Konrath <ben@bagu.org>
1615 Make log messages a little clearer.
1617 Add a dash betweeen the document title and the table name.
1619 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1621 2011-04-12 Ben Konrath <ben@bagu.org>
1623 Protect against NPEs when cleaning up database resources.
1625 While this isn't strictly necessary because the exception is caught,
1626 not protecting against the NPEs makes it harder to find the real error
1629 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1631 2011-04-12 Ben Konrath <ben@bagu.org>
1633 Move configuration of the servlet to the constructor.
1635 The servlet will be initialized even if the database authentication
1636 information is not set or correct. I still need to add the UI for prompting
1637 the user for the authentication information when it's required.
1639 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1640 javadocs for getDocumentTitles() method.
1641 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1642 Set error message when RPC fails.
1643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1644 glom files directory from the configuration file. Try to set the
1645 database authentication information for the specific document if it's
1646 set and works otherwise try to use the global authentication
1647 information set for the directory.
1648 * src/main/resources/onlineglom.properties: Moved from
1649 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1650 Added detailed comments for the new keys.
1652 2011-04-11 Ben Konrath <ben@bagu.org>
1654 Remove unnecessary @Override in DocumentSelectionViewImpl.
1656 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1658 2011-04-11 Ben Konrath <ben@bagu.org>
1660 Remove center alignment in DocumentSelectionView.
1662 The title element is still centred but the document titles and bottom
1663 sentence are both left-aligned.
1665 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1667 2011-04-11 Ben Konrath <ben@bagu.org>
1669 Change 'Demo' naming convention to 'Document'.
1671 This is just a rename refactor with no functional changes to the code.
1673 * src/main/java/org/glom/web/client/ClientFactory.java:
1674 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1675 * src/main/java/org/glom/web/client/OnlineGlom.java:
1676 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1677 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1678 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1679 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1680 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1681 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1682 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1683 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1684 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1685 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1687 2011-04-08 Ben Konrath <ben@bagu.org>
1689 Remove FIXME from safeLongToInt() method.
1691 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1694 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1696 2011-04-08 Ben Konrath <ben@bagu.org>
1698 Display an error if no glom documents are found in the specified directory.
1700 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1701 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1702 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1703 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1705 2011-04-08 Ben Konrath <ben@bagu.org>
1707 Add copyright header to one more file ... oops.
1709 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1711 2011-04-08 Ben Konrath <ben@bagu.org>
1713 Add copyright header to files without it.
1715 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1716 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1717 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1718 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1719 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1720 * src/main/java/org/glom/web/shared/GlomField.java:
1722 2011-04-08 Ben Konrath <ben@bagu.org>
1724 Add support for accessing multiple glom documents in the servlet.
1726 This completes the demo selection functionality.
1728 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1729 document title to methods.
1730 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1731 document title to methods.
1732 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1733 Set browser window title when the activity starts. Correct name of
1734 document title variable.
1735 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1736 Set browser window title when the activity starts. Set the table
1737 selector change handler after table selector has been set. Clear the
1738 OnlineGlomView when the activity has been stopped.
1739 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1740 document title as the place token. Use "#Document:" instead of
1741 "#OnlineGlomPlace:" in the URL.
1742 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1743 Change heading to "Online Glom"
1744 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1745 document title in RPC methods.
1746 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1747 setDocumentTitle() method. Add clear() method.
1748 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1749 setDocumentTitle() method. Implement clear() method which removes the
1750 change handler on the ListBox, clears the ListBox and clears the
1752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1753 Implement methods with document title. Keep track for the configured
1754 glom documents and their corresponding JDBC configurations in a hash
1755 table. This information is retrieved using the document title as the
1756 key in the hash table.
1757 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1758 document title field as it's no longer needed.
1760 2011-04-08 Ben Konrath <ben@bagu.org>
1762 Update the Eclipse JDT configuration.
1764 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1765 methods. Automatically add the copyright header to new files.
1767 2011-04-05 Ben Konrath <ben@bagu.org>
1769 Add new page for demo selection.
1771 This patch adds all the components required to view and start an
1772 OnlineGlom demo by clicking on the desired hyperlink. The user is
1773 able to return to the demo selection page with the browser's back
1774 button. I still need to modify the servlet to work with multiple
1775 documents so all demo links will load the file defined in the
1776 OnlineGlom.properties.
1778 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1779 This is only useful during development so we don't need to save it.
1780 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1781 get a reference to the DemoSelectionView.
1782 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1783 method to get a reference to the DemoSelectionView.
1784 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1785 default view to DemoSelectionView.
1786 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1787 to get glom document titles for glom files in a hard-coded directory.
1788 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1789 method to get glom document titles for glom files in a hard-coded
1791 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1792 Presenter for DemoSelectionView.
1793 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1794 for DemoSelectionView.
1795 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1796 Update for DemoSelectionView.
1797 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1798 Basic 'Place' implementation for the DemoSelectionView.
1799 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1800 The interface for the DemoSelectionView.
1801 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1802 The implementation of the DemoSelectionView.
1803 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1804 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1806 implementation of method to get glom document titles for glom files
1807 in a hard-coded directory.
1808 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1809 on longer being used.
1810 * src/main/webapp/glom.png: Glom logo.
1812 2011-04-05 Ben Konrath <ben@bagu.org>
1814 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1816 This is the forth and final commit of a refactor that will allow
1817 OnlineGlom to be used with multiple documents.
1819 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1820 Move RPC code from OnlineGlomViewImpl to this class.
1821 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1823 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1824 RPC code to the presenter class (the P in MVP).
1826 2011-04-04 Ben Konrath <ben@bagu.org>
1828 Start moving the existing OnlineGlom code to MVP.
1830 This work is based on the GWT MVP framework that is documented here:
1832 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1834 This is the third commit of a refactor that will allow OnlineGlom to
1835 be used with multiple documents.
1837 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1838 Interface for client factory which is used to get instances of various
1839 classes throughout the app.
1840 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1841 Implementation of client factory.
1842 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1843 initialize the MVP framework.
1844 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1845 New file. Activity manager for the main container widget. This is the
1847 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1848 Maps place (URL) to its corresponding activity.
1849 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1850 New file. This is just a place holder for a generated file.
1851 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1852 New file. Represents the URL for the main Online Glom app.
1853 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1854 for changes in LayoutListViewImpl.
1855 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1856 interface for View. Move code to OnlineGlomViewImpl class.
1857 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1858 file. Implementation of OnlineGlomView.
1859 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1860 Place resources. Use ClientFactoryImpl by default.
1862 2011-04-04 Ben Konrath <ben@bagu.org>
1864 Move View classes to their own package.
1866 This is the second commit of a refactor that will allow OnlineGlom to
1867 be used with multiple documents.
1869 * src/main/java/org/glom/web/client/OnlineGlom.java:
1870 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1871 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1873 2011-04-02 Ben Konrath <ben@bagu.org>
1875 Move UI code from the main module to its own class.
1877 This is the first commit of a refactor that will allow OnlineGlom to be
1878 used with multiple documents.
1880 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1881 references to OnlineGlom to OnlineGlomView.
1882 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1883 OnlineGlomView and instantiate it here.
1884 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1885 represents the main OnlineGlomView with one document.
1887 2011-04-01 Ben Konrath <ben@bagu.org>
1889 Fix formatting of gwt.xml and add DTD.
1891 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1893 2011-03-30 Ben Konrath <ben@bagu.org>
1895 Propperly convert gdkColor string to html colour string.
1897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1899 2011-03-28 Ben Konrath <ben@bagu.org>
1901 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1903 This implementation matches
1904 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1905 readable and is not tied to Swig.
1907 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1909 2011-03-28 Ben Konrath <ben@bagu.org>
1911 Use read-only checkboxes for boolean field types.
1913 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1914 in the CellTable based on the field type. It currently only
1915 distinguishes between boolean and text columns but I'll need to add
1916 support for more types.
1917 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1918 column type in the ColumnInfo object. Add method to convert between the
1919 glom field type enum in ColumnInfo and the glom field type in libglom.
1920 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1922 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1923 getting and setting booleans.
1925 2011-03-25 Ben Konrath <ben@bagu.org>
1927 Don't get the Date twice from the ResultSet.
1929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1931 2011-03-25 Ben Konrath <ben@bagu.org>
1933 Cleanup code in the servlet.
1935 * TODO: Remove item about row count. Add item about testing row count
1936 query with large number of rows.
1937 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1938 spelling mistakes, change method parameter to be consistent with
1941 2011-03-25 Ben Konrath <ben@bagu.org>
1943 Add server side logging with the gwt-log library.
1945 * .gitignore: Ignore the log file we're now producing.
1946 * TODO: Add a couple TODO item for logging.
1947 * pom.xml: Add gwt-log and log4j as a dependency.
1948 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1949 logging of errors, warnings and some important info.
1950 * src/main/resources/log4j.properties: New file to configure log4j.
1952 2011-03-24 Ben Konrath <ben@bagu.org>
1954 Add a disable button for the Details view.
1956 * src/main/java/org/glom/web/client/LayoutListView.java:
1958 2011-03-22 Ben Konrath <ben@bagu.org>
1960 Use a count query to get the number of rows for the list view pager.
1962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1964 2011-03-22 Ben Konrath <ben@bagu.org>
1966 Add more TODO information about CellTable pager positioning.
1970 2011-03-19 Ben Konrath <ben@bagu.org>
1972 Add TODO item about CellTable pager positioning.
1976 2011-03-18 Ben Konrath <ben@bagu.org>
1978 Remove unneeded GlomFieldColumn class.
1980 This is just a small code cleanup.
1982 * src/main/java/org/glom/web/client/LayoutListView.java:
1984 2011-03-18 Ben Konrath <ben@bagu.org>
1986 Use cursor mode in the query that gets data for the list view.
1988 I still need to fix the potential memory problem when getting the row
1989 count for the list view.
1991 * TODO: Add note about testing memory usage with large data sets. Add
1992 item about fixing row counting with large data sets.
1993 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1994 PostgreSQL JDBC driver into cursor mode when getting data for the
1997 2011-03-15 Ben Konrath <ben@bagu.org>
1999 Remove the GWT Container from the Eclipse build classpath.
2001 The GWT dependencies are set by Maven so this isn't needed.
2005 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2007 Added some earlier mockups to git, but not to the tarball dist.
2009 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2010 Openismus. These hopefully show how we might structure the HTML so that
2011 it can be styled easily with CSS. However, we probably need to adapt them
2012 for the CSS structure that GWT dictates for common widgets.
2014 2011-03-14 Ben Konrath <ben@bagu.org>
2016 Locate OnlineGlom.properties using the ServletContext.
2018 This is required to be able to locate the file in the deployed servlet.
2020 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2021 Configure the database and glom document in in a helper method so
2022 that the ServletContext can be used to locate OnlineGlom.properties.
2023 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2024 src/main/webapp. This is the proper location for .properites files.
2026 2011-03-12 Ben Konrath <ben@bagu.org>
2028 Add note to README about why we're compiling down to obfuscated JavaScript.
2032 2011-03-11 Ben Konrath <ben@bagu.org>
2034 Use properties file to configure servlet.
2036 This allows people to change the glom file path, db username and db
2037 password without recompiling the code.
2039 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2040 * src/main/webapp/OnlineGlom.properties:
2042 2011-03-11 Ben Konrath <ben@bagu.org>
2044 Use table fields in layout list view if the layout list is not defined.
2046 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2047 Manually create a LayoutFieldVector for the query builder using the
2048 table fields when a layout list is not defined in the glom file.
2050 2011-03-11 Ben Konrath <ben@bagu.org>
2052 Only show FIXME string for images when there's an image.
2054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2055 in this change are some small code cleanups.
2057 2011-03-11 Ben Konrath <ben@bagu.org>
2059 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2061 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2063 2011-03-11 Ben Konrath <ben@bagu.org>
2065 Correctly set the index of the default table.
2067 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2068 Correctly set the index of the default table. Add commented out example
2071 2011-03-10 Ben Konrath <ben@bagu.org>
2073 Add comment to pom.xml about the previous change.
2075 * pom.xml: Add comment about the deployment issue so that it's obvious
2076 why java-libglom is set to the provided scope.
2078 2011-03-10 Ben Konrath <ben@bagu.org>
2080 Change java-libglom dependency from compile to provided in pom.xml.
2082 Since java-libglom uses jni it can only be loaded once and therefore
2083 must be placed in $CATALINA_HOME/lib and not included in each war.
2084 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2085 More information about this issue can be found in the Tomcat 6 release
2086 notes in the "JNI Based Applications" section:
2088 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2090 * README: Remove note about this issue. Deployment info should really
2091 be on the wiki anyway so I'll add it right now.
2092 * pom.xml: Change java-libglom dependency from compile to provided so
2093 that it's copied in to the packaged war.
2095 2011-03-09 Ben Konrath <ben@bagu.org>
2097 Change to using a neutral locale for currency, date and time formatting.
2099 This solves the problem of currency values being represented without a
2100 space between the currency code and the number (e.g. "EUR5.89" is now
2101 represented as "EUR 5.89"). More work is required when we implement
2102 a locale preference setting.
2104 * TODO: Add note about currency formatting issues with different
2106 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2107 to using the neutral ROOT locale.
2109 2011-03-09 Ben Konrath <ben@bagu.org>
2111 Add support for currency codes that are not ISO 4217 codes.
2113 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2114 the currency code defined in the glom file when it's not 3 characters
2115 long or when Java doesn't recognize the string as an ISO 4217 code.
2117 2011-03-08 Ben Konrath <ben@bagu.org>
2119 Remove test classes, launch configurations and configuration.
2121 The test stuff was getting in the way when creating the war. To make
2122 the war file you can now do 'mvn clean package'. The packaged war file
2123 will be in the target directory.
2125 * .classpath: Remove unused classpathentry for tests and i18n.
2126 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2127 property. Don't run test or i18n goals when packaging the war.
2128 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2133 * OnlineGlomTest-dev.launch:
2134 * OnlineGlomTest-prod.launch:
2135 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2136 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2138 2011-03-07 Ben Konrath <ben@bagu.org>
2140 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2142 These fixes allow me to use 'mvn deploy' to create the war file.
2144 * .classpath: This generated config has been updated by Eclipse. This
2145 change was probably triggered by me updating from Eclipse 3.6.1 to
2147 * .gitignore: Add entry to ignore the directory
2148 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2149 * .project: The generated config has been updated by Eclipse. This
2150 change was probably triggered by me updating from Eclipse 3.6.1 to
2152 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2153 so that Eclipse doesn't complain
2154 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2155 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2156 'tests' directory to 'client' directory. This is the new
2157 gwt-maven-plugin convension.
2158 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2159 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2161 2011-03-07 Ben Konrath <ben@bagu.org>
2163 Add support for horizontal alignment in the LayoutList columns.
2165 * TODO: Remove item about horizontal alignment. Add item about
2166 improvements to ColumnInfo.
2167 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2168 alignment on the columns. Use ColumnInfo RPC object get the column
2169 title and horizontal alignment.
2170 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2171 LayoutListView creation with ColumnInfo RPC object.
2172 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2173 a ColumnInfo object for every LayoutList columnn. Convert the
2174 FieldFormatting.HorizontalAlignment to the correct
2175 ColumnnInfo.HorizontatlAlignment with the new
2176 getColumnInfoHorizontalAlignment helper method.
2177 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2178 to encapsulate column information like alignment and title. This
2179 could be used to set the colour instead of on a per cell field basis.
2180 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2181 column title storage and retrieval with ColumnInfo.
2183 2011-03-04 Ben Konrath <ben@bagu.org>
2185 Add support for column sorting.
2187 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2188 AsynDataProvider to be an anonymous inner class. Use new
2189 getSortedTableData RPC method when column sort is requested. Set all
2190 columns sortable and add an AsyncHandler to activate sorting in the
2192 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2193 method getSortedTableData(). Cleanup other method signatures.
2194 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2195 new method getSortedTableData(). Cleanup other method signatures.
2196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2197 Implement getSortedTableData() and getTableData() methods by using a
2198 private helper method with the appropriate parameters filled in. Use
2199 user supplied sort clause when supplied, otherwise fall back to
2200 sorting by the primary key. Move destroy() method to be underneath
2201 constructor for readability. Cleanup comments.
2203 2011-03-03 Ben Konrath <ben@bagu.org>
2205 Add support for colour text and colour backgrounds to the layout list cells.
2207 Only the cell backgrounds are coloured which leaves a gap between the
2208 cells that isn't coloured. I need to figure out a way to set
2209 'style=background-colour:' on the whole column rather than just the
2212 * TODO: Add a note about colouring the background of the whole column.
2213 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2214 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2215 render the coloured text and backgrounds. Use GlomField[] for the row type.
2216 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2218 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2219 GlomField[] for the row type.
2220 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2221 GlomField[] for the row type. Set the text, text colour and background
2222 colour in the GlomField objects as specified in the glom document. Add
2223 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2224 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2225 the glom field text, foreground colour and background colour.
2227 2011-03-02 Ben Konrath <ben@bagu.org>
2229 Don't display hidden tables in the combo box.
2231 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2234 code to ignore hidden tables using ArrayLists for the table names and
2236 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2237 tableNames to use ArrayLists instead of String[]. Update getter and setter
2240 2011-03-01 Ben Konrath <ben@bagu.org>
2242 Add support for Date and Time number types.
2244 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2245 Implement formatting for Date and Time values. Change the default glom
2246 file to small business example.
2248 2011-03-01 Ben Konrath <ben@bagu.org>
2250 Add support for formatting glom types as specified in the glom file.
2252 Formatting isn't finished yet - I still need to add support for Date
2255 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2256 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2257 checks for null values in JDBC cleanup code and catch all exceptions
2258 instead of just SQLExceptions.
2259 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2262 2011-03-01 Ben Konrath <ben@bagu.org>
2264 Use GWT 2.2.0 instead of 2.1.1.
2266 * pom.xml: Change GWT version numbers.
2268 2011-03-01 Ben Konrath <ben@bagu.org>
2270 A few small code cleanups.
2272 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2274 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2275 unnecessary object creation in constructor.
2276 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2277 unnecessary object creation in constructor.
2279 2011-02-28 Ben Konrath <ben@bagu.org>
2281 Add file for TODO list.
2285 2011-02-18 Ben Konrath <ben@bagu.org>
2287 Enable the CellTable Pager when more than 20 rows need to be viewed.
2289 The Pager will automatically become active when the results are larger
2290 than the CellTable size which is currently set to 20 lines.
2292 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2293 name on debug statment in RPC call in LayoutListDataProvider, add
2294 numRows parameter to LayoutListView constructor, propperly set rowCount
2296 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2297 name on debug statment in RPC call, use LayoutListTable object in RPC
2298 calls, pass rowCount to LayoutListView.
2299 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2300 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2302 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2303 interface for changes in OnlineGlomService.
2304 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2305 getLayoutListHeaders() to getLayoutListTable() and return
2306 LayoutListTable. Using this object allows me to pass other information
2307 about the LayoutList like the expected number of rows in the result set.
2308 The Connection object from the connection pool is now propperly closed.
2309 Only the requested number of lines are returned to the client in
2311 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2312 GlomTable and add columnTitles and numRows.
2314 2011-02-18 Ben Konrath <ben@bagu.org>
2316 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2318 This is a small performance boost. I'll use GlomTable to get the required
2319 layoutlist information.
2321 * src/main/java/org/glom/web/client/OnlineGlom.java:
2322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2323 * src/main/java/org/glom/web/shared/GlomDocument.java:
2325 2011-02-18 Ben Konrath <ben@bagu.org>
2327 Add option to turn off formatting in JDT formatter preferences.
2329 * .settings/org.eclipse.jdt.core.prefs:
2331 2011-02-18 Ben Konrath <ben@bagu.org>
2333 Rename LayoutList to LayoutListView.
2335 I'm working towards setting things up to easily use MVP when the time
2338 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2340 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2343 2011-02-17 Ben Konrath <ben@bagu.org>
2345 Move LayoutListDataProvider class into LayoutList.java.
2347 * src/main/java/org/glom/web/client/LayoutList.java:
2349 2011-02-17 Ben Konrath <ben@bagu.org>
2351 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2353 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2355 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2356 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2357 from LibGlomServer.java.
2358 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2359 Rename from LibGlomServiceAsync.java.
2360 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2361 Rename from LibGlomServiceImpl.java.
2362 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2364 2011-02-17 Ben Konrath <ben@bagu.org>
2366 Update JDT settings.
2368 * .settings/org.eclipse.jdt.core.prefs:
2370 2011-02-17 Ben Konrath <ben@bagu.org>
2372 Move GWT-RPC objects to shared package (where they should be).
2374 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2375 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2376 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2377 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2378 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2379 org.glom.web.shared package.
2380 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2381 org.glom.web.shared package.
2382 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2383 directory in compilation to javascript.
2385 2011-02-16 Ben Konrath <ben@bagu.org>
2387 Add sort clause to the sql query that grabs table information.
2389 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2390 if one of the columns is a primary key.
2392 2011-02-16 Ben Konrath <ben@bagu.org>
2394 Disable generateAsync feature of gwt-maven.
2396 The generated interface does not correctly match the methods in LibGlomService
2397 and the generated singleton Util inner-class doesn't respect the servlet
2400 * pom.xml: Turn off generateAsync feature.
2401 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2402 with singleton Util inner-class.
2404 2011-02-14 Ben Konrath <ben@bagu.org>
2406 Add LGPL v3 licence notices.
2408 Followed directions listed here:
2409 http://www.gnu.org/licenses/gpl-howto.html
2411 * COPYING: This file is a copy of the GPL v3.
2412 * COPYING.LESSER: This file is a copy of the LGPL v3.
2413 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2415 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2417 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2419 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2421 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2423 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2425 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2428 2011-02-14 Ben Konrath <ben@bagu.org>
2430 Use ArrayList instead of Array in GWT-RPC calls.
2432 Apparently this gives a slight performance boost to the compiled
2435 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2437 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2440 2011-02-14 Ben Konrath <ben@bagu.org>
2442 Access data from a postgres db rather than the example glom file.
2444 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2445 compile down to obfuscated javascript.
2446 * pom.xml: Add c3p0 and postgres JDBC libraries.
2447 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2448 using a postgres db accessed through the c3p0 connection pooling library.
2450 2011-02-14 Ben Konrath <ben@bagu.org>
2452 Update Java formatter settings.
2454 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2456 2011-02-02 Ben Konrath <ben@bagu.org>
2458 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2460 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2462 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2463 the compiled webapp directory that Eclipse uses as we're using Maven now.
2464 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2465 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2467 * pom.xml: Format file, change target Java version to 1.6.
2469 2011-02-02 Ben Konrath <ben@bagu.org>
2471 Add information about a deployment related issue.
2473 * README: Add Notes section with the problem outlined.
2475 2011-02-02 Ben Konrath <ben@bagu.org>
2477 Call Glom.libglom_deinit() when the servlet is shutdown.
2479 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2480 Glom.libglom_deinit() to destroy() method.
2482 2011-01-28 Ben Konrath <ben@bagu.org>
2484 Use generated Util class to get the RPC Async interface.
2486 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2488 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2489 getInstance() method to get a reference to the RPC Async interface.
2490 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2491 getInstance() method to get a reference to the RPC Async interface, remove
2492 the now unused getLibGlomServiceProxy() method.
2494 2011-01-27 Ben Konrath <ben@bagu.org>
2496 Cleanup ChangeLog entry from previous commit.
2498 * ChangeLog: Group logical changes together and add comments.
2500 2011-01-25 Ben Konrath <ben@bagu.org>
2502 Convert to gwt-maven project.
2504 * .gitignore: Update for new project structure.
2505 * README: New file with a link to the online documentation.
2506 * pom.xml: The generated maven configuration file with some tweaks.
2508 Add / update Eclipse settings. These files are a merge of the files that
2509 were generated with the gwt-maven plugin and the files we were previously
2513 * .settings/.jsdtscope:
2514 * .settings/com.google.gdt.eclipse.core.prefs:
2515 * .settings/com.google.gwt.eclipse.core.prefs:
2516 * .settings/org.eclipse.jdt.core.prefs:
2517 * .settings/org.eclipse.wst.common.component:
2518 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2519 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2520 * .settings/org.maven.ide.eclipse.prefs:
2521 * OnlineGlomTest-dev.launch:
2522 * OnlineGlomTest-prod.launch:
2524 Java source files moved from the 'src' directory to the directory structure
2526 * src/main/java/org/glom/web/client/GlomDocument.java:
2527 * src/main/java/org/glom/web/client/GlomTable.java:
2528 * src/main/java/org/glom/web/client/LayoutList.java:
2529 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2530 * src/main/java/org/glom/web/client/LibGlomService.java:
2531 * src/main/java/org/glom/web/client/OnlineGlom.java:
2532 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2534 Non-functional property file used for translations. I included this as
2535 reminder that it's something I need to sort out.
2536 * src/main/resources/org/glom/web/client/Messages.properties:
2538 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2539 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2541 The servlet configuration files moved from the 'war' directory.
2542 * src/main/webapp/OnlineGlom.css:
2543 * src/main/webapp/OnlineGlom.html:
2544 * src/main/webapp/WEB-INF/web.xml:
2546 Generated test files with most of the code commented out. I included these
2547 so that it's easy to add tests when we're ready for them.
2548 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2549 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2551 2011-01-25 Ben Konrath <ben@bagu.org>
2553 Remove unused println.
2555 * src/org/glom/web/server/LibGlomServiceImpl.java:
2557 2011-01-25 Ben Konrath <ben@bagu.org>
2559 Add project specific JDT settings.
2561 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2562 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2564 2011-01-25 Ben Konrath <ben@bagu.org>
2566 Populate celltable with example data.
2568 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2569 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2570 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2571 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2572 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2573 asynchronously gets the example data.
2574 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2575 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2576 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2577 curently selected table to be retrieved by other widgets.
2578 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2579 implement getTableData() in a hacky way. This method needs to be updated
2580 to grab information from the database when database creating is
2583 2011-01-20 Ben Konrath <ben@bagu.org>
2585 Set table headers when table dropBox changes.
2587 * src/org/glom/web/client/GlomDocument.java: Correct some method
2589 * src/org/glom/web/client/LibGlomService.java: Add method
2590 to get list layout field names.
2591 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2592 to get list layout field names.
2593 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2594 widget for list layout table.
2595 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2596 the table drop box and add new updateTable() method to asynchronously
2597 get the layout list field names for the currently selected table.
2598 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2599 implementation of getLayoutListHeaders() method.
2600 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2602 2011-01-18 Ben Konrath <ben@bagu.org>
2604 Make a listBox with table titles instead of the flexTable demo.
2606 This is the start of something more useful.
2608 * .classpath: Exclude a bunch of packages from the JVM that are
2609 getting in the way of the Eclipse content assist.
2610 * src/org/glom/web/client/GlomDocument.java:
2611 * src/org/glom/web/client/GlomTable.java:
2612 * src/org/glom/web/client/LibGlomService.java:
2613 * src/org/glom/web/client/LibGlomServiceAsync.java:
2614 * src/org/glom/web/client/OnlineGlom.java:
2615 * src/org/glom/web/server/LibGlomServiceImpl.java:
2616 * war/OnlineGlom.html:
2617 * war/WEB-INF/web.xml:
2619 211-01-13 Ben Konrath <ben@bagu.org>
2621 Update to new java-libglom API.
2623 * .gitignore: Ignore OnlineGlom.war.
2624 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2626 2010-12-20 Ben Konrath <ben@bagu.org>
2628 Add some basic style to the table listing.
2630 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2631 header, print useful error message on async callback failure.
2632 * war/OnlineGlom.css: Add style for table header, remove defaults
2633 provided by the Eclipse project wizard.
2635 2010-12-20 Ben Konrath <ben@bagu.org>
2637 Load example file from installed glom dir.
2639 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2640 provided by java-libglom to find the example file.
2642 2010-12-20 Ben Konrath <ben@bagu.org>
2644 Update Eclipse settings.
2647 * .settings/com.google.gdt.eclipse.core.prefs:
2648 * .settings/com.google.gwt.eclipse.core.prefs:
2650 2010-12-17 Ben Konrath <ben@bagu.org>
2654 * .classpath: New file.
2655 * .gitignore: New file.
2656 * .project: New file.
2657 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2658 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2659 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2660 * src/org/glom/web/client/GlomTable.java: New file.
2661 * src/org/glom/web/client/OnlineGlom.java: New file.
2662 * src/org/glom/web/client/TableNameService.java: New file.
2663 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2664 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2665 * war/OnlineGlom.css: New file.
2666 * war/OnlineGlom.html: New file.
2667 * war/WEB-INF/web.xml: New file.
2668 * war/images/glom.png: New file.