1 2011-12-20 Murray Cumming <murrayc@murrayc.com>
3 Allow choosing the translation in the .properties file.
5 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
6 init(): Read a glom.document.locale value from the configuration file
7 and call Glom's TransatableItem::set_current_locale() method.
8 * src/main/resources/onlineglom.properties: Add a commented-out
9 example of this new setting.
11 It would be better to add &lang=de_DE to the URL, but the current
12 libglom API does not allow us to do this easily. I am working on that.
14 2011-12-19 Murray Cumming <murrayc@murrayc.com>
16 Avoid a crash in parsing of token parameters.
18 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
19 ava: getTokenParams(): Do not crash if a parameter has a key but no
20 value, and ignore parameters with neither.
22 2011-12-17 Murray Cumming <murrayc@murayc.com>
24 History token building/handling: Improve use of token parameters.
26 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
27 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
28 and buildParamsToken(HashMap), for use by derived classes.
29 Make the separator private because it is no longer be needed.
30 * src/main/java/org/glom/web/client/place/DetailsPlace.java
31 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
32 instead of manual string concatenation.
33 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
34 of hardcoded indices and awkward splitting code.
35 * src/main/java/org/glom/web/client/place/ListPlace.java
36 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
37 instead of manual string concatenation.
38 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
39 of hardcoded indices and awkward splitting code.
40 This should fix bug #666420
42 2011-12-16 Murray Cumming <murrayc@murrayc.com>
44 Fix a Navgiation->Navigation typo in the code.
46 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
47 Rename processNavgiation() to processNavigation().
49 2011-12-16 Murray Cumming <murrayc@murrayc.com>
51 Fix a seperator->separator typo in the code.
53 * src/main/java/org/glom/web/client/place/DetailsPlace.java
54 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
55 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
58 2011-12-15 Ben Konrath <ben@bagu.org>
60 Cleanup some comments.
62 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
64 2011-12-14 Ben Konrath <ben@bagu.org>
66 Replace \n with <br/> for multiline text in the details view.
68 Vertical scrollbars are added when needed as well.
70 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
72 2011-12-14 Ben Konrath <ben@bagu.org>
74 Specify the font for document selection links.
76 * src/main/webapp/style.css:
78 2011-12-14 Ben Konrath <ben@bagu.org>
80 Fix bouncy CellTable while paging.
82 This doesn't currently work with related list tables in unselected
85 * src/main/java/org/glom/web/client/ui/list/ListTable.java
87 2011-12-14 Ben Konrath <ben@bagu.org>
89 Revamp the appearance of the document selection page.
91 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
92 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
93 * src/main/webapp/style.css:
95 2011-12-13 Ben Konrath <ben@bagu.org>
97 Set navigation button column to the smallest size possible.
99 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
101 2011-12-13 Ben Konrath <ben@bagu.org>
103 Change OpenButton nomenclature to NavigationButton.
105 Using NavigtionButton makes things more generic. Classes, methods and
106 variables have been changed.
108 This is a rename-only refactor.
110 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
111 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
112 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
113 Renamed from OpenButtonCell.
114 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
115 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
116 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
118 2011-12-12 Ben Konrath <ben@bagu.org>
120 Remove unnecessary String argument in RelatedListTable and ListViewTable.
122 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
123 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
124 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
125 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
127 2011-12-12 Ben Konrath <ben@bagu.org>
129 Update variable names and comments.
131 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
132 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
134 2011-12-12 Ben Konrath <ben@bagu.org>
136 Properly initialize numNonEmptyRows variable to zero.
138 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
139 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
141 2011-12-05 Ben Konrath <ben@bagu.org>
143 Add latest mockup with HTML tables.
145 Features of this mockup:
147 -> HTML table for flowtable
148 -> HTML table for flowtable column
149 -> Example of how related lists would look
150 -> Not using text entries for data items
152 The current version of Online Glom doesn't use HTML tables for the
155 This mockup has been sent to the glom-devel mailing list but it's good
156 to have it here as well.
158 * mockups/details-view-html-tables.html:
160 2011-12-05 Ben Konrath <ben@bagu.org>
162 Remove unnecessary getPrimaryKeyField() method.
164 getPrimaryKeyFieldForTable(String) has been renamed to
165 getPrimaryKeyField(String).
167 * src/main/java/org/glom/web/server/database/DBAccess.java:
168 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
169 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
171 2011-12-05 Ben Konrath <ben@bagu.org>
173 Add string representation of TypedDataItem value to conversion error message.
175 * src/main/java/org/glom/web/server/Utils.java: Logging the error
176 message was extracted into its own method to avoid duplication.
178 2011-12-05 Ben Konrath <ben@bagu.org>
180 Add type checking to navigation primary key value creation.
182 Create navigation primary key only if the expected type from the Glom
183 document matches the type returned by the SQL query.
185 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
187 2011-12-05 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-05 Ben Konrath <ben@bagu.org>
197 Move getListLayoutGroup() into getListViewLayoutGroup().
199 This removes getListLayoutGroup(). It was only being called by
200 getListViewLayoutGroup().
202 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
204 2011-12-05 Ben Konrath <ben@bagu.org>
206 Remove check for LayoutItem_Portal in list table method.
208 This check is no longer necessary because the method isn't being used
209 to create the LayoutItemPortal DTO.
211 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
213 2011-12-05 Ben Konrath <ben@bagu.org>
215 Properly support related list navigation.
217 Navigation from the "Repository Analyzer -> Package Scans ->
218 Dependencies" related table wasn't working because the primary key for
219 related tables wasn't being set properly. This commit fixes the
222 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
223 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
224 doesn't set the primary key properly for related list tables.
225 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
226 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
227 useful for getting the primary key for list view tables and for related
229 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
230 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
231 Move code to set the primary key for the table from the abstract
232 ListDBAccess class to ListViewDBAccess as it's only correct for list
234 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
235 Properly add primary key to related list tables.
237 2011-12-02 Ben Konrath <ben@bagu.org>
239 Properly set the horizontal alignment of fields.
241 This fix is for both the list tables and the details view.
243 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
244 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
245 to set the horizontal alignment of fields.
247 2011-12-02 Ben Konrath <ben@bagu.org>
249 Display currency codes in the details view.
251 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
253 2011-12-02 Ben Konrath <ben@bagu.org>
255 Avoid duplicate JNI call.
257 JNI is not as efficient as pure Java and this is an easy (and small)
260 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
261 Use previously retrieved value for whereClauseToTableName instead of
264 2011-12-02 Ben Konrath <ben@bagu.org>
266 Rename a couple of variables in RelatedListNavigation.
268 This is a rename-only refactor.
270 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
272 2011-12-02 Ben Konrath <ben@bagu.org>
274 Indicate clearly that a mismatched primary key type is a bug.
276 * src/main/java/org/glom/web/server/Utils.java: Change log level from
277 warning to error. Add 'This is a bug.' to message.
279 2011-12-02 Ben Konrath <ben@bagu.org>
281 Update / fix some comments.
283 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
285 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
287 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
288 Fix comments. Add some TODOs.
290 2011-12-02 Ben Konrath <ben@bagu.org>
292 Enable navigation to details view with string primary key from related list.
294 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
295 Create a text primary key value when return type of result is
296 java.sql.Types.VARCHAR.
298 2011-12-02 Ben Konrath <ben@bagu.org>
300 Use checkboxes for booleans in the details view.
302 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
304 2011-12-01 Ben Konrath <ben@bagu.org>
306 Improve performance of related list height calculation.
308 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
309 Put code to calculate the expected height in a static initializer so
310 that that it's only called once.
312 2011-12-01 Ben Konrath <ben@bagu.org>
314 Show related list tables in notebooks (again).
316 Calculate the height of the related list tables so the Notebook can be
317 set the correct height. The height of the related list table is also needed by
318 FlowTable to be able decide how to create the layout.
320 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
321 and set the Portal height based on the height of the related list
322 table and the Portal container.
323 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
324 Add method to calculate the height of the related list tables.
325 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
326 * src/main/webapp/style.css: Add css class for Pager. This is needed to
327 calculate the height of the Pager widget.
329 2011-12-01 Ben Konrath <ben@bagu.org>
331 Use CellTable API for table property instead of setting style on Element.
333 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
335 2011-12-01 Ben Konrath <ben@bagu.org>
337 Make ListViewTable and RelatedListTable a consistent height.
339 The tables are now a consistent height regardless of the contents of
340 the table. A hidden button is added to empty rows to ensure that the
341 height of these rows will match the height of rows with data.
343 A navigation button column is now added to every table. The width of
344 the navigation column is set to 0px when a RelatedListTable shouldn't
345 have navigation buttons. This maintains the a consistent row height in
346 tables that don't show the navigation buttons.
348 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
349 navigation column when not needed.
350 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
351 arguments for navigation button to constructor of ListViewTable.
352 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
353 hidden button for empty data rows.
354 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
355 arguments for navigation button to constructor.
356 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
357 create navigation buttons. Add hideNavigationButtons() method.
358 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
359 arguments for navigation button to constructor.
361 2011-12-01 Ben Konrath <ben@bagu.org>
363 Use 'visibility: hidden' in Utils.getWidgetHeight().
365 This is better choice because hidden elements are invisible, don't
366 respond to events and are not part of the tab order. They will,
367 however, take up space which is required to be able to calculate the
368 height of the widget.
370 * src/main/java/org/glom/web/client/Utils.java:
372 2011-12-01 Ben Konrath <ben@bagu.org>
374 Use Utils.getWidgetHeight() in FlowTable.
376 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
378 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
380 2011-12-01 Ben Konrath <ben@bagu.org>
382 Put the details css class name on the correct table column.
384 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
386 2011-11-30 Ben Konrath <ben@bagu.org>
388 Update for java-libglom API change.
390 The getters and setters on FieldFormatting and NumericFormat were
391 changed to remove the 'M'.
393 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
395 2011-11-29 Ben Konrath <ben@bagu.org>
397 Only allow RelatedListTables in Portals.
399 * src/main/java/org/glom/web/client/ui/details/Portal.java:
401 2011-11-29 Ben Konrath <ben@bagu.org>
403 Only create a contents panel for Portals when title is being set.
405 * src/main/java/org/glom/web/client/ui/details/Portal.java:
407 2011-11-29 Ben Konrath <ben@bagu.org>
409 Set TabLayoutPanel height based on calculated height its widgets.
411 This is a potential fix for this bug:
413 https://bugzilla.gnome.org/show_bug.cgi?id=665133
415 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
417 2011-11-29 Ben Konrath <ben@bagu.org>
419 Align details field labels and data with the Open buttons.
421 * src/main/webapp/style.css:
423 2011-11-29 Ben Konrath <ben@bagu.org>
425 Remove unnecessary <div> in the Notebook widget.
427 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
428 method to get container FlowPanel (<div>).
429 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
430 initWidget() method directly on the TabLayoutPanel widget instead of
431 Group's container widget.
433 2011-11-29 Ben Konrath <ben@bagu.org>
435 Don't add group titles for Portals in Notebooks.
437 This reverts the previous patch and fixes a bug I introduced with
438 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
440 * src/main/java/org/glom/web/client/ui/details/Group.java:
441 * src/main/java/org/glom/web/client/ui/details/Portal.java:
443 2011-11-28 Ben Konrath <ben@bagu.org>
445 Remove unused boolean argument in Portal constructor.
449 * src/main/java/org/glom/web/client/ui/details/Group.java:
450 * src/main/java/org/glom/web/client/ui/details/Portal.java:
452 2011-11-28 Ben Konrath <ben@bagu.org>
454 Remove hack for glom 1.18 style glom files.
456 * src/main/java/org/glom/web/client/ui/details/Group.java:
457 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
458 * src/main/java/org/glom/web/client/ui/details/Portal.java:
460 2011-11-28 Ben Konrath <ben@bagu.org>
462 Use Gda Value version of primary key to log result too large error.
464 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
466 2011-11-28 Ben Konrath <ben@bagu.org>
468 Don't use TypedDataItem.getText() for Unknown types from the URL.
470 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
471 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
472 instead of getText().
473 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
474 String field and getUnknown() method.
476 2011-11-28 Ben Konrath <ben@bagu.org>
478 Log an error message when the java-libglom .so is not present.
480 The error message was being set in the exception but not logged.
482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
484 2011-11-28 Ben Konrath <ben@bagu.org>
486 Ignore LayoutItem_CalendarPortals.
488 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
489 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
491 2011-11-28 Ben Konrath <ben@bagu.org>
493 Extract method for creating the LayoutItemPortal DTO.
495 Just breaking the code up into smaller chunks.
497 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
499 2011-11-28 Ben Konrath <ben@bagu.org>
503 This should have been added with the refactor. Oops!
505 * src/main/java/org/glom/web/shared/TypedDataItem.java:
507 2011-11-28 Ben Konrath <ben@bagu.org>
509 Create primary key value from URL string using type from Glom document.
511 See this bug, comments 19 - 25:
513 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
515 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
516 create a TypeDataItem for the primary key here when loading from a
517 URL. Show the same string for the primary key value as was received
518 from the URL string (when loading from a URL).
519 * src/main/java/org/glom/web/server/Utils.java: Update method for
520 creating the Gda Value from the TypeDataItem to properly deal with
521 creating a Gda Value based on the Glom document type for the primary
522 key value string when loading from a URL.
523 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
524 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
525 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
526 Update for changed method name.
528 2011-11-27 Ben Konrath <ben@bagu.org>
530 Rename PrimaryKeyItem to TypedDataItem.
532 The name PrimaryKeyItem suggests what the class should be used for.
533 TypedDataItem is a neutral name that describes the class better.
535 This is a rename-only refactor.
537 * src/main/java/org/glom/web/client/OnlineGlomService.java:
538 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
539 * src/main/java/org/glom/web/client/Utils.java:
540 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
541 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
542 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
543 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
544 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
545 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
547 * src/main/java/org/glom/web/server/Utils.java:
548 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
549 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
550 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
551 * src/main/java/org/glom/web/shared/NavigationRecord.java:
553 2011-11-25 Ben Konrath <ben@bagu.org>
555 Improve Gda Value conversion from PrimaryKeyItem.
557 The value from the PrimaryKeyItem is only used if its type match the
558 type from the glom document.
560 * src/main/java/org/glom/web/server/Utils.java:
562 2011-11-25 Ben Konrath <ben@bagu.org>
564 Manually check if the java-liblgom .so is visible to the JVM.
566 It seems that Tomcat has problems when a static initializer throws an
567 exception. This check is done before the first method call into
568 java-libglom so that execution doesn't continue if the .so is not
571 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
573 2011-11-25 Ben Konrath <ben@bagu.org>
575 Improve browser configuration error messages.
579 https://bugzilla.gnome.org/show_bug.cgi?id=662792
581 * src/main/java/org/glom/web/client/OnlineGlomService.java:
582 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
583 getConfigurationErrorMessage() method.
584 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
585 Get and display a specific configuration error message when no Glom
587 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
588 Implement getConfigurationErrorMessage() method. Surround configuration
589 code in the init() method with a try/catch block. This allows the
590 errors to be caught while keeping the servlet available to retrieve the
591 configuration error message.
593 2011-11-25 Ben Konrath <ben@bagu.org>
595 Don't use Strings to hold primary key values.
597 The primary key values are now held in a new data object
598 (PrimaryKeyItem) that holds type information and the primary key value
599 using the correct type.
601 * src/main/java/org/glom/web/client/OnlineGlomService.java:
602 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
603 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
604 PrimaryKeyItem instead of String to hold the primary key value.
605 * src/main/java/org/glom/web/client/Utils.java: Remove
606 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
607 PrimaryKeyItem based on the GlomFieldType and the DataItem.
608 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
609 PrimaryKeyItem instead of String to hold the primary key value. Load
610 document selection page when the documentID has not been set correctly.
611 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
612 DetailsPlace -> URL and URL -> DetailsPlace conversion with
614 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
615 Return empty string for URL instead of "null".
616 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
617 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
618 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
619 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
620 PrimaryKeyItem instead of String to hold primary key values.
621 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
622 PrimaryKeyValue to a Gda Value.
623 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
624 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
625 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
626 Replace temporary database access code that uses the PrimaryKeyValue to
627 Gda Value conversion.
628 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
629 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
630 PrimaryKeyItem instead of String.
631 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
632 hold primary key values.
634 2011-11-24 Ben Konrath <ben@bagu.org>
636 Use newly added java-libglom API to create queries.
638 This isn't finished. I still need to stop using Strings for primary key
639 values in the client code.
641 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
642 libglom to use fake connections so that retrieving the query string will
644 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
645 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
646 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
647 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
648 Use the newly added libglom sql methods and classes to create the
649 query. Add temporary hack to convert primary value strings to Gda
652 2011-11-23 Ben Konrath <ben@bagu.org>
654 Don't explicitly set the height of Portals.
656 See comments 6 - 10 of this bug for details:
658 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
660 * src/main/java/org/glom/web/client/ui/details/Portal.java:
662 2011-11-23 Ben Konrath <ben@bagu.org>
664 Use an HTML table instead of CSS for the FlowTable layout.
666 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
667 GWT's FlexTable to implement the FlowTable.
668 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
670 2011-11-18 Ben Konrath <ben@bagu.org>
672 Add boolean example to HTML table mockup.
674 * mockups/details-view-html-tables-text-entries.html:
676 2011-11-17 Ben Konrath <ben@bagu.org>
678 Ensure the pager buttons are always visible for related lists.
680 To accomplish this, I've turned off text wrapping in the list view and
681 related list tables for both the header and data text. The related list
682 table now has a fixed layout so the it doesn't overflow its container.
683 This is required to ensure that the cell text is clipped when it
684 overflows the cell and an ellipsis is added to the right side of the
685 cell when text is clipped.
687 A fixed table layout for the related list table in the details view
688 seems what we want for the details view anyway, so the side-effect is
691 The ellipsis will only be displayed in Firefox >= 7.
695 https://bugzilla.gnome.org/show_bug.cgi?id=662930
697 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
698 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
699 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
701 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
702 Set the 'table-layout: fixed' CSS property to the related list table.
703 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
704 'white-space: nowrap;' CSS property on both the list view and the
707 2011-11-16 Ben Konrath <ben@bagu.org>
709 Rework the fix for empty notebook tab labels.
711 Setting the empty group titles with its name caused problems for the
712 details layout. Instead of using libglom's
713 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
714 to the client when the title is empty. This allows the Notebook to use
715 the name when the title is empty without affecting anything else.
717 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
718 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
720 2011-11-16 Ben Konrath <ben@bagu.org>
722 Set group titles with name when title is empty.
724 This fixes a problem with an empty notebook tab label in the Lesson
725 Planner document. The forth tab in the notebook should be "Internet":
727 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
729 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
730 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
733 2011-11-16 Ben Konrath <ben@bagu.org>
735 Remove whitespace from the configured username properties.
737 This assumes that usernames won't have whitespace at the beginning
738 or end. But I think this is a reasonable assumption.
740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
741 String.trim() to remove the whitespace from the username properties.
743 2011-11-15 Ben Konrath <ben@bagu.org>
745 Add details view mockup with HTML tables and text entries.
747 This is from the attachment on this bug:
749 https://bugzilla.gnome.org/show_bug.cgi?id=663109
751 * mockups/details-view-html-tables-text-entries.html:
753 2011-11-15 Ben Konrath <ben@bagu.org>
755 Add space between the columns of the flow table.
759 https://bugzilla.gnome.org/show_bug.cgi?id=662918
761 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
762 space between columns in the flow table.
764 2011-11-15 Ben Konrath <ben@bagu.org>
766 Add backup files to the .gitignore.
768 * .gitignore: Ignore files that end with ~.
770 2011-11-09 Ben Konrath <ben@bagu.org>
772 Use latest release of gwt-log.
774 Gwt-log releases are now being submitted to the maven central
775 repository so manual installation of the jar is no longer required.
777 * pom.xml: Update version and groupId of gwt-log dependency.
779 2011-10-31 Ben Konrath <ben@bagu.org>
781 Don't use GWT numeric formatting to override the glom currency formatting.
783 Currencies are now displayed like they are in Glom. See this bug:
785 https://bugzilla.gnome.org/show_bug.cgi?id=646216
787 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
789 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
790 currency code to constructor and set it when the cell is rendered.
791 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
792 currency code to the constructor of the NumericCell.
794 2011-10-27 Ben Konrath <ben@bagu.org>
796 Require the latest release of java-libglom (1.17.4).
800 2011-10-26 Ben Konrath <ben@bagu.org>
802 Add style to Notebook that matches current theme.
804 It's not the best style in the world but it's better than the default.
806 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
807 padding at the bottom of the child widgets.
808 * src/main/webapp/style.css: Add style for the Notebook.
810 2011-10-26 Ben Konrath <ben@bagu.org>
812 Move servlet initialization code to overridden init method.
814 This is half of the solution to getting proper error messages
815 displayed when configuration errors occur. Here's the relevant bug:
817 https://bugzilla.gnome.org/show_bug.cgi?id=662792
819 The rest of the solution involves surrounding the init method with a
820 try/catch block and setting a global variable with the error /
821 exception. A new async method should be created to retrieve and display
822 the error message / exception.
824 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
825 code from constructor to init method adding exceptions as needed.
827 2011-10-26 Ben Konrath <ben@bagu.org>
829 Add script to monitor and restart tomcat if required.
831 * utils/check-and-recover-tomcat.py: New file.
833 2011-10-26 Ben Konrath <ben@bagu.org>
835 Display the correct number of data items in the pager.
839 https://bugzilla.gnome.org/show_bug.cgi?id=661441
841 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
842 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
843 The implementation is the same for both tables: Keep track of the
844 number of non-empty rows and fire and RowCountChangeEvent after the data has
846 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
847 custom Pager class that subclasses SimplePager to handle displaying
848 the correct number when empty rows have been added.
850 2011-10-26 Ben Konrath <ben@bagu.org>
852 Correct error in previous commit.
854 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
855 eventBus parameter from listView.setCellTable().
857 2011-10-26 Ben Konrath <ben@bagu.org>
859 Fix error in TODO comment.
861 * src/main/java/org/glom/web/client/activity/ListActivity.java:
863 2011-10-24 Ben Konrath <ben@bagu.org>
865 Create Notebook widgets to the details view.
867 This isn't finished just yet - I still need to create a reasonable
868 style to match the current theme.
870 * src/main/java/org/glom/web/client/Utils.java: Add method for
871 calculating the height of a widget. This is used in the Notebook class.
872 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
873 new constructor method in Group.
874 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
875 method for creating child widget that can be used by subclasses
876 like Notebook. New constructor that allows disabling the group
877 titles - Notebooks don't set a group title for their child groups.
878 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
879 to make Notebooks using GWT's TabLayoutPanel.
880 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
881 constructor that allows disabling the group titles.
882 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
883 LayoutItemNotebook DTO.
884 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
885 DTO for Notebooks. It's just an empty class for now but we might need
886 it to transfer some specific information in the future.
888 2011-10-21 Ben Konrath <ben@bagu.org>
890 Add navigation buttons to related list tables.
892 * src/main/java/org/glom/web/client/OnlineGlomService.java:
893 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
894 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
895 method getSuitableRecordToViewDetails() for getting the table name
896 and primary key value for related list navigation buttons.
897 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
898 private cell renderer class to get the navigation information for
899 related list tables from the server. Extract the navigation
900 processing code from the details cell navigation and use it for the
901 related list navigation as well.
902 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
903 cell renderer class for the details open buttons. This was needed
904 because the related list navigation buttons and the list view
905 navigation buttons need to react differently when clicked.
906 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
907 the onEnterKeyDown() method because it's now overriden in the
908 subclasses that are specific to the related list tables and the list
910 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
911 the vertical size a little because the buttons add a bit of vertical
912 space to table. This is not a perfect solution because the vertical
913 size of with table fewer than 5 rows will be a little smaller.
914 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
915 changes in how navigation buttons are handled.
916 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
917 getSuitableRecordToViewDetails() using the new RelatedListNavigation
918 database access object.
919 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
920 to find the portal for a given relationship name from
921 RelatedListDBAccess. Add method to find a primary key field for a
923 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
924 Move code to find the portal for a given relationship name to
926 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
927 New file: database access object for getting the related list
928 navigation information (the table name and the primary key value).
929 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
930 DTO for transferring a table name to navigate to and a primary key
932 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
933 boolean and getter/setter to specifies if the related list should add
936 2011-10-24 Murray Cumming <murrayc@murrayc.com>
938 Use the master branch of java-libglom
940 * pom.xml: Depend on java-libglom 1.19 instead.
942 This is the master branch. See also the libglom-1-18 branch.
944 2011-10-11 Ben Konrath <ben@bagu.org>
946 Enable the open navigation button when the data has been set.
948 This avoids having active buttons that don't do anything when the data
951 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
953 2011-10-11 Ben Konrath <ben@bagu.org>
955 Use IsWidget interface for FlowTableItem.
957 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
958 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
960 2011-10-11 Ben Konrath <ben@bagu.org>
962 Remove GWT styling from open button in details view.
964 There are still some issues with how the details cell is arranged but
965 this should be made to match Glom 1.20. I'm going to leave fixing this
966 until I have Glom 1.20 up and running.
968 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
969 style name on open button.
970 * src/main/webapp/style.css: Move and edit details-navigation class.
971 Re-arrange some classes to make them appear in the same order as the
974 2011-10-07 Ben Konrath <ben@bagu.org>
978 * .gitignore: Ignore new cache directory.
979 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
980 * pom.xml: Change GWT and maven plugin to 2.4.0.
981 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
983 * src/main/java/org/glom/web/client/ClientFactory.java:
984 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
985 * src/main/java/org/glom/web/client/OnlineGlom.java:
986 Update source for API changes.
987 * utils/build-onlineglom-war.sh: Remove cache directory before the
990 2011-10-07 Ben Konrath <ben@bagu.org>
992 Add navigation buttons in the details view.
994 This isn't finished but I thought I'd commit what I have as it's a
995 pretty good start. I still need to:
997 1. Change the style so that it fits better into the current theme
998 2. Adjust the details cell to expand as much as possible.
1000 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1001 click handlers to navigation buttons in the DetailsCells. Create a
1002 refreshData() method to get just the data from the server without the
1004 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1005 Update the tableSelector and browser title when the table name
1006 changes without using the tableSelector.
1007 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1008 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1009 getDetailsCells() to getCells(). Update variable names.
1010 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
1011 method to set click handler on navigation button. Rename a few
1012 variables. Add navigation buttons where needed.
1013 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
1014 variables and methods.
1015 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
1016 navigation boolean and navigation table as required in the
1017 LayoutItemField DTO.
1018 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1019 variables for navigation along with getter/setter methods.
1021 2011-10-07 Ben Konrath <ben@bagu.org>
1023 Rename Field to DetailsCell.
1025 This is a refactor-only commit. No functionality has been added or
1028 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1029 Update variable and method names.
1030 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1031 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1032 variable and method names.
1033 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1035 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1036 variable and method names.
1038 2011-10-07 Ben Konrath <ben@bagu.org>
1040 Create separate methods for layout and data the details view.
1042 This is a refactor-only commit. No functionality has been added or
1045 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1046 private methods: setData(), createLayout().
1048 2011-10-07 Ben Konrath <ben@bagu.org>
1050 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1052 This is part of a change to get navigation buttons in the details view
1053 but it should have been done this way from the start.
1055 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1056 for method name change in TableSelectionView.
1057 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1058 Create TableChangeEvent and set the browser title using the
1059 TableSelectionView API.
1060 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1061 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1062 Change getSelectedTable() to getSelectedTableName(). Add
1063 getSelectedTableTitle().
1065 2011-10-07 Ben Konrath <ben@bagu.org>
1067 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1069 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1071 2011-10-07 Ben Konrath <ben@bagu.org>
1073 Update TableChangeEvent to use newTableName naming convention.
1075 This makes the class more consistent with GWT naming conventions.
1077 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1078 Update for method name change in TableChangeEvent.
1079 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1080 for method name change in TableChangeEvent.
1081 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1082 newTableName variable and getter method. Make toDebugString()
1085 2011-09-30 Ben Konrath <ben@bagu.org>
1087 Disable the pager in the list tables when the data row count is less than the minimum.
1089 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1090 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1092 2011-09-30 Ben Konrath <ben@bagu.org>
1094 Add empty rows to the end of related list and list view tables.
1096 I also extracted the cell rendering classes from the ListTable because
1097 the code was becoming a little crazy with all the anonymous inner
1098 classes. My plan is to use these cell rendering classes in the details
1099 view as well so this refactor will be needed for that change.
1101 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1102 set the row count in related list tables if the data has more rows
1103 than the minimum number of rows visible.
1104 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1105 row count in list view tables if the data has more rows than the
1106 minimum number of rows visible.
1107 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1108 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1110 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1111 for rendering TYPE_NUMERIC cells. The code was extracted from the
1113 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1114 class for rendering cells with buttons in list views. The code was
1115 extracted from the ListTable class.
1116 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1117 for rendering TYPE_TEXT cells. The code was extracted from the
1119 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1120 Add empty rows to the end of the data if required. Implement
1121 ListTable.getMinNumVisibleRows().
1122 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1123 cell renderer code to public classes. Return null in
1124 Column.getValue() for empty rows. Add new abstract method:
1125 getMinNumVisibleRows(). Move code to set the row count of the list view
1126 table to ListViewImpl.
1127 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1128 empty rows to the end of the data if required. Implement
1129 ListTable.getMinNumVisibleRows().
1132 2011-09-27 Ben Konrath <ben@bagu.org>
1134 Use GWT.log for client-side debugging statements.
1136 These are optimized out when deployed so I should have used this method
1137 in the first place. These statements will eventually be replaced with some sort
1138 of notification in the browser.
1140 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1141 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1142 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1143 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1144 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1146 2011-09-27 Ben Konrath <ben@bagu.org>
1148 Put tableselector on the right, back to list link on right.
1150 The idea is that the table selector is acting like a label for the
1151 currently displayed table so it should be placed below the document title. This
1152 puts the table title in a similar position to where it is in Glom.
1154 * mockups/details-contacts.html:
1155 * mockups/details-projects.html:
1156 * mockups/listview-contacts.html:
1157 * mockups/listview-projects.html:
1158 * mockups/style.css:
1159 Update mockups to match how the interfaces currently look.
1160 * src/main/webapp/style.css: Swap positions of backlink with the table
1161 selector. Add some space on the left side of the table selector to
1162 line things up with the document title.
1164 2011-09-27 Ben Konrath <ben@bagu.org>
1166 Add field colouring to details view.
1168 This change re-works how field colouring works. The colour formatting
1169 information is now set to the client with the layout information instead of
1170 with the data. This eliminates the need to send the same colour strings for
1171 data in list view column when colour information is set.
1173 In order to set an alternate colour for negative numeric values, the
1174 number is now sent to client and formatted with the GWT NumberFormat class.
1176 This change also fixes:
1178 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1180 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1181 internationalization framework which is needed for client side numeric
1183 * src/main/java/org/glom/web/client/Utils.java: New file for some
1184 client static utility methods.
1185 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1186 the DataItem object to the Field class. Use a utility method to
1187 create the foreignKeyValue string.
1188 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1189 alignment and text colours in the constructor. Add setData(DataItem)
1190 method. Remove setText(String) method.
1191 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1192 colour information to GlomTextCell. Create and use GlomNumberCell for
1193 rendering numbers. Use utility method to get the string for the
1194 primary key of the key provider. Re-work how the horizontal alignment
1196 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1197 formatting to layout information. Methods for converting the libglom
1198 formatting information were moved from DBAccess.
1199 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1200 numeric formatting (it's now done on the client side). Don't set text
1201 colours in DataItem. Move libglom formatting conversion methods to
1203 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1204 getters/setters for text colour information.
1205 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1206 for transferring the libglom NumericFormat information to the client.
1207 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1208 and getters/setters for: GlomNumericFormat, background colour and
1209 foreground colour strings.
1211 2011-09-26 Ben Konrath <ben@bagu.org>
1213 Simplify code that iterates through the LayoutGroup.
1215 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1217 2011-09-26 Ben Konrath <ben@bagu.org>
1219 Accept Eclipse formatting for OnlineGlomServiceAsync.
1221 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1223 2011-09-26 Ben Konrath <ben@bagu.org>
1225 Don't use the ListDBAccess classes to get the primary key layout information.
1227 This was causing a bug where the wrong index for the hidden primary key
1228 was being sent to the client.
1230 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1231 primary key while creating the LayoutGroup DTO. Create a
1232 LayoutItemField DTO for hidden primary keys. Don't use the
1233 RelatedListDBAccess because it was only used for getting the primary
1235 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1236 access modifier from public to protected for getPrimaryKeyField() and
1237 getPrimaryKeyLayoutItemField().
1238 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1239 abstract method getExpectedResultSize() because RelatedListDBAccess
1240 doesn't have enough info to implement it.
1241 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1242 Remove @Override for getExpectedResultSize().
1243 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1244 Remove method getExpectedResultSize().
1246 2011-09-23 Ben Konrath <ben@bagu.org>
1248 Log which layout (list or details) the ignored item is from.
1250 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1252 2011-09-23 Ben Konrath <ben@bagu.org>
1254 Remove annotations that turn off code formatting in DataItem.
1256 * src/main/java/org/glom/web/shared/DataItem.java:
1258 2011-09-23 Ben Konrath <ben@bagu.org>
1260 Rename GlomField to DataItem and update associated methods.
1262 This is a rename-only refactor. No functionality has been added or
1265 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1266 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1267 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1268 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1269 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1270 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1271 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1272 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1273 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1274 * src/main/java/org/glom/web/server/database/DBAccess.java:
1275 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1276 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1277 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1278 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1279 * src/main/java/org/glom/web/shared/DataItem.java:
1280 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1281 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1283 2011-09-23 Ben Konrath <ben@bagu.org>
1285 Rename GlomDocument to DocumentInfo and update associated methods.
1287 This is a rename-only refactor. No functionality has been added or
1290 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1291 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1292 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1293 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1294 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1295 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1296 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1298 2011-09-20 Ben Konrath <ben@bagu.org>
1300 Require java-libglom 1.17.3.
1302 This picks up the fix for the seg fault problem with the Scenes table
1303 in the Openismus Film Manager example.
1307 2011-09-20 Ben Konrath <ben@bagu.org>
1309 Change the way sort clause is added for primary key when no sort clause is requested.
1311 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1312 before the sort clause is created. When a sort clause is not requested, the
1313 sort clause is created by finding the primary key in the LayoutFieldVector
1316 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1318 2011-09-20 Ben Konrath <ben@bagu.org>
1320 Log error message if no documents are found in the configured directory.
1322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1323 Extract the glom file extension string to a private static final class
1324 variable (mostly as syntactic sugar). Accept a minor formatting change.
1325 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1326 the example glom.document.directory configuration property to make it
1327 more clear that it can any directory, not just the home directory.
1329 2011-09-18 Ben Konrath <ben@bagu.org>
1331 Add related lists to details view.
1333 The related list table has support for paging and sorting just like the
1334 table in the list view.
1336 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1337 SQL queries for the related list tables.
1338 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1339 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1341 Rename getList methods to getListView and add comments. Remove
1342 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1343 it being unused. Add methods: getDetailsLayoutAndData(),
1344 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1345 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1346 Create the layout and set the data for the fields in one async call
1347 instead of two. Create related lists where appropriate.
1348 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1349 for method name changes in OnlineGlomService.
1350 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1351 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1352 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1354 * src/main/java/org/glom/web/client/ui/ListView.java:
1355 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1356 tableName from setCellTable(). Create a ListViewTable instead of
1358 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1359 represent a data field in the details view.
1360 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1361 from addDetailsCell() to Field class. Keep track of the Fields and
1362 Portals in the details view.
1363 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1364 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1365 and add a method to get it. Add method to set the contents of the
1367 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1368 New class for related list tables. This class has the data provider
1369 for the related list table.
1370 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1371 abstract class which is the base class for the ListViewTable and the
1373 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1374 New class for list view tables. This class has the data provider for
1375 the list view table.
1376 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1377 methods for related list tables. Add more information to the
1378 LayoutItemField and LayoutItemPortal DTOs.
1379 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1380 Remove debugging print statement.
1381 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1382 Remove debugging print statements. Add primary key field to SQL count
1384 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1385 Remove unnecessary LayoutFieldVector parameter from
1386 getResultSizeOfSQLQuery() method.
1387 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1388 New class for related list table database access.
1389 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1390 class that is a wrapper DTO for details view layout and data.
1391 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1392 new 'fromField' string to this DTO.
1393 * src/main/webapp/style.css: Remove bottom margin and override top
1396 2011-09-15 Ben Konrath <ben@bagu.org>
1398 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1400 This sets things up to make it easier to add the data retrieval for
1401 related lists (portals). No user noticeable changes were made with
1404 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1405 class has the code to retrieve the layouts and access the
1406 database using the new database helper classes.
1407 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1408 Most of the functionality has been removed from this class. This
1409 class now represents the public interface for the client side
1410 code. It also deals with configuring the servlet and cleaning
1411 things up when the servlet is stopped.
1412 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1413 of static methods into this utility class.
1414 * src/main/java/org/glom/web/server/database/DBAccess.java:
1415 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1416 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1417 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1418 These classes have the database retrieval code. The class hierarchy
1419 has been setup to make it easy to reuse code for similar
1422 2011-09-06 Ben Konrath <ben@bagu.org>
1424 Create separate classes for list table code and the data provider.
1426 As part of this refactor, I also split up the code a bit to make it
1429 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1430 table code to two new classes (below).
1431 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1432 with code from ListViewImpl.
1433 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1434 New file with code from ListViewImpl.
1436 2011-09-06 Ben Konrath <ben@bagu.org>
1438 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1440 This fixes the LayoutItemPortal DTO to match the libglom layout object
1443 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1445 2011-09-01 Ben Konrath <ben@bagu.org>
1447 Set title of Portals in the Details View.
1449 * pom.xml: Bump required version of java-libglom to 1.17.1.
1450 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1451 widget creation to its own class. Add comments to constructor.
1452 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1453 The code is mostly from the Group class with the title now set.
1454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1455 title of Portal. Update some comments. Fix some code formatting.
1457 2011-09-01 Ben Konrath <ben@bagu.org>
1459 Remove TODO comment for the flow table column width.
1461 The flow table column width is working correctly and doesn't need to be
1462 changed. See this mailing list post for more info:
1464 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1466 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1468 2011-08-27 Ben Konrath <ben@bagu.org>
1470 Add document title (database name) to top of the browser page.
1472 I added the document title to the TableSelecitonView but that will
1473 change if / when we add a view that doesn't require table selection.
1475 * mockups/details-contacts.html:
1476 * mockups/details-projects.html:
1477 * mockups/listview-contacts.html:
1478 * mockups/listview-projects.html:
1479 * mockups/style.css: Add document title to mockups to keep things
1481 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1482 sizes to account for the document title.
1483 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1484 Set the document title when it has been retrieved from the server.
1485 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1486 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1487 and implement setDocumentTitle(String) method.
1488 * src/main/webapp/style.css: Add ID for document title style.
1490 2011-08-25 Ben Konrath <ben@bagu.org>
1492 Add NavigationType enum to LayoutItemPortal DTO.
1494 This is the start of adding support for Portals to the Details View.
1496 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1497 LayoutItem_Portal.navigation_type enum from libglom to
1498 LayoutItemPortal.NavigationType enum.
1499 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1500 NavigationType enum, field for storing the NavigationType and getter
1503 2011-08-25 Ben Konrath <ben@bagu.org>
1505 Implement the flow table layout in the Details View.
1507 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1508 FlowTable to Group to account for the renamed class.
1509 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1510 File. This is a container widget that implements the Glom details view
1511 flow table behaviour.
1512 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1513 org/glom/web/client/ui/FlowTable.java.
1514 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1515 so that the size of the subgroups are a closer match to the size of
1516 the Glom subgroups. This makes the flowtable layout match the layout
1517 in Glom for the Music Collection example file.
1519 2011-08-16 Ben Konrath <ben@bagu.org>
1521 Create container element for LayoutItemPortal in Details View.
1523 This will help me develop the layout for the FlowTable.
1525 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1526 fieldPanel variable to detailsCell.
1528 2011-08-15 Ben Konrath <ben@bagu.org>
1530 Set the height of the data element in the Details View.
1532 I changed the InlineLabels (text in a span element) to Labels (text in
1533 a div element) so that I could set the height of the details-data
1534 elements instead of the details-cell parent elements. This allows the
1535 the details-data element to display the correct height if style is
1536 applied that shows the height.
1538 This change has the added benefit of allowing the order of the labels
1539 and data elements to be changed for right-to-left languages.
1541 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1542 InlineLabels to Labels.
1543 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1544 InlineLabels to Labels. Set the height of the data element.
1545 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1546 multiline text height in the Formatting DTO.
1547 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1548 for multiline height along with getter and setter methods.
1549 * src/main/webapp/style.css: Adjust style to account for the change
1550 from span elements to div elements in the details cell.
1552 2011-08-15 Ben Konrath <ben@bagu.org>
1554 Make the List View appearance match the mockups.
1556 It doesn't match exactly but it's much better than it was.
1558 * mockups/listview-contacts.html: Remove unused css classes.
1559 * mockups/listview-projects.html: Remove unused css classes.
1560 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1561 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1562 for mainPanel instead of VerticalPanel (table). Set style name on
1563 CellTable. Set style name on Details column. Right-align Details
1565 * src/main/webapp/style.css: Adjust properties to match the mockups.
1567 2011-08-12 Ben Konrath <ben@bagu.org>
1569 Add better support for subgroups in the details view.
1571 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1572 changed FlowTable constructor.
1573 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1574 support for subgroups and subgroup-titles.
1575 * src/main/webapp/style.css: Add CSS class for subgroups and
1578 2011-08-12 Ben Konrath <ben@bagu.org>
1580 Return the top level LayoutGroup title.
1582 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1584 2011-08-11 Ben Konrath <ben@bagu.org>
1586 Make the TableSelector header match the mockup.
1588 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1589 the layout panel. Properly lineup the table selection header with
1590 the list and details view.
1591 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1592 margin around the details view.
1593 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1594 Rename listBox variable to tableSelector. Set id for the style sheet.
1595 Use a FlowPanel instead of a HorizontalPanel.
1596 * src/main/webapp/style.css: Add properties to make the TableSelector
1597 box match the mockups.
1599 2011-07-13 Ben Konrath <ben@bagu.org>
1601 Update install script for java-libglom version change.
1603 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1606 2011-07-13 Ben Konrath <ben@bagu.org>
1608 Add support sub-group in the details view.
1610 I also removed the code that special-cased the default details view
1613 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1615 I still have to make a proper flowtable.
1617 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1618 Don't special-case default details view layout.
1619 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1620 addLayoutField() as I'm going to use it.
1621 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1622 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1624 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1625 extracted from DetailsViewImpl.GroupPanel. Add support for
1627 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1628 column count when getting the details layout.
1630 2011-07-12 Ben Konrath <ben@bagu.org>
1632 Set browser title with database and table titles.
1634 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1635 Set the browser title when the table changes and when the activity
1637 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1638 title when retrieving document info (the GlomDocument object).
1639 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1640 with getter and setter methods. Remove unused convenience constructor.
1641 Use default code formatting.
1643 2011-07-12 Ben Konrath <ben@bagu.org>
1645 Ignore LayoutItemPortals in the details view.
1647 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1650 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1651 LayoutItemPortal layout objects.
1652 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1653 LayoutItemPortal objects when retrieving the details layout.
1654 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1655 file. This is an empty class and just used to get type information for
1658 2011-07-12 Ben Konrath <ben@bagu.org>
1660 Use java-libglom 1.17.0.
1664 2011-07-11 Ben Konrath <ben@bagu.org>
1666 Remove "Table:" label from table selector.
1668 This matches a recent change in the Glom UI.
1670 * mockups/details-contacts.html:
1671 * mockups/details-projects.html:
1672 * mockups/listview-contacts.html:
1673 * mockups/listview-projects.html: Remove the "Table:" label from the
1675 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1677 2011-07-11 Ben Konrath <ben@bagu.org>
1679 Add main groups to the details view.
1681 This makes things look a little nicer in the details view. The next step
1682 is to implement the flowtable.
1684 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1685 resources from the standard gwt css theme. Standard.css is now
1686 included in OnlineGlom.html so that the online glom css rules have
1687 precedence over the gwt theme.
1688 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1689 the whole LayoutGroup to the DetailsView instead of just the titles.
1690 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1691 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1692 details layout with a helper class (GroupPanel). I might extract this
1693 class when I make the full flowtable.
1694 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1695 string as default so I don't have to worry about NPEs when processing
1697 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1698 note beside OnlineGlom.gwt.xml above).
1699 * src/main/webapp/style.css: Add default font-size to body to override
1700 the font-size set by the standard theme. Don't use h2 tags for
1701 group-title. Create new details-cell class.
1703 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1705 ConfiguredDocument: Set the port number too.
1707 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1708 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1709 Glom document. Presumably this worked sometimes so far because there is a
1710 default port number.
1712 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1714 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1716 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1717 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1718 correct, though we should throw an exception too.
1720 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1722 Fix a addDocuemnt typo.
1724 * src/main/java/org/glom/web/shared/Documents.java
1725 (Documents.addDocuemnt): Rename to addDocument().
1726 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1727 (OnlineGlomServiceImpl.getDocuments): Adapt.
1729 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1731 Slightly improved log output when connection fails.
1733 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1734 (ConfiguredDocument.setUsernameAndPassword):
1735 We don't know for sure if it' the username/password that's wrong, so
1736 rephrase the message.
1737 Also ouput the exception message, though it's generic in this case.
1739 2011-07-08 Ben Konrath <ben@bagu.org>
1743 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1744 added braces to a one line if statement because the Eclipse formatter
1745 was getting confused.
1747 2011-07-07 Ben Konrath <ben@bagu.org>
1749 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1751 These should really be two separate tasks but I counldn't get things to
1752 work with GWT 2.2.0 and Eclipse 3.7.
1756 * .settings/org.eclipse.jdt.core.prefs:
1757 * .settings/org.eclipse.jdt.ui.prefs:
1758 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1759 * .settings/org.eclipse.m2e.core.prefs:
1760 Add new config files. Update current files. Remove references to the
1761 webtools plugins as we're not using any of the webtools features.
1762 * .gitignore: Add logs directory which is created when running with
1764 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1765 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1766 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1768 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1770 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1772 onlineglom.properties: Add explanatory comments.
1774 * src/main/resources/onlineglom.properties: Also change the default user
1775 from ben to someuser, to avoid the risk of people thinking we just
1776 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1778 2011-06-28 Ben Konrath <ben@bagu.org>
1780 Use filename in Log for incorrect passwords.
1782 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1783 getFileName(String) method to get the filename from the URI.
1785 2011-06-28 Ben Konrath <ben@bagu.org>
1787 Add the table name to the URL token for the ListPlace.
1789 This makes things consistent between the DetailsPlace and the
1790 ListPlace. It also allows the the ListPlace to be bookmarked.
1792 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1793 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1795 Remove getDefaultListLayout(). The default layout is now returned
1796 by the getListLayout() method when the table name is an empty string.
1797 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1798 Add table name field. Change to a new ListPlace when the table
1799 has been changed. Use getListLayout() for getting the default
1801 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1802 Add table name field. Set the correct table name in the list box
1803 when loading from bookmark. This corrects a problem for the
1805 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1806 Move table name to super-class (HasSelectableTable). Move document
1807 and table URL keys to super-class in HasSelectableTable.
1808 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1809 Add table name field. Add Tokenizer class with URL key common to
1810 the subclasses (DetailsPlace and ListPlace).
1811 * src/main/java/org/glom/web/client/place/ListPlace.java:
1812 Add table name. Add code to parse the URL token.
1813 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1814 Update ListPlace construction with empty table name string.
1815 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1816 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1817 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1818 Update ListPlace construction with table name string.
1819 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1820 Change defaultTableName field to tableName to reflect how it's now
1821 used. Update the getter and setter methods.
1823 2011-06-28 Ben Konrath <ben@bagu.org>
1825 Enable the table selector in the DetailsView.
1827 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1828 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1830 Remove getDefaultDetailsLayout(). The default layout is now returned
1831 by the getDetailsLayout() method when the table name is an empty
1833 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1834 event handler for table change event. Change to using
1835 getDetailsLayout() for the default details layout.
1836 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1838 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1839 when navigating to the details place.
1841 2011-06-27 Ben Konrath <ben@bagu.org>
1843 Use filename based unique document ID in URL and for RPC.
1845 The document ID is the glom document name with spaces (' ') replaced
1846 with pluses ('+') and without the .glom extension.
1848 This change is mostly a string substitution of 'documentTitle' for
1849 'documentID'. The only code change is the addition of a Documents DTO to get the
1850 filename to document title mappings as indicated below.
1852 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1853 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1854 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1855 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1856 Use Documents DTO to create the document links in the document
1858 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1859 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1860 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1861 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1862 * src/main/java/org/glom/web/client/place/ListPlace.java:
1863 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1864 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1865 * src/main/java/org/glom/web/client/ui/ListView.java:
1866 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1867 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1868 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1869 * src/main/java/org/glom/web/server/Log.java:
1870 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1871 getDocumentTitles() to getDocuments() and return the Documents DTO.
1872 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1873 transferring the filename to document title mappings.
1875 2011-06-25 Ben Konrath <ben@bagu.org>
1877 Make the authentication popup work again.
1879 This bug was introduced when I extracted ConfiguredDocument to its own class.
1881 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1882 correct success / fail status in setUsernameAndPassword().
1884 2011-06-25 Ben Konrath <ben@bagu.org>
1886 Use filename as unique key for configuring database usernames and passwords.
1888 This replaces the use of the Glom document title which could change
1889 depending on the locale. Thanks to Murray Cumming for pointing out this
1892 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1893 * src/main/resources/onlineglom.properties:
1895 2011-06-24 Ben Konrath <ben@bagu.org>
1897 Pass primary key value to DetailsView.
1899 This enables the DetailsView to load the correct data.
1901 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1902 primary key value field and set in constructor. Pass primary key
1903 value to getDetailsData().
1904 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1905 variables for document title and primary key value.
1906 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1907 key value to the DetailsPlace.
1909 2011-06-24 Ben Konrath <ben@bagu.org>
1911 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1913 This allows the primary key to be retrieved by the Details button. This
1914 functionality has not been implemented yet but it's in the works.
1916 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1917 the LayoutGroup result to ListView.setCellTable instead of all of its
1918 fields individually.
1919 * src/main/java/org/glom/web/client/ui/ListView.java:
1920 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1921 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1922 get the primary key for the table.
1923 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1924 index of the primary key in the LayoutGroup accounting for hidden
1925 primary keys. Rename getJavaNumberFormat() to
1926 convertToJavaNumberFormat() for consistency. Cleanup / add some
1928 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1929 field for primary key index and a field to indicate whether the
1930 primary key is hidden or not.
1932 2011-06-23 Ben Konrath <ben@bagu.org>
1934 Rename getTableData methods to getListData.
1936 This is a rename refactor for consistency with other methods.
1938 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1939 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1940 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1941 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1943 2011-06-23 Ben Konrath <ben@bagu.org>
1945 Extract the ConfiguredDocument innerclass into its own class.
1947 This makes the servlet code more object oriented.
1949 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1950 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1951 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1952 new ConfiguredDocument class.
1954 2011-06-21 Ben Konrath <ben@bagu.org>
1956 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1958 This makes things more inline with how libglom works and reduces code
1959 duplication. This refactor lays the groundwork for adding the primary key to
1960 the LayoutGroup object.
1962 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1963 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1964 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1965 Change method names to getListLayout and getDefaultListLayout for
1966 consistency. Use LayoutGroup as the DTO for the list layout instead of
1967 ColumnInfo and LayoutListTable.
1968 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1969 new method names along with the LayoutGroup object for transferring the
1971 * src/main/java/org/glom/web/client/ui/ListView.java:
1972 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1973 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1974 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1976 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1977 Replaced with LayoutGroup.
1978 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1979 expectedResultSize and defaultTableName fields which are needed for
1981 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1982 type field which is needed for the list layout but will also be
1983 useful for the details layout as things progress.
1984 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1985 Make class abstract. Remove the unnecessary
1986 getFormattingHorizontalAlignment method. Add setFormatting method.
1988 2011-06-16 Ben Konrath <ben@bagu.org>
1990 Add scripts for building and installing war.
1992 These will help when updating OnlineGlom but they're also good
1993 supplemental documentation of the build and deployment proceeding.
1995 * utils/build-onlineglom-war.sh: New file.
1996 * utils/install-onlineglom-war.sh: New file.
1998 2011-06-16 Ben Konrath <ben@bagu.org>
2000 Create wrapper class to create consistent log messages.
2002 I wrapped methods in the Log class of gwt-log to add the method names
2003 from the servlet and create consistent formatting of the document title
2004 and table names in the log messages.
2006 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
2007 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
2008 log methods to use methods from wrapped Log class.
2010 2011-06-16 Ben Konrath <ben@bagu.org>
2012 Remove superfluous conditional return.
2014 Thanks to Murray Cumming for pointing this out!
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2018 2011-06-15 Ben Konrath <ben@bagu.org>
2020 Return an ArrayList of LayoutGroups for the Details layout.
2022 This corrects a problem with the details layout as it can have more
2023 than one top level LayoutGroup.
2025 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2026 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2027 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2028 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2029 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2030 with ArrayList of LayoutGroups for the details view layout.
2031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2032 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2033 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2034 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2035 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2036 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2038 2011-06-14 Ben Konrath <ben@bagu.org>
2040 Use cast_dynamic method to determine the libglom LayoutItem type.
2042 This is better than finding the LayoutItem type by using the string
2043 returned from the get_part_type_name() method.
2045 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2047 2011-06-14 Ben Konrath <ben@bagu.org>
2049 Add method names to log entries in the servlet.
2051 This helps when tracking down deployment problems.
2053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2055 2011-06-14 Ben Konrath <ben@bagu.org>
2057 Add data to the DetailsView using a hard-coded primary key value.
2059 The layout and functionality of the DetailsView is not complete. This
2060 is just a checkpoint so the patch doesn't get too big.
2062 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2063 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2064 Add getDetailsData() servlet method.
2065 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2066 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2067 LayoutFields are added to the DetailsView.
2068 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2069 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2070 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2071 take the string for the title instead of the object.
2072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2073 Add implementation getDetailsData() along with some private helper
2075 * src/main/webapp/style.css: Add padding to details-data class. Add a
2076 details-label class with the same padding as the details-data class.
2078 2011-06-03 Ben Konrath <ben@bagu.org>
2080 Use presenter.goTo() to change to the DetailsPlace.
2082 This will make things easier when we need to open the DetailsView with
2083 data specific to the row that was clicked.
2085 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2087 2011-06-02 Ben Konrath <ben@bagu.org>
2089 Add CSS file from mockups.
2091 I'm adding this now because it's going to be useful to have when
2092 developing the DetailsView. The TableSelectionView and ListView aren't
2095 * src/main/webapp/OnlineGlom.html:
2096 * src/main/webapp/style.css:
2098 2011-06-02 Ben Konrath <ben@bagu.org>
2100 Use String.isEmpty() to check for empty string.
2102 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2104 2011-06-02 Ben Konrath <ben@bagu.org>
2106 Display main layout group titles in the DetailsView.
2108 This is the start of the DetailsActivity/DetailsView implementation.
2110 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2111 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2112 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2113 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2114 Get the layout information for the details view from the server and set
2115 the main layout group titles.
2116 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2117 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2118 Add addLayoutGroup() and addLayoutField() methods. This are just
2119 temporary methods for creating the the details view that will change
2121 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2122 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2124 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2125 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2126 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2127 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2128 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2129 Data Transfer Objects that mimic the libglom object structure. These are
2130 used for transferring the details layout but could also be used for
2131 transferring the list layout.
2133 2011-05-27 Ben Konrath <ben@bagu.org>
2135 Reset the AuthenticationPopup when clearing the ListView.
2137 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2139 2011-05-27 Ben Konrath <ben@bagu.org>
2141 Fix problem with onlineglom.properties file loading.
2143 The old way worked in Eclipse but not on the server. Loading the
2144 onlineglom.properties file now works in Eclipse and on the server.
2146 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2148 2011-05-24 Ben Konrath <ben@bagu.org>
2150 Update gwt-log from 3.1.0 to 3.1.2.
2152 Gwt-log 3.1.0 has been marked as depreciated.
2156 2011-05-24 Ben Konrath <ben@bagu.org>
2158 Add comment to ListActivity.goTo() method.
2160 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2162 2011-05-24 Ben Konrath <ben@bagu.org>
2164 Remove FIXME in convertGdkColorToHtmlColour()
2166 The Gdk::Color value returned by libglom is 16-bits per channel on both
2167 64 and 32-bit platforms.
2169 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2171 2011-05-19 Ben Konrath <ben@bagu.org>
2173 Improve performance of initial ListView load.
2175 I removed a round trip to the server for getting the default table name
2176 and then requesting information about that table. This also removes a potential
2177 problem with the table change handler not being setup in time to receive the
2178 table change event from the ListActivity.
2180 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2181 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2182 getDefaultLayoutListTable() method. Improve comments.
2183 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2184 getDefaultLayoutListTable() method instead of firing a table change
2185 event to get the table to load.
2186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2187 implementation of getDefaultLayoutListTable() method.
2188 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2191 2011-05-19 Ben Konrath <ben@bagu.org>
2193 Override toDebugString() in TableChangeEvent.
2195 This is useful to have for debugging.
2197 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2199 2011-05-19 Ben Konrath <ben@bagu.org>
2201 Add a "Back to List" link when at the DetailsPlace.
2203 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2204 Populate the CellTable based on the selected table of the ListBox if
2205 it's set otherwise use the default table. This allows the "Back to
2207 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2208 Remove Place from constructors. Add a setPlace() method. Add
2209 goToPlace() method. Set class as presenter for TableSelectionView.
2210 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2211 Use the same TableSelectionActivity when switching between the List and
2213 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2214 Subclass the new HasSelectableTablePlace. This removes some duplicate
2216 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2217 New class to represent Places that display the TableSelectionView.
2218 * src/main/java/org/glom/web/client/place/ListPlace.java:
2219 Subclass the new HasSelectableTablePlace. This removes some duplicate
2221 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2222 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2223 Add Presenter interface. Add setBackLinkVisible() method. Add
2224 setBackLink() method.
2226 2011-05-18 Ben Konrath <ben@bagu.org>
2228 Enable the "Details" buttons.
2230 Right now only an empty details view is displayed.
2232 * src/main/java/org/glom/web/client/ClientFactory.java:
2233 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2234 Add DetailsView to ClientFactory.
2235 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2236 A basic activity for the details view.
2237 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2238 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2240 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2241 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2243 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2244 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2245 unnecessary super() in constructor.
2246 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2247 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2248 really shouldn't create a new TableSelectionActivity for both the ListPlace
2249 and the DetailsPlace so this should be considered a temporary solution.
2250 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2251 New file. Represents a URL for the details view.
2252 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2253 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2254 A basic details view interface and implementation.
2255 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2256 Enable the "Details" buttons.
2258 2011-05-12 Ben Konrath <ben@bagu.org>
2260 Use a LayoutPanel with multiple display areas for main layout.
2262 This is mostly a refactor in that there are no changes from the user
2263 point of view. These changes are required so that we can swap out the list view
2264 with the details view when the user clicks the "Details" button.
2266 * src/main/java/org/glom/web/client/ClientFactory.java:
2267 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2268 OnlineGlomView. Add TableSelectionView, ListView and
2269 AuthenticationPopup.
2270 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2271 for main layout. Add display regions for main activities. Add
2272 activity manager for for main activities.
2273 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2274 file from parts of the deleted OnlineGlomActivity.
2275 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2276 New file from parts of the deleted OnlineGlomActivity.
2277 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2278 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2279 New files for app wide table change event.
2280 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2281 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2282 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2283 Activity mappers for the main activities replace the deleted app-wide
2285 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2286 Fix a spelling error in he comment.
2287 * src/main/java/org/glom/web/client/ui/ListView.java:
2288 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2289 Renamed from LayoutListView and modified for MVP. This still not a
2290 proper dumb view as prescribed by the MVP pattern but it works for now.
2291 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2292 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2293 New widget stripped out of the deleted OnlineGlomView.
2294 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2295 Remove hack that is fixed by this patch.
2297 2011-05-06 Ben Konrath <ben@bagu.org>
2299 Rename OnlineGlomPlace to ListPlace.
2301 The only change besides the rename is that url will now display #list
2302 instead of #Document.
2304 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2305 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2306 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2307 * src/main/java/org/glom/web/client/place/ListPlace.java:
2308 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2310 2011-05-06 Ben Konrath <ben@bagu.org>
2312 Use Presenter for app navigation.
2314 This is the proper way to deal with Place (URL) changes with the MVP
2317 * src/main/java/org/glom/web/client/ClientFactory.java:
2318 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2319 PlaceHistoryMapper and PlaceHistoryHandler.
2320 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2321 PlaceHistoryMapper and PlaceHistoryHandler.
2322 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2323 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2324 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2325 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2326 Add Presenter interface and setPresenter methods. Rename addHyperLink
2327 to addDocumentLink taking only the document title as a parameter.
2329 2011-04-14 Ben Konrath <ben@bagu.org>
2331 Prompt for db username/password if they haven't been set.
2333 This is implemented with a popup widget that is contained within the
2334 OnlineGlomView and managed by the OnlineGlomActivity.
2336 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2337 methods for checking and setting the database username and password.
2338 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2339 new methods for checking and setting the database username and
2341 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2342 Display authentication popup if the JDBC connection to the database
2343 has not been authenticated.
2344 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2346 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2347 for dealing with the authentication popup.
2348 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2349 Implement the methods for dealing with the authentication popup.
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2351 try to executed queries if the database connection hasn't been
2352 authenticated. Implement methods for checking and setting the
2353 database username and password.
2355 2011-04-12 Ben Konrath <ben@bagu.org>
2357 Make log messages a little clearer.
2359 Add a dash betweeen the document title and the table name.
2361 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2363 2011-04-12 Ben Konrath <ben@bagu.org>
2365 Protect against NPEs when cleaning up database resources.
2367 While this isn't strictly necessary because the exception is caught,
2368 not protecting against the NPEs makes it harder to find the real error
2371 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2373 2011-04-12 Ben Konrath <ben@bagu.org>
2375 Move configuration of the servlet to the constructor.
2377 The servlet will be initialized even if the database authentication
2378 information is not set or correct. I still need to add the UI for prompting
2379 the user for the authentication information when it's required.
2381 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2382 javadocs for getDocumentTitles() method.
2383 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2384 Set error message when RPC fails.
2385 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2386 glom files directory from the configuration file. Try to set the
2387 database authentication information for the specific document if it's
2388 set and works otherwise try to use the global authentication
2389 information set for the directory.
2390 * src/main/resources/onlineglom.properties: Moved from
2391 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2392 Added detailed comments for the new keys.
2394 2011-04-11 Ben Konrath <ben@bagu.org>
2396 Remove unnecessary @Override in DocumentSelectionViewImpl.
2398 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2400 2011-04-11 Ben Konrath <ben@bagu.org>
2402 Remove center alignment in DocumentSelectionView.
2404 The title element is still centred but the document titles and bottom
2405 sentence are both left-aligned.
2407 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2409 2011-04-11 Ben Konrath <ben@bagu.org>
2411 Change 'Demo' naming convention to 'Document'.
2413 This is just a rename refactor with no functional changes to the code.
2415 * src/main/java/org/glom/web/client/ClientFactory.java:
2416 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2417 * src/main/java/org/glom/web/client/OnlineGlom.java:
2418 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2419 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2420 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2421 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2422 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2423 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2424 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2425 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2426 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2429 2011-04-08 Ben Konrath <ben@bagu.org>
2431 Remove FIXME from safeLongToInt() method.
2433 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2436 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2438 2011-04-08 Ben Konrath <ben@bagu.org>
2440 Display an error if no glom documents are found in the specified directory.
2442 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2443 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2444 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2445 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2447 2011-04-08 Ben Konrath <ben@bagu.org>
2449 Add copyright header to one more file ... oops.
2451 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2453 2011-04-08 Ben Konrath <ben@bagu.org>
2455 Add copyright header to files without it.
2457 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2458 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2459 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2460 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2461 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2462 * src/main/java/org/glom/web/shared/GlomField.java:
2464 2011-04-08 Ben Konrath <ben@bagu.org>
2466 Add support for accessing multiple glom documents in the servlet.
2468 This completes the demo selection functionality.
2470 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2471 document title to methods.
2472 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2473 document title to methods.
2474 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2475 Set browser window title when the activity starts. Correct name of
2476 document title variable.
2477 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2478 Set browser window title when the activity starts. Set the table
2479 selector change handler after table selector has been set. Clear the
2480 OnlineGlomView when the activity has been stopped.
2481 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2482 document title as the place token. Use "#Document:" instead of
2483 "#OnlineGlomPlace:" in the URL.
2484 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2485 Change heading to "Online Glom"
2486 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2487 document title in RPC methods.
2488 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2489 setDocumentTitle() method. Add clear() method.
2490 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2491 setDocumentTitle() method. Implement clear() method which removes the
2492 change handler on the ListBox, clears the ListBox and clears the
2494 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2495 Implement methods with document title. Keep track for the configured
2496 glom documents and their corresponding JDBC configurations in a hash
2497 table. This information is retrieved using the document title as the
2498 key in the hash table.
2499 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2500 document title field as it's no longer needed.
2502 2011-04-08 Ben Konrath <ben@bagu.org>
2504 Update the Eclipse JDT configuration.
2506 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2507 methods. Automatically add the copyright header to new files.
2509 2011-04-05 Ben Konrath <ben@bagu.org>
2511 Add new page for demo selection.
2513 This patch adds all the components required to view and start an
2514 OnlineGlom demo by clicking on the desired hyperlink. The user is
2515 able to return to the demo selection page with the browser's back
2516 button. I still need to modify the servlet to work with multiple
2517 documents so all demo links will load the file defined in the
2518 OnlineGlom.properties.
2520 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2521 This is only useful during development so we don't need to save it.
2522 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2523 get a reference to the DemoSelectionView.
2524 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2525 method to get a reference to the DemoSelectionView.
2526 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2527 default view to DemoSelectionView.
2528 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2529 to get glom document titles for glom files in a hard-coded directory.
2530 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2531 method to get glom document titles for glom files in a hard-coded
2533 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2534 Presenter for DemoSelectionView.
2535 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2536 for DemoSelectionView.
2537 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2538 Update for DemoSelectionView.
2539 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2540 Basic 'Place' implementation for the DemoSelectionView.
2541 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2542 The interface for the DemoSelectionView.
2543 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2544 The implementation of the DemoSelectionView.
2545 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2546 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2547 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2548 implementation of method to get glom document titles for glom files
2549 in a hard-coded directory.
2550 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2551 on longer being used.
2552 * src/main/webapp/glom.png: Glom logo.
2554 2011-04-05 Ben Konrath <ben@bagu.org>
2556 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2558 This is the forth and final commit of a refactor that will allow
2559 OnlineGlom to be used with multiple documents.
2561 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2562 Move RPC code from OnlineGlomViewImpl to this class.
2563 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2565 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2566 RPC code to the presenter class (the P in MVP).
2568 2011-04-04 Ben Konrath <ben@bagu.org>
2570 Start moving the existing OnlineGlom code to MVP.
2572 This work is based on the GWT MVP framework that is documented here:
2574 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2576 This is the third commit of a refactor that will allow OnlineGlom to
2577 be used with multiple documents.
2579 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2580 Interface for client factory which is used to get instances of various
2581 classes throughout the app.
2582 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2583 Implementation of client factory.
2584 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2585 initialize the MVP framework.
2586 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2587 New file. Activity manager for the main container widget. This is the
2589 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2590 Maps place (URL) to its corresponding activity.
2591 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2592 New file. This is just a place holder for a generated file.
2593 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2594 New file. Represents the URL for the main Online Glom app.
2595 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2596 for changes in LayoutListViewImpl.
2597 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2598 interface for View. Move code to OnlineGlomViewImpl class.
2599 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2600 file. Implementation of OnlineGlomView.
2601 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2602 Place resources. Use ClientFactoryImpl by default.
2604 2011-04-04 Ben Konrath <ben@bagu.org>
2606 Move View classes to their own package.
2608 This is the second commit of a refactor that will allow OnlineGlom to
2609 be used with multiple documents.
2611 * src/main/java/org/glom/web/client/OnlineGlom.java:
2612 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2613 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2615 2011-04-02 Ben Konrath <ben@bagu.org>
2617 Move UI code from the main module to its own class.
2619 This is the first commit of a refactor that will allow OnlineGlom to be
2620 used with multiple documents.
2622 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2623 references to OnlineGlom to OnlineGlomView.
2624 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2625 OnlineGlomView and instantiate it here.
2626 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2627 represents the main OnlineGlomView with one document.
2629 2011-04-01 Ben Konrath <ben@bagu.org>
2631 Fix formatting of gwt.xml and add DTD.
2633 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2635 2011-03-30 Ben Konrath <ben@bagu.org>
2637 Propperly convert gdkColor string to html colour string.
2639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2641 2011-03-28 Ben Konrath <ben@bagu.org>
2643 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2645 This implementation matches
2646 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2647 readable and is not tied to Swig.
2649 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2651 2011-03-28 Ben Konrath <ben@bagu.org>
2653 Use read-only checkboxes for boolean field types.
2655 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2656 in the CellTable based on the field type. It currently only
2657 distinguishes between boolean and text columns but I'll need to add
2658 support for more types.
2659 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2660 column type in the ColumnInfo object. Add method to convert between the
2661 glom field type enum in ColumnInfo and the glom field type in libglom.
2662 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2664 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2665 getting and setting booleans.
2667 2011-03-25 Ben Konrath <ben@bagu.org>
2669 Don't get the Date twice from the ResultSet.
2671 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2673 2011-03-25 Ben Konrath <ben@bagu.org>
2675 Cleanup code in the servlet.
2677 * TODO: Remove item about row count. Add item about testing row count
2678 query with large number of rows.
2679 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2680 spelling mistakes, change method parameter to be consistent with
2683 2011-03-25 Ben Konrath <ben@bagu.org>
2685 Add server side logging with the gwt-log library.
2687 * .gitignore: Ignore the log file we're now producing.
2688 * TODO: Add a couple TODO item for logging.
2689 * pom.xml: Add gwt-log and log4j as a dependency.
2690 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2691 logging of errors, warnings and some important info.
2692 * src/main/resources/log4j.properties: New file to configure log4j.
2694 2011-03-24 Ben Konrath <ben@bagu.org>
2696 Add a disable button for the Details view.
2698 * src/main/java/org/glom/web/client/LayoutListView.java:
2700 2011-03-22 Ben Konrath <ben@bagu.org>
2702 Use a count query to get the number of rows for the list view pager.
2704 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2706 2011-03-22 Ben Konrath <ben@bagu.org>
2708 Add more TODO information about CellTable pager positioning.
2712 2011-03-19 Ben Konrath <ben@bagu.org>
2714 Add TODO item about CellTable pager positioning.
2718 2011-03-18 Ben Konrath <ben@bagu.org>
2720 Remove unneeded GlomFieldColumn class.
2722 This is just a small code cleanup.
2724 * src/main/java/org/glom/web/client/LayoutListView.java:
2726 2011-03-18 Ben Konrath <ben@bagu.org>
2728 Use cursor mode in the query that gets data for the list view.
2730 I still need to fix the potential memory problem when getting the row
2731 count for the list view.
2733 * TODO: Add note about testing memory usage with large data sets. Add
2734 item about fixing row counting with large data sets.
2735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2736 PostgreSQL JDBC driver into cursor mode when getting data for the
2739 2011-03-15 Ben Konrath <ben@bagu.org>
2741 Remove the GWT Container from the Eclipse build classpath.
2743 The GWT dependencies are set by Maven so this isn't needed.
2747 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2749 Added some earlier mockups to git, but not to the tarball dist.
2751 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2752 Openismus. These hopefully show how we might structure the HTML so that
2753 it can be styled easily with CSS. However, we probably need to adapt them
2754 for the CSS structure that GWT dictates for common widgets.
2756 2011-03-14 Ben Konrath <ben@bagu.org>
2758 Locate OnlineGlom.properties using the ServletContext.
2760 This is required to be able to locate the file in the deployed servlet.
2762 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2763 Configure the database and glom document in in a helper method so
2764 that the ServletContext can be used to locate OnlineGlom.properties.
2765 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2766 src/main/webapp. This is the proper location for .properites files.
2768 2011-03-12 Ben Konrath <ben@bagu.org>
2770 Add note to README about why we're compiling down to obfuscated JavaScript.
2774 2011-03-11 Ben Konrath <ben@bagu.org>
2776 Use properties file to configure servlet.
2778 This allows people to change the glom file path, db username and db
2779 password without recompiling the code.
2781 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2782 * src/main/webapp/OnlineGlom.properties:
2784 2011-03-11 Ben Konrath <ben@bagu.org>
2786 Use table fields in layout list view if the layout list is not defined.
2788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2789 Manually create a LayoutFieldVector for the query builder using the
2790 table fields when a layout list is not defined in the glom file.
2792 2011-03-11 Ben Konrath <ben@bagu.org>
2794 Only show FIXME string for images when there's an image.
2796 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2797 in this change are some small code cleanups.
2799 2011-03-11 Ben Konrath <ben@bagu.org>
2801 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2805 2011-03-11 Ben Konrath <ben@bagu.org>
2807 Correctly set the index of the default table.
2809 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2810 Correctly set the index of the default table. Add commented out example
2813 2011-03-10 Ben Konrath <ben@bagu.org>
2815 Add comment to pom.xml about the previous change.
2817 * pom.xml: Add comment about the deployment issue so that it's obvious
2818 why java-libglom is set to the provided scope.
2820 2011-03-10 Ben Konrath <ben@bagu.org>
2822 Change java-libglom dependency from compile to provided in pom.xml.
2824 Since java-libglom uses jni it can only be loaded once and therefore
2825 must be placed in $CATALINA_HOME/lib and not included in each war.
2826 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2827 More information about this issue can be found in the Tomcat 6 release
2828 notes in the "JNI Based Applications" section:
2830 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2832 * README: Remove note about this issue. Deployment info should really
2833 be on the wiki anyway so I'll add it right now.
2834 * pom.xml: Change java-libglom dependency from compile to provided so
2835 that it's copied in to the packaged war.
2837 2011-03-09 Ben Konrath <ben@bagu.org>
2839 Change to using a neutral locale for currency, date and time formatting.
2841 This solves the problem of currency values being represented without a
2842 space between the currency code and the number (e.g. "EUR5.89" is now
2843 represented as "EUR 5.89"). More work is required when we implement
2844 a locale preference setting.
2846 * TODO: Add note about currency formatting issues with different
2848 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2849 to using the neutral ROOT locale.
2851 2011-03-09 Ben Konrath <ben@bagu.org>
2853 Add support for currency codes that are not ISO 4217 codes.
2855 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2856 the currency code defined in the glom file when it's not 3 characters
2857 long or when Java doesn't recognize the string as an ISO 4217 code.
2859 2011-03-08 Ben Konrath <ben@bagu.org>
2861 Remove test classes, launch configurations and configuration.
2863 The test stuff was getting in the way when creating the war. To make
2864 the war file you can now do 'mvn clean package'. The packaged war file
2865 will be in the target directory.
2867 * .classpath: Remove unused classpathentry for tests and i18n.
2868 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2869 property. Don't run test or i18n goals when packaging the war.
2870 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2875 * OnlineGlomTest-dev.launch:
2876 * OnlineGlomTest-prod.launch:
2877 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2878 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2880 2011-03-07 Ben Konrath <ben@bagu.org>
2882 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2884 These fixes allow me to use 'mvn deploy' to create the war file.
2886 * .classpath: This generated config has been updated by Eclipse. This
2887 change was probably triggered by me updating from Eclipse 3.6.1 to
2889 * .gitignore: Add entry to ignore the directory
2890 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2891 * .project: The generated config has been updated by Eclipse. This
2892 change was probably triggered by me updating from Eclipse 3.6.1 to
2894 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2895 so that Eclipse doesn't complain
2896 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2897 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2898 'tests' directory to 'client' directory. This is the new
2899 gwt-maven-plugin convension.
2900 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2901 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2903 2011-03-07 Ben Konrath <ben@bagu.org>
2905 Add support for horizontal alignment in the LayoutList columns.
2907 * TODO: Remove item about horizontal alignment. Add item about
2908 improvements to ColumnInfo.
2909 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2910 alignment on the columns. Use ColumnInfo RPC object get the column
2911 title and horizontal alignment.
2912 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2913 LayoutListView creation with ColumnInfo RPC object.
2914 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2915 a ColumnInfo object for every LayoutList columnn. Convert the
2916 FieldFormatting.HorizontalAlignment to the correct
2917 ColumnnInfo.HorizontatlAlignment with the new
2918 getColumnInfoHorizontalAlignment helper method.
2919 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2920 to encapsulate column information like alignment and title. This
2921 could be used to set the colour instead of on a per cell field basis.
2922 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2923 column title storage and retrieval with ColumnInfo.
2925 2011-03-04 Ben Konrath <ben@bagu.org>
2927 Add support for column sorting.
2929 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2930 AsynDataProvider to be an anonymous inner class. Use new
2931 getSortedTableData RPC method when column sort is requested. Set all
2932 columns sortable and add an AsyncHandler to activate sorting in the
2934 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2935 method getSortedTableData(). Cleanup other method signatures.
2936 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2937 new method getSortedTableData(). Cleanup other method signatures.
2938 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2939 Implement getSortedTableData() and getTableData() methods by using a
2940 private helper method with the appropriate parameters filled in. Use
2941 user supplied sort clause when supplied, otherwise fall back to
2942 sorting by the primary key. Move destroy() method to be underneath
2943 constructor for readability. Cleanup comments.
2945 2011-03-03 Ben Konrath <ben@bagu.org>
2947 Add support for colour text and colour backgrounds to the layout list cells.
2949 Only the cell backgrounds are coloured which leaves a gap between the
2950 cells that isn't coloured. I need to figure out a way to set
2951 'style=background-colour:' on the whole column rather than just the
2954 * TODO: Add a note about colouring the background of the whole column.
2955 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2956 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2957 render the coloured text and backgrounds. Use GlomField[] for the row type.
2958 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2960 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2961 GlomField[] for the row type.
2962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2963 GlomField[] for the row type. Set the text, text colour and background
2964 colour in the GlomField objects as specified in the glom document. Add
2965 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2966 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2967 the glom field text, foreground colour and background colour.
2969 2011-03-02 Ben Konrath <ben@bagu.org>
2971 Don't display hidden tables in the combo box.
2973 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2975 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2976 code to ignore hidden tables using ArrayLists for the table names and
2978 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2979 tableNames to use ArrayLists instead of String[]. Update getter and setter
2982 2011-03-01 Ben Konrath <ben@bagu.org>
2984 Add support for Date and Time number types.
2986 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2987 Implement formatting for Date and Time values. Change the default glom
2988 file to small business example.
2990 2011-03-01 Ben Konrath <ben@bagu.org>
2992 Add support for formatting glom types as specified in the glom file.
2994 Formatting isn't finished yet - I still need to add support for Date
2997 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2998 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2999 checks for null values in JDBC cleanup code and catch all exceptions
3000 instead of just SQLExceptions.
3001 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
3004 2011-03-01 Ben Konrath <ben@bagu.org>
3006 Use GWT 2.2.0 instead of 2.1.1.
3008 * pom.xml: Change GWT version numbers.
3010 2011-03-01 Ben Konrath <ben@bagu.org>
3012 A few small code cleanups.
3014 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
3016 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
3017 unnecessary object creation in constructor.
3018 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
3019 unnecessary object creation in constructor.
3021 2011-02-28 Ben Konrath <ben@bagu.org>
3023 Add file for TODO list.
3027 2011-02-18 Ben Konrath <ben@bagu.org>
3029 Enable the CellTable Pager when more than 20 rows need to be viewed.
3031 The Pager will automatically become active when the results are larger
3032 than the CellTable size which is currently set to 20 lines.
3034 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
3035 name on debug statment in RPC call in LayoutListDataProvider, add
3036 numRows parameter to LayoutListView constructor, propperly set rowCount
3038 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
3039 name on debug statment in RPC call, use LayoutListTable object in RPC
3040 calls, pass rowCount to LayoutListView.
3041 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
3042 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
3044 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
3045 interface for changes in OnlineGlomService.
3046 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3047 getLayoutListHeaders() to getLayoutListTable() and return
3048 LayoutListTable. Using this object allows me to pass other information
3049 about the LayoutList like the expected number of rows in the result set.
3050 The Connection object from the connection pool is now propperly closed.
3051 Only the requested number of lines are returned to the client in
3053 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
3054 GlomTable and add columnTitles and numRows.
3056 2011-02-18 Ben Konrath <ben@bagu.org>
3058 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
3060 This is a small performance boost. I'll use GlomTable to get the required
3061 layoutlist information.
3063 * src/main/java/org/glom/web/client/OnlineGlom.java:
3064 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3065 * src/main/java/org/glom/web/shared/GlomDocument.java:
3067 2011-02-18 Ben Konrath <ben@bagu.org>
3069 Add option to turn off formatting in JDT formatter preferences.
3071 * .settings/org.eclipse.jdt.core.prefs:
3073 2011-02-18 Ben Konrath <ben@bagu.org>
3075 Rename LayoutList to LayoutListView.
3077 I'm working towards setting things up to easily use MVP when the time
3080 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3082 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3085 2011-02-17 Ben Konrath <ben@bagu.org>
3087 Move LayoutListDataProvider class into LayoutList.java.
3089 * src/main/java/org/glom/web/client/LayoutList.java:
3091 2011-02-17 Ben Konrath <ben@bagu.org>
3093 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3095 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3097 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3098 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3099 from LibGlomServer.java.
3100 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3101 Rename from LibGlomServiceAsync.java.
3102 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3103 Rename from LibGlomServiceImpl.java.
3104 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3106 2011-02-17 Ben Konrath <ben@bagu.org>
3108 Update JDT settings.
3110 * .settings/org.eclipse.jdt.core.prefs:
3112 2011-02-17 Ben Konrath <ben@bagu.org>
3114 Move GWT-RPC objects to shared package (where they should be).
3116 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3117 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3118 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3119 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3120 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3121 org.glom.web.shared package.
3122 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3123 org.glom.web.shared package.
3124 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3125 directory in compilation to javascript.
3127 2011-02-16 Ben Konrath <ben@bagu.org>
3129 Add sort clause to the sql query that grabs table information.
3131 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3132 if one of the columns is a primary key.
3134 2011-02-16 Ben Konrath <ben@bagu.org>
3136 Disable generateAsync feature of gwt-maven.
3138 The generated interface does not correctly match the methods in LibGlomService
3139 and the generated singleton Util inner-class doesn't respect the servlet
3142 * pom.xml: Turn off generateAsync feature.
3143 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3144 with singleton Util inner-class.
3146 2011-02-14 Ben Konrath <ben@bagu.org>
3148 Add LGPL v3 licence notices.
3150 Followed directions listed here:
3151 http://www.gnu.org/licenses/gpl-howto.html
3153 * COPYING: This file is a copy of the GPL v3.
3154 * COPYING.LESSER: This file is a copy of the LGPL v3.
3155 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3157 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3159 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3161 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3163 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3165 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3167 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3170 2011-02-14 Ben Konrath <ben@bagu.org>
3172 Use ArrayList instead of Array in GWT-RPC calls.
3174 Apparently this gives a slight performance boost to the compiled
3177 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3179 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3182 2011-02-14 Ben Konrath <ben@bagu.org>
3184 Access data from a postgres db rather than the example glom file.
3186 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3187 compile down to obfuscated javascript.
3188 * pom.xml: Add c3p0 and postgres JDBC libraries.
3189 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3190 using a postgres db accessed through the c3p0 connection pooling library.
3192 2011-02-14 Ben Konrath <ben@bagu.org>
3194 Update Java formatter settings.
3196 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3198 2011-02-02 Ben Konrath <ben@bagu.org>
3200 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3202 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3204 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3205 the compiled webapp directory that Eclipse uses as we're using Maven now.
3206 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3207 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3209 * pom.xml: Format file, change target Java version to 1.6.
3211 2011-02-02 Ben Konrath <ben@bagu.org>
3213 Add information about a deployment related issue.
3215 * README: Add Notes section with the problem outlined.
3217 2011-02-02 Ben Konrath <ben@bagu.org>
3219 Call Glom.libglom_deinit() when the servlet is shutdown.
3221 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3222 Glom.libglom_deinit() to destroy() method.
3224 2011-01-28 Ben Konrath <ben@bagu.org>
3226 Use generated Util class to get the RPC Async interface.
3228 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3230 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3231 getInstance() method to get a reference to the RPC Async interface.
3232 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3233 getInstance() method to get a reference to the RPC Async interface, remove
3234 the now unused getLibGlomServiceProxy() method.
3236 2011-01-27 Ben Konrath <ben@bagu.org>
3238 Cleanup ChangeLog entry from previous commit.