1 2011-11-25 Ben Konrath <ben@bagu.org>
3 Don't use Strings to hold primary key values.
5 The primary key values are now held in a new data object
6 (PrimaryKeyItem) that holds type information and the primary key value
7 using the correct type.
9 * src/main/java/org/glom/web/client/OnlineGlomService.java:
10 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
11 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
12 PrimaryKeyItem instead of String to hold the primary key value.
13 * src/main/java/org/glom/web/client/Utils.java: Remove
14 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
15 PrimaryKeyItem based on the GlomFieldType and the DataItem.
16 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
17 PrimaryKeyItem instead of String to hold the primary key value. Load
18 document selection page when the documentID has not been set correctly.
19 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
20 DetailsPlace -> URL and URL -> DetailsPlace conversion with
22 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
23 Return empty string for URL instead of "null".
24 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
25 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
26 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
27 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
28 PrimaryKeyItem instead of String to hold primary key values.
29 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
30 PrimaryKeyValue to a Gda Value.
31 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
32 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
33 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
34 Replace temporary database access code that uses the PrimaryKeyValue to
36 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
37 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
38 PrimaryKeyItem instead of String.
39 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
40 hold primary key values.
42 2011-11-24 Ben Konrath <ben@bagu.org>
44 Use newly added java-libglom API to create queries.
46 This isn't finished. I still need to stop using Strings for primary key
47 values in the client code.
49 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
50 libglom to use fake connections so that retrieving the query string will
52 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
53 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
54 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
55 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
56 Use the newly added libglom sql methods and classes to create the
57 query. Add temporary hack to convert primary value strings to Gda
60 2011-11-23 Ben Konrath <ben@bagu.org>
62 Don't explicitly set the height of Portals.
64 See comments 6 - 10 of this bug for details:
66 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
68 * src/main/java/org/glom/web/client/ui/details/Portal.java:
70 2011-11-23 Ben Konrath <ben@bagu.org>
72 Use an HTML table instead of CSS for the FlowTable layout.
74 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
75 GWT's FlexTable to implement the FlowTable.
76 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
78 2011-11-18 Ben Konrath <ben@bagu.org>
80 Add boolean example to HTML table mockup.
82 * mockups/details-view-html-tables-text-entries.html:
84 2011-11-17 Ben Konrath <ben@bagu.org>
86 Ensure the pager buttons are always visible for related lists.
88 To accomplish this, I've turned off text wrapping in the list view and
89 related list tables for both the header and data text. The related list
90 table now has a fixed layout so the it doesn't overflow its container.
91 This is required to ensure that the cell text is clipped when it
92 overflows the cell and an ellipsis is added to the right side of the
93 cell when text is clipped.
95 A fixed table layout for the related list table in the details view
96 seems what we want for the details view anyway, so the side-effect is
99 The ellipsis will only be displayed in Firefox >= 7.
103 https://bugzilla.gnome.org/show_bug.cgi?id=662930
105 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
106 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
107 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
109 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
110 Set the 'table-layout: fixed' CSS property to the related list table.
111 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
112 'white-space: nowrap;' CSS property on both the list view and the
115 2011-11-16 Ben Konrath <ben@bagu.org>
117 Rework the fix for empty notebook tab labels.
119 Setting the empty group titles with its name caused problems for the
120 details layout. Instead of using libglom's
121 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
122 to the client when the title is empty. This allows the Notebook to use
123 the name when the title is empty without affecting anything else.
125 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
126 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
128 2011-11-16 Ben Konrath <ben@bagu.org>
130 Set group titles with name when title is empty.
132 This fixes a problem with an empty notebook tab label in the Lesson
133 Planner document. The forth tab in the notebook should be "Internet":
135 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
137 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
138 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
141 2011-11-16 Ben Konrath <ben@bagu.org>
143 Remove whitespace from the configured username properties.
145 This assumes that usernames won't have whitespace at the beginning
146 or end. But I think this is a reasonable assumption.
148 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
149 String.trim() to remove the whitespace from the username properties.
151 2011-11-15 Ben Konrath <ben@bagu.org>
153 Add details view mockup with HTML tables and text entries.
155 This is from the attachment on this bug:
157 https://bugzilla.gnome.org/show_bug.cgi?id=663109
159 * mockups/details-view-html-tables-text-entries.html:
161 2011-11-15 Ben Konrath <ben@bagu.org>
163 Add space between the columns of the flow table.
167 https://bugzilla.gnome.org/show_bug.cgi?id=662918
169 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
170 space between columns in the flow table.
172 2011-11-15 Ben Konrath <ben@bagu.org>
174 Add backup files to the .gitignore.
176 * .gitignore: Ignore files that end with ~.
178 2011-11-09 Ben Konrath <ben@bagu.org>
180 Use latest release of gwt-log.
182 Gwt-log releases are now being submitted to the maven central
183 repository so manual installation of the jar is no longer required.
185 * pom.xml: Update version and groupId of gwt-log dependency.
187 2011-10-31 Ben Konrath <ben@bagu.org>
189 Don't use GWT numeric formatting to override the glom currency formatting.
191 Currencies are now displayed like they are in Glom. See this bug:
193 https://bugzilla.gnome.org/show_bug.cgi?id=646216
195 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
197 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
198 currency code to constructor and set it when the cell is rendered.
199 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
200 currency code to the constructor of the NumericCell.
202 2011-10-27 Ben Konrath <ben@bagu.org>
204 Require the latest release of java-libglom (1.17.4).
208 2011-10-26 Ben Konrath <ben@bagu.org>
210 Add style to Notebook that matches current theme.
212 It's not the best style in the world but it's better than the default.
214 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
215 padding at the bottom of the child widgets.
216 * src/main/webapp/style.css: Add style for the Notebook.
218 2011-10-26 Ben Konrath <ben@bagu.org>
220 Move servlet initialization code to overridden init method.
222 This is half of the solution to getting proper error messages
223 displayed when configuration errors occur. Here's the relevant bug:
225 https://bugzilla.gnome.org/show_bug.cgi?id=662792
227 The rest of the solution involves surrounding the init method with a
228 try/catch block and setting a global variable with the error /
229 exception. A new async method should be created to retrieve and display
230 the error message / exception.
232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
233 code from constructor to init method adding exceptions as needed.
235 2011-10-26 Ben Konrath <ben@bagu.org>
237 Add script to monitor and restart tomcat if required.
239 * utils/check-and-recover-tomcat.py: New file.
241 2011-10-26 Ben Konrath <ben@bagu.org>
243 Display the correct number of data items in the pager.
247 https://bugzilla.gnome.org/show_bug.cgi?id=661441
249 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
250 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
251 The implementation is the same for both tables: Keep track of the
252 number of non-empty rows and fire and RowCountChangeEvent after the data has
254 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
255 custom Pager class that subclasses SimplePager to handle displaying
256 the correct number when empty rows have been added.
258 2011-10-26 Ben Konrath <ben@bagu.org>
260 Correct error in previous commit.
262 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
263 eventBus parameter from listView.setCellTable().
265 2011-10-26 Ben Konrath <ben@bagu.org>
267 Fix error in TODO comment.
269 * src/main/java/org/glom/web/client/activity/ListActivity.java:
271 2011-10-24 Ben Konrath <ben@bagu.org>
273 Create Notebook widgets to the details view.
275 This isn't finished just yet - I still need to create a reasonable
276 style to match the current theme.
278 * src/main/java/org/glom/web/client/Utils.java: Add method for
279 calculating the height of a widget. This is used in the Notebook class.
280 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
281 new constructor method in Group.
282 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
283 method for creating child widget that can be used by subclasses
284 like Notebook. New constructor that allows disabling the group
285 titles - Notebooks don't set a group title for their child groups.
286 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
287 to make Notebooks using GWT's TabLayoutPanel.
288 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
289 constructor that allows disabling the group titles.
290 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
291 LayoutItemNotebook DTO.
292 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
293 DTO for Notebooks. It's just an empty class for now but we might need
294 it to transfer some specific information in the future.
296 2011-10-21 Ben Konrath <ben@bagu.org>
298 Add navigation buttons to related list tables.
300 * src/main/java/org/glom/web/client/OnlineGlomService.java:
301 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
302 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
303 method getSuitableRecordToViewDetails() for getting the table name
304 and primary key value for related list navigation buttons.
305 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
306 private cell renderer class to get the navigation information for
307 related list tables from the server. Extract the navigation
308 processing code from the details cell navigation and use it for the
309 related list navigation as well.
310 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
311 cell renderer class for the details open buttons. This was needed
312 because the related list navigation buttons and the list view
313 navigation buttons need to react differently when clicked.
314 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
315 the onEnterKeyDown() method because it's now overriden in the
316 subclasses that are specific to the related list tables and the list
318 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
319 the vertical size a little because the buttons add a bit of vertical
320 space to table. This is not a perfect solution because the vertical
321 size of with table fewer than 5 rows will be a little smaller.
322 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
323 changes in how navigation buttons are handled.
324 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
325 getSuitableRecordToViewDetails() using the new RelatedListNavigation
326 database access object.
327 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
328 to find the portal for a given relationship name from
329 RelatedListDBAccess. Add method to find a primary key field for a
331 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
332 Move code to find the portal for a given relationship name to
334 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
335 New file: database access object for getting the related list
336 navigation information (the table name and the primary key value).
337 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
338 DTO for transferring a table name to navigate to and a primary key
340 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
341 boolean and getter/setter to specifies if the related list should add
344 2011-10-24 Murray Cumming <murrayc@murrayc.com>
346 Use the master branch of java-libglom
348 * pom.xml: Depend on java-libglom 1.19 instead.
350 This is the master branch. See also the libglom-1-18 branch.
352 2011-10-11 Ben Konrath <ben@bagu.org>
354 Enable the open navigation button when the data has been set.
356 This avoids having active buttons that don't do anything when the data
359 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
361 2011-10-11 Ben Konrath <ben@bagu.org>
363 Use IsWidget interface for FlowTableItem.
365 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
366 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
368 2011-10-11 Ben Konrath <ben@bagu.org>
370 Remove GWT styling from open button in details view.
372 There are still some issues with how the details cell is arranged but
373 this should be made to match Glom 1.20. I'm going to leave fixing this
374 until I have Glom 1.20 up and running.
376 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
377 style name on open button.
378 * src/main/webapp/style.css: Move and edit details-navigation class.
379 Re-arrange some classes to make them appear in the same order as the
382 2011-10-07 Ben Konrath <ben@bagu.org>
386 * .gitignore: Ignore new cache directory.
387 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
388 * pom.xml: Change GWT and maven plugin to 2.4.0.
389 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
391 * src/main/java/org/glom/web/client/ClientFactory.java:
392 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
393 * src/main/java/org/glom/web/client/OnlineGlom.java:
394 Update source for API changes.
395 * utils/build-onlineglom-war.sh: Remove cache directory before the
398 2011-10-07 Ben Konrath <ben@bagu.org>
400 Add navigation buttons in the details view.
402 This isn't finished but I thought I'd commit what I have as it's a
403 pretty good start. I still need to:
405 1. Change the style so that it fits better into the current theme
406 2. Adjust the details cell to expand as much as possible.
408 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
409 click handlers to navigation buttons in the DetailsCells. Create a
410 refreshData() method to get just the data from the server without the
412 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
413 Update the tableSelector and browser title when the table name
414 changes without using the tableSelector.
415 * src/main/java/org/glom/web/client/ui/DetailsView.java:
416 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
417 getDetailsCells() to getCells(). Update variable names.
418 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
419 method to set click handler on navigation button. Rename a few
420 variables. Add navigation buttons where needed.
421 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
422 variables and methods.
423 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
424 navigation boolean and navigation table as required in the
426 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
427 variables for navigation along with getter/setter methods.
429 2011-10-07 Ben Konrath <ben@bagu.org>
431 Rename Field to DetailsCell.
433 This is a refactor-only commit. No functionality has been added or
436 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
437 Update variable and method names.
438 * src/main/java/org/glom/web/client/ui/DetailsView.java:
439 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
440 variable and method names.
441 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
443 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
444 variable and method names.
446 2011-10-07 Ben Konrath <ben@bagu.org>
448 Create separate methods for layout and data the details view.
450 This is a refactor-only commit. No functionality has been added or
453 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
454 private methods: setData(), createLayout().
456 2011-10-07 Ben Konrath <ben@bagu.org>
458 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
460 This is part of a change to get navigation buttons in the details view
461 but it should have been done this way from the start.
463 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
464 for method name change in TableSelectionView.
465 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
466 Create TableChangeEvent and set the browser title using the
467 TableSelectionView API.
468 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
469 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
470 Change getSelectedTable() to getSelectedTableName(). Add
471 getSelectedTableTitle().
473 2011-10-07 Ben Konrath <ben@bagu.org>
475 Use primaryKeyValue naming convention in constructor of DetailsPlace.
477 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
479 2011-10-07 Ben Konrath <ben@bagu.org>
481 Update TableChangeEvent to use newTableName naming convention.
483 This makes the class more consistent with GWT naming conventions.
485 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
486 Update for method name change in TableChangeEvent.
487 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
488 for method name change in TableChangeEvent.
489 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
490 newTableName variable and getter method. Make toDebugString()
493 2011-09-30 Ben Konrath <ben@bagu.org>
495 Disable the pager in the list tables when the data row count is less than the minimum.
497 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
498 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
500 2011-09-30 Ben Konrath <ben@bagu.org>
502 Add empty rows to the end of related list and list view tables.
504 I also extracted the cell rendering classes from the ListTable because
505 the code was becoming a little crazy with all the anonymous inner
506 classes. My plan is to use these cell rendering classes in the details
507 view as well so this refactor will be needed for that change.
509 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
510 set the row count in related list tables if the data has more rows
511 than the minimum number of rows visible.
512 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
513 row count in list view tables if the data has more rows than the
514 minimum number of rows visible.
515 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
516 for rendering TYPE_BOOLEAN cells. The code was extracted from the
518 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
519 for rendering TYPE_NUMERIC cells. The code was extracted from the
521 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
522 class for rendering cells with buttons in list views. The code was
523 extracted from the ListTable class.
524 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
525 for rendering TYPE_TEXT cells. The code was extracted from the
527 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
528 Add empty rows to the end of the data if required. Implement
529 ListTable.getMinNumVisibleRows().
530 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
531 cell renderer code to public classes. Return null in
532 Column.getValue() for empty rows. Add new abstract method:
533 getMinNumVisibleRows(). Move code to set the row count of the list view
534 table to ListViewImpl.
535 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
536 empty rows to the end of the data if required. Implement
537 ListTable.getMinNumVisibleRows().
540 2011-09-27 Ben Konrath <ben@bagu.org>
542 Use GWT.log for client-side debugging statements.
544 These are optimized out when deployed so I should have used this method
545 in the first place. These statements will eventually be replaced with some sort
546 of notification in the browser.
548 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
549 * src/main/java/org/glom/web/client/activity/ListActivity.java:
550 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
551 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
552 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
554 2011-09-27 Ben Konrath <ben@bagu.org>
556 Put tableselector on the right, back to list link on right.
558 The idea is that the table selector is acting like a label for the
559 currently displayed table so it should be placed below the document title. This
560 puts the table title in a similar position to where it is in Glom.
562 * mockups/details-contacts.html:
563 * mockups/details-projects.html:
564 * mockups/listview-contacts.html:
565 * mockups/listview-projects.html:
567 Update mockups to match how the interfaces currently look.
568 * src/main/webapp/style.css: Swap positions of backlink with the table
569 selector. Add some space on the left side of the table selector to
570 line things up with the document title.
572 2011-09-27 Ben Konrath <ben@bagu.org>
574 Add field colouring to details view.
576 This change re-works how field colouring works. The colour formatting
577 information is now set to the client with the layout information instead of
578 with the data. This eliminates the need to send the same colour strings for
579 data in list view column when colour information is set.
581 In order to set an alternate colour for negative numeric values, the
582 number is now sent to client and formatted with the GWT NumberFormat class.
584 This change also fixes:
586 https://bugzilla.gnome.org/show_bug.cgi?id=659752
588 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
589 internationalization framework which is needed for client side numeric
591 * src/main/java/org/glom/web/client/Utils.java: New file for some
592 client static utility methods.
593 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
594 the DataItem object to the Field class. Use a utility method to
595 create the foreignKeyValue string.
596 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
597 alignment and text colours in the constructor. Add setData(DataItem)
598 method. Remove setText(String) method.
599 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
600 colour information to GlomTextCell. Create and use GlomNumberCell for
601 rendering numbers. Use utility method to get the string for the
602 primary key of the key provider. Re-work how the horizontal alignment
604 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
605 formatting to layout information. Methods for converting the libglom
606 formatting information were moved from DBAccess.
607 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
608 numeric formatting (it's now done on the client side). Don't set text
609 colours in DataItem. Move libglom formatting conversion methods to
611 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
612 getters/setters for text colour information.
613 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
614 for transferring the libglom NumericFormat information to the client.
615 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
616 and getters/setters for: GlomNumericFormat, background colour and
617 foreground colour strings.
619 2011-09-26 Ben Konrath <ben@bagu.org>
621 Simplify code that iterates through the LayoutGroup.
623 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
625 2011-09-26 Ben Konrath <ben@bagu.org>
627 Accept Eclipse formatting for OnlineGlomServiceAsync.
629 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
631 2011-09-26 Ben Konrath <ben@bagu.org>
633 Don't use the ListDBAccess classes to get the primary key layout information.
635 This was causing a bug where the wrong index for the hidden primary key
636 was being sent to the client.
638 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
639 primary key while creating the LayoutGroup DTO. Create a
640 LayoutItemField DTO for hidden primary keys. Don't use the
641 RelatedListDBAccess because it was only used for getting the primary
643 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
644 access modifier from public to protected for getPrimaryKeyField() and
645 getPrimaryKeyLayoutItemField().
646 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
647 abstract method getExpectedResultSize() because RelatedListDBAccess
648 doesn't have enough info to implement it.
649 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
650 Remove @Override for getExpectedResultSize().
651 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
652 Remove method getExpectedResultSize().
654 2011-09-23 Ben Konrath <ben@bagu.org>
656 Log which layout (list or details) the ignored item is from.
658 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
660 2011-09-23 Ben Konrath <ben@bagu.org>
662 Remove annotations that turn off code formatting in DataItem.
664 * src/main/java/org/glom/web/shared/DataItem.java:
666 2011-09-23 Ben Konrath <ben@bagu.org>
668 Rename GlomField to DataItem and update associated methods.
670 This is a rename-only refactor. No functionality has been added or
673 * src/main/java/org/glom/web/client/OnlineGlomService.java:
674 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
675 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
676 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
677 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
678 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
679 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
680 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
681 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
682 * src/main/java/org/glom/web/server/database/DBAccess.java:
683 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
684 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
685 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
686 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
687 * src/main/java/org/glom/web/shared/DataItem.java:
688 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
689 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
691 2011-09-23 Ben Konrath <ben@bagu.org>
693 Rename GlomDocument to DocumentInfo and update associated methods.
695 This is a rename-only refactor. No functionality has been added or
698 * src/main/java/org/glom/web/client/OnlineGlomService.java:
699 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
700 * src/main/java/org/glom/web/client/activity/ListActivity.java:
701 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
702 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
703 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
704 * src/main/java/org/glom/web/shared/DocumentInfo.java:
706 2011-09-20 Ben Konrath <ben@bagu.org>
708 Require java-libglom 1.17.3.
710 This picks up the fix for the seg fault problem with the Scenes table
711 in the Openismus Film Manager example.
715 2011-09-20 Ben Konrath <ben@bagu.org>
717 Change the way sort clause is added for primary key when no sort clause is requested.
719 The primary key is now added to the LayoutFieldVector (fieldsToGet)
720 before the sort clause is created. When a sort clause is not requested, the
721 sort clause is created by finding the primary key in the LayoutFieldVector
724 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
726 2011-09-20 Ben Konrath <ben@bagu.org>
728 Log error message if no documents are found in the configured directory.
730 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
731 Extract the glom file extension string to a private static final class
732 variable (mostly as syntactic sugar). Accept a minor formatting change.
733 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
734 the example glom.document.directory configuration property to make it
735 more clear that it can any directory, not just the home directory.
737 2011-09-18 Ben Konrath <ben@bagu.org>
739 Add related lists to details view.
741 The related list table has support for paging and sorting just like the
742 table in the list view.
744 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
745 SQL queries for the related list tables.
746 * src/main/java/org/glom/web/client/OnlineGlomService.java:
747 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
749 Rename getList methods to getListView and add comments. Remove
750 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
751 it being unused. Add methods: getDetailsLayoutAndData(),
752 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
753 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
754 Create the layout and set the data for the fields in one async call
755 instead of two. Create related lists where appropriate.
756 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
757 for method name changes in OnlineGlomService.
758 * src/main/java/org/glom/web/client/ui/DetailsView.java:
759 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
760 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
762 * src/main/java/org/glom/web/client/ui/ListView.java:
763 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
764 tableName from setCellTable(). Create a ListViewTable instead of
766 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
767 represent a data field in the details view.
768 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
769 from addDetailsCell() to Field class. Keep track of the Fields and
770 Portals in the details view.
771 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
772 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
773 and add a method to get it. Add method to set the contents of the
775 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
776 New class for related list tables. This class has the data provider
777 for the related list table.
778 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
779 abstract class which is the base class for the ListViewTable and the
781 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
782 New class for list view tables. This class has the data provider for
784 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
785 methods for related list tables. Add more information to the
786 LayoutItemField and LayoutItemPortal DTOs.
787 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
788 Remove debugging print statement.
789 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
790 Remove debugging print statements. Add primary key field to SQL count
792 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
793 Remove unnecessary LayoutFieldVector parameter from
794 getResultSizeOfSQLQuery() method.
795 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
796 New class for related list table database access.
797 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
798 class that is a wrapper DTO for details view layout and data.
799 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
800 new 'fromField' string to this DTO.
801 * src/main/webapp/style.css: Remove bottom margin and override top
804 2011-09-15 Ben Konrath <ben@bagu.org>
806 Breakup the OnlineGlomServiceImpl class to make it more manageable.
808 This sets things up to make it easier to add the data retrieval for
809 related lists (portals). No user noticeable changes were made with
812 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
813 class has the code to retrieve the layouts and access the
814 database using the new database helper classes.
815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
816 Most of the functionality has been removed from this class. This
817 class now represents the public interface for the client side
818 code. It also deals with configuring the servlet and cleaning
819 things up when the servlet is stopped.
820 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
821 of static methods into this utility class.
822 * src/main/java/org/glom/web/server/database/DBAccess.java:
823 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
824 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
825 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
826 These classes have the database retrieval code. The class hierarchy
827 has been setup to make it easy to reuse code for similar
830 2011-09-06 Ben Konrath <ben@bagu.org>
832 Create separate classes for list table code and the data provider.
834 As part of this refactor, I also split up the code a bit to make it
837 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
838 table code to two new classes (below).
839 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
840 with code from ListViewImpl.
841 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
842 New file with code from ListViewImpl.
844 2011-09-06 Ben Konrath <ben@bagu.org>
846 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
848 This fixes the LayoutItemPortal DTO to match the libglom layout object
851 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
853 2011-09-01 Ben Konrath <ben@bagu.org>
855 Set title of Portals in the Details View.
857 * pom.xml: Bump required version of java-libglom to 1.17.1.
858 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
859 widget creation to its own class. Add comments to constructor.
860 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
861 The code is mostly from the Group class with the title now set.
862 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
863 title of Portal. Update some comments. Fix some code formatting.
865 2011-09-01 Ben Konrath <ben@bagu.org>
867 Remove TODO comment for the flow table column width.
869 The flow table column width is working correctly and doesn't need to be
870 changed. See this mailing list post for more info:
872 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
874 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
876 2011-08-27 Ben Konrath <ben@bagu.org>
878 Add document title (database name) to top of the browser page.
880 I added the document title to the TableSelecitonView but that will
881 change if / when we add a view that doesn't require table selection.
883 * mockups/details-contacts.html:
884 * mockups/details-projects.html:
885 * mockups/listview-contacts.html:
886 * mockups/listview-projects.html:
887 * mockups/style.css: Add document title to mockups to keep things
889 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
890 sizes to account for the document title.
891 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
892 Set the document title when it has been retrieved from the server.
893 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
894 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
895 and implement setDocumentTitle(String) method.
896 * src/main/webapp/style.css: Add ID for document title style.
898 2011-08-25 Ben Konrath <ben@bagu.org>
900 Add NavigationType enum to LayoutItemPortal DTO.
902 This is the start of adding support for Portals to the Details View.
904 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
905 LayoutItem_Portal.navigation_type enum from libglom to
906 LayoutItemPortal.NavigationType enum.
907 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
908 NavigationType enum, field for storing the NavigationType and getter
911 2011-08-25 Ben Konrath <ben@bagu.org>
913 Implement the flow table layout in the Details View.
915 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
916 FlowTable to Group to account for the renamed class.
917 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
918 File. This is a container widget that implements the Glom details view
919 flow table behaviour.
920 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
921 org/glom/web/client/ui/FlowTable.java.
922 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
923 so that the size of the subgroups are a closer match to the size of
924 the Glom subgroups. This makes the flowtable layout match the layout
925 in Glom for the Music Collection example file.
927 2011-08-16 Ben Konrath <ben@bagu.org>
929 Create container element for LayoutItemPortal in Details View.
931 This will help me develop the layout for the FlowTable.
933 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
934 fieldPanel variable to detailsCell.
936 2011-08-15 Ben Konrath <ben@bagu.org>
938 Set the height of the data element in the Details View.
940 I changed the InlineLabels (text in a span element) to Labels (text in
941 a div element) so that I could set the height of the details-data
942 elements instead of the details-cell parent elements. This allows the
943 the details-data element to display the correct height if style is
944 applied that shows the height.
946 This change has the added benefit of allowing the order of the labels
947 and data elements to be changed for right-to-left languages.
949 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
950 InlineLabels to Labels.
951 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
952 InlineLabels to Labels. Set the height of the data element.
953 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
954 multiline text height in the Formatting DTO.
955 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
956 for multiline height along with getter and setter methods.
957 * src/main/webapp/style.css: Adjust style to account for the change
958 from span elements to div elements in the details cell.
960 2011-08-15 Ben Konrath <ben@bagu.org>
962 Make the List View appearance match the mockups.
964 It doesn't match exactly but it's much better than it was.
966 * mockups/listview-contacts.html: Remove unused css classes.
967 * mockups/listview-projects.html: Remove unused css classes.
968 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
969 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
970 for mainPanel instead of VerticalPanel (table). Set style name on
971 CellTable. Set style name on Details column. Right-align Details
973 * src/main/webapp/style.css: Adjust properties to match the mockups.
975 2011-08-12 Ben Konrath <ben@bagu.org>
977 Add better support for subgroups in the details view.
979 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
980 changed FlowTable constructor.
981 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
982 support for subgroups and subgroup-titles.
983 * src/main/webapp/style.css: Add CSS class for subgroups and
986 2011-08-12 Ben Konrath <ben@bagu.org>
988 Return the top level LayoutGroup title.
990 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
992 2011-08-11 Ben Konrath <ben@bagu.org>
994 Make the TableSelector header match the mockup.
996 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
997 the layout panel. Properly lineup the table selection header with
998 the list and details view.
999 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1000 margin around the details view.
1001 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1002 Rename listBox variable to tableSelector. Set id for the style sheet.
1003 Use a FlowPanel instead of a HorizontalPanel.
1004 * src/main/webapp/style.css: Add properties to make the TableSelector
1005 box match the mockups.
1007 2011-07-13 Ben Konrath <ben@bagu.org>
1009 Update install script for java-libglom version change.
1011 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1014 2011-07-13 Ben Konrath <ben@bagu.org>
1016 Add support sub-group in the details view.
1018 I also removed the code that special-cased the default details view
1021 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1023 I still have to make a proper flowtable.
1025 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1026 Don't special-case default details view layout.
1027 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1028 addLayoutField() as I'm going to use it.
1029 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1030 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1032 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1033 extracted from DetailsViewImpl.GroupPanel. Add support for
1035 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1036 column count when getting the details layout.
1038 2011-07-12 Ben Konrath <ben@bagu.org>
1040 Set browser title with database and table titles.
1042 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1043 Set the browser title when the table changes and when the activity
1045 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1046 title when retrieving document info (the GlomDocument object).
1047 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1048 with getter and setter methods. Remove unused convenience constructor.
1049 Use default code formatting.
1051 2011-07-12 Ben Konrath <ben@bagu.org>
1053 Ignore LayoutItemPortals in the details view.
1055 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1058 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1059 LayoutItemPortal layout objects.
1060 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1061 LayoutItemPortal objects when retrieving the details layout.
1062 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1063 file. This is an empty class and just used to get type information for
1066 2011-07-12 Ben Konrath <ben@bagu.org>
1068 Use java-libglom 1.17.0.
1072 2011-07-11 Ben Konrath <ben@bagu.org>
1074 Remove "Table:" label from table selector.
1076 This matches a recent change in the Glom UI.
1078 * mockups/details-contacts.html:
1079 * mockups/details-projects.html:
1080 * mockups/listview-contacts.html:
1081 * mockups/listview-projects.html: Remove the "Table:" label from the
1083 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1085 2011-07-11 Ben Konrath <ben@bagu.org>
1087 Add main groups to the details view.
1089 This makes things look a little nicer in the details view. The next step
1090 is to implement the flowtable.
1092 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1093 resources from the standard gwt css theme. Standard.css is now
1094 included in OnlineGlom.html so that the online glom css rules have
1095 precedence over the gwt theme.
1096 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1097 the whole LayoutGroup to the DetailsView instead of just the titles.
1098 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1099 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1100 details layout with a helper class (GroupPanel). I might extract this
1101 class when I make the full flowtable.
1102 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1103 string as default so I don't have to worry about NPEs when processing
1105 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1106 note beside OnlineGlom.gwt.xml above).
1107 * src/main/webapp/style.css: Add default font-size to body to override
1108 the font-size set by the standard theme. Don't use h2 tags for
1109 group-title. Create new details-cell class.
1111 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1113 ConfiguredDocument: Set the port number too.
1115 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1116 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1117 Glom document. Presumably this worked sometimes so far because there is a
1118 default port number.
1120 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1122 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1124 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1125 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1126 correct, though we should throw an exception too.
1128 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1130 Fix a addDocuemnt typo.
1132 * src/main/java/org/glom/web/shared/Documents.java
1133 (Documents.addDocuemnt): Rename to addDocument().
1134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1135 (OnlineGlomServiceImpl.getDocuments): Adapt.
1137 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1139 Slightly improved log output when connection fails.
1141 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1142 (ConfiguredDocument.setUsernameAndPassword):
1143 We don't know for sure if it' the username/password that's wrong, so
1144 rephrase the message.
1145 Also ouput the exception message, though it's generic in this case.
1147 2011-07-08 Ben Konrath <ben@bagu.org>
1151 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1152 added braces to a one line if statement because the Eclipse formatter
1153 was getting confused.
1155 2011-07-07 Ben Konrath <ben@bagu.org>
1157 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1159 These should really be two separate tasks but I counldn't get things to
1160 work with GWT 2.2.0 and Eclipse 3.7.
1164 * .settings/org.eclipse.jdt.core.prefs:
1165 * .settings/org.eclipse.jdt.ui.prefs:
1166 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1167 * .settings/org.eclipse.m2e.core.prefs:
1168 Add new config files. Update current files. Remove references to the
1169 webtools plugins as we're not using any of the webtools features.
1170 * .gitignore: Add logs directory which is created when running with
1172 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1173 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1174 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1176 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1178 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1180 onlineglom.properties: Add explanatory comments.
1182 * src/main/resources/onlineglom.properties: Also change the default user
1183 from ben to someuser, to avoid the risk of people thinking we just
1184 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1186 2011-06-28 Ben Konrath <ben@bagu.org>
1188 Use filename in Log for incorrect passwords.
1190 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1191 getFileName(String) method to get the filename from the URI.
1193 2011-06-28 Ben Konrath <ben@bagu.org>
1195 Add the table name to the URL token for the ListPlace.
1197 This makes things consistent between the DetailsPlace and the
1198 ListPlace. It also allows the the ListPlace to be bookmarked.
1200 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1201 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1202 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1203 Remove getDefaultListLayout(). The default layout is now returned
1204 by the getListLayout() method when the table name is an empty string.
1205 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1206 Add table name field. Change to a new ListPlace when the table
1207 has been changed. Use getListLayout() for getting the default
1209 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1210 Add table name field. Set the correct table name in the list box
1211 when loading from bookmark. This corrects a problem for the
1213 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1214 Move table name to super-class (HasSelectableTable). Move document
1215 and table URL keys to super-class in HasSelectableTable.
1216 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1217 Add table name field. Add Tokenizer class with URL key common to
1218 the subclasses (DetailsPlace and ListPlace).
1219 * src/main/java/org/glom/web/client/place/ListPlace.java:
1220 Add table name. Add code to parse the URL token.
1221 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1222 Update ListPlace construction with empty table name string.
1223 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1224 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1225 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1226 Update ListPlace construction with table name string.
1227 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1228 Change defaultTableName field to tableName to reflect how it's now
1229 used. Update the getter and setter methods.
1231 2011-06-28 Ben Konrath <ben@bagu.org>
1233 Enable the table selector in the DetailsView.
1235 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1236 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1238 Remove getDefaultDetailsLayout(). The default layout is now returned
1239 by the getDetailsLayout() method when the table name is an empty
1241 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1242 event handler for table change event. Change to using
1243 getDetailsLayout() for the default details layout.
1244 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1246 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1247 when navigating to the details place.
1249 2011-06-27 Ben Konrath <ben@bagu.org>
1251 Use filename based unique document ID in URL and for RPC.
1253 The document ID is the glom document name with spaces (' ') replaced
1254 with pluses ('+') and without the .glom extension.
1256 This change is mostly a string substitution of 'documentTitle' for
1257 'documentID'. The only code change is the addition of a Documents DTO to get the
1258 filename to document title mappings as indicated below.
1260 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1261 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1262 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1263 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1264 Use Documents DTO to create the document links in the document
1266 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1267 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1268 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1269 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1270 * src/main/java/org/glom/web/client/place/ListPlace.java:
1271 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1272 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1273 * src/main/java/org/glom/web/client/ui/ListView.java:
1274 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1275 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1276 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1277 * src/main/java/org/glom/web/server/Log.java:
1278 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1279 getDocumentTitles() to getDocuments() and return the Documents DTO.
1280 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1281 transferring the filename to document title mappings.
1283 2011-06-25 Ben Konrath <ben@bagu.org>
1285 Make the authentication popup work again.
1287 This bug was introduced when I extracted ConfiguredDocument to its own class.
1289 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1290 correct success / fail status in setUsernameAndPassword().
1292 2011-06-25 Ben Konrath <ben@bagu.org>
1294 Use filename as unique key for configuring database usernames and passwords.
1296 This replaces the use of the Glom document title which could change
1297 depending on the locale. Thanks to Murray Cumming for pointing out this
1300 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1301 * src/main/resources/onlineglom.properties:
1303 2011-06-24 Ben Konrath <ben@bagu.org>
1305 Pass primary key value to DetailsView.
1307 This enables the DetailsView to load the correct data.
1309 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1310 primary key value field and set in constructor. Pass primary key
1311 value to getDetailsData().
1312 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1313 variables for document title and primary key value.
1314 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1315 key value to the DetailsPlace.
1317 2011-06-24 Ben Konrath <ben@bagu.org>
1319 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1321 This allows the primary key to be retrieved by the Details button. This
1322 functionality has not been implemented yet but it's in the works.
1324 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1325 the LayoutGroup result to ListView.setCellTable instead of all of its
1326 fields individually.
1327 * src/main/java/org/glom/web/client/ui/ListView.java:
1328 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1329 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1330 get the primary key for the table.
1331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1332 index of the primary key in the LayoutGroup accounting for hidden
1333 primary keys. Rename getJavaNumberFormat() to
1334 convertToJavaNumberFormat() for consistency. Cleanup / add some
1336 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1337 field for primary key index and a field to indicate whether the
1338 primary key is hidden or not.
1340 2011-06-23 Ben Konrath <ben@bagu.org>
1342 Rename getTableData methods to getListData.
1344 This is a rename refactor for consistency with other methods.
1346 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1347 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1348 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1349 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1351 2011-06-23 Ben Konrath <ben@bagu.org>
1353 Extract the ConfiguredDocument innerclass into its own class.
1355 This makes the servlet code more object oriented.
1357 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1358 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1360 new ConfiguredDocument class.
1362 2011-06-21 Ben Konrath <ben@bagu.org>
1364 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1366 This makes things more inline with how libglom works and reduces code
1367 duplication. This refactor lays the groundwork for adding the primary key to
1368 the LayoutGroup object.
1370 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1371 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1372 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1373 Change method names to getListLayout and getDefaultListLayout for
1374 consistency. Use LayoutGroup as the DTO for the list layout instead of
1375 ColumnInfo and LayoutListTable.
1376 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1377 new method names along with the LayoutGroup object for transferring the
1379 * src/main/java/org/glom/web/client/ui/ListView.java:
1380 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1381 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1382 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1384 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1385 Replaced with LayoutGroup.
1386 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1387 expectedResultSize and defaultTableName fields which are needed for
1389 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1390 type field which is needed for the list layout but will also be
1391 useful for the details layout as things progress.
1392 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1393 Make class abstract. Remove the unnecessary
1394 getFormattingHorizontalAlignment method. Add setFormatting method.
1396 2011-06-16 Ben Konrath <ben@bagu.org>
1398 Add scripts for building and installing war.
1400 These will help when updating OnlineGlom but they're also good
1401 supplemental documentation of the build and deployment proceeding.
1403 * utils/build-onlineglom-war.sh: New file.
1404 * utils/install-onlineglom-war.sh: New file.
1406 2011-06-16 Ben Konrath <ben@bagu.org>
1408 Create wrapper class to create consistent log messages.
1410 I wrapped methods in the Log class of gwt-log to add the method names
1411 from the servlet and create consistent formatting of the document title
1412 and table names in the log messages.
1414 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1415 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1416 log methods to use methods from wrapped Log class.
1418 2011-06-16 Ben Konrath <ben@bagu.org>
1420 Remove superfluous conditional return.
1422 Thanks to Murray Cumming for pointing this out!
1424 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1426 2011-06-15 Ben Konrath <ben@bagu.org>
1428 Return an ArrayList of LayoutGroups for the Details layout.
1430 This corrects a problem with the details layout as it can have more
1431 than one top level LayoutGroup.
1433 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1434 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1435 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1436 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1437 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1438 with ArrayList of LayoutGroups for the details view layout.
1439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1440 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1441 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1442 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1443 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1444 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1446 2011-06-14 Ben Konrath <ben@bagu.org>
1448 Use cast_dynamic method to determine the libglom LayoutItem type.
1450 This is better than finding the LayoutItem type by using the string
1451 returned from the get_part_type_name() method.
1453 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1455 2011-06-14 Ben Konrath <ben@bagu.org>
1457 Add method names to log entries in the servlet.
1459 This helps when tracking down deployment problems.
1461 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1463 2011-06-14 Ben Konrath <ben@bagu.org>
1465 Add data to the DetailsView using a hard-coded primary key value.
1467 The layout and functionality of the DetailsView is not complete. This
1468 is just a checkpoint so the patch doesn't get too big.
1470 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1471 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1472 Add getDetailsData() servlet method.
1473 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1474 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1475 LayoutFields are added to the DetailsView.
1476 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1477 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1478 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1479 take the string for the title instead of the object.
1480 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1481 Add implementation getDetailsData() along with some private helper
1483 * src/main/webapp/style.css: Add padding to details-data class. Add a
1484 details-label class with the same padding as the details-data class.
1486 2011-06-03 Ben Konrath <ben@bagu.org>
1488 Use presenter.goTo() to change to the DetailsPlace.
1490 This will make things easier when we need to open the DetailsView with
1491 data specific to the row that was clicked.
1493 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1495 2011-06-02 Ben Konrath <ben@bagu.org>
1497 Add CSS file from mockups.
1499 I'm adding this now because it's going to be useful to have when
1500 developing the DetailsView. The TableSelectionView and ListView aren't
1503 * src/main/webapp/OnlineGlom.html:
1504 * src/main/webapp/style.css:
1506 2011-06-02 Ben Konrath <ben@bagu.org>
1508 Use String.isEmpty() to check for empty string.
1510 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1512 2011-06-02 Ben Konrath <ben@bagu.org>
1514 Display main layout group titles in the DetailsView.
1516 This is the start of the DetailsActivity/DetailsView implementation.
1518 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1519 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1520 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1521 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1522 Get the layout information for the details view from the server and set
1523 the main layout group titles.
1524 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1525 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1526 Add addLayoutGroup() and addLayoutField() methods. This are just
1527 temporary methods for creating the the details view that will change
1529 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1530 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1532 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1533 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1534 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1535 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1536 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1537 Data Transfer Objects that mimic the libglom object structure. These are
1538 used for transferring the details layout but could also be used for
1539 transferring the list layout.
1541 2011-05-27 Ben Konrath <ben@bagu.org>
1543 Reset the AuthenticationPopup when clearing the ListView.
1545 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1547 2011-05-27 Ben Konrath <ben@bagu.org>
1549 Fix problem with onlineglom.properties file loading.
1551 The old way worked in Eclipse but not on the server. Loading the
1552 onlineglom.properties file now works in Eclipse and on the server.
1554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1556 2011-05-24 Ben Konrath <ben@bagu.org>
1558 Update gwt-log from 3.1.0 to 3.1.2.
1560 Gwt-log 3.1.0 has been marked as depreciated.
1564 2011-05-24 Ben Konrath <ben@bagu.org>
1566 Add comment to ListActivity.goTo() method.
1568 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1570 2011-05-24 Ben Konrath <ben@bagu.org>
1572 Remove FIXME in convertGdkColorToHtmlColour()
1574 The Gdk::Color value returned by libglom is 16-bits per channel on both
1575 64 and 32-bit platforms.
1577 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1579 2011-05-19 Ben Konrath <ben@bagu.org>
1581 Improve performance of initial ListView load.
1583 I removed a round trip to the server for getting the default table name
1584 and then requesting information about that table. This also removes a potential
1585 problem with the table change handler not being setup in time to receive the
1586 table change event from the ListActivity.
1588 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1589 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1590 getDefaultLayoutListTable() method. Improve comments.
1591 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1592 getDefaultLayoutListTable() method instead of firing a table change
1593 event to get the table to load.
1594 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1595 implementation of getDefaultLayoutListTable() method.
1596 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1599 2011-05-19 Ben Konrath <ben@bagu.org>
1601 Override toDebugString() in TableChangeEvent.
1603 This is useful to have for debugging.
1605 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1607 2011-05-19 Ben Konrath <ben@bagu.org>
1609 Add a "Back to List" link when at the DetailsPlace.
1611 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1612 Populate the CellTable based on the selected table of the ListBox if
1613 it's set otherwise use the default table. This allows the "Back to
1615 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1616 Remove Place from constructors. Add a setPlace() method. Add
1617 goToPlace() method. Set class as presenter for TableSelectionView.
1618 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1619 Use the same TableSelectionActivity when switching between the List and
1621 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1622 Subclass the new HasSelectableTablePlace. This removes some duplicate
1624 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1625 New class to represent Places that display the TableSelectionView.
1626 * src/main/java/org/glom/web/client/place/ListPlace.java:
1627 Subclass the new HasSelectableTablePlace. This removes some duplicate
1629 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1630 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1631 Add Presenter interface. Add setBackLinkVisible() method. Add
1632 setBackLink() method.
1634 2011-05-18 Ben Konrath <ben@bagu.org>
1636 Enable the "Details" buttons.
1638 Right now only an empty details view is displayed.
1640 * src/main/java/org/glom/web/client/ClientFactory.java:
1641 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1642 Add DetailsView to ClientFactory.
1643 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1644 A basic activity for the details view.
1645 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1646 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1648 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1649 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1651 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1652 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1653 unnecessary super() in constructor.
1654 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1655 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1656 really shouldn't create a new TableSelectionActivity for both the ListPlace
1657 and the DetailsPlace so this should be considered a temporary solution.
1658 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1659 New file. Represents a URL for the details view.
1660 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1661 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1662 A basic details view interface and implementation.
1663 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1664 Enable the "Details" buttons.
1666 2011-05-12 Ben Konrath <ben@bagu.org>
1668 Use a LayoutPanel with multiple display areas for main layout.
1670 This is mostly a refactor in that there are no changes from the user
1671 point of view. These changes are required so that we can swap out the list view
1672 with the details view when the user clicks the "Details" button.
1674 * src/main/java/org/glom/web/client/ClientFactory.java:
1675 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1676 OnlineGlomView. Add TableSelectionView, ListView and
1677 AuthenticationPopup.
1678 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1679 for main layout. Add display regions for main activities. Add
1680 activity manager for for main activities.
1681 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1682 file from parts of the deleted OnlineGlomActivity.
1683 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1684 New file from parts of the deleted OnlineGlomActivity.
1685 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1686 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1687 New files for app wide table change event.
1688 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1689 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1690 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1691 Activity mappers for the main activities replace the deleted app-wide
1693 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1694 Fix a spelling error in he comment.
1695 * src/main/java/org/glom/web/client/ui/ListView.java:
1696 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1697 Renamed from LayoutListView and modified for MVP. This still not a
1698 proper dumb view as prescribed by the MVP pattern but it works for now.
1699 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1700 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1701 New widget stripped out of the deleted OnlineGlomView.
1702 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1703 Remove hack that is fixed by this patch.
1705 2011-05-06 Ben Konrath <ben@bagu.org>
1707 Rename OnlineGlomPlace to ListPlace.
1709 The only change besides the rename is that url will now display #list
1710 instead of #Document.
1712 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1713 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1714 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1715 * src/main/java/org/glom/web/client/place/ListPlace.java:
1716 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1718 2011-05-06 Ben Konrath <ben@bagu.org>
1720 Use Presenter for app navigation.
1722 This is the proper way to deal with Place (URL) changes with the MVP
1725 * src/main/java/org/glom/web/client/ClientFactory.java:
1726 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1727 PlaceHistoryMapper and PlaceHistoryHandler.
1728 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1729 PlaceHistoryMapper and PlaceHistoryHandler.
1730 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1731 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1732 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1733 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1734 Add Presenter interface and setPresenter methods. Rename addHyperLink
1735 to addDocumentLink taking only the document title as a parameter.
1737 2011-04-14 Ben Konrath <ben@bagu.org>
1739 Prompt for db username/password if they haven't been set.
1741 This is implemented with a popup widget that is contained within the
1742 OnlineGlomView and managed by the OnlineGlomActivity.
1744 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1745 methods for checking and setting the database username and password.
1746 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1747 new methods for checking and setting the database username and
1749 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1750 Display authentication popup if the JDBC connection to the database
1751 has not been authenticated.
1752 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1754 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1755 for dealing with the authentication popup.
1756 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1757 Implement the methods for dealing with the authentication popup.
1758 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1759 try to executed queries if the database connection hasn't been
1760 authenticated. Implement methods for checking and setting the
1761 database username and password.
1763 2011-04-12 Ben Konrath <ben@bagu.org>
1765 Make log messages a little clearer.
1767 Add a dash betweeen the document title and the table name.
1769 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1771 2011-04-12 Ben Konrath <ben@bagu.org>
1773 Protect against NPEs when cleaning up database resources.
1775 While this isn't strictly necessary because the exception is caught,
1776 not protecting against the NPEs makes it harder to find the real error
1779 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1781 2011-04-12 Ben Konrath <ben@bagu.org>
1783 Move configuration of the servlet to the constructor.
1785 The servlet will be initialized even if the database authentication
1786 information is not set or correct. I still need to add the UI for prompting
1787 the user for the authentication information when it's required.
1789 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1790 javadocs for getDocumentTitles() method.
1791 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1792 Set error message when RPC fails.
1793 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1794 glom files directory from the configuration file. Try to set the
1795 database authentication information for the specific document if it's
1796 set and works otherwise try to use the global authentication
1797 information set for the directory.
1798 * src/main/resources/onlineglom.properties: Moved from
1799 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1800 Added detailed comments for the new keys.
1802 2011-04-11 Ben Konrath <ben@bagu.org>
1804 Remove unnecessary @Override in DocumentSelectionViewImpl.
1806 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1808 2011-04-11 Ben Konrath <ben@bagu.org>
1810 Remove center alignment in DocumentSelectionView.
1812 The title element is still centred but the document titles and bottom
1813 sentence are both left-aligned.
1815 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1817 2011-04-11 Ben Konrath <ben@bagu.org>
1819 Change 'Demo' naming convention to 'Document'.
1821 This is just a rename refactor with no functional changes to the code.
1823 * src/main/java/org/glom/web/client/ClientFactory.java:
1824 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1825 * src/main/java/org/glom/web/client/OnlineGlom.java:
1826 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1827 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1828 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1829 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1830 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1831 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1832 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1833 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1834 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1835 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1837 2011-04-08 Ben Konrath <ben@bagu.org>
1839 Remove FIXME from safeLongToInt() method.
1841 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1844 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1846 2011-04-08 Ben Konrath <ben@bagu.org>
1848 Display an error if no glom documents are found in the specified directory.
1850 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1851 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1852 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1853 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1855 2011-04-08 Ben Konrath <ben@bagu.org>
1857 Add copyright header to one more file ... oops.
1859 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1861 2011-04-08 Ben Konrath <ben@bagu.org>
1863 Add copyright header to files without it.
1865 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1866 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1867 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1868 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1869 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1870 * src/main/java/org/glom/web/shared/GlomField.java:
1872 2011-04-08 Ben Konrath <ben@bagu.org>
1874 Add support for accessing multiple glom documents in the servlet.
1876 This completes the demo selection functionality.
1878 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1879 document title to methods.
1880 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1881 document title to methods.
1882 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1883 Set browser window title when the activity starts. Correct name of
1884 document title variable.
1885 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1886 Set browser window title when the activity starts. Set the table
1887 selector change handler after table selector has been set. Clear the
1888 OnlineGlomView when the activity has been stopped.
1889 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1890 document title as the place token. Use "#Document:" instead of
1891 "#OnlineGlomPlace:" in the URL.
1892 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1893 Change heading to "Online Glom"
1894 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1895 document title in RPC methods.
1896 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1897 setDocumentTitle() method. Add clear() method.
1898 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1899 setDocumentTitle() method. Implement clear() method which removes the
1900 change handler on the ListBox, clears the ListBox and clears the
1902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1903 Implement methods with document title. Keep track for the configured
1904 glom documents and their corresponding JDBC configurations in a hash
1905 table. This information is retrieved using the document title as the
1906 key in the hash table.
1907 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1908 document title field as it's no longer needed.
1910 2011-04-08 Ben Konrath <ben@bagu.org>
1912 Update the Eclipse JDT configuration.
1914 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1915 methods. Automatically add the copyright header to new files.
1917 2011-04-05 Ben Konrath <ben@bagu.org>
1919 Add new page for demo selection.
1921 This patch adds all the components required to view and start an
1922 OnlineGlom demo by clicking on the desired hyperlink. The user is
1923 able to return to the demo selection page with the browser's back
1924 button. I still need to modify the servlet to work with multiple
1925 documents so all demo links will load the file defined in the
1926 OnlineGlom.properties.
1928 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1929 This is only useful during development so we don't need to save it.
1930 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1931 get a reference to the DemoSelectionView.
1932 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1933 method to get a reference to the DemoSelectionView.
1934 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1935 default view to DemoSelectionView.
1936 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1937 to get glom document titles for glom files in a hard-coded directory.
1938 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1939 method to get glom document titles for glom files in a hard-coded
1941 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1942 Presenter for DemoSelectionView.
1943 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1944 for DemoSelectionView.
1945 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1946 Update for DemoSelectionView.
1947 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1948 Basic 'Place' implementation for the DemoSelectionView.
1949 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1950 The interface for the DemoSelectionView.
1951 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1952 The implementation of the DemoSelectionView.
1953 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1954 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1956 implementation of method to get glom document titles for glom files
1957 in a hard-coded directory.
1958 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1959 on longer being used.
1960 * src/main/webapp/glom.png: Glom logo.
1962 2011-04-05 Ben Konrath <ben@bagu.org>
1964 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1966 This is the forth and final commit of a refactor that will allow
1967 OnlineGlom to be used with multiple documents.
1969 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1970 Move RPC code from OnlineGlomViewImpl to this class.
1971 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1973 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1974 RPC code to the presenter class (the P in MVP).
1976 2011-04-04 Ben Konrath <ben@bagu.org>
1978 Start moving the existing OnlineGlom code to MVP.
1980 This work is based on the GWT MVP framework that is documented here:
1982 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1984 This is the third commit of a refactor that will allow OnlineGlom to
1985 be used with multiple documents.
1987 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1988 Interface for client factory which is used to get instances of various
1989 classes throughout the app.
1990 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1991 Implementation of client factory.
1992 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1993 initialize the MVP framework.
1994 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1995 New file. Activity manager for the main container widget. This is the
1997 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1998 Maps place (URL) to its corresponding activity.
1999 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2000 New file. This is just a place holder for a generated file.
2001 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2002 New file. Represents the URL for the main Online Glom app.
2003 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2004 for changes in LayoutListViewImpl.
2005 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2006 interface for View. Move code to OnlineGlomViewImpl class.
2007 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2008 file. Implementation of OnlineGlomView.
2009 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2010 Place resources. Use ClientFactoryImpl by default.
2012 2011-04-04 Ben Konrath <ben@bagu.org>
2014 Move View classes to their own package.
2016 This is the second commit of a refactor that will allow OnlineGlom to
2017 be used with multiple documents.
2019 * src/main/java/org/glom/web/client/OnlineGlom.java:
2020 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2021 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2023 2011-04-02 Ben Konrath <ben@bagu.org>
2025 Move UI code from the main module to its own class.
2027 This is the first commit of a refactor that will allow OnlineGlom to be
2028 used with multiple documents.
2030 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2031 references to OnlineGlom to OnlineGlomView.
2032 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2033 OnlineGlomView and instantiate it here.
2034 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2035 represents the main OnlineGlomView with one document.
2037 2011-04-01 Ben Konrath <ben@bagu.org>
2039 Fix formatting of gwt.xml and add DTD.
2041 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2043 2011-03-30 Ben Konrath <ben@bagu.org>
2045 Propperly convert gdkColor string to html colour string.
2047 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2049 2011-03-28 Ben Konrath <ben@bagu.org>
2051 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2053 This implementation matches
2054 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2055 readable and is not tied to Swig.
2057 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2059 2011-03-28 Ben Konrath <ben@bagu.org>
2061 Use read-only checkboxes for boolean field types.
2063 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2064 in the CellTable based on the field type. It currently only
2065 distinguishes between boolean and text columns but I'll need to add
2066 support for more types.
2067 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2068 column type in the ColumnInfo object. Add method to convert between the
2069 glom field type enum in ColumnInfo and the glom field type in libglom.
2070 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2072 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2073 getting and setting booleans.
2075 2011-03-25 Ben Konrath <ben@bagu.org>
2077 Don't get the Date twice from the ResultSet.
2079 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2081 2011-03-25 Ben Konrath <ben@bagu.org>
2083 Cleanup code in the servlet.
2085 * TODO: Remove item about row count. Add item about testing row count
2086 query with large number of rows.
2087 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2088 spelling mistakes, change method parameter to be consistent with
2091 2011-03-25 Ben Konrath <ben@bagu.org>
2093 Add server side logging with the gwt-log library.
2095 * .gitignore: Ignore the log file we're now producing.
2096 * TODO: Add a couple TODO item for logging.
2097 * pom.xml: Add gwt-log and log4j as a dependency.
2098 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2099 logging of errors, warnings and some important info.
2100 * src/main/resources/log4j.properties: New file to configure log4j.
2102 2011-03-24 Ben Konrath <ben@bagu.org>
2104 Add a disable button for the Details view.
2106 * src/main/java/org/glom/web/client/LayoutListView.java:
2108 2011-03-22 Ben Konrath <ben@bagu.org>
2110 Use a count query to get the number of rows for the list view pager.
2112 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2114 2011-03-22 Ben Konrath <ben@bagu.org>
2116 Add more TODO information about CellTable pager positioning.
2120 2011-03-19 Ben Konrath <ben@bagu.org>
2122 Add TODO item about CellTable pager positioning.
2126 2011-03-18 Ben Konrath <ben@bagu.org>
2128 Remove unneeded GlomFieldColumn class.
2130 This is just a small code cleanup.
2132 * src/main/java/org/glom/web/client/LayoutListView.java:
2134 2011-03-18 Ben Konrath <ben@bagu.org>
2136 Use cursor mode in the query that gets data for the list view.
2138 I still need to fix the potential memory problem when getting the row
2139 count for the list view.
2141 * TODO: Add note about testing memory usage with large data sets. Add
2142 item about fixing row counting with large data sets.
2143 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2144 PostgreSQL JDBC driver into cursor mode when getting data for the
2147 2011-03-15 Ben Konrath <ben@bagu.org>
2149 Remove the GWT Container from the Eclipse build classpath.
2151 The GWT dependencies are set by Maven so this isn't needed.
2155 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2157 Added some earlier mockups to git, but not to the tarball dist.
2159 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2160 Openismus. These hopefully show how we might structure the HTML so that
2161 it can be styled easily with CSS. However, we probably need to adapt them
2162 for the CSS structure that GWT dictates for common widgets.
2164 2011-03-14 Ben Konrath <ben@bagu.org>
2166 Locate OnlineGlom.properties using the ServletContext.
2168 This is required to be able to locate the file in the deployed servlet.
2170 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2171 Configure the database and glom document in in a helper method so
2172 that the ServletContext can be used to locate OnlineGlom.properties.
2173 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2174 src/main/webapp. This is the proper location for .properites files.
2176 2011-03-12 Ben Konrath <ben@bagu.org>
2178 Add note to README about why we're compiling down to obfuscated JavaScript.
2182 2011-03-11 Ben Konrath <ben@bagu.org>
2184 Use properties file to configure servlet.
2186 This allows people to change the glom file path, db username and db
2187 password without recompiling the code.
2189 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2190 * src/main/webapp/OnlineGlom.properties:
2192 2011-03-11 Ben Konrath <ben@bagu.org>
2194 Use table fields in layout list view if the layout list is not defined.
2196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2197 Manually create a LayoutFieldVector for the query builder using the
2198 table fields when a layout list is not defined in the glom file.
2200 2011-03-11 Ben Konrath <ben@bagu.org>
2202 Only show FIXME string for images when there's an image.
2204 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2205 in this change are some small code cleanups.
2207 2011-03-11 Ben Konrath <ben@bagu.org>
2209 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2211 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2213 2011-03-11 Ben Konrath <ben@bagu.org>
2215 Correctly set the index of the default table.
2217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2218 Correctly set the index of the default table. Add commented out example
2221 2011-03-10 Ben Konrath <ben@bagu.org>
2223 Add comment to pom.xml about the previous change.
2225 * pom.xml: Add comment about the deployment issue so that it's obvious
2226 why java-libglom is set to the provided scope.
2228 2011-03-10 Ben Konrath <ben@bagu.org>
2230 Change java-libglom dependency from compile to provided in pom.xml.
2232 Since java-libglom uses jni it can only be loaded once and therefore
2233 must be placed in $CATALINA_HOME/lib and not included in each war.
2234 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2235 More information about this issue can be found in the Tomcat 6 release
2236 notes in the "JNI Based Applications" section:
2238 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2240 * README: Remove note about this issue. Deployment info should really
2241 be on the wiki anyway so I'll add it right now.
2242 * pom.xml: Change java-libglom dependency from compile to provided so
2243 that it's copied in to the packaged war.
2245 2011-03-09 Ben Konrath <ben@bagu.org>
2247 Change to using a neutral locale for currency, date and time formatting.
2249 This solves the problem of currency values being represented without a
2250 space between the currency code and the number (e.g. "EUR5.89" is now
2251 represented as "EUR 5.89"). More work is required when we implement
2252 a locale preference setting.
2254 * TODO: Add note about currency formatting issues with different
2256 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2257 to using the neutral ROOT locale.
2259 2011-03-09 Ben Konrath <ben@bagu.org>
2261 Add support for currency codes that are not ISO 4217 codes.
2263 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2264 the currency code defined in the glom file when it's not 3 characters
2265 long or when Java doesn't recognize the string as an ISO 4217 code.
2267 2011-03-08 Ben Konrath <ben@bagu.org>
2269 Remove test classes, launch configurations and configuration.
2271 The test stuff was getting in the way when creating the war. To make
2272 the war file you can now do 'mvn clean package'. The packaged war file
2273 will be in the target directory.
2275 * .classpath: Remove unused classpathentry for tests and i18n.
2276 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2277 property. Don't run test or i18n goals when packaging the war.
2278 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2283 * OnlineGlomTest-dev.launch:
2284 * OnlineGlomTest-prod.launch:
2285 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2286 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2288 2011-03-07 Ben Konrath <ben@bagu.org>
2290 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2292 These fixes allow me to use 'mvn deploy' to create the war file.
2294 * .classpath: This generated config has been updated by Eclipse. This
2295 change was probably triggered by me updating from Eclipse 3.6.1 to
2297 * .gitignore: Add entry to ignore the directory
2298 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2299 * .project: The generated config has been updated by Eclipse. This
2300 change was probably triggered by me updating from Eclipse 3.6.1 to
2302 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2303 so that Eclipse doesn't complain
2304 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2305 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2306 'tests' directory to 'client' directory. This is the new
2307 gwt-maven-plugin convension.
2308 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2309 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2311 2011-03-07 Ben Konrath <ben@bagu.org>
2313 Add support for horizontal alignment in the LayoutList columns.
2315 * TODO: Remove item about horizontal alignment. Add item about
2316 improvements to ColumnInfo.
2317 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2318 alignment on the columns. Use ColumnInfo RPC object get the column
2319 title and horizontal alignment.
2320 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2321 LayoutListView creation with ColumnInfo RPC object.
2322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2323 a ColumnInfo object for every LayoutList columnn. Convert the
2324 FieldFormatting.HorizontalAlignment to the correct
2325 ColumnnInfo.HorizontatlAlignment with the new
2326 getColumnInfoHorizontalAlignment helper method.
2327 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2328 to encapsulate column information like alignment and title. This
2329 could be used to set the colour instead of on a per cell field basis.
2330 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2331 column title storage and retrieval with ColumnInfo.
2333 2011-03-04 Ben Konrath <ben@bagu.org>
2335 Add support for column sorting.
2337 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2338 AsynDataProvider to be an anonymous inner class. Use new
2339 getSortedTableData RPC method when column sort is requested. Set all
2340 columns sortable and add an AsyncHandler to activate sorting in the
2342 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2343 method getSortedTableData(). Cleanup other method signatures.
2344 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2345 new method getSortedTableData(). Cleanup other method signatures.
2346 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2347 Implement getSortedTableData() and getTableData() methods by using a
2348 private helper method with the appropriate parameters filled in. Use
2349 user supplied sort clause when supplied, otherwise fall back to
2350 sorting by the primary key. Move destroy() method to be underneath
2351 constructor for readability. Cleanup comments.
2353 2011-03-03 Ben Konrath <ben@bagu.org>
2355 Add support for colour text and colour backgrounds to the layout list cells.
2357 Only the cell backgrounds are coloured which leaves a gap between the
2358 cells that isn't coloured. I need to figure out a way to set
2359 'style=background-colour:' on the whole column rather than just the
2362 * TODO: Add a note about colouring the background of the whole column.
2363 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2364 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2365 render the coloured text and backgrounds. Use GlomField[] for the row type.
2366 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2368 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2369 GlomField[] for the row type.
2370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2371 GlomField[] for the row type. Set the text, text colour and background
2372 colour in the GlomField objects as specified in the glom document. Add
2373 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2374 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2375 the glom field text, foreground colour and background colour.
2377 2011-03-02 Ben Konrath <ben@bagu.org>
2379 Don't display hidden tables in the combo box.
2381 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2383 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2384 code to ignore hidden tables using ArrayLists for the table names and
2386 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2387 tableNames to use ArrayLists instead of String[]. Update getter and setter
2390 2011-03-01 Ben Konrath <ben@bagu.org>
2392 Add support for Date and Time number types.
2394 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2395 Implement formatting for Date and Time values. Change the default glom
2396 file to small business example.
2398 2011-03-01 Ben Konrath <ben@bagu.org>
2400 Add support for formatting glom types as specified in the glom file.
2402 Formatting isn't finished yet - I still need to add support for Date
2405 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2406 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2407 checks for null values in JDBC cleanup code and catch all exceptions
2408 instead of just SQLExceptions.
2409 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2412 2011-03-01 Ben Konrath <ben@bagu.org>
2414 Use GWT 2.2.0 instead of 2.1.1.
2416 * pom.xml: Change GWT version numbers.
2418 2011-03-01 Ben Konrath <ben@bagu.org>
2420 A few small code cleanups.
2422 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2424 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2425 unnecessary object creation in constructor.
2426 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2427 unnecessary object creation in constructor.
2429 2011-02-28 Ben Konrath <ben@bagu.org>
2431 Add file for TODO list.
2435 2011-02-18 Ben Konrath <ben@bagu.org>
2437 Enable the CellTable Pager when more than 20 rows need to be viewed.
2439 The Pager will automatically become active when the results are larger
2440 than the CellTable size which is currently set to 20 lines.
2442 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2443 name on debug statment in RPC call in LayoutListDataProvider, add
2444 numRows parameter to LayoutListView constructor, propperly set rowCount
2446 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2447 name on debug statment in RPC call, use LayoutListTable object in RPC
2448 calls, pass rowCount to LayoutListView.
2449 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2450 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2452 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2453 interface for changes in OnlineGlomService.
2454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2455 getLayoutListHeaders() to getLayoutListTable() and return
2456 LayoutListTable. Using this object allows me to pass other information
2457 about the LayoutList like the expected number of rows in the result set.
2458 The Connection object from the connection pool is now propperly closed.
2459 Only the requested number of lines are returned to the client in
2461 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2462 GlomTable and add columnTitles and numRows.
2464 2011-02-18 Ben Konrath <ben@bagu.org>
2466 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2468 This is a small performance boost. I'll use GlomTable to get the required
2469 layoutlist information.
2471 * src/main/java/org/glom/web/client/OnlineGlom.java:
2472 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2473 * src/main/java/org/glom/web/shared/GlomDocument.java:
2475 2011-02-18 Ben Konrath <ben@bagu.org>
2477 Add option to turn off formatting in JDT formatter preferences.
2479 * .settings/org.eclipse.jdt.core.prefs:
2481 2011-02-18 Ben Konrath <ben@bagu.org>
2483 Rename LayoutList to LayoutListView.
2485 I'm working towards setting things up to easily use MVP when the time
2488 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2490 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2493 2011-02-17 Ben Konrath <ben@bagu.org>
2495 Move LayoutListDataProvider class into LayoutList.java.
2497 * src/main/java/org/glom/web/client/LayoutList.java:
2499 2011-02-17 Ben Konrath <ben@bagu.org>
2501 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2503 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2505 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2506 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2507 from LibGlomServer.java.
2508 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2509 Rename from LibGlomServiceAsync.java.
2510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2511 Rename from LibGlomServiceImpl.java.
2512 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2514 2011-02-17 Ben Konrath <ben@bagu.org>
2516 Update JDT settings.
2518 * .settings/org.eclipse.jdt.core.prefs:
2520 2011-02-17 Ben Konrath <ben@bagu.org>
2522 Move GWT-RPC objects to shared package (where they should be).
2524 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2525 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2526 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2527 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2528 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2529 org.glom.web.shared package.
2530 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2531 org.glom.web.shared package.
2532 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2533 directory in compilation to javascript.
2535 2011-02-16 Ben Konrath <ben@bagu.org>
2537 Add sort clause to the sql query that grabs table information.
2539 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2540 if one of the columns is a primary key.
2542 2011-02-16 Ben Konrath <ben@bagu.org>
2544 Disable generateAsync feature of gwt-maven.
2546 The generated interface does not correctly match the methods in LibGlomService
2547 and the generated singleton Util inner-class doesn't respect the servlet
2550 * pom.xml: Turn off generateAsync feature.
2551 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2552 with singleton Util inner-class.
2554 2011-02-14 Ben Konrath <ben@bagu.org>
2556 Add LGPL v3 licence notices.
2558 Followed directions listed here:
2559 http://www.gnu.org/licenses/gpl-howto.html
2561 * COPYING: This file is a copy of the GPL v3.
2562 * COPYING.LESSER: This file is a copy of the LGPL v3.
2563 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2565 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2567 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2569 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2571 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2573 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2575 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2578 2011-02-14 Ben Konrath <ben@bagu.org>
2580 Use ArrayList instead of Array in GWT-RPC calls.
2582 Apparently this gives a slight performance boost to the compiled
2585 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2587 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2590 2011-02-14 Ben Konrath <ben@bagu.org>
2592 Access data from a postgres db rather than the example glom file.
2594 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2595 compile down to obfuscated javascript.
2596 * pom.xml: Add c3p0 and postgres JDBC libraries.
2597 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2598 using a postgres db accessed through the c3p0 connection pooling library.
2600 2011-02-14 Ben Konrath <ben@bagu.org>
2602 Update Java formatter settings.
2604 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2606 2011-02-02 Ben Konrath <ben@bagu.org>
2608 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2610 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2612 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2613 the compiled webapp directory that Eclipse uses as we're using Maven now.
2614 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2615 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2617 * pom.xml: Format file, change target Java version to 1.6.
2619 2011-02-02 Ben Konrath <ben@bagu.org>
2621 Add information about a deployment related issue.
2623 * README: Add Notes section with the problem outlined.
2625 2011-02-02 Ben Konrath <ben@bagu.org>
2627 Call Glom.libglom_deinit() when the servlet is shutdown.
2629 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2630 Glom.libglom_deinit() to destroy() method.
2632 2011-01-28 Ben Konrath <ben@bagu.org>
2634 Use generated Util class to get the RPC Async interface.
2636 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2638 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2639 getInstance() method to get a reference to the RPC Async interface.
2640 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2641 getInstance() method to get a reference to the RPC Async interface, remove
2642 the now unused getLibGlomServiceProxy() method.
2644 2011-01-27 Ben Konrath <ben@bagu.org>
2646 Cleanup ChangeLog entry from previous commit.
2648 * ChangeLog: Group logical changes together and add comments.
2650 2011-01-25 Ben Konrath <ben@bagu.org>
2652 Convert to gwt-maven project.
2654 * .gitignore: Update for new project structure.
2655 * README: New file with a link to the online documentation.
2656 * pom.xml: The generated maven configuration file with some tweaks.
2658 Add / update Eclipse settings. These files are a merge of the files that
2659 were generated with the gwt-maven plugin and the files we were previously
2663 * .settings/.jsdtscope:
2664 * .settings/com.google.gdt.eclipse.core.prefs:
2665 * .settings/com.google.gwt.eclipse.core.prefs:
2666 * .settings/org.eclipse.jdt.core.prefs:
2667 * .settings/org.eclipse.wst.common.component:
2668 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2669 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2670 * .settings/org.maven.ide.eclipse.prefs:
2671 * OnlineGlomTest-dev.launch:
2672 * OnlineGlomTest-prod.launch:
2674 Java source files moved from the 'src' directory to the directory structure
2676 * src/main/java/org/glom/web/client/GlomDocument.java:
2677 * src/main/java/org/glom/web/client/GlomTable.java:
2678 * src/main/java/org/glom/web/client/LayoutList.java:
2679 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2680 * src/main/java/org/glom/web/client/LibGlomService.java:
2681 * src/main/java/org/glom/web/client/OnlineGlom.java:
2682 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2684 Non-functional property file used for translations. I included this as
2685 reminder that it's something I need to sort out.
2686 * src/main/resources/org/glom/web/client/Messages.properties:
2688 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2689 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2691 The servlet configuration files moved from the 'war' directory.
2692 * src/main/webapp/OnlineGlom.css:
2693 * src/main/webapp/OnlineGlom.html:
2694 * src/main/webapp/WEB-INF/web.xml:
2696 Generated test files with most of the code commented out. I included these
2697 so that it's easy to add tests when we're ready for them.
2698 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2699 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2701 2011-01-25 Ben Konrath <ben@bagu.org>
2703 Remove unused println.
2705 * src/org/glom/web/server/LibGlomServiceImpl.java:
2707 2011-01-25 Ben Konrath <ben@bagu.org>
2709 Add project specific JDT settings.
2711 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2712 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2714 2011-01-25 Ben Konrath <ben@bagu.org>
2716 Populate celltable with example data.
2718 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2719 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2720 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2721 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2722 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2723 asynchronously gets the example data.
2724 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2725 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2726 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2727 curently selected table to be retrieved by other widgets.
2728 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2729 implement getTableData() in a hacky way. This method needs to be updated
2730 to grab information from the database when database creating is
2733 2011-01-20 Ben Konrath <ben@bagu.org>
2735 Set table headers when table dropBox changes.
2737 * src/org/glom/web/client/GlomDocument.java: Correct some method
2739 * src/org/glom/web/client/LibGlomService.java: Add method
2740 to get list layout field names.
2741 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2742 to get list layout field names.
2743 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2744 widget for list layout table.
2745 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2746 the table drop box and add new updateTable() method to asynchronously
2747 get the layout list field names for the currently selected table.
2748 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2749 implementation of getLayoutListHeaders() method.
2750 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2752 2011-01-18 Ben Konrath <ben@bagu.org>
2754 Make a listBox with table titles instead of the flexTable demo.
2756 This is the start of something more useful.
2758 * .classpath: Exclude a bunch of packages from the JVM that are
2759 getting in the way of the Eclipse content assist.
2760 * src/org/glom/web/client/GlomDocument.java:
2761 * src/org/glom/web/client/GlomTable.java:
2762 * src/org/glom/web/client/LibGlomService.java:
2763 * src/org/glom/web/client/LibGlomServiceAsync.java:
2764 * src/org/glom/web/client/OnlineGlom.java:
2765 * src/org/glom/web/server/LibGlomServiceImpl.java:
2766 * war/OnlineGlom.html:
2767 * war/WEB-INF/web.xml:
2769 211-01-13 Ben Konrath <ben@bagu.org>
2771 Update to new java-libglom API.
2773 * .gitignore: Ignore OnlineGlom.war.
2774 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2776 2010-12-20 Ben Konrath <ben@bagu.org>
2778 Add some basic style to the table listing.
2780 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2781 header, print useful error message on async callback failure.
2782 * war/OnlineGlom.css: Add style for table header, remove defaults
2783 provided by the Eclipse project wizard.
2785 2010-12-20 Ben Konrath <ben@bagu.org>
2787 Load example file from installed glom dir.
2789 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2790 provided by java-libglom to find the example file.
2792 2010-12-20 Ben Konrath <ben@bagu.org>
2794 Update Eclipse settings.
2797 * .settings/com.google.gdt.eclipse.core.prefs:
2798 * .settings/com.google.gwt.eclipse.core.prefs:
2800 2010-12-17 Ben Konrath <ben@bagu.org>
2804 * .classpath: New file.
2805 * .gitignore: New file.
2806 * .project: New file.
2807 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2808 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2809 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2810 * src/org/glom/web/client/GlomTable.java: New file.
2811 * src/org/glom/web/client/OnlineGlom.java: New file.
2812 * src/org/glom/web/client/TableNameService.java: New file.
2813 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2814 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2815 * war/OnlineGlom.css: New file.
2816 * war/OnlineGlom.html: New file.
2817 * war/WEB-INF/web.xml: New file.
2818 * war/images/glom.png: New file.