1 2011-12-14 Ben Konrath <ben@bagu.org>
3 Fix bouncy CellTable while paging.
5 This doesn't currently work with related list tables in unselected
8 * src/main/java/org/glom/web/client/ui/list/ListTable.java
10 2011-12-14 Ben Konrath <ben@bagu.org>
12 Revamp the appearance of the document selection page.
14 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
15 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
16 * src/main/webapp/style.css:
18 2011-12-13 Ben Konrath <ben@bagu.org>
20 Set navigation button column to the smallest size possible.
22 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
24 2011-12-13 Ben Konrath <ben@bagu.org>
26 Change OpenButton nomenclature to NavigationButton.
28 Using NavigtionButton makes things more generic. Classes, methods and
29 variables have been changed.
31 This is a rename-only refactor.
33 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
34 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
35 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
36 Renamed from OpenButtonCell.
37 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
38 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
39 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
41 2011-12-12 Ben Konrath <ben@bagu.org>
43 Remove unnecessary String argument in RelatedListTable and ListViewTable.
45 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
46 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
47 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
48 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
50 2011-12-12 Ben Konrath <ben@bagu.org>
52 Update variable names and comments.
54 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
55 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
57 2011-12-12 Ben Konrath <ben@bagu.org>
59 Properly initialize numNonEmptyRows variable to zero.
61 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
62 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
64 2011-12-05 Ben Konrath <ben@bagu.org>
66 Add latest mockup with HTML tables.
68 Features of this mockup:
70 -> HTML table for flowtable
71 -> HTML table for flowtable column
72 -> Example of how related lists would look
73 -> Not using text entries for data items
75 The current version of Online Glom doesn't use HTML tables for the
78 This mockup has been sent to the glom-devel mailing list but it's good
79 to have it here as well.
81 * mockups/details-view-html-tables.html:
83 2011-12-05 Ben Konrath <ben@bagu.org>
85 Remove unnecessary getPrimaryKeyField() method.
87 getPrimaryKeyFieldForTable(String) has been renamed to
88 getPrimaryKeyField(String).
90 * src/main/java/org/glom/web/server/database/DBAccess.java:
91 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
92 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
94 2011-12-05 Ben Konrath <ben@bagu.org>
96 Add string representation of TypedDataItem value to conversion error message.
98 * src/main/java/org/glom/web/server/Utils.java: Logging the error
99 message was extracted into its own method to avoid duplication.
101 2011-12-05 Ben Konrath <ben@bagu.org>
103 Add type checking to navigation primary key value creation.
105 Create navigation primary key only if the expected type from the Glom
106 document matches the type returned by the SQL query.
108 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
110 2011-12-05 Ben Konrath <ben@bagu.org>
112 Rename a couple of variables in RelatedListNavigation.
114 This is a rename-only refactor.
116 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
118 2011-12-05 Ben Konrath <ben@bagu.org>
120 Move getListLayoutGroup() into getListViewLayoutGroup().
122 This removes getListLayoutGroup(). It was only being called by
123 getListViewLayoutGroup().
125 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
127 2011-12-05 Ben Konrath <ben@bagu.org>
129 Remove check for LayoutItem_Portal in list table method.
131 This check is no longer necessary because the method isn't being used
132 to create the LayoutItemPortal DTO.
134 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
136 2011-12-05 Ben Konrath <ben@bagu.org>
138 Properly support related list navigation.
140 Navigation from the "Repository Analyzer -> Package Scans ->
141 Dependencies" related table wasn't working because the primary key for
142 related tables wasn't being set properly. This commit fixes the
145 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
146 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
147 doesn't set the primary key properly for related list tables.
148 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
149 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
150 useful for getting the primary key for list view tables and for related
152 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
153 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
154 Move code to set the primary key for the table from the abstract
155 ListDBAccess class to ListViewDBAccess as it's only correct for list
157 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
158 Properly add primary key to related list tables.
160 2011-12-02 Ben Konrath <ben@bagu.org>
162 Properly set the horizontal alignment of fields.
164 This fix is for both the list tables and the details view.
166 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
167 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
168 to set the horizontal alignment of fields.
170 2011-12-02 Ben Konrath <ben@bagu.org>
172 Display currency codes in the details view.
174 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
176 2011-12-02 Ben Konrath <ben@bagu.org>
178 Avoid duplicate JNI call.
180 JNI is not as efficient as pure Java and this is an easy (and small)
183 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
184 Use previously retrieved value for whereClauseToTableName instead of
187 2011-12-02 Ben Konrath <ben@bagu.org>
189 Rename a couple of variables in RelatedListNavigation.
191 This is a rename-only refactor.
193 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
195 2011-12-02 Ben Konrath <ben@bagu.org>
197 Indicate clearly that a mismatched primary key type is a bug.
199 * src/main/java/org/glom/web/server/Utils.java: Change log level from
200 warning to error. Add 'This is a bug.' to message.
202 2011-12-02 Ben Konrath <ben@bagu.org>
204 Update / fix some comments.
206 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
208 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
210 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
211 Fix comments. Add some TODOs.
213 2011-12-02 Ben Konrath <ben@bagu.org>
215 Enable navigation to details view with string primary key from related list.
217 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
218 Create a text primary key value when return type of result is
219 java.sql.Types.VARCHAR.
221 2011-12-02 Ben Konrath <ben@bagu.org>
223 Use checkboxes for booleans in the details view.
225 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
227 2011-12-01 Ben Konrath <ben@bagu.org>
229 Improve performance of related list height calculation.
231 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
232 Put code to calculate the expected height in a static initializer so
233 that that it's only called once.
235 2011-12-01 Ben Konrath <ben@bagu.org>
237 Show related list tables in notebooks (again).
239 Calculate the height of the related list tables so the Notebook can be
240 set the correct height. The height of the related list table is also needed by
241 FlowTable to be able decide how to create the layout.
243 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
244 and set the Portal height based on the height of the related list
245 table and the Portal container.
246 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
247 Add method to calculate the height of the related list tables.
248 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
249 * src/main/webapp/style.css: Add css class for Pager. This is needed to
250 calculate the height of the Pager widget.
252 2011-12-01 Ben Konrath <ben@bagu.org>
254 Use CellTable API for table property instead of setting style on Element.
256 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
258 2011-12-01 Ben Konrath <ben@bagu.org>
260 Make ListViewTable and RelatedListTable a consistent height.
262 The tables are now a consistent height regardless of the contents of
263 the table. A hidden button is added to empty rows to ensure that the
264 height of these rows will match the height of rows with data.
266 A navigation button column is now added to every table. The width of
267 the navigation column is set to 0px when a RelatedListTable shouldn't
268 have navigation buttons. This maintains the a consistent row height in
269 tables that don't show the navigation buttons.
271 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
272 navigation column when not needed.
273 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
274 arguments for navigation button to constructor of ListViewTable.
275 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
276 hidden button for empty data rows.
277 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
278 arguments for navigation button to constructor.
279 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
280 create navigation buttons. Add hideNavigationButtons() method.
281 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
282 arguments for navigation button to constructor.
284 2011-12-01 Ben Konrath <ben@bagu.org>
286 Use 'visibility: hidden' in Utils.getWidgetHeight().
288 This is better choice because hidden elements are invisible, don't
289 respond to events and are not part of the tab order. They will,
290 however, take up space which is required to be able to calculate the
291 height of the widget.
293 * src/main/java/org/glom/web/client/Utils.java:
295 2011-12-01 Ben Konrath <ben@bagu.org>
297 Use Utils.getWidgetHeight() in FlowTable.
299 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
301 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
303 2011-12-01 Ben Konrath <ben@bagu.org>
305 Put the details css class name on the correct table column.
307 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
309 2011-11-30 Ben Konrath <ben@bagu.org>
311 Update for java-libglom API change.
313 The getters and setters on FieldFormatting and NumericFormat were
314 changed to remove the 'M'.
316 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
318 2011-11-29 Ben Konrath <ben@bagu.org>
320 Only allow RelatedListTables in Portals.
322 * src/main/java/org/glom/web/client/ui/details/Portal.java:
324 2011-11-29 Ben Konrath <ben@bagu.org>
326 Only create a contents panel for Portals when title is being set.
328 * src/main/java/org/glom/web/client/ui/details/Portal.java:
330 2011-11-29 Ben Konrath <ben@bagu.org>
332 Set TabLayoutPanel height based on calculated height its widgets.
334 This is a potential fix for this bug:
336 https://bugzilla.gnome.org/show_bug.cgi?id=665133
338 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
340 2011-11-29 Ben Konrath <ben@bagu.org>
342 Align details field labels and data with the Open buttons.
344 * src/main/webapp/style.css:
346 2011-11-29 Ben Konrath <ben@bagu.org>
348 Remove unnecessary <div> in the Notebook widget.
350 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
351 method to get container FlowPanel (<div>).
352 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
353 initWidget() method directly on the TabLayoutPanel widget instead of
354 Group's container widget.
356 2011-11-29 Ben Konrath <ben@bagu.org>
358 Don't add group titles for Portals in Notebooks.
360 This reverts the previous patch and fixes a bug I introduced with
361 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
363 * src/main/java/org/glom/web/client/ui/details/Group.java:
364 * src/main/java/org/glom/web/client/ui/details/Portal.java:
366 2011-11-28 Ben Konrath <ben@bagu.org>
368 Remove unused boolean argument in Portal constructor.
372 * src/main/java/org/glom/web/client/ui/details/Group.java:
373 * src/main/java/org/glom/web/client/ui/details/Portal.java:
375 2011-11-28 Ben Konrath <ben@bagu.org>
377 Remove hack for glom 1.18 style glom files.
379 * src/main/java/org/glom/web/client/ui/details/Group.java:
380 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
381 * src/main/java/org/glom/web/client/ui/details/Portal.java:
383 2011-11-28 Ben Konrath <ben@bagu.org>
385 Use Gda Value version of primary key to log result too large error.
387 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
389 2011-11-28 Ben Konrath <ben@bagu.org>
391 Don't use TypedDataItem.getText() for Unknown types from the URL.
393 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
394 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
395 instead of getText().
396 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
397 String field and getUnknown() method.
399 2011-11-28 Ben Konrath <ben@bagu.org>
401 Log an error message when the java-libglom .so is not present.
403 The error message was being set in the exception but not logged.
405 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
407 2011-11-28 Ben Konrath <ben@bagu.org>
409 Ignore LayoutItem_CalendarPortals.
411 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
412 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
414 2011-11-28 Ben Konrath <ben@bagu.org>
416 Extract method for creating the LayoutItemPortal DTO.
418 Just breaking the code up into smaller chunks.
420 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
422 2011-11-28 Ben Konrath <ben@bagu.org>
426 This should have been added with the refactor. Oops!
428 * src/main/java/org/glom/web/shared/TypedDataItem.java:
430 2011-11-28 Ben Konrath <ben@bagu.org>
432 Create primary key value from URL string using type from Glom document.
434 See this bug, comments 19 - 25:
436 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
438 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
439 create a TypeDataItem for the primary key here when loading from a
440 URL. Show the same string for the primary key value as was received
441 from the URL string (when loading from a URL).
442 * src/main/java/org/glom/web/server/Utils.java: Update method for
443 creating the Gda Value from the TypeDataItem to properly deal with
444 creating a Gda Value based on the Glom document type for the primary
445 key value string when loading from a URL.
446 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
447 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
448 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
449 Update for changed method name.
451 2011-11-27 Ben Konrath <ben@bagu.org>
453 Rename PrimaryKeyItem to TypedDataItem.
455 The name PrimaryKeyItem suggests what the class should be used for.
456 TypedDataItem is a neutral name that describes the class better.
458 This is a rename-only refactor.
460 * src/main/java/org/glom/web/client/OnlineGlomService.java:
461 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
462 * src/main/java/org/glom/web/client/Utils.java:
463 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
464 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
465 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
466 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
467 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
468 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
469 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
470 * src/main/java/org/glom/web/server/Utils.java:
471 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
472 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
473 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
474 * src/main/java/org/glom/web/shared/NavigationRecord.java:
476 2011-11-25 Ben Konrath <ben@bagu.org>
478 Improve Gda Value conversion from PrimaryKeyItem.
480 The value from the PrimaryKeyItem is only used if its type match the
481 type from the glom document.
483 * src/main/java/org/glom/web/server/Utils.java:
485 2011-11-25 Ben Konrath <ben@bagu.org>
487 Manually check if the java-liblgom .so is visible to the JVM.
489 It seems that Tomcat has problems when a static initializer throws an
490 exception. This check is done before the first method call into
491 java-libglom so that execution doesn't continue if the .so is not
494 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
496 2011-11-25 Ben Konrath <ben@bagu.org>
498 Improve browser configuration error messages.
502 https://bugzilla.gnome.org/show_bug.cgi?id=662792
504 * src/main/java/org/glom/web/client/OnlineGlomService.java:
505 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
506 getConfigurationErrorMessage() method.
507 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
508 Get and display a specific configuration error message when no Glom
510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
511 Implement getConfigurationErrorMessage() method. Surround configuration
512 code in the init() method with a try/catch block. This allows the
513 errors to be caught while keeping the servlet available to retrieve the
514 configuration error message.
516 2011-11-25 Ben Konrath <ben@bagu.org>
518 Don't use Strings to hold primary key values.
520 The primary key values are now held in a new data object
521 (PrimaryKeyItem) that holds type information and the primary key value
522 using the correct type.
524 * src/main/java/org/glom/web/client/OnlineGlomService.java:
525 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
526 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
527 PrimaryKeyItem instead of String to hold the primary key value.
528 * src/main/java/org/glom/web/client/Utils.java: Remove
529 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
530 PrimaryKeyItem based on the GlomFieldType and the DataItem.
531 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
532 PrimaryKeyItem instead of String to hold the primary key value. Load
533 document selection page when the documentID has not been set correctly.
534 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
535 DetailsPlace -> URL and URL -> DetailsPlace conversion with
537 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
538 Return empty string for URL instead of "null".
539 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
540 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
541 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
542 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
543 PrimaryKeyItem instead of String to hold primary key values.
544 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
545 PrimaryKeyValue to a Gda Value.
546 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
547 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
548 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
549 Replace temporary database access code that uses the PrimaryKeyValue to
550 Gda Value conversion.
551 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
552 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
553 PrimaryKeyItem instead of String.
554 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
555 hold primary key values.
557 2011-11-24 Ben Konrath <ben@bagu.org>
559 Use newly added java-libglom API to create queries.
561 This isn't finished. I still need to stop using Strings for primary key
562 values in the client code.
564 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
565 libglom to use fake connections so that retrieving the query string will
567 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
568 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
569 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
570 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
571 Use the newly added libglom sql methods and classes to create the
572 query. Add temporary hack to convert primary value strings to Gda
575 2011-11-23 Ben Konrath <ben@bagu.org>
577 Don't explicitly set the height of Portals.
579 See comments 6 - 10 of this bug for details:
581 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
583 * src/main/java/org/glom/web/client/ui/details/Portal.java:
585 2011-11-23 Ben Konrath <ben@bagu.org>
587 Use an HTML table instead of CSS for the FlowTable layout.
589 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
590 GWT's FlexTable to implement the FlowTable.
591 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
593 2011-11-18 Ben Konrath <ben@bagu.org>
595 Add boolean example to HTML table mockup.
597 * mockups/details-view-html-tables-text-entries.html:
599 2011-11-17 Ben Konrath <ben@bagu.org>
601 Ensure the pager buttons are always visible for related lists.
603 To accomplish this, I've turned off text wrapping in the list view and
604 related list tables for both the header and data text. The related list
605 table now has a fixed layout so the it doesn't overflow its container.
606 This is required to ensure that the cell text is clipped when it
607 overflows the cell and an ellipsis is added to the right side of the
608 cell when text is clipped.
610 A fixed table layout for the related list table in the details view
611 seems what we want for the details view anyway, so the side-effect is
614 The ellipsis will only be displayed in Firefox >= 7.
618 https://bugzilla.gnome.org/show_bug.cgi?id=662930
620 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
621 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
622 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
624 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
625 Set the 'table-layout: fixed' CSS property to the related list table.
626 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
627 'white-space: nowrap;' CSS property on both the list view and the
630 2011-11-16 Ben Konrath <ben@bagu.org>
632 Rework the fix for empty notebook tab labels.
634 Setting the empty group titles with its name caused problems for the
635 details layout. Instead of using libglom's
636 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
637 to the client when the title is empty. This allows the Notebook to use
638 the name when the title is empty without affecting anything else.
640 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
641 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
643 2011-11-16 Ben Konrath <ben@bagu.org>
645 Set group titles with name when title is empty.
647 This fixes a problem with an empty notebook tab label in the Lesson
648 Planner document. The forth tab in the notebook should be "Internet":
650 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
652 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
653 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
656 2011-11-16 Ben Konrath <ben@bagu.org>
658 Remove whitespace from the configured username properties.
660 This assumes that usernames won't have whitespace at the beginning
661 or end. But I think this is a reasonable assumption.
663 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
664 String.trim() to remove the whitespace from the username properties.
666 2011-11-15 Ben Konrath <ben@bagu.org>
668 Add details view mockup with HTML tables and text entries.
670 This is from the attachment on this bug:
672 https://bugzilla.gnome.org/show_bug.cgi?id=663109
674 * mockups/details-view-html-tables-text-entries.html:
676 2011-11-15 Ben Konrath <ben@bagu.org>
678 Add space between the columns of the flow table.
682 https://bugzilla.gnome.org/show_bug.cgi?id=662918
684 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
685 space between columns in the flow table.
687 2011-11-15 Ben Konrath <ben@bagu.org>
689 Add backup files to the .gitignore.
691 * .gitignore: Ignore files that end with ~.
693 2011-11-09 Ben Konrath <ben@bagu.org>
695 Use latest release of gwt-log.
697 Gwt-log releases are now being submitted to the maven central
698 repository so manual installation of the jar is no longer required.
700 * pom.xml: Update version and groupId of gwt-log dependency.
702 2011-10-31 Ben Konrath <ben@bagu.org>
704 Don't use GWT numeric formatting to override the glom currency formatting.
706 Currencies are now displayed like they are in Glom. See this bug:
708 https://bugzilla.gnome.org/show_bug.cgi?id=646216
710 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
712 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
713 currency code to constructor and set it when the cell is rendered.
714 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
715 currency code to the constructor of the NumericCell.
717 2011-10-27 Ben Konrath <ben@bagu.org>
719 Require the latest release of java-libglom (1.17.4).
723 2011-10-26 Ben Konrath <ben@bagu.org>
725 Add style to Notebook that matches current theme.
727 It's not the best style in the world but it's better than the default.
729 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
730 padding at the bottom of the child widgets.
731 * src/main/webapp/style.css: Add style for the Notebook.
733 2011-10-26 Ben Konrath <ben@bagu.org>
735 Move servlet initialization code to overridden init method.
737 This is half of the solution to getting proper error messages
738 displayed when configuration errors occur. Here's the relevant bug:
740 https://bugzilla.gnome.org/show_bug.cgi?id=662792
742 The rest of the solution involves surrounding the init method with a
743 try/catch block and setting a global variable with the error /
744 exception. A new async method should be created to retrieve and display
745 the error message / exception.
747 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
748 code from constructor to init method adding exceptions as needed.
750 2011-10-26 Ben Konrath <ben@bagu.org>
752 Add script to monitor and restart tomcat if required.
754 * utils/check-and-recover-tomcat.py: New file.
756 2011-10-26 Ben Konrath <ben@bagu.org>
758 Display the correct number of data items in the pager.
762 https://bugzilla.gnome.org/show_bug.cgi?id=661441
764 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
765 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
766 The implementation is the same for both tables: Keep track of the
767 number of non-empty rows and fire and RowCountChangeEvent after the data has
769 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
770 custom Pager class that subclasses SimplePager to handle displaying
771 the correct number when empty rows have been added.
773 2011-10-26 Ben Konrath <ben@bagu.org>
775 Correct error in previous commit.
777 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
778 eventBus parameter from listView.setCellTable().
780 2011-10-26 Ben Konrath <ben@bagu.org>
782 Fix error in TODO comment.
784 * src/main/java/org/glom/web/client/activity/ListActivity.java:
786 2011-10-24 Ben Konrath <ben@bagu.org>
788 Create Notebook widgets to the details view.
790 This isn't finished just yet - I still need to create a reasonable
791 style to match the current theme.
793 * src/main/java/org/glom/web/client/Utils.java: Add method for
794 calculating the height of a widget. This is used in the Notebook class.
795 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
796 new constructor method in Group.
797 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
798 method for creating child widget that can be used by subclasses
799 like Notebook. New constructor that allows disabling the group
800 titles - Notebooks don't set a group title for their child groups.
801 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
802 to make Notebooks using GWT's TabLayoutPanel.
803 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
804 constructor that allows disabling the group titles.
805 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
806 LayoutItemNotebook DTO.
807 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
808 DTO for Notebooks. It's just an empty class for now but we might need
809 it to transfer some specific information in the future.
811 2011-10-21 Ben Konrath <ben@bagu.org>
813 Add navigation buttons to related list tables.
815 * src/main/java/org/glom/web/client/OnlineGlomService.java:
816 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
817 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
818 method getSuitableRecordToViewDetails() for getting the table name
819 and primary key value for related list navigation buttons.
820 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
821 private cell renderer class to get the navigation information for
822 related list tables from the server. Extract the navigation
823 processing code from the details cell navigation and use it for the
824 related list navigation as well.
825 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
826 cell renderer class for the details open buttons. This was needed
827 because the related list navigation buttons and the list view
828 navigation buttons need to react differently when clicked.
829 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
830 the onEnterKeyDown() method because it's now overriden in the
831 subclasses that are specific to the related list tables and the list
833 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
834 the vertical size a little because the buttons add a bit of vertical
835 space to table. This is not a perfect solution because the vertical
836 size of with table fewer than 5 rows will be a little smaller.
837 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
838 changes in how navigation buttons are handled.
839 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
840 getSuitableRecordToViewDetails() using the new RelatedListNavigation
841 database access object.
842 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
843 to find the portal for a given relationship name from
844 RelatedListDBAccess. Add method to find a primary key field for a
846 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
847 Move code to find the portal for a given relationship name to
849 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
850 New file: database access object for getting the related list
851 navigation information (the table name and the primary key value).
852 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
853 DTO for transferring a table name to navigate to and a primary key
855 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
856 boolean and getter/setter to specifies if the related list should add
859 2011-10-24 Murray Cumming <murrayc@murrayc.com>
861 Use the master branch of java-libglom
863 * pom.xml: Depend on java-libglom 1.19 instead.
865 This is the master branch. See also the libglom-1-18 branch.
867 2011-10-11 Ben Konrath <ben@bagu.org>
869 Enable the open navigation button when the data has been set.
871 This avoids having active buttons that don't do anything when the data
874 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
876 2011-10-11 Ben Konrath <ben@bagu.org>
878 Use IsWidget interface for FlowTableItem.
880 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
881 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
883 2011-10-11 Ben Konrath <ben@bagu.org>
885 Remove GWT styling from open button in details view.
887 There are still some issues with how the details cell is arranged but
888 this should be made to match Glom 1.20. I'm going to leave fixing this
889 until I have Glom 1.20 up and running.
891 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
892 style name on open button.
893 * src/main/webapp/style.css: Move and edit details-navigation class.
894 Re-arrange some classes to make them appear in the same order as the
897 2011-10-07 Ben Konrath <ben@bagu.org>
901 * .gitignore: Ignore new cache directory.
902 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
903 * pom.xml: Change GWT and maven plugin to 2.4.0.
904 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
906 * src/main/java/org/glom/web/client/ClientFactory.java:
907 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
908 * src/main/java/org/glom/web/client/OnlineGlom.java:
909 Update source for API changes.
910 * utils/build-onlineglom-war.sh: Remove cache directory before the
913 2011-10-07 Ben Konrath <ben@bagu.org>
915 Add navigation buttons in the details view.
917 This isn't finished but I thought I'd commit what I have as it's a
918 pretty good start. I still need to:
920 1. Change the style so that it fits better into the current theme
921 2. Adjust the details cell to expand as much as possible.
923 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
924 click handlers to navigation buttons in the DetailsCells. Create a
925 refreshData() method to get just the data from the server without the
927 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
928 Update the tableSelector and browser title when the table name
929 changes without using the tableSelector.
930 * src/main/java/org/glom/web/client/ui/DetailsView.java:
931 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
932 getDetailsCells() to getCells(). Update variable names.
933 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
934 method to set click handler on navigation button. Rename a few
935 variables. Add navigation buttons where needed.
936 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
937 variables and methods.
938 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
939 navigation boolean and navigation table as required in the
941 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
942 variables for navigation along with getter/setter methods.
944 2011-10-07 Ben Konrath <ben@bagu.org>
946 Rename Field to DetailsCell.
948 This is a refactor-only commit. No functionality has been added or
951 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
952 Update variable and method names.
953 * src/main/java/org/glom/web/client/ui/DetailsView.java:
954 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
955 variable and method names.
956 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
958 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
959 variable and method names.
961 2011-10-07 Ben Konrath <ben@bagu.org>
963 Create separate methods for layout and data the details view.
965 This is a refactor-only commit. No functionality has been added or
968 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
969 private methods: setData(), createLayout().
971 2011-10-07 Ben Konrath <ben@bagu.org>
973 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
975 This is part of a change to get navigation buttons in the details view
976 but it should have been done this way from the start.
978 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
979 for method name change in TableSelectionView.
980 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
981 Create TableChangeEvent and set the browser title using the
982 TableSelectionView API.
983 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
984 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
985 Change getSelectedTable() to getSelectedTableName(). Add
986 getSelectedTableTitle().
988 2011-10-07 Ben Konrath <ben@bagu.org>
990 Use primaryKeyValue naming convention in constructor of DetailsPlace.
992 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
994 2011-10-07 Ben Konrath <ben@bagu.org>
996 Update TableChangeEvent to use newTableName naming convention.
998 This makes the class more consistent with GWT naming conventions.
1000 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1001 Update for method name change in TableChangeEvent.
1002 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1003 for method name change in TableChangeEvent.
1004 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1005 newTableName variable and getter method. Make toDebugString()
1008 2011-09-30 Ben Konrath <ben@bagu.org>
1010 Disable the pager in the list tables when the data row count is less than the minimum.
1012 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1013 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1015 2011-09-30 Ben Konrath <ben@bagu.org>
1017 Add empty rows to the end of related list and list view tables.
1019 I also extracted the cell rendering classes from the ListTable because
1020 the code was becoming a little crazy with all the anonymous inner
1021 classes. My plan is to use these cell rendering classes in the details
1022 view as well so this refactor will be needed for that change.
1024 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1025 set the row count in related list tables if the data has more rows
1026 than the minimum number of rows visible.
1027 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1028 row count in list view tables if the data has more rows than the
1029 minimum number of rows visible.
1030 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1031 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1033 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1034 for rendering TYPE_NUMERIC cells. The code was extracted from the
1036 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1037 class for rendering cells with buttons in list views. The code was
1038 extracted from the ListTable class.
1039 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1040 for rendering TYPE_TEXT cells. The code was extracted from the
1042 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1043 Add empty rows to the end of the data if required. Implement
1044 ListTable.getMinNumVisibleRows().
1045 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1046 cell renderer code to public classes. Return null in
1047 Column.getValue() for empty rows. Add new abstract method:
1048 getMinNumVisibleRows(). Move code to set the row count of the list view
1049 table to ListViewImpl.
1050 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1051 empty rows to the end of the data if required. Implement
1052 ListTable.getMinNumVisibleRows().
1055 2011-09-27 Ben Konrath <ben@bagu.org>
1057 Use GWT.log for client-side debugging statements.
1059 These are optimized out when deployed so I should have used this method
1060 in the first place. These statements will eventually be replaced with some sort
1061 of notification in the browser.
1063 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1064 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1065 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1066 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1067 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1069 2011-09-27 Ben Konrath <ben@bagu.org>
1071 Put tableselector on the right, back to list link on right.
1073 The idea is that the table selector is acting like a label for the
1074 currently displayed table so it should be placed below the document title. This
1075 puts the table title in a similar position to where it is in Glom.
1077 * mockups/details-contacts.html:
1078 * mockups/details-projects.html:
1079 * mockups/listview-contacts.html:
1080 * mockups/listview-projects.html:
1081 * mockups/style.css:
1082 Update mockups to match how the interfaces currently look.
1083 * src/main/webapp/style.css: Swap positions of backlink with the table
1084 selector. Add some space on the left side of the table selector to
1085 line things up with the document title.
1087 2011-09-27 Ben Konrath <ben@bagu.org>
1089 Add field colouring to details view.
1091 This change re-works how field colouring works. The colour formatting
1092 information is now set to the client with the layout information instead of
1093 with the data. This eliminates the need to send the same colour strings for
1094 data in list view column when colour information is set.
1096 In order to set an alternate colour for negative numeric values, the
1097 number is now sent to client and formatted with the GWT NumberFormat class.
1099 This change also fixes:
1101 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1103 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1104 internationalization framework which is needed for client side numeric
1106 * src/main/java/org/glom/web/client/Utils.java: New file for some
1107 client static utility methods.
1108 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1109 the DataItem object to the Field class. Use a utility method to
1110 create the foreignKeyValue string.
1111 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1112 alignment and text colours in the constructor. Add setData(DataItem)
1113 method. Remove setText(String) method.
1114 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1115 colour information to GlomTextCell. Create and use GlomNumberCell for
1116 rendering numbers. Use utility method to get the string for the
1117 primary key of the key provider. Re-work how the horizontal alignment
1119 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1120 formatting to layout information. Methods for converting the libglom
1121 formatting information were moved from DBAccess.
1122 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1123 numeric formatting (it's now done on the client side). Don't set text
1124 colours in DataItem. Move libglom formatting conversion methods to
1126 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1127 getters/setters for text colour information.
1128 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1129 for transferring the libglom NumericFormat information to the client.
1130 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1131 and getters/setters for: GlomNumericFormat, background colour and
1132 foreground colour strings.
1134 2011-09-26 Ben Konrath <ben@bagu.org>
1136 Simplify code that iterates through the LayoutGroup.
1138 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1140 2011-09-26 Ben Konrath <ben@bagu.org>
1142 Accept Eclipse formatting for OnlineGlomServiceAsync.
1144 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1146 2011-09-26 Ben Konrath <ben@bagu.org>
1148 Don't use the ListDBAccess classes to get the primary key layout information.
1150 This was causing a bug where the wrong index for the hidden primary key
1151 was being sent to the client.
1153 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1154 primary key while creating the LayoutGroup DTO. Create a
1155 LayoutItemField DTO for hidden primary keys. Don't use the
1156 RelatedListDBAccess because it was only used for getting the primary
1158 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1159 access modifier from public to protected for getPrimaryKeyField() and
1160 getPrimaryKeyLayoutItemField().
1161 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1162 abstract method getExpectedResultSize() because RelatedListDBAccess
1163 doesn't have enough info to implement it.
1164 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1165 Remove @Override for getExpectedResultSize().
1166 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1167 Remove method getExpectedResultSize().
1169 2011-09-23 Ben Konrath <ben@bagu.org>
1171 Log which layout (list or details) the ignored item is from.
1173 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1175 2011-09-23 Ben Konrath <ben@bagu.org>
1177 Remove annotations that turn off code formatting in DataItem.
1179 * src/main/java/org/glom/web/shared/DataItem.java:
1181 2011-09-23 Ben Konrath <ben@bagu.org>
1183 Rename GlomField to DataItem and update associated methods.
1185 This is a rename-only refactor. No functionality has been added or
1188 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1189 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1190 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1191 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1192 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1193 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1194 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1195 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1197 * src/main/java/org/glom/web/server/database/DBAccess.java:
1198 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1199 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1200 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1201 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1202 * src/main/java/org/glom/web/shared/DataItem.java:
1203 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1204 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1206 2011-09-23 Ben Konrath <ben@bagu.org>
1208 Rename GlomDocument to DocumentInfo and update associated methods.
1210 This is a rename-only refactor. No functionality has been added or
1213 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1214 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1215 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1216 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1217 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1218 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1219 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1221 2011-09-20 Ben Konrath <ben@bagu.org>
1223 Require java-libglom 1.17.3.
1225 This picks up the fix for the seg fault problem with the Scenes table
1226 in the Openismus Film Manager example.
1230 2011-09-20 Ben Konrath <ben@bagu.org>
1232 Change the way sort clause is added for primary key when no sort clause is requested.
1234 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1235 before the sort clause is created. When a sort clause is not requested, the
1236 sort clause is created by finding the primary key in the LayoutFieldVector
1239 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1241 2011-09-20 Ben Konrath <ben@bagu.org>
1243 Log error message if no documents are found in the configured directory.
1245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1246 Extract the glom file extension string to a private static final class
1247 variable (mostly as syntactic sugar). Accept a minor formatting change.
1248 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1249 the example glom.document.directory configuration property to make it
1250 more clear that it can any directory, not just the home directory.
1252 2011-09-18 Ben Konrath <ben@bagu.org>
1254 Add related lists to details view.
1256 The related list table has support for paging and sorting just like the
1257 table in the list view.
1259 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1260 SQL queries for the related list tables.
1261 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1262 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1263 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1264 Rename getList methods to getListView and add comments. Remove
1265 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1266 it being unused. Add methods: getDetailsLayoutAndData(),
1267 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1268 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1269 Create the layout and set the data for the fields in one async call
1270 instead of two. Create related lists where appropriate.
1271 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1272 for method name changes in OnlineGlomService.
1273 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1274 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1275 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1277 * src/main/java/org/glom/web/client/ui/ListView.java:
1278 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1279 tableName from setCellTable(). Create a ListViewTable instead of
1281 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1282 represent a data field in the details view.
1283 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1284 from addDetailsCell() to Field class. Keep track of the Fields and
1285 Portals in the details view.
1286 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1287 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1288 and add a method to get it. Add method to set the contents of the
1290 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1291 New class for related list tables. This class has the data provider
1292 for the related list table.
1293 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1294 abstract class which is the base class for the ListViewTable and the
1296 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1297 New class for list view tables. This class has the data provider for
1298 the list view table.
1299 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1300 methods for related list tables. Add more information to the
1301 LayoutItemField and LayoutItemPortal DTOs.
1302 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1303 Remove debugging print statement.
1304 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1305 Remove debugging print statements. Add primary key field to SQL count
1307 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1308 Remove unnecessary LayoutFieldVector parameter from
1309 getResultSizeOfSQLQuery() method.
1310 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1311 New class for related list table database access.
1312 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1313 class that is a wrapper DTO for details view layout and data.
1314 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1315 new 'fromField' string to this DTO.
1316 * src/main/webapp/style.css: Remove bottom margin and override top
1319 2011-09-15 Ben Konrath <ben@bagu.org>
1321 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1323 This sets things up to make it easier to add the data retrieval for
1324 related lists (portals). No user noticeable changes were made with
1327 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1328 class has the code to retrieve the layouts and access the
1329 database using the new database helper classes.
1330 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1331 Most of the functionality has been removed from this class. This
1332 class now represents the public interface for the client side
1333 code. It also deals with configuring the servlet and cleaning
1334 things up when the servlet is stopped.
1335 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1336 of static methods into this utility class.
1337 * src/main/java/org/glom/web/server/database/DBAccess.java:
1338 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1339 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1340 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1341 These classes have the database retrieval code. The class hierarchy
1342 has been setup to make it easy to reuse code for similar
1345 2011-09-06 Ben Konrath <ben@bagu.org>
1347 Create separate classes for list table code and the data provider.
1349 As part of this refactor, I also split up the code a bit to make it
1352 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1353 table code to two new classes (below).
1354 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1355 with code from ListViewImpl.
1356 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1357 New file with code from ListViewImpl.
1359 2011-09-06 Ben Konrath <ben@bagu.org>
1361 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1363 This fixes the LayoutItemPortal DTO to match the libglom layout object
1366 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1368 2011-09-01 Ben Konrath <ben@bagu.org>
1370 Set title of Portals in the Details View.
1372 * pom.xml: Bump required version of java-libglom to 1.17.1.
1373 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1374 widget creation to its own class. Add comments to constructor.
1375 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1376 The code is mostly from the Group class with the title now set.
1377 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1378 title of Portal. Update some comments. Fix some code formatting.
1380 2011-09-01 Ben Konrath <ben@bagu.org>
1382 Remove TODO comment for the flow table column width.
1384 The flow table column width is working correctly and doesn't need to be
1385 changed. See this mailing list post for more info:
1387 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1389 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1391 2011-08-27 Ben Konrath <ben@bagu.org>
1393 Add document title (database name) to top of the browser page.
1395 I added the document title to the TableSelecitonView but that will
1396 change if / when we add a view that doesn't require table selection.
1398 * mockups/details-contacts.html:
1399 * mockups/details-projects.html:
1400 * mockups/listview-contacts.html:
1401 * mockups/listview-projects.html:
1402 * mockups/style.css: Add document title to mockups to keep things
1404 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1405 sizes to account for the document title.
1406 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1407 Set the document title when it has been retrieved from the server.
1408 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1409 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1410 and implement setDocumentTitle(String) method.
1411 * src/main/webapp/style.css: Add ID for document title style.
1413 2011-08-25 Ben Konrath <ben@bagu.org>
1415 Add NavigationType enum to LayoutItemPortal DTO.
1417 This is the start of adding support for Portals to the Details View.
1419 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1420 LayoutItem_Portal.navigation_type enum from libglom to
1421 LayoutItemPortal.NavigationType enum.
1422 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1423 NavigationType enum, field for storing the NavigationType and getter
1426 2011-08-25 Ben Konrath <ben@bagu.org>
1428 Implement the flow table layout in the Details View.
1430 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1431 FlowTable to Group to account for the renamed class.
1432 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1433 File. This is a container widget that implements the Glom details view
1434 flow table behaviour.
1435 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1436 org/glom/web/client/ui/FlowTable.java.
1437 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1438 so that the size of the subgroups are a closer match to the size of
1439 the Glom subgroups. This makes the flowtable layout match the layout
1440 in Glom for the Music Collection example file.
1442 2011-08-16 Ben Konrath <ben@bagu.org>
1444 Create container element for LayoutItemPortal in Details View.
1446 This will help me develop the layout for the FlowTable.
1448 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1449 fieldPanel variable to detailsCell.
1451 2011-08-15 Ben Konrath <ben@bagu.org>
1453 Set the height of the data element in the Details View.
1455 I changed the InlineLabels (text in a span element) to Labels (text in
1456 a div element) so that I could set the height of the details-data
1457 elements instead of the details-cell parent elements. This allows the
1458 the details-data element to display the correct height if style is
1459 applied that shows the height.
1461 This change has the added benefit of allowing the order of the labels
1462 and data elements to be changed for right-to-left languages.
1464 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1465 InlineLabels to Labels.
1466 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1467 InlineLabels to Labels. Set the height of the data element.
1468 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1469 multiline text height in the Formatting DTO.
1470 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1471 for multiline height along with getter and setter methods.
1472 * src/main/webapp/style.css: Adjust style to account for the change
1473 from span elements to div elements in the details cell.
1475 2011-08-15 Ben Konrath <ben@bagu.org>
1477 Make the List View appearance match the mockups.
1479 It doesn't match exactly but it's much better than it was.
1481 * mockups/listview-contacts.html: Remove unused css classes.
1482 * mockups/listview-projects.html: Remove unused css classes.
1483 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1484 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1485 for mainPanel instead of VerticalPanel (table). Set style name on
1486 CellTable. Set style name on Details column. Right-align Details
1488 * src/main/webapp/style.css: Adjust properties to match the mockups.
1490 2011-08-12 Ben Konrath <ben@bagu.org>
1492 Add better support for subgroups in the details view.
1494 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1495 changed FlowTable constructor.
1496 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1497 support for subgroups and subgroup-titles.
1498 * src/main/webapp/style.css: Add CSS class for subgroups and
1501 2011-08-12 Ben Konrath <ben@bagu.org>
1503 Return the top level LayoutGroup title.
1505 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1507 2011-08-11 Ben Konrath <ben@bagu.org>
1509 Make the TableSelector header match the mockup.
1511 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1512 the layout panel. Properly lineup the table selection header with
1513 the list and details view.
1514 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1515 margin around the details view.
1516 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1517 Rename listBox variable to tableSelector. Set id for the style sheet.
1518 Use a FlowPanel instead of a HorizontalPanel.
1519 * src/main/webapp/style.css: Add properties to make the TableSelector
1520 box match the mockups.
1522 2011-07-13 Ben Konrath <ben@bagu.org>
1524 Update install script for java-libglom version change.
1526 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1529 2011-07-13 Ben Konrath <ben@bagu.org>
1531 Add support sub-group in the details view.
1533 I also removed the code that special-cased the default details view
1536 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1538 I still have to make a proper flowtable.
1540 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1541 Don't special-case default details view layout.
1542 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1543 addLayoutField() as I'm going to use it.
1544 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1545 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1547 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1548 extracted from DetailsViewImpl.GroupPanel. Add support for
1550 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1551 column count when getting the details layout.
1553 2011-07-12 Ben Konrath <ben@bagu.org>
1555 Set browser title with database and table titles.
1557 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1558 Set the browser title when the table changes and when the activity
1560 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1561 title when retrieving document info (the GlomDocument object).
1562 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1563 with getter and setter methods. Remove unused convenience constructor.
1564 Use default code formatting.
1566 2011-07-12 Ben Konrath <ben@bagu.org>
1568 Ignore LayoutItemPortals in the details view.
1570 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1573 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1574 LayoutItemPortal layout objects.
1575 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1576 LayoutItemPortal objects when retrieving the details layout.
1577 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1578 file. This is an empty class and just used to get type information for
1581 2011-07-12 Ben Konrath <ben@bagu.org>
1583 Use java-libglom 1.17.0.
1587 2011-07-11 Ben Konrath <ben@bagu.org>
1589 Remove "Table:" label from table selector.
1591 This matches a recent change in the Glom UI.
1593 * mockups/details-contacts.html:
1594 * mockups/details-projects.html:
1595 * mockups/listview-contacts.html:
1596 * mockups/listview-projects.html: Remove the "Table:" label from the
1598 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1600 2011-07-11 Ben Konrath <ben@bagu.org>
1602 Add main groups to the details view.
1604 This makes things look a little nicer in the details view. The next step
1605 is to implement the flowtable.
1607 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1608 resources from the standard gwt css theme. Standard.css is now
1609 included in OnlineGlom.html so that the online glom css rules have
1610 precedence over the gwt theme.
1611 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1612 the whole LayoutGroup to the DetailsView instead of just the titles.
1613 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1614 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1615 details layout with a helper class (GroupPanel). I might extract this
1616 class when I make the full flowtable.
1617 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1618 string as default so I don't have to worry about NPEs when processing
1620 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1621 note beside OnlineGlom.gwt.xml above).
1622 * src/main/webapp/style.css: Add default font-size to body to override
1623 the font-size set by the standard theme. Don't use h2 tags for
1624 group-title. Create new details-cell class.
1626 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1628 ConfiguredDocument: Set the port number too.
1630 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1631 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1632 Glom document. Presumably this worked sometimes so far because there is a
1633 default port number.
1635 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1637 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1639 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1640 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1641 correct, though we should throw an exception too.
1643 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1645 Fix a addDocuemnt typo.
1647 * src/main/java/org/glom/web/shared/Documents.java
1648 (Documents.addDocuemnt): Rename to addDocument().
1649 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1650 (OnlineGlomServiceImpl.getDocuments): Adapt.
1652 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1654 Slightly improved log output when connection fails.
1656 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1657 (ConfiguredDocument.setUsernameAndPassword):
1658 We don't know for sure if it' the username/password that's wrong, so
1659 rephrase the message.
1660 Also ouput the exception message, though it's generic in this case.
1662 2011-07-08 Ben Konrath <ben@bagu.org>
1666 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1667 added braces to a one line if statement because the Eclipse formatter
1668 was getting confused.
1670 2011-07-07 Ben Konrath <ben@bagu.org>
1672 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1674 These should really be two separate tasks but I counldn't get things to
1675 work with GWT 2.2.0 and Eclipse 3.7.
1679 * .settings/org.eclipse.jdt.core.prefs:
1680 * .settings/org.eclipse.jdt.ui.prefs:
1681 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1682 * .settings/org.eclipse.m2e.core.prefs:
1683 Add new config files. Update current files. Remove references to the
1684 webtools plugins as we're not using any of the webtools features.
1685 * .gitignore: Add logs directory which is created when running with
1687 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1688 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1689 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1691 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1693 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1695 onlineglom.properties: Add explanatory comments.
1697 * src/main/resources/onlineglom.properties: Also change the default user
1698 from ben to someuser, to avoid the risk of people thinking we just
1699 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1701 2011-06-28 Ben Konrath <ben@bagu.org>
1703 Use filename in Log for incorrect passwords.
1705 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1706 getFileName(String) method to get the filename from the URI.
1708 2011-06-28 Ben Konrath <ben@bagu.org>
1710 Add the table name to the URL token for the ListPlace.
1712 This makes things consistent between the DetailsPlace and the
1713 ListPlace. It also allows the the ListPlace to be bookmarked.
1715 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1716 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1718 Remove getDefaultListLayout(). The default layout is now returned
1719 by the getListLayout() method when the table name is an empty string.
1720 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1721 Add table name field. Change to a new ListPlace when the table
1722 has been changed. Use getListLayout() for getting the default
1724 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1725 Add table name field. Set the correct table name in the list box
1726 when loading from bookmark. This corrects a problem for the
1728 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1729 Move table name to super-class (HasSelectableTable). Move document
1730 and table URL keys to super-class in HasSelectableTable.
1731 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1732 Add table name field. Add Tokenizer class with URL key common to
1733 the subclasses (DetailsPlace and ListPlace).
1734 * src/main/java/org/glom/web/client/place/ListPlace.java:
1735 Add table name. Add code to parse the URL token.
1736 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1737 Update ListPlace construction with empty table name string.
1738 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1739 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1740 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1741 Update ListPlace construction with table name string.
1742 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1743 Change defaultTableName field to tableName to reflect how it's now
1744 used. Update the getter and setter methods.
1746 2011-06-28 Ben Konrath <ben@bagu.org>
1748 Enable the table selector in the DetailsView.
1750 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1751 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1753 Remove getDefaultDetailsLayout(). The default layout is now returned
1754 by the getDetailsLayout() method when the table name is an empty
1756 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1757 event handler for table change event. Change to using
1758 getDetailsLayout() for the default details layout.
1759 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1761 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1762 when navigating to the details place.
1764 2011-06-27 Ben Konrath <ben@bagu.org>
1766 Use filename based unique document ID in URL and for RPC.
1768 The document ID is the glom document name with spaces (' ') replaced
1769 with pluses ('+') and without the .glom extension.
1771 This change is mostly a string substitution of 'documentTitle' for
1772 'documentID'. The only code change is the addition of a Documents DTO to get the
1773 filename to document title mappings as indicated below.
1775 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1776 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1777 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1778 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1779 Use Documents DTO to create the document links in the document
1781 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1782 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1783 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1784 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1785 * src/main/java/org/glom/web/client/place/ListPlace.java:
1786 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1787 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1788 * src/main/java/org/glom/web/client/ui/ListView.java:
1789 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1790 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1791 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1792 * src/main/java/org/glom/web/server/Log.java:
1793 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1794 getDocumentTitles() to getDocuments() and return the Documents DTO.
1795 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1796 transferring the filename to document title mappings.
1798 2011-06-25 Ben Konrath <ben@bagu.org>
1800 Make the authentication popup work again.
1802 This bug was introduced when I extracted ConfiguredDocument to its own class.
1804 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1805 correct success / fail status in setUsernameAndPassword().
1807 2011-06-25 Ben Konrath <ben@bagu.org>
1809 Use filename as unique key for configuring database usernames and passwords.
1811 This replaces the use of the Glom document title which could change
1812 depending on the locale. Thanks to Murray Cumming for pointing out this
1815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1816 * src/main/resources/onlineglom.properties:
1818 2011-06-24 Ben Konrath <ben@bagu.org>
1820 Pass primary key value to DetailsView.
1822 This enables the DetailsView to load the correct data.
1824 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1825 primary key value field and set in constructor. Pass primary key
1826 value to getDetailsData().
1827 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1828 variables for document title and primary key value.
1829 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1830 key value to the DetailsPlace.
1832 2011-06-24 Ben Konrath <ben@bagu.org>
1834 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1836 This allows the primary key to be retrieved by the Details button. This
1837 functionality has not been implemented yet but it's in the works.
1839 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1840 the LayoutGroup result to ListView.setCellTable instead of all of its
1841 fields individually.
1842 * src/main/java/org/glom/web/client/ui/ListView.java:
1843 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1844 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1845 get the primary key for the table.
1846 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1847 index of the primary key in the LayoutGroup accounting for hidden
1848 primary keys. Rename getJavaNumberFormat() to
1849 convertToJavaNumberFormat() for consistency. Cleanup / add some
1851 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1852 field for primary key index and a field to indicate whether the
1853 primary key is hidden or not.
1855 2011-06-23 Ben Konrath <ben@bagu.org>
1857 Rename getTableData methods to getListData.
1859 This is a rename refactor for consistency with other methods.
1861 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1862 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1863 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1866 2011-06-23 Ben Konrath <ben@bagu.org>
1868 Extract the ConfiguredDocument innerclass into its own class.
1870 This makes the servlet code more object oriented.
1872 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1873 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1874 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1875 new ConfiguredDocument class.
1877 2011-06-21 Ben Konrath <ben@bagu.org>
1879 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1881 This makes things more inline with how libglom works and reduces code
1882 duplication. This refactor lays the groundwork for adding the primary key to
1883 the LayoutGroup object.
1885 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1886 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1887 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1888 Change method names to getListLayout and getDefaultListLayout for
1889 consistency. Use LayoutGroup as the DTO for the list layout instead of
1890 ColumnInfo and LayoutListTable.
1891 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1892 new method names along with the LayoutGroup object for transferring the
1894 * src/main/java/org/glom/web/client/ui/ListView.java:
1895 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1896 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1897 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1899 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1900 Replaced with LayoutGroup.
1901 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1902 expectedResultSize and defaultTableName fields which are needed for
1904 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1905 type field which is needed for the list layout but will also be
1906 useful for the details layout as things progress.
1907 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1908 Make class abstract. Remove the unnecessary
1909 getFormattingHorizontalAlignment method. Add setFormatting method.
1911 2011-06-16 Ben Konrath <ben@bagu.org>
1913 Add scripts for building and installing war.
1915 These will help when updating OnlineGlom but they're also good
1916 supplemental documentation of the build and deployment proceeding.
1918 * utils/build-onlineglom-war.sh: New file.
1919 * utils/install-onlineglom-war.sh: New file.
1921 2011-06-16 Ben Konrath <ben@bagu.org>
1923 Create wrapper class to create consistent log messages.
1925 I wrapped methods in the Log class of gwt-log to add the method names
1926 from the servlet and create consistent formatting of the document title
1927 and table names in the log messages.
1929 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1930 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1931 log methods to use methods from wrapped Log class.
1933 2011-06-16 Ben Konrath <ben@bagu.org>
1935 Remove superfluous conditional return.
1937 Thanks to Murray Cumming for pointing this out!
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1941 2011-06-15 Ben Konrath <ben@bagu.org>
1943 Return an ArrayList of LayoutGroups for the Details layout.
1945 This corrects a problem with the details layout as it can have more
1946 than one top level LayoutGroup.
1948 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1949 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1950 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1951 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1952 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1953 with ArrayList of LayoutGroups for the details view layout.
1954 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1955 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1956 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1957 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1958 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1959 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1961 2011-06-14 Ben Konrath <ben@bagu.org>
1963 Use cast_dynamic method to determine the libglom LayoutItem type.
1965 This is better than finding the LayoutItem type by using the string
1966 returned from the get_part_type_name() method.
1968 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1970 2011-06-14 Ben Konrath <ben@bagu.org>
1972 Add method names to log entries in the servlet.
1974 This helps when tracking down deployment problems.
1976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1978 2011-06-14 Ben Konrath <ben@bagu.org>
1980 Add data to the DetailsView using a hard-coded primary key value.
1982 The layout and functionality of the DetailsView is not complete. This
1983 is just a checkpoint so the patch doesn't get too big.
1985 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1986 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1987 Add getDetailsData() servlet method.
1988 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1989 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1990 LayoutFields are added to the DetailsView.
1991 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1992 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1993 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1994 take the string for the title instead of the object.
1995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1996 Add implementation getDetailsData() along with some private helper
1998 * src/main/webapp/style.css: Add padding to details-data class. Add a
1999 details-label class with the same padding as the details-data class.
2001 2011-06-03 Ben Konrath <ben@bagu.org>
2003 Use presenter.goTo() to change to the DetailsPlace.
2005 This will make things easier when we need to open the DetailsView with
2006 data specific to the row that was clicked.
2008 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2010 2011-06-02 Ben Konrath <ben@bagu.org>
2012 Add CSS file from mockups.
2014 I'm adding this now because it's going to be useful to have when
2015 developing the DetailsView. The TableSelectionView and ListView aren't
2018 * src/main/webapp/OnlineGlom.html:
2019 * src/main/webapp/style.css:
2021 2011-06-02 Ben Konrath <ben@bagu.org>
2023 Use String.isEmpty() to check for empty string.
2025 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2027 2011-06-02 Ben Konrath <ben@bagu.org>
2029 Display main layout group titles in the DetailsView.
2031 This is the start of the DetailsActivity/DetailsView implementation.
2033 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2034 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2035 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2036 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2037 Get the layout information for the details view from the server and set
2038 the main layout group titles.
2039 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2040 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2041 Add addLayoutGroup() and addLayoutField() methods. This are just
2042 temporary methods for creating the the details view that will change
2044 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2045 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2047 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2048 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2049 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2050 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2051 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2052 Data Transfer Objects that mimic the libglom object structure. These are
2053 used for transferring the details layout but could also be used for
2054 transferring the list layout.
2056 2011-05-27 Ben Konrath <ben@bagu.org>
2058 Reset the AuthenticationPopup when clearing the ListView.
2060 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2062 2011-05-27 Ben Konrath <ben@bagu.org>
2064 Fix problem with onlineglom.properties file loading.
2066 The old way worked in Eclipse but not on the server. Loading the
2067 onlineglom.properties file now works in Eclipse and on the server.
2069 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2071 2011-05-24 Ben Konrath <ben@bagu.org>
2073 Update gwt-log from 3.1.0 to 3.1.2.
2075 Gwt-log 3.1.0 has been marked as depreciated.
2079 2011-05-24 Ben Konrath <ben@bagu.org>
2081 Add comment to ListActivity.goTo() method.
2083 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2085 2011-05-24 Ben Konrath <ben@bagu.org>
2087 Remove FIXME in convertGdkColorToHtmlColour()
2089 The Gdk::Color value returned by libglom is 16-bits per channel on both
2090 64 and 32-bit platforms.
2092 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2094 2011-05-19 Ben Konrath <ben@bagu.org>
2096 Improve performance of initial ListView load.
2098 I removed a round trip to the server for getting the default table name
2099 and then requesting information about that table. This also removes a potential
2100 problem with the table change handler not being setup in time to receive the
2101 table change event from the ListActivity.
2103 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2104 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2105 getDefaultLayoutListTable() method. Improve comments.
2106 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2107 getDefaultLayoutListTable() method instead of firing a table change
2108 event to get the table to load.
2109 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2110 implementation of getDefaultLayoutListTable() method.
2111 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2114 2011-05-19 Ben Konrath <ben@bagu.org>
2116 Override toDebugString() in TableChangeEvent.
2118 This is useful to have for debugging.
2120 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2122 2011-05-19 Ben Konrath <ben@bagu.org>
2124 Add a "Back to List" link when at the DetailsPlace.
2126 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2127 Populate the CellTable based on the selected table of the ListBox if
2128 it's set otherwise use the default table. This allows the "Back to
2130 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2131 Remove Place from constructors. Add a setPlace() method. Add
2132 goToPlace() method. Set class as presenter for TableSelectionView.
2133 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2134 Use the same TableSelectionActivity when switching between the List and
2136 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2137 Subclass the new HasSelectableTablePlace. This removes some duplicate
2139 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2140 New class to represent Places that display the TableSelectionView.
2141 * src/main/java/org/glom/web/client/place/ListPlace.java:
2142 Subclass the new HasSelectableTablePlace. This removes some duplicate
2144 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2145 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2146 Add Presenter interface. Add setBackLinkVisible() method. Add
2147 setBackLink() method.
2149 2011-05-18 Ben Konrath <ben@bagu.org>
2151 Enable the "Details" buttons.
2153 Right now only an empty details view is displayed.
2155 * src/main/java/org/glom/web/client/ClientFactory.java:
2156 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2157 Add DetailsView to ClientFactory.
2158 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2159 A basic activity for the details view.
2160 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2161 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2163 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2164 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2166 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2167 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2168 unnecessary super() in constructor.
2169 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2170 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2171 really shouldn't create a new TableSelectionActivity for both the ListPlace
2172 and the DetailsPlace so this should be considered a temporary solution.
2173 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2174 New file. Represents a URL for the details view.
2175 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2176 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2177 A basic details view interface and implementation.
2178 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2179 Enable the "Details" buttons.
2181 2011-05-12 Ben Konrath <ben@bagu.org>
2183 Use a LayoutPanel with multiple display areas for main layout.
2185 This is mostly a refactor in that there are no changes from the user
2186 point of view. These changes are required so that we can swap out the list view
2187 with the details view when the user clicks the "Details" button.
2189 * src/main/java/org/glom/web/client/ClientFactory.java:
2190 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2191 OnlineGlomView. Add TableSelectionView, ListView and
2192 AuthenticationPopup.
2193 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2194 for main layout. Add display regions for main activities. Add
2195 activity manager for for main activities.
2196 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2197 file from parts of the deleted OnlineGlomActivity.
2198 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2199 New file from parts of the deleted OnlineGlomActivity.
2200 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2201 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2202 New files for app wide table change event.
2203 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2204 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2205 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2206 Activity mappers for the main activities replace the deleted app-wide
2208 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2209 Fix a spelling error in he comment.
2210 * src/main/java/org/glom/web/client/ui/ListView.java:
2211 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2212 Renamed from LayoutListView and modified for MVP. This still not a
2213 proper dumb view as prescribed by the MVP pattern but it works for now.
2214 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2215 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2216 New widget stripped out of the deleted OnlineGlomView.
2217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2218 Remove hack that is fixed by this patch.
2220 2011-05-06 Ben Konrath <ben@bagu.org>
2222 Rename OnlineGlomPlace to ListPlace.
2224 The only change besides the rename is that url will now display #list
2225 instead of #Document.
2227 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2228 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2229 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2230 * src/main/java/org/glom/web/client/place/ListPlace.java:
2231 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2233 2011-05-06 Ben Konrath <ben@bagu.org>
2235 Use Presenter for app navigation.
2237 This is the proper way to deal with Place (URL) changes with the MVP
2240 * src/main/java/org/glom/web/client/ClientFactory.java:
2241 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2242 PlaceHistoryMapper and PlaceHistoryHandler.
2243 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2244 PlaceHistoryMapper and PlaceHistoryHandler.
2245 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2246 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2247 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2248 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2249 Add Presenter interface and setPresenter methods. Rename addHyperLink
2250 to addDocumentLink taking only the document title as a parameter.
2252 2011-04-14 Ben Konrath <ben@bagu.org>
2254 Prompt for db username/password if they haven't been set.
2256 This is implemented with a popup widget that is contained within the
2257 OnlineGlomView and managed by the OnlineGlomActivity.
2259 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2260 methods for checking and setting the database username and password.
2261 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2262 new methods for checking and setting the database username and
2264 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2265 Display authentication popup if the JDBC connection to the database
2266 has not been authenticated.
2267 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2269 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2270 for dealing with the authentication popup.
2271 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2272 Implement the methods for dealing with the authentication popup.
2273 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2274 try to executed queries if the database connection hasn't been
2275 authenticated. Implement methods for checking and setting the
2276 database username and password.
2278 2011-04-12 Ben Konrath <ben@bagu.org>
2280 Make log messages a little clearer.
2282 Add a dash betweeen the document title and the table name.
2284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2286 2011-04-12 Ben Konrath <ben@bagu.org>
2288 Protect against NPEs when cleaning up database resources.
2290 While this isn't strictly necessary because the exception is caught,
2291 not protecting against the NPEs makes it harder to find the real error
2294 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2296 2011-04-12 Ben Konrath <ben@bagu.org>
2298 Move configuration of the servlet to the constructor.
2300 The servlet will be initialized even if the database authentication
2301 information is not set or correct. I still need to add the UI for prompting
2302 the user for the authentication information when it's required.
2304 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2305 javadocs for getDocumentTitles() method.
2306 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2307 Set error message when RPC fails.
2308 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2309 glom files directory from the configuration file. Try to set the
2310 database authentication information for the specific document if it's
2311 set and works otherwise try to use the global authentication
2312 information set for the directory.
2313 * src/main/resources/onlineglom.properties: Moved from
2314 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2315 Added detailed comments for the new keys.
2317 2011-04-11 Ben Konrath <ben@bagu.org>
2319 Remove unnecessary @Override in DocumentSelectionViewImpl.
2321 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2323 2011-04-11 Ben Konrath <ben@bagu.org>
2325 Remove center alignment in DocumentSelectionView.
2327 The title element is still centred but the document titles and bottom
2328 sentence are both left-aligned.
2330 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2332 2011-04-11 Ben Konrath <ben@bagu.org>
2334 Change 'Demo' naming convention to 'Document'.
2336 This is just a rename refactor with no functional changes to the code.
2338 * src/main/java/org/glom/web/client/ClientFactory.java:
2339 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2340 * src/main/java/org/glom/web/client/OnlineGlom.java:
2341 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2342 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2343 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2344 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2345 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2346 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2347 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2348 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2349 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2352 2011-04-08 Ben Konrath <ben@bagu.org>
2354 Remove FIXME from safeLongToInt() method.
2356 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2361 2011-04-08 Ben Konrath <ben@bagu.org>
2363 Display an error if no glom documents are found in the specified directory.
2365 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2366 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2367 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2368 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2370 2011-04-08 Ben Konrath <ben@bagu.org>
2372 Add copyright header to one more file ... oops.
2374 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2376 2011-04-08 Ben Konrath <ben@bagu.org>
2378 Add copyright header to files without it.
2380 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2381 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2382 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2383 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2384 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2385 * src/main/java/org/glom/web/shared/GlomField.java:
2387 2011-04-08 Ben Konrath <ben@bagu.org>
2389 Add support for accessing multiple glom documents in the servlet.
2391 This completes the demo selection functionality.
2393 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2394 document title to methods.
2395 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2396 document title to methods.
2397 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2398 Set browser window title when the activity starts. Correct name of
2399 document title variable.
2400 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2401 Set browser window title when the activity starts. Set the table
2402 selector change handler after table selector has been set. Clear the
2403 OnlineGlomView when the activity has been stopped.
2404 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2405 document title as the place token. Use "#Document:" instead of
2406 "#OnlineGlomPlace:" in the URL.
2407 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2408 Change heading to "Online Glom"
2409 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2410 document title in RPC methods.
2411 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2412 setDocumentTitle() method. Add clear() method.
2413 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2414 setDocumentTitle() method. Implement clear() method which removes the
2415 change handler on the ListBox, clears the ListBox and clears the
2417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2418 Implement methods with document title. Keep track for the configured
2419 glom documents and their corresponding JDBC configurations in a hash
2420 table. This information is retrieved using the document title as the
2421 key in the hash table.
2422 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2423 document title field as it's no longer needed.
2425 2011-04-08 Ben Konrath <ben@bagu.org>
2427 Update the Eclipse JDT configuration.
2429 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2430 methods. Automatically add the copyright header to new files.
2432 2011-04-05 Ben Konrath <ben@bagu.org>
2434 Add new page for demo selection.
2436 This patch adds all the components required to view and start an
2437 OnlineGlom demo by clicking on the desired hyperlink. The user is
2438 able to return to the demo selection page with the browser's back
2439 button. I still need to modify the servlet to work with multiple
2440 documents so all demo links will load the file defined in the
2441 OnlineGlom.properties.
2443 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2444 This is only useful during development so we don't need to save it.
2445 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2446 get a reference to the DemoSelectionView.
2447 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2448 method to get a reference to the DemoSelectionView.
2449 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2450 default view to DemoSelectionView.
2451 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2452 to get glom document titles for glom files in a hard-coded directory.
2453 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2454 method to get glom document titles for glom files in a hard-coded
2456 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2457 Presenter for DemoSelectionView.
2458 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2459 for DemoSelectionView.
2460 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2461 Update for DemoSelectionView.
2462 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2463 Basic 'Place' implementation for the DemoSelectionView.
2464 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2465 The interface for the DemoSelectionView.
2466 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2467 The implementation of the DemoSelectionView.
2468 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2469 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2470 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2471 implementation of method to get glom document titles for glom files
2472 in a hard-coded directory.
2473 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2474 on longer being used.
2475 * src/main/webapp/glom.png: Glom logo.
2477 2011-04-05 Ben Konrath <ben@bagu.org>
2479 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2481 This is the forth and final commit of a refactor that will allow
2482 OnlineGlom to be used with multiple documents.
2484 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2485 Move RPC code from OnlineGlomViewImpl to this class.
2486 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2488 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2489 RPC code to the presenter class (the P in MVP).
2491 2011-04-04 Ben Konrath <ben@bagu.org>
2493 Start moving the existing OnlineGlom code to MVP.
2495 This work is based on the GWT MVP framework that is documented here:
2497 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2499 This is the third commit of a refactor that will allow OnlineGlom to
2500 be used with multiple documents.
2502 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2503 Interface for client factory which is used to get instances of various
2504 classes throughout the app.
2505 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2506 Implementation of client factory.
2507 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2508 initialize the MVP framework.
2509 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2510 New file. Activity manager for the main container widget. This is the
2512 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2513 Maps place (URL) to its corresponding activity.
2514 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2515 New file. This is just a place holder for a generated file.
2516 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2517 New file. Represents the URL for the main Online Glom app.
2518 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2519 for changes in LayoutListViewImpl.
2520 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2521 interface for View. Move code to OnlineGlomViewImpl class.
2522 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2523 file. Implementation of OnlineGlomView.
2524 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2525 Place resources. Use ClientFactoryImpl by default.
2527 2011-04-04 Ben Konrath <ben@bagu.org>
2529 Move View classes to their own package.
2531 This is the second commit of a refactor that will allow OnlineGlom to
2532 be used with multiple documents.
2534 * src/main/java/org/glom/web/client/OnlineGlom.java:
2535 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2536 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2538 2011-04-02 Ben Konrath <ben@bagu.org>
2540 Move UI code from the main module to its own class.
2542 This is the first commit of a refactor that will allow OnlineGlom to be
2543 used with multiple documents.
2545 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2546 references to OnlineGlom to OnlineGlomView.
2547 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2548 OnlineGlomView and instantiate it here.
2549 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2550 represents the main OnlineGlomView with one document.
2552 2011-04-01 Ben Konrath <ben@bagu.org>
2554 Fix formatting of gwt.xml and add DTD.
2556 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2558 2011-03-30 Ben Konrath <ben@bagu.org>
2560 Propperly convert gdkColor string to html colour string.
2562 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2564 2011-03-28 Ben Konrath <ben@bagu.org>
2566 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2568 This implementation matches
2569 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2570 readable and is not tied to Swig.
2572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2574 2011-03-28 Ben Konrath <ben@bagu.org>
2576 Use read-only checkboxes for boolean field types.
2578 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2579 in the CellTable based on the field type. It currently only
2580 distinguishes between boolean and text columns but I'll need to add
2581 support for more types.
2582 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2583 column type in the ColumnInfo object. Add method to convert between the
2584 glom field type enum in ColumnInfo and the glom field type in libglom.
2585 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2587 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2588 getting and setting booleans.
2590 2011-03-25 Ben Konrath <ben@bagu.org>
2592 Don't get the Date twice from the ResultSet.
2594 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2596 2011-03-25 Ben Konrath <ben@bagu.org>
2598 Cleanup code in the servlet.
2600 * TODO: Remove item about row count. Add item about testing row count
2601 query with large number of rows.
2602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2603 spelling mistakes, change method parameter to be consistent with
2606 2011-03-25 Ben Konrath <ben@bagu.org>
2608 Add server side logging with the gwt-log library.
2610 * .gitignore: Ignore the log file we're now producing.
2611 * TODO: Add a couple TODO item for logging.
2612 * pom.xml: Add gwt-log and log4j as a dependency.
2613 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2614 logging of errors, warnings and some important info.
2615 * src/main/resources/log4j.properties: New file to configure log4j.
2617 2011-03-24 Ben Konrath <ben@bagu.org>
2619 Add a disable button for the Details view.
2621 * src/main/java/org/glom/web/client/LayoutListView.java:
2623 2011-03-22 Ben Konrath <ben@bagu.org>
2625 Use a count query to get the number of rows for the list view pager.
2627 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2629 2011-03-22 Ben Konrath <ben@bagu.org>
2631 Add more TODO information about CellTable pager positioning.
2635 2011-03-19 Ben Konrath <ben@bagu.org>
2637 Add TODO item about CellTable pager positioning.
2641 2011-03-18 Ben Konrath <ben@bagu.org>
2643 Remove unneeded GlomFieldColumn class.
2645 This is just a small code cleanup.
2647 * src/main/java/org/glom/web/client/LayoutListView.java:
2649 2011-03-18 Ben Konrath <ben@bagu.org>
2651 Use cursor mode in the query that gets data for the list view.
2653 I still need to fix the potential memory problem when getting the row
2654 count for the list view.
2656 * TODO: Add note about testing memory usage with large data sets. Add
2657 item about fixing row counting with large data sets.
2658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2659 PostgreSQL JDBC driver into cursor mode when getting data for the
2662 2011-03-15 Ben Konrath <ben@bagu.org>
2664 Remove the GWT Container from the Eclipse build classpath.
2666 The GWT dependencies are set by Maven so this isn't needed.
2670 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2672 Added some earlier mockups to git, but not to the tarball dist.
2674 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2675 Openismus. These hopefully show how we might structure the HTML so that
2676 it can be styled easily with CSS. However, we probably need to adapt them
2677 for the CSS structure that GWT dictates for common widgets.
2679 2011-03-14 Ben Konrath <ben@bagu.org>
2681 Locate OnlineGlom.properties using the ServletContext.
2683 This is required to be able to locate the file in the deployed servlet.
2685 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2686 Configure the database and glom document in in a helper method so
2687 that the ServletContext can be used to locate OnlineGlom.properties.
2688 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2689 src/main/webapp. This is the proper location for .properites files.
2691 2011-03-12 Ben Konrath <ben@bagu.org>
2693 Add note to README about why we're compiling down to obfuscated JavaScript.
2697 2011-03-11 Ben Konrath <ben@bagu.org>
2699 Use properties file to configure servlet.
2701 This allows people to change the glom file path, db username and db
2702 password without recompiling the code.
2704 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2705 * src/main/webapp/OnlineGlom.properties:
2707 2011-03-11 Ben Konrath <ben@bagu.org>
2709 Use table fields in layout list view if the layout list is not defined.
2711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2712 Manually create a LayoutFieldVector for the query builder using the
2713 table fields when a layout list is not defined in the glom file.
2715 2011-03-11 Ben Konrath <ben@bagu.org>
2717 Only show FIXME string for images when there's an image.
2719 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2720 in this change are some small code cleanups.
2722 2011-03-11 Ben Konrath <ben@bagu.org>
2724 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2726 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2728 2011-03-11 Ben Konrath <ben@bagu.org>
2730 Correctly set the index of the default table.
2732 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2733 Correctly set the index of the default table. Add commented out example
2736 2011-03-10 Ben Konrath <ben@bagu.org>
2738 Add comment to pom.xml about the previous change.
2740 * pom.xml: Add comment about the deployment issue so that it's obvious
2741 why java-libglom is set to the provided scope.
2743 2011-03-10 Ben Konrath <ben@bagu.org>
2745 Change java-libglom dependency from compile to provided in pom.xml.
2747 Since java-libglom uses jni it can only be loaded once and therefore
2748 must be placed in $CATALINA_HOME/lib and not included in each war.
2749 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2750 More information about this issue can be found in the Tomcat 6 release
2751 notes in the "JNI Based Applications" section:
2753 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2755 * README: Remove note about this issue. Deployment info should really
2756 be on the wiki anyway so I'll add it right now.
2757 * pom.xml: Change java-libglom dependency from compile to provided so
2758 that it's copied in to the packaged war.
2760 2011-03-09 Ben Konrath <ben@bagu.org>
2762 Change to using a neutral locale for currency, date and time formatting.
2764 This solves the problem of currency values being represented without a
2765 space between the currency code and the number (e.g. "EUR5.89" is now
2766 represented as "EUR 5.89"). More work is required when we implement
2767 a locale preference setting.
2769 * TODO: Add note about currency formatting issues with different
2771 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2772 to using the neutral ROOT locale.
2774 2011-03-09 Ben Konrath <ben@bagu.org>
2776 Add support for currency codes that are not ISO 4217 codes.
2778 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2779 the currency code defined in the glom file when it's not 3 characters
2780 long or when Java doesn't recognize the string as an ISO 4217 code.
2782 2011-03-08 Ben Konrath <ben@bagu.org>
2784 Remove test classes, launch configurations and configuration.
2786 The test stuff was getting in the way when creating the war. To make
2787 the war file you can now do 'mvn clean package'. The packaged war file
2788 will be in the target directory.
2790 * .classpath: Remove unused classpathentry for tests and i18n.
2791 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2792 property. Don't run test or i18n goals when packaging the war.
2793 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2798 * OnlineGlomTest-dev.launch:
2799 * OnlineGlomTest-prod.launch:
2800 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2801 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2803 2011-03-07 Ben Konrath <ben@bagu.org>
2805 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2807 These fixes allow me to use 'mvn deploy' to create the war file.
2809 * .classpath: This generated config has been updated by Eclipse. This
2810 change was probably triggered by me updating from Eclipse 3.6.1 to
2812 * .gitignore: Add entry to ignore the directory
2813 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2814 * .project: The generated config has been updated by Eclipse. This
2815 change was probably triggered by me updating from Eclipse 3.6.1 to
2817 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2818 so that Eclipse doesn't complain
2819 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2820 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2821 'tests' directory to 'client' directory. This is the new
2822 gwt-maven-plugin convension.
2823 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2824 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2826 2011-03-07 Ben Konrath <ben@bagu.org>
2828 Add support for horizontal alignment in the LayoutList columns.
2830 * TODO: Remove item about horizontal alignment. Add item about
2831 improvements to ColumnInfo.
2832 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2833 alignment on the columns. Use ColumnInfo RPC object get the column
2834 title and horizontal alignment.
2835 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2836 LayoutListView creation with ColumnInfo RPC object.
2837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2838 a ColumnInfo object for every LayoutList columnn. Convert the
2839 FieldFormatting.HorizontalAlignment to the correct
2840 ColumnnInfo.HorizontatlAlignment with the new
2841 getColumnInfoHorizontalAlignment helper method.
2842 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2843 to encapsulate column information like alignment and title. This
2844 could be used to set the colour instead of on a per cell field basis.
2845 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2846 column title storage and retrieval with ColumnInfo.
2848 2011-03-04 Ben Konrath <ben@bagu.org>
2850 Add support for column sorting.
2852 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2853 AsynDataProvider to be an anonymous inner class. Use new
2854 getSortedTableData RPC method when column sort is requested. Set all
2855 columns sortable and add an AsyncHandler to activate sorting in the
2857 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2858 method getSortedTableData(). Cleanup other method signatures.
2859 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2860 new method getSortedTableData(). Cleanup other method signatures.
2861 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2862 Implement getSortedTableData() and getTableData() methods by using a
2863 private helper method with the appropriate parameters filled in. Use
2864 user supplied sort clause when supplied, otherwise fall back to
2865 sorting by the primary key. Move destroy() method to be underneath
2866 constructor for readability. Cleanup comments.
2868 2011-03-03 Ben Konrath <ben@bagu.org>
2870 Add support for colour text and colour backgrounds to the layout list cells.
2872 Only the cell backgrounds are coloured which leaves a gap between the
2873 cells that isn't coloured. I need to figure out a way to set
2874 'style=background-colour:' on the whole column rather than just the
2877 * TODO: Add a note about colouring the background of the whole column.
2878 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2879 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2880 render the coloured text and backgrounds. Use GlomField[] for the row type.
2881 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2883 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2884 GlomField[] for the row type.
2885 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2886 GlomField[] for the row type. Set the text, text colour and background
2887 colour in the GlomField objects as specified in the glom document. Add
2888 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2889 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2890 the glom field text, foreground colour and background colour.
2892 2011-03-02 Ben Konrath <ben@bagu.org>
2894 Don't display hidden tables in the combo box.
2896 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2898 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2899 code to ignore hidden tables using ArrayLists for the table names and
2901 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2902 tableNames to use ArrayLists instead of String[]. Update getter and setter
2905 2011-03-01 Ben Konrath <ben@bagu.org>
2907 Add support for Date and Time number types.
2909 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2910 Implement formatting for Date and Time values. Change the default glom
2911 file to small business example.
2913 2011-03-01 Ben Konrath <ben@bagu.org>
2915 Add support for formatting glom types as specified in the glom file.
2917 Formatting isn't finished yet - I still need to add support for Date
2920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2921 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2922 checks for null values in JDBC cleanup code and catch all exceptions
2923 instead of just SQLExceptions.
2924 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2927 2011-03-01 Ben Konrath <ben@bagu.org>
2929 Use GWT 2.2.0 instead of 2.1.1.
2931 * pom.xml: Change GWT version numbers.
2933 2011-03-01 Ben Konrath <ben@bagu.org>
2935 A few small code cleanups.
2937 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2939 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2940 unnecessary object creation in constructor.
2941 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2942 unnecessary object creation in constructor.
2944 2011-02-28 Ben Konrath <ben@bagu.org>
2946 Add file for TODO list.
2950 2011-02-18 Ben Konrath <ben@bagu.org>
2952 Enable the CellTable Pager when more than 20 rows need to be viewed.
2954 The Pager will automatically become active when the results are larger
2955 than the CellTable size which is currently set to 20 lines.
2957 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2958 name on debug statment in RPC call in LayoutListDataProvider, add
2959 numRows parameter to LayoutListView constructor, propperly set rowCount
2961 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2962 name on debug statment in RPC call, use LayoutListTable object in RPC
2963 calls, pass rowCount to LayoutListView.
2964 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2965 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2967 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2968 interface for changes in OnlineGlomService.
2969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2970 getLayoutListHeaders() to getLayoutListTable() and return
2971 LayoutListTable. Using this object allows me to pass other information
2972 about the LayoutList like the expected number of rows in the result set.
2973 The Connection object from the connection pool is now propperly closed.
2974 Only the requested number of lines are returned to the client in
2976 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2977 GlomTable and add columnTitles and numRows.
2979 2011-02-18 Ben Konrath <ben@bagu.org>
2981 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2983 This is a small performance boost. I'll use GlomTable to get the required
2984 layoutlist information.
2986 * src/main/java/org/glom/web/client/OnlineGlom.java:
2987 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2988 * src/main/java/org/glom/web/shared/GlomDocument.java:
2990 2011-02-18 Ben Konrath <ben@bagu.org>
2992 Add option to turn off formatting in JDT formatter preferences.
2994 * .settings/org.eclipse.jdt.core.prefs:
2996 2011-02-18 Ben Konrath <ben@bagu.org>
2998 Rename LayoutList to LayoutListView.
3000 I'm working towards setting things up to easily use MVP when the time
3003 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3005 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3008 2011-02-17 Ben Konrath <ben@bagu.org>
3010 Move LayoutListDataProvider class into LayoutList.java.
3012 * src/main/java/org/glom/web/client/LayoutList.java:
3014 2011-02-17 Ben Konrath <ben@bagu.org>
3016 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3018 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3020 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3021 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3022 from LibGlomServer.java.
3023 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3024 Rename from LibGlomServiceAsync.java.
3025 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3026 Rename from LibGlomServiceImpl.java.
3027 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3029 2011-02-17 Ben Konrath <ben@bagu.org>
3031 Update JDT settings.
3033 * .settings/org.eclipse.jdt.core.prefs:
3035 2011-02-17 Ben Konrath <ben@bagu.org>
3037 Move GWT-RPC objects to shared package (where they should be).
3039 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3040 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3041 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3042 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3043 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3044 org.glom.web.shared package.
3045 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3046 org.glom.web.shared package.
3047 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3048 directory in compilation to javascript.
3050 2011-02-16 Ben Konrath <ben@bagu.org>
3052 Add sort clause to the sql query that grabs table information.
3054 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3055 if one of the columns is a primary key.
3057 2011-02-16 Ben Konrath <ben@bagu.org>
3059 Disable generateAsync feature of gwt-maven.
3061 The generated interface does not correctly match the methods in LibGlomService
3062 and the generated singleton Util inner-class doesn't respect the servlet
3065 * pom.xml: Turn off generateAsync feature.
3066 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3067 with singleton Util inner-class.
3069 2011-02-14 Ben Konrath <ben@bagu.org>
3071 Add LGPL v3 licence notices.
3073 Followed directions listed here:
3074 http://www.gnu.org/licenses/gpl-howto.html
3076 * COPYING: This file is a copy of the GPL v3.
3077 * COPYING.LESSER: This file is a copy of the LGPL v3.
3078 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3080 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3082 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3084 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3086 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3088 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3090 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3093 2011-02-14 Ben Konrath <ben@bagu.org>
3095 Use ArrayList instead of Array in GWT-RPC calls.
3097 Apparently this gives a slight performance boost to the compiled
3100 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3102 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3105 2011-02-14 Ben Konrath <ben@bagu.org>
3107 Access data from a postgres db rather than the example glom file.
3109 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3110 compile down to obfuscated javascript.
3111 * pom.xml: Add c3p0 and postgres JDBC libraries.
3112 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3113 using a postgres db accessed through the c3p0 connection pooling library.
3115 2011-02-14 Ben Konrath <ben@bagu.org>
3117 Update Java formatter settings.
3119 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3121 2011-02-02 Ben Konrath <ben@bagu.org>
3123 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3125 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3127 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3128 the compiled webapp directory that Eclipse uses as we're using Maven now.
3129 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3130 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3132 * pom.xml: Format file, change target Java version to 1.6.
3134 2011-02-02 Ben Konrath <ben@bagu.org>
3136 Add information about a deployment related issue.
3138 * README: Add Notes section with the problem outlined.
3140 2011-02-02 Ben Konrath <ben@bagu.org>
3142 Call Glom.libglom_deinit() when the servlet is shutdown.
3144 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3145 Glom.libglom_deinit() to destroy() method.
3147 2011-01-28 Ben Konrath <ben@bagu.org>
3149 Use generated Util class to get the RPC Async interface.
3151 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3153 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3154 getInstance() method to get a reference to the RPC Async interface.
3155 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3156 getInstance() method to get a reference to the RPC Async interface, remove
3157 the now unused getLibGlomServiceProxy() method.
3159 2011-01-27 Ben Konrath <ben@bagu.org>
3161 Cleanup ChangeLog entry from previous commit.
3163 * ChangeLog: Group logical changes together and add comments.
3165 2011-01-25 Ben Konrath <ben@bagu.org>
3167 Convert to gwt-maven project.
3169 * .gitignore: Update for new project structure.
3170 * README: New file with a link to the online documentation.
3171 * pom.xml: The generated maven configuration file with some tweaks.
3173 Add / update Eclipse settings. These files are a merge of the files that
3174 were generated with the gwt-maven plugin and the files we were previously
3178 * .settings/.jsdtscope:
3179 * .settings/com.google.gdt.eclipse.core.prefs:
3180 * .settings/com.google.gwt.eclipse.core.prefs:
3181 * .settings/org.eclipse.jdt.core.prefs:
3182 * .settings/org.eclipse.wst.common.component:
3183 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3184 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3185 * .settings/org.maven.ide.eclipse.prefs:
3186 * OnlineGlomTest-dev.launch:
3187 * OnlineGlomTest-prod.launch:
3189 Java source files moved from the 'src' directory to the directory structure
3191 * src/main/java/org/glom/web/client/GlomDocument.java:
3192 * src/main/java/org/glom/web/client/GlomTable.java:
3193 * src/main/java/org/glom/web/client/LayoutList.java:
3194 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3195 * src/main/java/org/glom/web/client/LibGlomService.java:
3196 * src/main/java/org/glom/web/client/OnlineGlom.java:
3197 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3199 Non-functional property file used for translations. I included this as
3200 reminder that it's something I need to sort out.
3201 * src/main/resources/org/glom/web/client/Messages.properties:
3203 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3204 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3206 The servlet configuration files moved from the 'war' directory.
3207 * src/main/webapp/OnlineGlom.css:
3208 * src/main/webapp/OnlineGlom.html:
3209 * src/main/webapp/WEB-INF/web.xml:
3211 Generated test files with most of the code commented out. I included these
3212 so that it's easy to add tests when we're ready for them.
3213 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3214 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3216 2011-01-25 Ben Konrath <ben@bagu.org>
3218 Remove unused println.
3220 * src/org/glom/web/server/LibGlomServiceImpl.java:
3222 2011-01-25 Ben Konrath <ben@bagu.org>
3224 Add project specific JDT settings.
3226 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3227 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3229 2011-01-25 Ben Konrath <ben@bagu.org>
3231 Populate celltable with example data.
3233 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3234 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3235 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3236 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).