1 2011-12-20 Murray Cumming <murrayc@murrayc.com>
3 Rename onlineglom.properties to onlineglom.properties.sample.
5 * src/main/resources/onlineglom.properties: Rename to:
6 * src/main/resources/onlineglom.properties.sample:
7 * src/main/resources/README: And add this file explaining that people
8 should rename it back when deploying.
10 2011-12-20 Murray Cumming <murrayc@murrayc.com>
12 Allow choosing the translation in the .properties file.
14 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
15 init(): Read a glom.document.locale value from the configuration file
16 and call Glom's TransatableItem::set_current_locale() method.
17 * src/main/resources/onlineglom.properties: Add a commented-out
18 example of this new setting.
20 It would be better to add &lang=de_DE to the URL, but the current
21 libglom API does not allow us to do this easily. I am working on that.
23 2011-12-19 Murray Cumming <murrayc@murrayc.com>
25 Avoid a crash in parsing of token parameters.
27 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
28 ava: getTokenParams(): Do not crash if a parameter has a key but no
29 value, and ignore parameters with neither.
31 2011-12-17 Murray Cumming <murrayc@murayc.com>
33 History token building/handling: Improve use of token parameters.
35 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
36 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
37 and buildParamsToken(HashMap), for use by derived classes.
38 Make the separator private because it is no longer be needed.
39 * src/main/java/org/glom/web/client/place/DetailsPlace.java
40 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
41 instead of manual string concatenation.
42 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
43 of hardcoded indices and awkward splitting code.
44 * src/main/java/org/glom/web/client/place/ListPlace.java
45 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
46 instead of manual string concatenation.
47 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
48 of hardcoded indices and awkward splitting code.
49 This should fix bug #666420
51 2011-12-16 Murray Cumming <murrayc@murrayc.com>
53 Fix a Navgiation->Navigation typo in the code.
55 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
56 Rename processNavgiation() to processNavigation().
58 2011-12-16 Murray Cumming <murrayc@murrayc.com>
60 Fix a seperator->separator typo in the code.
62 * src/main/java/org/glom/web/client/place/DetailsPlace.java
63 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
64 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
67 2011-12-15 Ben Konrath <ben@bagu.org>
69 Cleanup some comments.
71 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
73 2011-12-14 Ben Konrath <ben@bagu.org>
75 Replace \n with <br/> for multiline text in the details view.
77 Vertical scrollbars are added when needed as well.
79 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
81 2011-12-14 Ben Konrath <ben@bagu.org>
83 Specify the font for document selection links.
85 * src/main/webapp/style.css:
87 2011-12-14 Ben Konrath <ben@bagu.org>
89 Fix bouncy CellTable while paging.
91 This doesn't currently work with related list tables in unselected
94 * src/main/java/org/glom/web/client/ui/list/ListTable.java
96 2011-12-14 Ben Konrath <ben@bagu.org>
98 Revamp the appearance of the document selection page.
100 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
101 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
102 * src/main/webapp/style.css:
104 2011-12-13 Ben Konrath <ben@bagu.org>
106 Set navigation button column to the smallest size possible.
108 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
110 2011-12-13 Ben Konrath <ben@bagu.org>
112 Change OpenButton nomenclature to NavigationButton.
114 Using NavigtionButton makes things more generic. Classes, methods and
115 variables have been changed.
117 This is a rename-only refactor.
119 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
120 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
121 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
122 Renamed from OpenButtonCell.
123 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
124 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
125 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
127 2011-12-12 Ben Konrath <ben@bagu.org>
129 Remove unnecessary String argument in RelatedListTable and ListViewTable.
131 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
132 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
133 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
134 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
136 2011-12-12 Ben Konrath <ben@bagu.org>
138 Update variable names and comments.
140 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
141 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
143 2011-12-12 Ben Konrath <ben@bagu.org>
145 Properly initialize numNonEmptyRows variable to zero.
147 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
148 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
150 2011-12-05 Ben Konrath <ben@bagu.org>
152 Add latest mockup with HTML tables.
154 Features of this mockup:
156 -> HTML table for flowtable
157 -> HTML table for flowtable column
158 -> Example of how related lists would look
159 -> Not using text entries for data items
161 The current version of Online Glom doesn't use HTML tables for the
164 This mockup has been sent to the glom-devel mailing list but it's good
165 to have it here as well.
167 * mockups/details-view-html-tables.html:
169 2011-12-05 Ben Konrath <ben@bagu.org>
171 Remove unnecessary getPrimaryKeyField() method.
173 getPrimaryKeyFieldForTable(String) has been renamed to
174 getPrimaryKeyField(String).
176 * src/main/java/org/glom/web/server/database/DBAccess.java:
177 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
178 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
180 2011-12-05 Ben Konrath <ben@bagu.org>
182 Add string representation of TypedDataItem value to conversion error message.
184 * src/main/java/org/glom/web/server/Utils.java: Logging the error
185 message was extracted into its own method to avoid duplication.
187 2011-12-05 Ben Konrath <ben@bagu.org>
189 Add type checking to navigation primary key value creation.
191 Create navigation primary key only if the expected type from the Glom
192 document matches the type returned by the SQL query.
194 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
196 2011-12-05 Ben Konrath <ben@bagu.org>
198 Rename a couple of variables in RelatedListNavigation.
200 This is a rename-only refactor.
202 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
204 2011-12-05 Ben Konrath <ben@bagu.org>
206 Move getListLayoutGroup() into getListViewLayoutGroup().
208 This removes getListLayoutGroup(). It was only being called by
209 getListViewLayoutGroup().
211 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
213 2011-12-05 Ben Konrath <ben@bagu.org>
215 Remove check for LayoutItem_Portal in list table method.
217 This check is no longer necessary because the method isn't being used
218 to create the LayoutItemPortal DTO.
220 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
222 2011-12-05 Ben Konrath <ben@bagu.org>
224 Properly support related list navigation.
226 Navigation from the "Repository Analyzer -> Package Scans ->
227 Dependencies" related table wasn't working because the primary key for
228 related tables wasn't being set properly. This commit fixes the
231 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
232 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
233 doesn't set the primary key properly for related list tables.
234 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
235 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
236 useful for getting the primary key for list view tables and for related
238 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
239 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
240 Move code to set the primary key for the table from the abstract
241 ListDBAccess class to ListViewDBAccess as it's only correct for list
243 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
244 Properly add primary key to related list tables.
246 2011-12-02 Ben Konrath <ben@bagu.org>
248 Properly set the horizontal alignment of fields.
250 This fix is for both the list tables and the details view.
252 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
253 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
254 to set the horizontal alignment of fields.
256 2011-12-02 Ben Konrath <ben@bagu.org>
258 Display currency codes in the details view.
260 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
262 2011-12-02 Ben Konrath <ben@bagu.org>
264 Avoid duplicate JNI call.
266 JNI is not as efficient as pure Java and this is an easy (and small)
269 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
270 Use previously retrieved value for whereClauseToTableName instead of
273 2011-12-02 Ben Konrath <ben@bagu.org>
275 Rename a couple of variables in RelatedListNavigation.
277 This is a rename-only refactor.
279 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
281 2011-12-02 Ben Konrath <ben@bagu.org>
283 Indicate clearly that a mismatched primary key type is a bug.
285 * src/main/java/org/glom/web/server/Utils.java: Change log level from
286 warning to error. Add 'This is a bug.' to message.
288 2011-12-02 Ben Konrath <ben@bagu.org>
290 Update / fix some comments.
292 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
294 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
296 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
297 Fix comments. Add some TODOs.
299 2011-12-02 Ben Konrath <ben@bagu.org>
301 Enable navigation to details view with string primary key from related list.
303 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
304 Create a text primary key value when return type of result is
305 java.sql.Types.VARCHAR.
307 2011-12-02 Ben Konrath <ben@bagu.org>
309 Use checkboxes for booleans in the details view.
311 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
313 2011-12-01 Ben Konrath <ben@bagu.org>
315 Improve performance of related list height calculation.
317 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
318 Put code to calculate the expected height in a static initializer so
319 that that it's only called once.
321 2011-12-01 Ben Konrath <ben@bagu.org>
323 Show related list tables in notebooks (again).
325 Calculate the height of the related list tables so the Notebook can be
326 set the correct height. The height of the related list table is also needed by
327 FlowTable to be able decide how to create the layout.
329 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
330 and set the Portal height based on the height of the related list
331 table and the Portal container.
332 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
333 Add method to calculate the height of the related list tables.
334 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
335 * src/main/webapp/style.css: Add css class for Pager. This is needed to
336 calculate the height of the Pager widget.
338 2011-12-01 Ben Konrath <ben@bagu.org>
340 Use CellTable API for table property instead of setting style on Element.
342 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
344 2011-12-01 Ben Konrath <ben@bagu.org>
346 Make ListViewTable and RelatedListTable a consistent height.
348 The tables are now a consistent height regardless of the contents of
349 the table. A hidden button is added to empty rows to ensure that the
350 height of these rows will match the height of rows with data.
352 A navigation button column is now added to every table. The width of
353 the navigation column is set to 0px when a RelatedListTable shouldn't
354 have navigation buttons. This maintains the a consistent row height in
355 tables that don't show the navigation buttons.
357 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
358 navigation column when not needed.
359 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
360 arguments for navigation button to constructor of ListViewTable.
361 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
362 hidden button for empty data rows.
363 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
364 arguments for navigation button to constructor.
365 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
366 create navigation buttons. Add hideNavigationButtons() method.
367 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
368 arguments for navigation button to constructor.
370 2011-12-01 Ben Konrath <ben@bagu.org>
372 Use 'visibility: hidden' in Utils.getWidgetHeight().
374 This is better choice because hidden elements are invisible, don't
375 respond to events and are not part of the tab order. They will,
376 however, take up space which is required to be able to calculate the
377 height of the widget.
379 * src/main/java/org/glom/web/client/Utils.java:
381 2011-12-01 Ben Konrath <ben@bagu.org>
383 Use Utils.getWidgetHeight() in FlowTable.
385 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
387 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
389 2011-12-01 Ben Konrath <ben@bagu.org>
391 Put the details css class name on the correct table column.
393 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
395 2011-11-30 Ben Konrath <ben@bagu.org>
397 Update for java-libglom API change.
399 The getters and setters on FieldFormatting and NumericFormat were
400 changed to remove the 'M'.
402 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
404 2011-11-29 Ben Konrath <ben@bagu.org>
406 Only allow RelatedListTables in Portals.
408 * src/main/java/org/glom/web/client/ui/details/Portal.java:
410 2011-11-29 Ben Konrath <ben@bagu.org>
412 Only create a contents panel for Portals when title is being set.
414 * src/main/java/org/glom/web/client/ui/details/Portal.java:
416 2011-11-29 Ben Konrath <ben@bagu.org>
418 Set TabLayoutPanel height based on calculated height its widgets.
420 This is a potential fix for this bug:
422 https://bugzilla.gnome.org/show_bug.cgi?id=665133
424 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
426 2011-11-29 Ben Konrath <ben@bagu.org>
428 Align details field labels and data with the Open buttons.
430 * src/main/webapp/style.css:
432 2011-11-29 Ben Konrath <ben@bagu.org>
434 Remove unnecessary <div> in the Notebook widget.
436 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
437 method to get container FlowPanel (<div>).
438 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
439 initWidget() method directly on the TabLayoutPanel widget instead of
440 Group's container widget.
442 2011-11-29 Ben Konrath <ben@bagu.org>
444 Don't add group titles for Portals in Notebooks.
446 This reverts the previous patch and fixes a bug I introduced with
447 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
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 unused boolean argument in Portal constructor.
458 * src/main/java/org/glom/web/client/ui/details/Group.java:
459 * src/main/java/org/glom/web/client/ui/details/Portal.java:
461 2011-11-28 Ben Konrath <ben@bagu.org>
463 Remove hack for glom 1.18 style glom files.
465 * src/main/java/org/glom/web/client/ui/details/Group.java:
466 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
467 * src/main/java/org/glom/web/client/ui/details/Portal.java:
469 2011-11-28 Ben Konrath <ben@bagu.org>
471 Use Gda Value version of primary key to log result too large error.
473 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
475 2011-11-28 Ben Konrath <ben@bagu.org>
477 Don't use TypedDataItem.getText() for Unknown types from the URL.
479 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
480 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
481 instead of getText().
482 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
483 String field and getUnknown() method.
485 2011-11-28 Ben Konrath <ben@bagu.org>
487 Log an error message when the java-libglom .so is not present.
489 The error message was being set in the exception but not logged.
491 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
493 2011-11-28 Ben Konrath <ben@bagu.org>
495 Ignore LayoutItem_CalendarPortals.
497 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
498 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
500 2011-11-28 Ben Konrath <ben@bagu.org>
502 Extract method for creating the LayoutItemPortal DTO.
504 Just breaking the code up into smaller chunks.
506 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
508 2011-11-28 Ben Konrath <ben@bagu.org>
512 This should have been added with the refactor. Oops!
514 * src/main/java/org/glom/web/shared/TypedDataItem.java:
516 2011-11-28 Ben Konrath <ben@bagu.org>
518 Create primary key value from URL string using type from Glom document.
520 See this bug, comments 19 - 25:
522 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
524 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
525 create a TypeDataItem for the primary key here when loading from a
526 URL. Show the same string for the primary key value as was received
527 from the URL string (when loading from a URL).
528 * src/main/java/org/glom/web/server/Utils.java: Update method for
529 creating the Gda Value from the TypeDataItem to properly deal with
530 creating a Gda Value based on the Glom document type for the primary
531 key value string when loading from a URL.
532 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
533 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
534 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
535 Update for changed method name.
537 2011-11-27 Ben Konrath <ben@bagu.org>
539 Rename PrimaryKeyItem to TypedDataItem.
541 The name PrimaryKeyItem suggests what the class should be used for.
542 TypedDataItem is a neutral name that describes the class better.
544 This is a rename-only refactor.
546 * src/main/java/org/glom/web/client/OnlineGlomService.java:
547 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
548 * src/main/java/org/glom/web/client/Utils.java:
549 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
550 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
551 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
552 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
553 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
554 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
555 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
556 * src/main/java/org/glom/web/server/Utils.java:
557 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
558 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
559 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
560 * src/main/java/org/glom/web/shared/NavigationRecord.java:
562 2011-11-25 Ben Konrath <ben@bagu.org>
564 Improve Gda Value conversion from PrimaryKeyItem.
566 The value from the PrimaryKeyItem is only used if its type match the
567 type from the glom document.
569 * src/main/java/org/glom/web/server/Utils.java:
571 2011-11-25 Ben Konrath <ben@bagu.org>
573 Manually check if the java-liblgom .so is visible to the JVM.
575 It seems that Tomcat has problems when a static initializer throws an
576 exception. This check is done before the first method call into
577 java-libglom so that execution doesn't continue if the .so is not
580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
582 2011-11-25 Ben Konrath <ben@bagu.org>
584 Improve browser configuration error messages.
588 https://bugzilla.gnome.org/show_bug.cgi?id=662792
590 * src/main/java/org/glom/web/client/OnlineGlomService.java:
591 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
592 getConfigurationErrorMessage() method.
593 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
594 Get and display a specific configuration error message when no Glom
596 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
597 Implement getConfigurationErrorMessage() method. Surround configuration
598 code in the init() method with a try/catch block. This allows the
599 errors to be caught while keeping the servlet available to retrieve the
600 configuration error message.
602 2011-11-25 Ben Konrath <ben@bagu.org>
604 Don't use Strings to hold primary key values.
606 The primary key values are now held in a new data object
607 (PrimaryKeyItem) that holds type information and the primary key value
608 using the correct type.
610 * src/main/java/org/glom/web/client/OnlineGlomService.java:
611 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
612 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
613 PrimaryKeyItem instead of String to hold the primary key value.
614 * src/main/java/org/glom/web/client/Utils.java: Remove
615 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
616 PrimaryKeyItem based on the GlomFieldType and the DataItem.
617 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
618 PrimaryKeyItem instead of String to hold the primary key value. Load
619 document selection page when the documentID has not been set correctly.
620 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
621 DetailsPlace -> URL and URL -> DetailsPlace conversion with
623 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
624 Return empty string for URL instead of "null".
625 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
626 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
627 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
628 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
629 PrimaryKeyItem instead of String to hold primary key values.
630 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
631 PrimaryKeyValue to a Gda Value.
632 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
633 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
634 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
635 Replace temporary database access code that uses the PrimaryKeyValue to
636 Gda Value conversion.
637 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
638 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
639 PrimaryKeyItem instead of String.
640 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
641 hold primary key values.
643 2011-11-24 Ben Konrath <ben@bagu.org>
645 Use newly added java-libglom API to create queries.
647 This isn't finished. I still need to stop using Strings for primary key
648 values in the client code.
650 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
651 libglom to use fake connections so that retrieving the query string will
653 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
654 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
655 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
656 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
657 Use the newly added libglom sql methods and classes to create the
658 query. Add temporary hack to convert primary value strings to Gda
661 2011-11-23 Ben Konrath <ben@bagu.org>
663 Don't explicitly set the height of Portals.
665 See comments 6 - 10 of this bug for details:
667 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
669 * src/main/java/org/glom/web/client/ui/details/Portal.java:
671 2011-11-23 Ben Konrath <ben@bagu.org>
673 Use an HTML table instead of CSS for the FlowTable layout.
675 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
676 GWT's FlexTable to implement the FlowTable.
677 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
679 2011-11-18 Ben Konrath <ben@bagu.org>
681 Add boolean example to HTML table mockup.
683 * mockups/details-view-html-tables-text-entries.html:
685 2011-11-17 Ben Konrath <ben@bagu.org>
687 Ensure the pager buttons are always visible for related lists.
689 To accomplish this, I've turned off text wrapping in the list view and
690 related list tables for both the header and data text. The related list
691 table now has a fixed layout so the it doesn't overflow its container.
692 This is required to ensure that the cell text is clipped when it
693 overflows the cell and an ellipsis is added to the right side of the
694 cell when text is clipped.
696 A fixed table layout for the related list table in the details view
697 seems what we want for the details view anyway, so the side-effect is
700 The ellipsis will only be displayed in Firefox >= 7.
704 https://bugzilla.gnome.org/show_bug.cgi?id=662930
706 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
707 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
708 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
710 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
711 Set the 'table-layout: fixed' CSS property to the related list table.
712 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
713 'white-space: nowrap;' CSS property on both the list view and the
716 2011-11-16 Ben Konrath <ben@bagu.org>
718 Rework the fix for empty notebook tab labels.
720 Setting the empty group titles with its name caused problems for the
721 details layout. Instead of using libglom's
722 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
723 to the client when the title is empty. This allows the Notebook to use
724 the name when the title is empty without affecting anything else.
726 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
727 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
729 2011-11-16 Ben Konrath <ben@bagu.org>
731 Set group titles with name when title is empty.
733 This fixes a problem with an empty notebook tab label in the Lesson
734 Planner document. The forth tab in the notebook should be "Internet":
736 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
738 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
739 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
742 2011-11-16 Ben Konrath <ben@bagu.org>
744 Remove whitespace from the configured username properties.
746 This assumes that usernames won't have whitespace at the beginning
747 or end. But I think this is a reasonable assumption.
749 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
750 String.trim() to remove the whitespace from the username properties.
752 2011-11-15 Ben Konrath <ben@bagu.org>
754 Add details view mockup with HTML tables and text entries.
756 This is from the attachment on this bug:
758 https://bugzilla.gnome.org/show_bug.cgi?id=663109
760 * mockups/details-view-html-tables-text-entries.html:
762 2011-11-15 Ben Konrath <ben@bagu.org>
764 Add space between the columns of the flow table.
768 https://bugzilla.gnome.org/show_bug.cgi?id=662918
770 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
771 space between columns in the flow table.
773 2011-11-15 Ben Konrath <ben@bagu.org>
775 Add backup files to the .gitignore.
777 * .gitignore: Ignore files that end with ~.
779 2011-11-09 Ben Konrath <ben@bagu.org>
781 Use latest release of gwt-log.
783 Gwt-log releases are now being submitted to the maven central
784 repository so manual installation of the jar is no longer required.
786 * pom.xml: Update version and groupId of gwt-log dependency.
788 2011-10-31 Ben Konrath <ben@bagu.org>
790 Don't use GWT numeric formatting to override the glom currency formatting.
792 Currencies are now displayed like they are in Glom. See this bug:
794 https://bugzilla.gnome.org/show_bug.cgi?id=646216
796 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
798 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
799 currency code to constructor and set it when the cell is rendered.
800 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
801 currency code to the constructor of the NumericCell.
803 2011-10-27 Ben Konrath <ben@bagu.org>
805 Require the latest release of java-libglom (1.17.4).
809 2011-10-26 Ben Konrath <ben@bagu.org>
811 Add style to Notebook that matches current theme.
813 It's not the best style in the world but it's better than the default.
815 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
816 padding at the bottom of the child widgets.
817 * src/main/webapp/style.css: Add style for the Notebook.
819 2011-10-26 Ben Konrath <ben@bagu.org>
821 Move servlet initialization code to overridden init method.
823 This is half of the solution to getting proper error messages
824 displayed when configuration errors occur. Here's the relevant bug:
826 https://bugzilla.gnome.org/show_bug.cgi?id=662792
828 The rest of the solution involves surrounding the init method with a
829 try/catch block and setting a global variable with the error /
830 exception. A new async method should be created to retrieve and display
831 the error message / exception.
833 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
834 code from constructor to init method adding exceptions as needed.
836 2011-10-26 Ben Konrath <ben@bagu.org>
838 Add script to monitor and restart tomcat if required.
840 * utils/check-and-recover-tomcat.py: New file.
842 2011-10-26 Ben Konrath <ben@bagu.org>
844 Display the correct number of data items in the pager.
848 https://bugzilla.gnome.org/show_bug.cgi?id=661441
850 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
851 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
852 The implementation is the same for both tables: Keep track of the
853 number of non-empty rows and fire and RowCountChangeEvent after the data has
855 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
856 custom Pager class that subclasses SimplePager to handle displaying
857 the correct number when empty rows have been added.
859 2011-10-26 Ben Konrath <ben@bagu.org>
861 Correct error in previous commit.
863 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
864 eventBus parameter from listView.setCellTable().
866 2011-10-26 Ben Konrath <ben@bagu.org>
868 Fix error in TODO comment.
870 * src/main/java/org/glom/web/client/activity/ListActivity.java:
872 2011-10-24 Ben Konrath <ben@bagu.org>
874 Create Notebook widgets to the details view.
876 This isn't finished just yet - I still need to create a reasonable
877 style to match the current theme.
879 * src/main/java/org/glom/web/client/Utils.java: Add method for
880 calculating the height of a widget. This is used in the Notebook class.
881 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
882 new constructor method in Group.
883 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
884 method for creating child widget that can be used by subclasses
885 like Notebook. New constructor that allows disabling the group
886 titles - Notebooks don't set a group title for their child groups.
887 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
888 to make Notebooks using GWT's TabLayoutPanel.
889 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
890 constructor that allows disabling the group titles.
891 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
892 LayoutItemNotebook DTO.
893 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
894 DTO for Notebooks. It's just an empty class for now but we might need
895 it to transfer some specific information in the future.
897 2011-10-21 Ben Konrath <ben@bagu.org>
899 Add navigation buttons to related list tables.
901 * src/main/java/org/glom/web/client/OnlineGlomService.java:
902 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
903 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
904 method getSuitableRecordToViewDetails() for getting the table name
905 and primary key value for related list navigation buttons.
906 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
907 private cell renderer class to get the navigation information for
908 related list tables from the server. Extract the navigation
909 processing code from the details cell navigation and use it for the
910 related list navigation as well.
911 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
912 cell renderer class for the details open buttons. This was needed
913 because the related list navigation buttons and the list view
914 navigation buttons need to react differently when clicked.
915 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
916 the onEnterKeyDown() method because it's now overriden in the
917 subclasses that are specific to the related list tables and the list
919 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
920 the vertical size a little because the buttons add a bit of vertical
921 space to table. This is not a perfect solution because the vertical
922 size of with table fewer than 5 rows will be a little smaller.
923 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
924 changes in how navigation buttons are handled.
925 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
926 getSuitableRecordToViewDetails() using the new RelatedListNavigation
927 database access object.
928 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
929 to find the portal for a given relationship name from
930 RelatedListDBAccess. Add method to find a primary key field for a
932 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
933 Move code to find the portal for a given relationship name to
935 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
936 New file: database access object for getting the related list
937 navigation information (the table name and the primary key value).
938 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
939 DTO for transferring a table name to navigate to and a primary key
941 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
942 boolean and getter/setter to specifies if the related list should add
945 2011-10-24 Murray Cumming <murrayc@murrayc.com>
947 Use the master branch of java-libglom
949 * pom.xml: Depend on java-libglom 1.19 instead.
951 This is the master branch. See also the libglom-1-18 branch.
953 2011-10-11 Ben Konrath <ben@bagu.org>
955 Enable the open navigation button when the data has been set.
957 This avoids having active buttons that don't do anything when the data
960 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
962 2011-10-11 Ben Konrath <ben@bagu.org>
964 Use IsWidget interface for FlowTableItem.
966 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
967 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
969 2011-10-11 Ben Konrath <ben@bagu.org>
971 Remove GWT styling from open button in details view.
973 There are still some issues with how the details cell is arranged but
974 this should be made to match Glom 1.20. I'm going to leave fixing this
975 until I have Glom 1.20 up and running.
977 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
978 style name on open button.
979 * src/main/webapp/style.css: Move and edit details-navigation class.
980 Re-arrange some classes to make them appear in the same order as the
983 2011-10-07 Ben Konrath <ben@bagu.org>
987 * .gitignore: Ignore new cache directory.
988 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
989 * pom.xml: Change GWT and maven plugin to 2.4.0.
990 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
992 * src/main/java/org/glom/web/client/ClientFactory.java:
993 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
994 * src/main/java/org/glom/web/client/OnlineGlom.java:
995 Update source for API changes.
996 * utils/build-onlineglom-war.sh: Remove cache directory before the
999 2011-10-07 Ben Konrath <ben@bagu.org>
1001 Add navigation buttons in the details view.
1003 This isn't finished but I thought I'd commit what I have as it's a
1004 pretty good start. I still need to:
1006 1. Change the style so that it fits better into the current theme
1007 2. Adjust the details cell to expand as much as possible.
1009 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1010 click handlers to navigation buttons in the DetailsCells. Create a
1011 refreshData() method to get just the data from the server without the
1013 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1014 Update the tableSelector and browser title when the table name
1015 changes without using the tableSelector.
1016 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1017 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1018 getDetailsCells() to getCells(). Update variable names.
1019 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
1020 method to set click handler on navigation button. Rename a few
1021 variables. Add navigation buttons where needed.
1022 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
1023 variables and methods.
1024 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
1025 navigation boolean and navigation table as required in the
1026 LayoutItemField DTO.
1027 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1028 variables for navigation along with getter/setter methods.
1030 2011-10-07 Ben Konrath <ben@bagu.org>
1032 Rename Field to DetailsCell.
1034 This is a refactor-only commit. No functionality has been added or
1037 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1038 Update variable and method names.
1039 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1040 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1041 variable and method names.
1042 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1044 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1045 variable and method names.
1047 2011-10-07 Ben Konrath <ben@bagu.org>
1049 Create separate methods for layout and data the details view.
1051 This is a refactor-only commit. No functionality has been added or
1054 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1055 private methods: setData(), createLayout().
1057 2011-10-07 Ben Konrath <ben@bagu.org>
1059 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1061 This is part of a change to get navigation buttons in the details view
1062 but it should have been done this way from the start.
1064 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1065 for method name change in TableSelectionView.
1066 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1067 Create TableChangeEvent and set the browser title using the
1068 TableSelectionView API.
1069 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1070 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1071 Change getSelectedTable() to getSelectedTableName(). Add
1072 getSelectedTableTitle().
1074 2011-10-07 Ben Konrath <ben@bagu.org>
1076 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1078 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1080 2011-10-07 Ben Konrath <ben@bagu.org>
1082 Update TableChangeEvent to use newTableName naming convention.
1084 This makes the class more consistent with GWT naming conventions.
1086 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1087 Update for method name change in TableChangeEvent.
1088 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1089 for method name change in TableChangeEvent.
1090 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1091 newTableName variable and getter method. Make toDebugString()
1094 2011-09-30 Ben Konrath <ben@bagu.org>
1096 Disable the pager in the list tables when the data row count is less than the minimum.
1098 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1099 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1101 2011-09-30 Ben Konrath <ben@bagu.org>
1103 Add empty rows to the end of related list and list view tables.
1105 I also extracted the cell rendering classes from the ListTable because
1106 the code was becoming a little crazy with all the anonymous inner
1107 classes. My plan is to use these cell rendering classes in the details
1108 view as well so this refactor will be needed for that change.
1110 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1111 set the row count in related list tables if the data has more rows
1112 than the minimum number of rows visible.
1113 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1114 row count in list view tables if the data has more rows than the
1115 minimum number of rows visible.
1116 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1117 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1119 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1120 for rendering TYPE_NUMERIC cells. The code was extracted from the
1122 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1123 class for rendering cells with buttons in list views. The code was
1124 extracted from the ListTable class.
1125 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1126 for rendering TYPE_TEXT cells. The code was extracted from the
1128 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1129 Add empty rows to the end of the data if required. Implement
1130 ListTable.getMinNumVisibleRows().
1131 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1132 cell renderer code to public classes. Return null in
1133 Column.getValue() for empty rows. Add new abstract method:
1134 getMinNumVisibleRows(). Move code to set the row count of the list view
1135 table to ListViewImpl.
1136 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1137 empty rows to the end of the data if required. Implement
1138 ListTable.getMinNumVisibleRows().
1141 2011-09-27 Ben Konrath <ben@bagu.org>
1143 Use GWT.log for client-side debugging statements.
1145 These are optimized out when deployed so I should have used this method
1146 in the first place. These statements will eventually be replaced with some sort
1147 of notification in the browser.
1149 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1150 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1151 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1152 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1153 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1155 2011-09-27 Ben Konrath <ben@bagu.org>
1157 Put tableselector on the right, back to list link on right.
1159 The idea is that the table selector is acting like a label for the
1160 currently displayed table so it should be placed below the document title. This
1161 puts the table title in a similar position to where it is in Glom.
1163 * mockups/details-contacts.html:
1164 * mockups/details-projects.html:
1165 * mockups/listview-contacts.html:
1166 * mockups/listview-projects.html:
1167 * mockups/style.css:
1168 Update mockups to match how the interfaces currently look.
1169 * src/main/webapp/style.css: Swap positions of backlink with the table
1170 selector. Add some space on the left side of the table selector to
1171 line things up with the document title.
1173 2011-09-27 Ben Konrath <ben@bagu.org>
1175 Add field colouring to details view.
1177 This change re-works how field colouring works. The colour formatting
1178 information is now set to the client with the layout information instead of
1179 with the data. This eliminates the need to send the same colour strings for
1180 data in list view column when colour information is set.
1182 In order to set an alternate colour for negative numeric values, the
1183 number is now sent to client and formatted with the GWT NumberFormat class.
1185 This change also fixes:
1187 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1189 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1190 internationalization framework which is needed for client side numeric
1192 * src/main/java/org/glom/web/client/Utils.java: New file for some
1193 client static utility methods.
1194 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1195 the DataItem object to the Field class. Use a utility method to
1196 create the foreignKeyValue string.
1197 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1198 alignment and text colours in the constructor. Add setData(DataItem)
1199 method. Remove setText(String) method.
1200 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1201 colour information to GlomTextCell. Create and use GlomNumberCell for
1202 rendering numbers. Use utility method to get the string for the
1203 primary key of the key provider. Re-work how the horizontal alignment
1205 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1206 formatting to layout information. Methods for converting the libglom
1207 formatting information were moved from DBAccess.
1208 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1209 numeric formatting (it's now done on the client side). Don't set text
1210 colours in DataItem. Move libglom formatting conversion methods to
1212 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1213 getters/setters for text colour information.
1214 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1215 for transferring the libglom NumericFormat information to the client.
1216 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1217 and getters/setters for: GlomNumericFormat, background colour and
1218 foreground colour strings.
1220 2011-09-26 Ben Konrath <ben@bagu.org>
1222 Simplify code that iterates through the LayoutGroup.
1224 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1226 2011-09-26 Ben Konrath <ben@bagu.org>
1228 Accept Eclipse formatting for OnlineGlomServiceAsync.
1230 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1232 2011-09-26 Ben Konrath <ben@bagu.org>
1234 Don't use the ListDBAccess classes to get the primary key layout information.
1236 This was causing a bug where the wrong index for the hidden primary key
1237 was being sent to the client.
1239 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1240 primary key while creating the LayoutGroup DTO. Create a
1241 LayoutItemField DTO for hidden primary keys. Don't use the
1242 RelatedListDBAccess because it was only used for getting the primary
1244 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1245 access modifier from public to protected for getPrimaryKeyField() and
1246 getPrimaryKeyLayoutItemField().
1247 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1248 abstract method getExpectedResultSize() because RelatedListDBAccess
1249 doesn't have enough info to implement it.
1250 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1251 Remove @Override for getExpectedResultSize().
1252 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1253 Remove method getExpectedResultSize().
1255 2011-09-23 Ben Konrath <ben@bagu.org>
1257 Log which layout (list or details) the ignored item is from.
1259 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1261 2011-09-23 Ben Konrath <ben@bagu.org>
1263 Remove annotations that turn off code formatting in DataItem.
1265 * src/main/java/org/glom/web/shared/DataItem.java:
1267 2011-09-23 Ben Konrath <ben@bagu.org>
1269 Rename GlomField to DataItem and update associated methods.
1271 This is a rename-only refactor. No functionality has been added or
1274 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1275 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1276 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1277 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1278 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1279 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1280 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1281 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1282 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1283 * src/main/java/org/glom/web/server/database/DBAccess.java:
1284 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1285 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1286 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1287 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1288 * src/main/java/org/glom/web/shared/DataItem.java:
1289 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1290 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1292 2011-09-23 Ben Konrath <ben@bagu.org>
1294 Rename GlomDocument to DocumentInfo and update associated methods.
1296 This is a rename-only refactor. No functionality has been added or
1299 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1300 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1301 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1302 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1303 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1304 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1305 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1307 2011-09-20 Ben Konrath <ben@bagu.org>
1309 Require java-libglom 1.17.3.
1311 This picks up the fix for the seg fault problem with the Scenes table
1312 in the Openismus Film Manager example.
1316 2011-09-20 Ben Konrath <ben@bagu.org>
1318 Change the way sort clause is added for primary key when no sort clause is requested.
1320 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1321 before the sort clause is created. When a sort clause is not requested, the
1322 sort clause is created by finding the primary key in the LayoutFieldVector
1325 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1327 2011-09-20 Ben Konrath <ben@bagu.org>
1329 Log error message if no documents are found in the configured directory.
1331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1332 Extract the glom file extension string to a private static final class
1333 variable (mostly as syntactic sugar). Accept a minor formatting change.
1334 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1335 the example glom.document.directory configuration property to make it
1336 more clear that it can any directory, not just the home directory.
1338 2011-09-18 Ben Konrath <ben@bagu.org>
1340 Add related lists to details view.
1342 The related list table has support for paging and sorting just like the
1343 table in the list view.
1345 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1346 SQL queries for the related list tables.
1347 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1348 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1349 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1350 Rename getList methods to getListView and add comments. Remove
1351 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1352 it being unused. Add methods: getDetailsLayoutAndData(),
1353 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1354 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1355 Create the layout and set the data for the fields in one async call
1356 instead of two. Create related lists where appropriate.
1357 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1358 for method name changes in OnlineGlomService.
1359 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1360 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1361 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1363 * src/main/java/org/glom/web/client/ui/ListView.java:
1364 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1365 tableName from setCellTable(). Create a ListViewTable instead of
1367 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1368 represent a data field in the details view.
1369 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1370 from addDetailsCell() to Field class. Keep track of the Fields and
1371 Portals in the details view.
1372 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1373 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1374 and add a method to get it. Add method to set the contents of the
1376 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1377 New class for related list tables. This class has the data provider
1378 for the related list table.
1379 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1380 abstract class which is the base class for the ListViewTable and the
1382 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1383 New class for list view tables. This class has the data provider for
1384 the list view table.
1385 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1386 methods for related list tables. Add more information to the
1387 LayoutItemField and LayoutItemPortal DTOs.
1388 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1389 Remove debugging print statement.
1390 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1391 Remove debugging print statements. Add primary key field to SQL count
1393 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1394 Remove unnecessary LayoutFieldVector parameter from
1395 getResultSizeOfSQLQuery() method.
1396 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1397 New class for related list table database access.
1398 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1399 class that is a wrapper DTO for details view layout and data.
1400 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1401 new 'fromField' string to this DTO.
1402 * src/main/webapp/style.css: Remove bottom margin and override top
1405 2011-09-15 Ben Konrath <ben@bagu.org>
1407 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1409 This sets things up to make it easier to add the data retrieval for
1410 related lists (portals). No user noticeable changes were made with
1413 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1414 class has the code to retrieve the layouts and access the
1415 database using the new database helper classes.
1416 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1417 Most of the functionality has been removed from this class. This
1418 class now represents the public interface for the client side
1419 code. It also deals with configuring the servlet and cleaning
1420 things up when the servlet is stopped.
1421 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1422 of static methods into this utility class.
1423 * src/main/java/org/glom/web/server/database/DBAccess.java:
1424 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1425 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1426 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1427 These classes have the database retrieval code. The class hierarchy
1428 has been setup to make it easy to reuse code for similar
1431 2011-09-06 Ben Konrath <ben@bagu.org>
1433 Create separate classes for list table code and the data provider.
1435 As part of this refactor, I also split up the code a bit to make it
1438 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1439 table code to two new classes (below).
1440 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1441 with code from ListViewImpl.
1442 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1443 New file with code from ListViewImpl.
1445 2011-09-06 Ben Konrath <ben@bagu.org>
1447 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1449 This fixes the LayoutItemPortal DTO to match the libglom layout object
1452 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1454 2011-09-01 Ben Konrath <ben@bagu.org>
1456 Set title of Portals in the Details View.
1458 * pom.xml: Bump required version of java-libglom to 1.17.1.
1459 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1460 widget creation to its own class. Add comments to constructor.
1461 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1462 The code is mostly from the Group class with the title now set.
1463 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1464 title of Portal. Update some comments. Fix some code formatting.
1466 2011-09-01 Ben Konrath <ben@bagu.org>
1468 Remove TODO comment for the flow table column width.
1470 The flow table column width is working correctly and doesn't need to be
1471 changed. See this mailing list post for more info:
1473 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1475 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1477 2011-08-27 Ben Konrath <ben@bagu.org>
1479 Add document title (database name) to top of the browser page.
1481 I added the document title to the TableSelecitonView but that will
1482 change if / when we add a view that doesn't require table selection.
1484 * mockups/details-contacts.html:
1485 * mockups/details-projects.html:
1486 * mockups/listview-contacts.html:
1487 * mockups/listview-projects.html:
1488 * mockups/style.css: Add document title to mockups to keep things
1490 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1491 sizes to account for the document title.
1492 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1493 Set the document title when it has been retrieved from the server.
1494 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1495 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1496 and implement setDocumentTitle(String) method.
1497 * src/main/webapp/style.css: Add ID for document title style.
1499 2011-08-25 Ben Konrath <ben@bagu.org>
1501 Add NavigationType enum to LayoutItemPortal DTO.
1503 This is the start of adding support for Portals to the Details View.
1505 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1506 LayoutItem_Portal.navigation_type enum from libglom to
1507 LayoutItemPortal.NavigationType enum.
1508 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1509 NavigationType enum, field for storing the NavigationType and getter
1512 2011-08-25 Ben Konrath <ben@bagu.org>
1514 Implement the flow table layout in the Details View.
1516 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1517 FlowTable to Group to account for the renamed class.
1518 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1519 File. This is a container widget that implements the Glom details view
1520 flow table behaviour.
1521 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1522 org/glom/web/client/ui/FlowTable.java.
1523 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1524 so that the size of the subgroups are a closer match to the size of
1525 the Glom subgroups. This makes the flowtable layout match the layout
1526 in Glom for the Music Collection example file.
1528 2011-08-16 Ben Konrath <ben@bagu.org>
1530 Create container element for LayoutItemPortal in Details View.
1532 This will help me develop the layout for the FlowTable.
1534 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1535 fieldPanel variable to detailsCell.
1537 2011-08-15 Ben Konrath <ben@bagu.org>
1539 Set the height of the data element in the Details View.
1541 I changed the InlineLabels (text in a span element) to Labels (text in
1542 a div element) so that I could set the height of the details-data
1543 elements instead of the details-cell parent elements. This allows the
1544 the details-data element to display the correct height if style is
1545 applied that shows the height.
1547 This change has the added benefit of allowing the order of the labels
1548 and data elements to be changed for right-to-left languages.
1550 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1551 InlineLabels to Labels.
1552 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1553 InlineLabels to Labels. Set the height of the data element.
1554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1555 multiline text height in the Formatting DTO.
1556 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1557 for multiline height along with getter and setter methods.
1558 * src/main/webapp/style.css: Adjust style to account for the change
1559 from span elements to div elements in the details cell.
1561 2011-08-15 Ben Konrath <ben@bagu.org>
1563 Make the List View appearance match the mockups.
1565 It doesn't match exactly but it's much better than it was.
1567 * mockups/listview-contacts.html: Remove unused css classes.
1568 * mockups/listview-projects.html: Remove unused css classes.
1569 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1570 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1571 for mainPanel instead of VerticalPanel (table). Set style name on
1572 CellTable. Set style name on Details column. Right-align Details
1574 * src/main/webapp/style.css: Adjust properties to match the mockups.
1576 2011-08-12 Ben Konrath <ben@bagu.org>
1578 Add better support for subgroups in the details view.
1580 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1581 changed FlowTable constructor.
1582 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1583 support for subgroups and subgroup-titles.
1584 * src/main/webapp/style.css: Add CSS class for subgroups and
1587 2011-08-12 Ben Konrath <ben@bagu.org>
1589 Return the top level LayoutGroup title.
1591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1593 2011-08-11 Ben Konrath <ben@bagu.org>
1595 Make the TableSelector header match the mockup.
1597 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1598 the layout panel. Properly lineup the table selection header with
1599 the list and details view.
1600 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1601 margin around the details view.
1602 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1603 Rename listBox variable to tableSelector. Set id for the style sheet.
1604 Use a FlowPanel instead of a HorizontalPanel.
1605 * src/main/webapp/style.css: Add properties to make the TableSelector
1606 box match the mockups.
1608 2011-07-13 Ben Konrath <ben@bagu.org>
1610 Update install script for java-libglom version change.
1612 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1615 2011-07-13 Ben Konrath <ben@bagu.org>
1617 Add support sub-group in the details view.
1619 I also removed the code that special-cased the default details view
1622 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1624 I still have to make a proper flowtable.
1626 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1627 Don't special-case default details view layout.
1628 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1629 addLayoutField() as I'm going to use it.
1630 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1631 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1633 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1634 extracted from DetailsViewImpl.GroupPanel. Add support for
1636 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1637 column count when getting the details layout.
1639 2011-07-12 Ben Konrath <ben@bagu.org>
1641 Set browser title with database and table titles.
1643 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1644 Set the browser title when the table changes and when the activity
1646 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1647 title when retrieving document info (the GlomDocument object).
1648 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1649 with getter and setter methods. Remove unused convenience constructor.
1650 Use default code formatting.
1652 2011-07-12 Ben Konrath <ben@bagu.org>
1654 Ignore LayoutItemPortals in the details view.
1656 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1659 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1660 LayoutItemPortal layout objects.
1661 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1662 LayoutItemPortal objects when retrieving the details layout.
1663 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1664 file. This is an empty class and just used to get type information for
1667 2011-07-12 Ben Konrath <ben@bagu.org>
1669 Use java-libglom 1.17.0.
1673 2011-07-11 Ben Konrath <ben@bagu.org>
1675 Remove "Table:" label from table selector.
1677 This matches a recent change in the Glom UI.
1679 * mockups/details-contacts.html:
1680 * mockups/details-projects.html:
1681 * mockups/listview-contacts.html:
1682 * mockups/listview-projects.html: Remove the "Table:" label from the
1684 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1686 2011-07-11 Ben Konrath <ben@bagu.org>
1688 Add main groups to the details view.
1690 This makes things look a little nicer in the details view. The next step
1691 is to implement the flowtable.
1693 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1694 resources from the standard gwt css theme. Standard.css is now
1695 included in OnlineGlom.html so that the online glom css rules have
1696 precedence over the gwt theme.
1697 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1698 the whole LayoutGroup to the DetailsView instead of just the titles.
1699 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1700 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1701 details layout with a helper class (GroupPanel). I might extract this
1702 class when I make the full flowtable.
1703 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1704 string as default so I don't have to worry about NPEs when processing
1706 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1707 note beside OnlineGlom.gwt.xml above).
1708 * src/main/webapp/style.css: Add default font-size to body to override
1709 the font-size set by the standard theme. Don't use h2 tags for
1710 group-title. Create new details-cell class.
1712 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1714 ConfiguredDocument: Set the port number too.
1716 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1717 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1718 Glom document. Presumably this worked sometimes so far because there is a
1719 default port number.
1721 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1723 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1725 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1726 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1727 correct, though we should throw an exception too.
1729 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1731 Fix a addDocuemnt typo.
1733 * src/main/java/org/glom/web/shared/Documents.java
1734 (Documents.addDocuemnt): Rename to addDocument().
1735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1736 (OnlineGlomServiceImpl.getDocuments): Adapt.
1738 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1740 Slightly improved log output when connection fails.
1742 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1743 (ConfiguredDocument.setUsernameAndPassword):
1744 We don't know for sure if it' the username/password that's wrong, so
1745 rephrase the message.
1746 Also ouput the exception message, though it's generic in this case.
1748 2011-07-08 Ben Konrath <ben@bagu.org>
1752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1753 added braces to a one line if statement because the Eclipse formatter
1754 was getting confused.
1756 2011-07-07 Ben Konrath <ben@bagu.org>
1758 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1760 These should really be two separate tasks but I counldn't get things to
1761 work with GWT 2.2.0 and Eclipse 3.7.
1765 * .settings/org.eclipse.jdt.core.prefs:
1766 * .settings/org.eclipse.jdt.ui.prefs:
1767 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1768 * .settings/org.eclipse.m2e.core.prefs:
1769 Add new config files. Update current files. Remove references to the
1770 webtools plugins as we're not using any of the webtools features.
1771 * .gitignore: Add logs directory which is created when running with
1773 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1774 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1775 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1777 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1779 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1781 onlineglom.properties: Add explanatory comments.
1783 * src/main/resources/onlineglom.properties: Also change the default user
1784 from ben to someuser, to avoid the risk of people thinking we just
1785 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1787 2011-06-28 Ben Konrath <ben@bagu.org>
1789 Use filename in Log for incorrect passwords.
1791 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1792 getFileName(String) method to get the filename from the URI.
1794 2011-06-28 Ben Konrath <ben@bagu.org>
1796 Add the table name to the URL token for the ListPlace.
1798 This makes things consistent between the DetailsPlace and the
1799 ListPlace. It also allows the the ListPlace to be bookmarked.
1801 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1802 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1804 Remove getDefaultListLayout(). The default layout is now returned
1805 by the getListLayout() method when the table name is an empty string.
1806 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1807 Add table name field. Change to a new ListPlace when the table
1808 has been changed. Use getListLayout() for getting the default
1810 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1811 Add table name field. Set the correct table name in the list box
1812 when loading from bookmark. This corrects a problem for the
1814 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1815 Move table name to super-class (HasSelectableTable). Move document
1816 and table URL keys to super-class in HasSelectableTable.
1817 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1818 Add table name field. Add Tokenizer class with URL key common to
1819 the subclasses (DetailsPlace and ListPlace).
1820 * src/main/java/org/glom/web/client/place/ListPlace.java:
1821 Add table name. Add code to parse the URL token.
1822 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1823 Update ListPlace construction with empty table name string.
1824 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1825 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1826 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1827 Update ListPlace construction with table name string.
1828 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1829 Change defaultTableName field to tableName to reflect how it's now
1830 used. Update the getter and setter methods.
1832 2011-06-28 Ben Konrath <ben@bagu.org>
1834 Enable the table selector in the DetailsView.
1836 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1837 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1838 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1839 Remove getDefaultDetailsLayout(). The default layout is now returned
1840 by the getDetailsLayout() method when the table name is an empty
1842 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1843 event handler for table change event. Change to using
1844 getDetailsLayout() for the default details layout.
1845 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1847 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1848 when navigating to the details place.
1850 2011-06-27 Ben Konrath <ben@bagu.org>
1852 Use filename based unique document ID in URL and for RPC.
1854 The document ID is the glom document name with spaces (' ') replaced
1855 with pluses ('+') and without the .glom extension.
1857 This change is mostly a string substitution of 'documentTitle' for
1858 'documentID'. The only code change is the addition of a Documents DTO to get the
1859 filename to document title mappings as indicated below.
1861 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1862 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1863 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1864 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1865 Use Documents DTO to create the document links in the document
1867 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1868 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1869 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1870 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1871 * src/main/java/org/glom/web/client/place/ListPlace.java:
1872 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1873 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1874 * src/main/java/org/glom/web/client/ui/ListView.java:
1875 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1876 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1877 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1878 * src/main/java/org/glom/web/server/Log.java:
1879 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1880 getDocumentTitles() to getDocuments() and return the Documents DTO.
1881 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1882 transferring the filename to document title mappings.
1884 2011-06-25 Ben Konrath <ben@bagu.org>
1886 Make the authentication popup work again.
1888 This bug was introduced when I extracted ConfiguredDocument to its own class.
1890 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1891 correct success / fail status in setUsernameAndPassword().
1893 2011-06-25 Ben Konrath <ben@bagu.org>
1895 Use filename as unique key for configuring database usernames and passwords.
1897 This replaces the use of the Glom document title which could change
1898 depending on the locale. Thanks to Murray Cumming for pointing out this
1901 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1902 * src/main/resources/onlineglom.properties:
1904 2011-06-24 Ben Konrath <ben@bagu.org>
1906 Pass primary key value to DetailsView.
1908 This enables the DetailsView to load the correct data.
1910 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1911 primary key value field and set in constructor. Pass primary key
1912 value to getDetailsData().
1913 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1914 variables for document title and primary key value.
1915 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1916 key value to the DetailsPlace.
1918 2011-06-24 Ben Konrath <ben@bagu.org>
1920 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1922 This allows the primary key to be retrieved by the Details button. This
1923 functionality has not been implemented yet but it's in the works.
1925 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1926 the LayoutGroup result to ListView.setCellTable instead of all of its
1927 fields individually.
1928 * src/main/java/org/glom/web/client/ui/ListView.java:
1929 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1930 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1931 get the primary key for the table.
1932 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1933 index of the primary key in the LayoutGroup accounting for hidden
1934 primary keys. Rename getJavaNumberFormat() to
1935 convertToJavaNumberFormat() for consistency. Cleanup / add some
1937 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1938 field for primary key index and a field to indicate whether the
1939 primary key is hidden or not.
1941 2011-06-23 Ben Konrath <ben@bagu.org>
1943 Rename getTableData methods to getListData.
1945 This is a rename refactor for consistency with other methods.
1947 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1948 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1949 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1950 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1952 2011-06-23 Ben Konrath <ben@bagu.org>
1954 Extract the ConfiguredDocument innerclass into its own class.
1956 This makes the servlet code more object oriented.
1958 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1959 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1960 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1961 new ConfiguredDocument class.
1963 2011-06-21 Ben Konrath <ben@bagu.org>
1965 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1967 This makes things more inline with how libglom works and reduces code
1968 duplication. This refactor lays the groundwork for adding the primary key to
1969 the LayoutGroup object.
1971 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1972 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1973 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1974 Change method names to getListLayout and getDefaultListLayout for
1975 consistency. Use LayoutGroup as the DTO for the list layout instead of
1976 ColumnInfo and LayoutListTable.
1977 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1978 new method names along with the LayoutGroup object for transferring the
1980 * src/main/java/org/glom/web/client/ui/ListView.java:
1981 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1982 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1983 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1985 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1986 Replaced with LayoutGroup.
1987 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1988 expectedResultSize and defaultTableName fields which are needed for
1990 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1991 type field which is needed for the list layout but will also be
1992 useful for the details layout as things progress.
1993 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1994 Make class abstract. Remove the unnecessary
1995 getFormattingHorizontalAlignment method. Add setFormatting method.
1997 2011-06-16 Ben Konrath <ben@bagu.org>
1999 Add scripts for building and installing war.
2001 These will help when updating OnlineGlom but they're also good
2002 supplemental documentation of the build and deployment proceeding.
2004 * utils/build-onlineglom-war.sh: New file.
2005 * utils/install-onlineglom-war.sh: New file.
2007 2011-06-16 Ben Konrath <ben@bagu.org>
2009 Create wrapper class to create consistent log messages.
2011 I wrapped methods in the Log class of gwt-log to add the method names
2012 from the servlet and create consistent formatting of the document title
2013 and table names in the log messages.
2015 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
2017 log methods to use methods from wrapped Log class.
2019 2011-06-16 Ben Konrath <ben@bagu.org>
2021 Remove superfluous conditional return.
2023 Thanks to Murray Cumming for pointing this out!
2025 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2027 2011-06-15 Ben Konrath <ben@bagu.org>
2029 Return an ArrayList of LayoutGroups for the Details layout.
2031 This corrects a problem with the details layout as it can have more
2032 than one top level LayoutGroup.
2034 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2035 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2036 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2037 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2038 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2039 with ArrayList of LayoutGroups for the details view layout.
2040 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2041 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2042 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2043 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2044 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2045 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2047 2011-06-14 Ben Konrath <ben@bagu.org>
2049 Use cast_dynamic method to determine the libglom LayoutItem type.
2051 This is better than finding the LayoutItem type by using the string
2052 returned from the get_part_type_name() method.
2054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2056 2011-06-14 Ben Konrath <ben@bagu.org>
2058 Add method names to log entries in the servlet.
2060 This helps when tracking down deployment problems.
2062 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2064 2011-06-14 Ben Konrath <ben@bagu.org>
2066 Add data to the DetailsView using a hard-coded primary key value.
2068 The layout and functionality of the DetailsView is not complete. This
2069 is just a checkpoint so the patch doesn't get too big.
2071 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2072 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2073 Add getDetailsData() servlet method.
2074 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2075 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2076 LayoutFields are added to the DetailsView.
2077 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2078 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2079 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2080 take the string for the title instead of the object.
2081 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2082 Add implementation getDetailsData() along with some private helper
2084 * src/main/webapp/style.css: Add padding to details-data class. Add a
2085 details-label class with the same padding as the details-data class.
2087 2011-06-03 Ben Konrath <ben@bagu.org>
2089 Use presenter.goTo() to change to the DetailsPlace.
2091 This will make things easier when we need to open the DetailsView with
2092 data specific to the row that was clicked.
2094 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2096 2011-06-02 Ben Konrath <ben@bagu.org>
2098 Add CSS file from mockups.
2100 I'm adding this now because it's going to be useful to have when
2101 developing the DetailsView. The TableSelectionView and ListView aren't
2104 * src/main/webapp/OnlineGlom.html:
2105 * src/main/webapp/style.css:
2107 2011-06-02 Ben Konrath <ben@bagu.org>
2109 Use String.isEmpty() to check for empty string.
2111 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2113 2011-06-02 Ben Konrath <ben@bagu.org>
2115 Display main layout group titles in the DetailsView.
2117 This is the start of the DetailsActivity/DetailsView implementation.
2119 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2120 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2121 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2122 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2123 Get the layout information for the details view from the server and set
2124 the main layout group titles.
2125 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2126 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2127 Add addLayoutGroup() and addLayoutField() methods. This are just
2128 temporary methods for creating the the details view that will change
2130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2131 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2133 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2134 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2135 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2136 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2137 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2138 Data Transfer Objects that mimic the libglom object structure. These are
2139 used for transferring the details layout but could also be used for
2140 transferring the list layout.
2142 2011-05-27 Ben Konrath <ben@bagu.org>
2144 Reset the AuthenticationPopup when clearing the ListView.
2146 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2148 2011-05-27 Ben Konrath <ben@bagu.org>
2150 Fix problem with onlineglom.properties file loading.
2152 The old way worked in Eclipse but not on the server. Loading the
2153 onlineglom.properties file now works in Eclipse and on the server.
2155 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2157 2011-05-24 Ben Konrath <ben@bagu.org>
2159 Update gwt-log from 3.1.0 to 3.1.2.
2161 Gwt-log 3.1.0 has been marked as depreciated.
2165 2011-05-24 Ben Konrath <ben@bagu.org>
2167 Add comment to ListActivity.goTo() method.
2169 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2171 2011-05-24 Ben Konrath <ben@bagu.org>
2173 Remove FIXME in convertGdkColorToHtmlColour()
2175 The Gdk::Color value returned by libglom is 16-bits per channel on both
2176 64 and 32-bit platforms.
2178 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2180 2011-05-19 Ben Konrath <ben@bagu.org>
2182 Improve performance of initial ListView load.
2184 I removed a round trip to the server for getting the default table name
2185 and then requesting information about that table. This also removes a potential
2186 problem with the table change handler not being setup in time to receive the
2187 table change event from the ListActivity.
2189 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2190 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2191 getDefaultLayoutListTable() method. Improve comments.
2192 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2193 getDefaultLayoutListTable() method instead of firing a table change
2194 event to get the table to load.
2195 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2196 implementation of getDefaultLayoutListTable() method.
2197 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2200 2011-05-19 Ben Konrath <ben@bagu.org>
2202 Override toDebugString() in TableChangeEvent.
2204 This is useful to have for debugging.
2206 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2208 2011-05-19 Ben Konrath <ben@bagu.org>
2210 Add a "Back to List" link when at the DetailsPlace.
2212 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2213 Populate the CellTable based on the selected table of the ListBox if
2214 it's set otherwise use the default table. This allows the "Back to
2216 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2217 Remove Place from constructors. Add a setPlace() method. Add
2218 goToPlace() method. Set class as presenter for TableSelectionView.
2219 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2220 Use the same TableSelectionActivity when switching between the List and
2222 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2223 Subclass the new HasSelectableTablePlace. This removes some duplicate
2225 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2226 New class to represent Places that display the TableSelectionView.
2227 * src/main/java/org/glom/web/client/place/ListPlace.java:
2228 Subclass the new HasSelectableTablePlace. This removes some duplicate
2230 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2231 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2232 Add Presenter interface. Add setBackLinkVisible() method. Add
2233 setBackLink() method.
2235 2011-05-18 Ben Konrath <ben@bagu.org>
2237 Enable the "Details" buttons.
2239 Right now only an empty details view is displayed.
2241 * src/main/java/org/glom/web/client/ClientFactory.java:
2242 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2243 Add DetailsView to ClientFactory.
2244 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2245 A basic activity for the details view.
2246 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2247 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2249 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2250 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2252 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2253 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2254 unnecessary super() in constructor.
2255 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2256 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2257 really shouldn't create a new TableSelectionActivity for both the ListPlace
2258 and the DetailsPlace so this should be considered a temporary solution.
2259 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2260 New file. Represents a URL for the details view.
2261 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2262 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2263 A basic details view interface and implementation.
2264 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2265 Enable the "Details" buttons.
2267 2011-05-12 Ben Konrath <ben@bagu.org>
2269 Use a LayoutPanel with multiple display areas for main layout.
2271 This is mostly a refactor in that there are no changes from the user
2272 point of view. These changes are required so that we can swap out the list view
2273 with the details view when the user clicks the "Details" button.
2275 * src/main/java/org/glom/web/client/ClientFactory.java:
2276 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2277 OnlineGlomView. Add TableSelectionView, ListView and
2278 AuthenticationPopup.
2279 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2280 for main layout. Add display regions for main activities. Add
2281 activity manager for for main activities.
2282 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2283 file from parts of the deleted OnlineGlomActivity.
2284 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2285 New file from parts of the deleted OnlineGlomActivity.
2286 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2287 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2288 New files for app wide table change event.
2289 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2290 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2291 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2292 Activity mappers for the main activities replace the deleted app-wide
2294 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2295 Fix a spelling error in he comment.
2296 * src/main/java/org/glom/web/client/ui/ListView.java:
2297 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2298 Renamed from LayoutListView and modified for MVP. This still not a
2299 proper dumb view as prescribed by the MVP pattern but it works for now.
2300 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2301 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2302 New widget stripped out of the deleted OnlineGlomView.
2303 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2304 Remove hack that is fixed by this patch.
2306 2011-05-06 Ben Konrath <ben@bagu.org>
2308 Rename OnlineGlomPlace to ListPlace.
2310 The only change besides the rename is that url will now display #list
2311 instead of #Document.
2313 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2314 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2315 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2316 * src/main/java/org/glom/web/client/place/ListPlace.java:
2317 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2319 2011-05-06 Ben Konrath <ben@bagu.org>
2321 Use Presenter for app navigation.
2323 This is the proper way to deal with Place (URL) changes with the MVP
2326 * src/main/java/org/glom/web/client/ClientFactory.java:
2327 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2328 PlaceHistoryMapper and PlaceHistoryHandler.
2329 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2330 PlaceHistoryMapper and PlaceHistoryHandler.
2331 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2332 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2333 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2334 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2335 Add Presenter interface and setPresenter methods. Rename addHyperLink
2336 to addDocumentLink taking only the document title as a parameter.
2338 2011-04-14 Ben Konrath <ben@bagu.org>
2340 Prompt for db username/password if they haven't been set.
2342 This is implemented with a popup widget that is contained within the
2343 OnlineGlomView and managed by the OnlineGlomActivity.
2345 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2346 methods for checking and setting the database username and password.
2347 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2348 new methods for checking and setting the database username and
2350 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2351 Display authentication popup if the JDBC connection to the database
2352 has not been authenticated.
2353 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2355 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2356 for dealing with the authentication popup.
2357 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2358 Implement the methods for dealing with the authentication popup.
2359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2360 try to executed queries if the database connection hasn't been
2361 authenticated. Implement methods for checking and setting the
2362 database username and password.
2364 2011-04-12 Ben Konrath <ben@bagu.org>
2366 Make log messages a little clearer.
2368 Add a dash betweeen the document title and the table name.
2370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2372 2011-04-12 Ben Konrath <ben@bagu.org>
2374 Protect against NPEs when cleaning up database resources.
2376 While this isn't strictly necessary because the exception is caught,
2377 not protecting against the NPEs makes it harder to find the real error
2380 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2382 2011-04-12 Ben Konrath <ben@bagu.org>
2384 Move configuration of the servlet to the constructor.
2386 The servlet will be initialized even if the database authentication
2387 information is not set or correct. I still need to add the UI for prompting
2388 the user for the authentication information when it's required.
2390 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2391 javadocs for getDocumentTitles() method.
2392 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2393 Set error message when RPC fails.
2394 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2395 glom files directory from the configuration file. Try to set the
2396 database authentication information for the specific document if it's
2397 set and works otherwise try to use the global authentication
2398 information set for the directory.
2399 * src/main/resources/onlineglom.properties: Moved from
2400 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2401 Added detailed comments for the new keys.
2403 2011-04-11 Ben Konrath <ben@bagu.org>
2405 Remove unnecessary @Override in DocumentSelectionViewImpl.
2407 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2409 2011-04-11 Ben Konrath <ben@bagu.org>
2411 Remove center alignment in DocumentSelectionView.
2413 The title element is still centred but the document titles and bottom
2414 sentence are both left-aligned.
2416 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2418 2011-04-11 Ben Konrath <ben@bagu.org>
2420 Change 'Demo' naming convention to 'Document'.
2422 This is just a rename refactor with no functional changes to the code.
2424 * src/main/java/org/glom/web/client/ClientFactory.java:
2425 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2426 * src/main/java/org/glom/web/client/OnlineGlom.java:
2427 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2428 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2429 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2430 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2431 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2432 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2433 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2434 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2435 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2436 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2438 2011-04-08 Ben Konrath <ben@bagu.org>
2440 Remove FIXME from safeLongToInt() method.
2442 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2445 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2447 2011-04-08 Ben Konrath <ben@bagu.org>
2449 Display an error if no glom documents are found in the specified directory.
2451 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2452 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2453 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2456 2011-04-08 Ben Konrath <ben@bagu.org>
2458 Add copyright header to one more file ... oops.
2460 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2462 2011-04-08 Ben Konrath <ben@bagu.org>
2464 Add copyright header to files without it.
2466 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2467 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2468 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2469 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2470 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2471 * src/main/java/org/glom/web/shared/GlomField.java:
2473 2011-04-08 Ben Konrath <ben@bagu.org>
2475 Add support for accessing multiple glom documents in the servlet.
2477 This completes the demo selection functionality.
2479 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2480 document title to methods.
2481 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2482 document title to methods.
2483 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2484 Set browser window title when the activity starts. Correct name of
2485 document title variable.
2486 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2487 Set browser window title when the activity starts. Set the table
2488 selector change handler after table selector has been set. Clear the
2489 OnlineGlomView when the activity has been stopped.
2490 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2491 document title as the place token. Use "#Document:" instead of
2492 "#OnlineGlomPlace:" in the URL.
2493 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2494 Change heading to "Online Glom"
2495 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2496 document title in RPC methods.
2497 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2498 setDocumentTitle() method. Add clear() method.
2499 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2500 setDocumentTitle() method. Implement clear() method which removes the
2501 change handler on the ListBox, clears the ListBox and clears the
2503 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2504 Implement methods with document title. Keep track for the configured
2505 glom documents and their corresponding JDBC configurations in a hash
2506 table. This information is retrieved using the document title as the
2507 key in the hash table.
2508 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2509 document title field as it's no longer needed.
2511 2011-04-08 Ben Konrath <ben@bagu.org>
2513 Update the Eclipse JDT configuration.
2515 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2516 methods. Automatically add the copyright header to new files.
2518 2011-04-05 Ben Konrath <ben@bagu.org>
2520 Add new page for demo selection.
2522 This patch adds all the components required to view and start an
2523 OnlineGlom demo by clicking on the desired hyperlink. The user is
2524 able to return to the demo selection page with the browser's back
2525 button. I still need to modify the servlet to work with multiple
2526 documents so all demo links will load the file defined in the
2527 OnlineGlom.properties.
2529 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2530 This is only useful during development so we don't need to save it.
2531 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2532 get a reference to the DemoSelectionView.
2533 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2534 method to get a reference to the DemoSelectionView.
2535 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2536 default view to DemoSelectionView.
2537 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2538 to get glom document titles for glom files in a hard-coded directory.
2539 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2540 method to get glom document titles for glom files in a hard-coded
2542 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2543 Presenter for DemoSelectionView.
2544 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2545 for DemoSelectionView.
2546 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2547 Update for DemoSelectionView.
2548 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2549 Basic 'Place' implementation for the DemoSelectionView.
2550 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2551 The interface for the DemoSelectionView.
2552 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2553 The implementation of the DemoSelectionView.
2554 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2555 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2557 implementation of method to get glom document titles for glom files
2558 in a hard-coded directory.
2559 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2560 on longer being used.
2561 * src/main/webapp/glom.png: Glom logo.
2563 2011-04-05 Ben Konrath <ben@bagu.org>
2565 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2567 This is the forth and final commit of a refactor that will allow
2568 OnlineGlom to be used with multiple documents.
2570 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2571 Move RPC code from OnlineGlomViewImpl to this class.
2572 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2574 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2575 RPC code to the presenter class (the P in MVP).
2577 2011-04-04 Ben Konrath <ben@bagu.org>
2579 Start moving the existing OnlineGlom code to MVP.
2581 This work is based on the GWT MVP framework that is documented here:
2583 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2585 This is the third commit of a refactor that will allow OnlineGlom to
2586 be used with multiple documents.
2588 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2589 Interface for client factory which is used to get instances of various
2590 classes throughout the app.
2591 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2592 Implementation of client factory.
2593 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2594 initialize the MVP framework.
2595 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2596 New file. Activity manager for the main container widget. This is the
2598 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2599 Maps place (URL) to its corresponding activity.
2600 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2601 New file. This is just a place holder for a generated file.
2602 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2603 New file. Represents the URL for the main Online Glom app.
2604 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2605 for changes in LayoutListViewImpl.
2606 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2607 interface for View. Move code to OnlineGlomViewImpl class.
2608 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2609 file. Implementation of OnlineGlomView.
2610 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2611 Place resources. Use ClientFactoryImpl by default.
2613 2011-04-04 Ben Konrath <ben@bagu.org>
2615 Move View classes to their own package.
2617 This is the second commit of a refactor that will allow OnlineGlom to
2618 be used with multiple documents.
2620 * src/main/java/org/glom/web/client/OnlineGlom.java:
2621 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2622 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2624 2011-04-02 Ben Konrath <ben@bagu.org>
2626 Move UI code from the main module to its own class.
2628 This is the first commit of a refactor that will allow OnlineGlom to be
2629 used with multiple documents.
2631 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2632 references to OnlineGlom to OnlineGlomView.
2633 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2634 OnlineGlomView and instantiate it here.
2635 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2636 represents the main OnlineGlomView with one document.
2638 2011-04-01 Ben Konrath <ben@bagu.org>
2640 Fix formatting of gwt.xml and add DTD.
2642 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2644 2011-03-30 Ben Konrath <ben@bagu.org>
2646 Propperly convert gdkColor string to html colour string.
2648 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2650 2011-03-28 Ben Konrath <ben@bagu.org>
2652 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2654 This implementation matches
2655 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2656 readable and is not tied to Swig.
2658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2660 2011-03-28 Ben Konrath <ben@bagu.org>
2662 Use read-only checkboxes for boolean field types.
2664 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2665 in the CellTable based on the field type. It currently only
2666 distinguishes between boolean and text columns but I'll need to add
2667 support for more types.
2668 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2669 column type in the ColumnInfo object. Add method to convert between the
2670 glom field type enum in ColumnInfo and the glom field type in libglom.
2671 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2673 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2674 getting and setting booleans.
2676 2011-03-25 Ben Konrath <ben@bagu.org>
2678 Don't get the Date twice from the ResultSet.
2680 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2682 2011-03-25 Ben Konrath <ben@bagu.org>
2684 Cleanup code in the servlet.
2686 * TODO: Remove item about row count. Add item about testing row count
2687 query with large number of rows.
2688 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2689 spelling mistakes, change method parameter to be consistent with
2692 2011-03-25 Ben Konrath <ben@bagu.org>
2694 Add server side logging with the gwt-log library.
2696 * .gitignore: Ignore the log file we're now producing.
2697 * TODO: Add a couple TODO item for logging.
2698 * pom.xml: Add gwt-log and log4j as a dependency.
2699 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2700 logging of errors, warnings and some important info.
2701 * src/main/resources/log4j.properties: New file to configure log4j.
2703 2011-03-24 Ben Konrath <ben@bagu.org>
2705 Add a disable button for the Details view.
2707 * src/main/java/org/glom/web/client/LayoutListView.java:
2709 2011-03-22 Ben Konrath <ben@bagu.org>
2711 Use a count query to get the number of rows for the list view pager.
2713 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2715 2011-03-22 Ben Konrath <ben@bagu.org>
2717 Add more TODO information about CellTable pager positioning.
2721 2011-03-19 Ben Konrath <ben@bagu.org>
2723 Add TODO item about CellTable pager positioning.
2727 2011-03-18 Ben Konrath <ben@bagu.org>
2729 Remove unneeded GlomFieldColumn class.
2731 This is just a small code cleanup.
2733 * src/main/java/org/glom/web/client/LayoutListView.java:
2735 2011-03-18 Ben Konrath <ben@bagu.org>
2737 Use cursor mode in the query that gets data for the list view.
2739 I still need to fix the potential memory problem when getting the row
2740 count for the list view.
2742 * TODO: Add note about testing memory usage with large data sets. Add
2743 item about fixing row counting with large data sets.
2744 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2745 PostgreSQL JDBC driver into cursor mode when getting data for the
2748 2011-03-15 Ben Konrath <ben@bagu.org>
2750 Remove the GWT Container from the Eclipse build classpath.
2752 The GWT dependencies are set by Maven so this isn't needed.
2756 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2758 Added some earlier mockups to git, but not to the tarball dist.
2760 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2761 Openismus. These hopefully show how we might structure the HTML so that
2762 it can be styled easily with CSS. However, we probably need to adapt them
2763 for the CSS structure that GWT dictates for common widgets.
2765 2011-03-14 Ben Konrath <ben@bagu.org>
2767 Locate OnlineGlom.properties using the ServletContext.
2769 This is required to be able to locate the file in the deployed servlet.
2771 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2772 Configure the database and glom document in in a helper method so
2773 that the ServletContext can be used to locate OnlineGlom.properties.
2774 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2775 src/main/webapp. This is the proper location for .properites files.
2777 2011-03-12 Ben Konrath <ben@bagu.org>
2779 Add note to README about why we're compiling down to obfuscated JavaScript.
2783 2011-03-11 Ben Konrath <ben@bagu.org>
2785 Use properties file to configure servlet.
2787 This allows people to change the glom file path, db username and db
2788 password without recompiling the code.
2790 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2791 * src/main/webapp/OnlineGlom.properties:
2793 2011-03-11 Ben Konrath <ben@bagu.org>
2795 Use table fields in layout list view if the layout list is not defined.
2797 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2798 Manually create a LayoutFieldVector for the query builder using the
2799 table fields when a layout list is not defined in the glom file.
2801 2011-03-11 Ben Konrath <ben@bagu.org>
2803 Only show FIXME string for images when there's an image.
2805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2806 in this change are some small code cleanups.
2808 2011-03-11 Ben Konrath <ben@bagu.org>
2810 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2812 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2814 2011-03-11 Ben Konrath <ben@bagu.org>
2816 Correctly set the index of the default table.
2818 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2819 Correctly set the index of the default table. Add commented out example
2822 2011-03-10 Ben Konrath <ben@bagu.org>
2824 Add comment to pom.xml about the previous change.
2826 * pom.xml: Add comment about the deployment issue so that it's obvious
2827 why java-libglom is set to the provided scope.
2829 2011-03-10 Ben Konrath <ben@bagu.org>
2831 Change java-libglom dependency from compile to provided in pom.xml.
2833 Since java-libglom uses jni it can only be loaded once and therefore
2834 must be placed in $CATALINA_HOME/lib and not included in each war.
2835 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2836 More information about this issue can be found in the Tomcat 6 release
2837 notes in the "JNI Based Applications" section:
2839 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2841 * README: Remove note about this issue. Deployment info should really
2842 be on the wiki anyway so I'll add it right now.
2843 * pom.xml: Change java-libglom dependency from compile to provided so
2844 that it's copied in to the packaged war.
2846 2011-03-09 Ben Konrath <ben@bagu.org>
2848 Change to using a neutral locale for currency, date and time formatting.
2850 This solves the problem of currency values being represented without a
2851 space between the currency code and the number (e.g. "EUR5.89" is now
2852 represented as "EUR 5.89"). More work is required when we implement
2853 a locale preference setting.
2855 * TODO: Add note about currency formatting issues with different
2857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2858 to using the neutral ROOT locale.
2860 2011-03-09 Ben Konrath <ben@bagu.org>
2862 Add support for currency codes that are not ISO 4217 codes.
2864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2865 the currency code defined in the glom file when it's not 3 characters
2866 long or when Java doesn't recognize the string as an ISO 4217 code.
2868 2011-03-08 Ben Konrath <ben@bagu.org>
2870 Remove test classes, launch configurations and configuration.
2872 The test stuff was getting in the way when creating the war. To make
2873 the war file you can now do 'mvn clean package'. The packaged war file
2874 will be in the target directory.
2876 * .classpath: Remove unused classpathentry for tests and i18n.
2877 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2878 property. Don't run test or i18n goals when packaging the war.
2879 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2884 * OnlineGlomTest-dev.launch:
2885 * OnlineGlomTest-prod.launch:
2886 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2887 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2889 2011-03-07 Ben Konrath <ben@bagu.org>
2891 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2893 These fixes allow me to use 'mvn deploy' to create the war file.
2895 * .classpath: This generated config has been updated by Eclipse. This
2896 change was probably triggered by me updating from Eclipse 3.6.1 to
2898 * .gitignore: Add entry to ignore the directory
2899 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2900 * .project: The generated config has been updated by Eclipse. This
2901 change was probably triggered by me updating from Eclipse 3.6.1 to
2903 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2904 so that Eclipse doesn't complain
2905 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2906 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2907 'tests' directory to 'client' directory. This is the new
2908 gwt-maven-plugin convension.
2909 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2910 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2912 2011-03-07 Ben Konrath <ben@bagu.org>
2914 Add support for horizontal alignment in the LayoutList columns.
2916 * TODO: Remove item about horizontal alignment. Add item about
2917 improvements to ColumnInfo.
2918 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2919 alignment on the columns. Use ColumnInfo RPC object get the column
2920 title and horizontal alignment.
2921 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2922 LayoutListView creation with ColumnInfo RPC object.
2923 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2924 a ColumnInfo object for every LayoutList columnn. Convert the
2925 FieldFormatting.HorizontalAlignment to the correct
2926 ColumnnInfo.HorizontatlAlignment with the new
2927 getColumnInfoHorizontalAlignment helper method.
2928 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2929 to encapsulate column information like alignment and title. This
2930 could be used to set the colour instead of on a per cell field basis.
2931 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2932 column title storage and retrieval with ColumnInfo.
2934 2011-03-04 Ben Konrath <ben@bagu.org>
2936 Add support for column sorting.
2938 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2939 AsynDataProvider to be an anonymous inner class. Use new
2940 getSortedTableData RPC method when column sort is requested. Set all
2941 columns sortable and add an AsyncHandler to activate sorting in the
2943 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2944 method getSortedTableData(). Cleanup other method signatures.
2945 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2946 new method getSortedTableData(). Cleanup other method signatures.
2947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2948 Implement getSortedTableData() and getTableData() methods by using a
2949 private helper method with the appropriate parameters filled in. Use
2950 user supplied sort clause when supplied, otherwise fall back to
2951 sorting by the primary key. Move destroy() method to be underneath
2952 constructor for readability. Cleanup comments.
2954 2011-03-03 Ben Konrath <ben@bagu.org>
2956 Add support for colour text and colour backgrounds to the layout list cells.
2958 Only the cell backgrounds are coloured which leaves a gap between the
2959 cells that isn't coloured. I need to figure out a way to set
2960 'style=background-colour:' on the whole column rather than just the
2963 * TODO: Add a note about colouring the background of the whole column.
2964 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2965 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2966 render the coloured text and backgrounds. Use GlomField[] for the row type.
2967 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2969 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2970 GlomField[] for the row type.
2971 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2972 GlomField[] for the row type. Set the text, text colour and background
2973 colour in the GlomField objects as specified in the glom document. Add
2974 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2975 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2976 the glom field text, foreground colour and background colour.
2978 2011-03-02 Ben Konrath <ben@bagu.org>
2980 Don't display hidden tables in the combo box.
2982 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2984 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2985 code to ignore hidden tables using ArrayLists for the table names and
2987 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2988 tableNames to use ArrayLists instead of String[]. Update getter and setter
2991 2011-03-01 Ben Konrath <ben@bagu.org>
2993 Add support for Date and Time number types.
2995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2996 Implement formatting for Date and Time values. Change the default glom
2997 file to small business example.
2999 2011-03-01 Ben Konrath <ben@bagu.org>
3001 Add support for formatting glom types as specified in the glom file.
3003 Formatting isn't finished yet - I still need to add support for Date
3006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3007 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
3008 checks for null values in JDBC cleanup code and catch all exceptions
3009 instead of just SQLExceptions.
3010 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
3013 2011-03-01 Ben Konrath <ben@bagu.org>
3015 Use GWT 2.2.0 instead of 2.1.1.
3017 * pom.xml: Change GWT version numbers.
3019 2011-03-01 Ben Konrath <ben@bagu.org>
3021 A few small code cleanups.
3023 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
3025 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
3026 unnecessary object creation in constructor.
3027 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
3028 unnecessary object creation in constructor.
3030 2011-02-28 Ben Konrath <ben@bagu.org>
3032 Add file for TODO list.
3036 2011-02-18 Ben Konrath <ben@bagu.org>
3038 Enable the CellTable Pager when more than 20 rows need to be viewed.
3040 The Pager will automatically become active when the results are larger
3041 than the CellTable size which is currently set to 20 lines.
3043 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
3044 name on debug statment in RPC call in LayoutListDataProvider, add
3045 numRows parameter to LayoutListView constructor, propperly set rowCount
3047 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
3048 name on debug statment in RPC call, use LayoutListTable object in RPC
3049 calls, pass rowCount to LayoutListView.
3050 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
3051 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
3053 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
3054 interface for changes in OnlineGlomService.
3055 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3056 getLayoutListHeaders() to getLayoutListTable() and return
3057 LayoutListTable. Using this object allows me to pass other information
3058 about the LayoutList like the expected number of rows in the result set.
3059 The Connection object from the connection pool is now propperly closed.
3060 Only the requested number of lines are returned to the client in
3062 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
3063 GlomTable and add columnTitles and numRows.
3065 2011-02-18 Ben Konrath <ben@bagu.org>
3067 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
3069 This is a small performance boost. I'll use GlomTable to get the required
3070 layoutlist information.
3072 * src/main/java/org/glom/web/client/OnlineGlom.java:
3073 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3074 * src/main/java/org/glom/web/shared/GlomDocument.java:
3076 2011-02-18 Ben Konrath <ben@bagu.org>
3078 Add option to turn off formatting in JDT formatter preferences.
3080 * .settings/org.eclipse.jdt.core.prefs:
3082 2011-02-18 Ben Konrath <ben@bagu.org>
3084 Rename LayoutList to LayoutListView.
3086 I'm working towards setting things up to easily use MVP when the time
3089 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3091 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3094 2011-02-17 Ben Konrath <ben@bagu.org>
3096 Move LayoutListDataProvider class into LayoutList.java.
3098 * src/main/java/org/glom/web/client/LayoutList.java:
3100 2011-02-17 Ben Konrath <ben@bagu.org>
3102 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3104 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3106 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3107 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3108 from LibGlomServer.java.
3109 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3110 Rename from LibGlomServiceAsync.java.
3111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3112 Rename from LibGlomServiceImpl.java.
3113 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3115 2011-02-17 Ben Konrath <ben@bagu.org>
3117 Update JDT settings.
3119 * .settings/org.eclipse.jdt.core.prefs:
3121 2011-02-17 Ben Konrath <ben@bagu.org>
3123 Move GWT-RPC objects to shared package (where they should be).
3125 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3126 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3127 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3128 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3129 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3130 org.glom.web.shared package.
3131 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3132 org.glom.web.shared package.
3133 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3134 directory in compilation to javascript.
3136 2011-02-16 Ben Konrath <ben@bagu.org>
3138 Add sort clause to the sql query that grabs table information.
3140 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3141 if one of the columns is a primary key.
3143 2011-02-16 Ben Konrath <ben@bagu.org>
3145 Disable generateAsync feature of gwt-maven.
3147 The generated interface does not correctly match the methods in LibGlomService
3148 and the generated singleton Util inner-class doesn't respect the servlet
3151 * pom.xml: Turn off generateAsync feature.
3152 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3153 with singleton Util inner-class.
3155 2011-02-14 Ben Konrath <ben@bagu.org>
3157 Add LGPL v3 licence notices.
3159 Followed directions listed here:
3160 http://www.gnu.org/licenses/gpl-howto.html
3162 * COPYING: This file is a copy of the GPL v3.
3163 * COPYING.LESSER: This file is a copy of the LGPL v3.
3164 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3166 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3168 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3170 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3172 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3174 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3176 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3179 2011-02-14 Ben Konrath <ben@bagu.org>
3181 Use ArrayList instead of Array in GWT-RPC calls.
3183 Apparently this gives a slight performance boost to the compiled
3186 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3188 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3191 2011-02-14 Ben Konrath <ben@bagu.org>
3193 Access data from a postgres db rather than the example glom file.
3195 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3196 compile down to obfuscated javascript.
3197 * pom.xml: Add c3p0 and postgres JDBC libraries.
3198 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3199 using a postgres db accessed through the c3p0 connection pooling library.
3201 2011-02-14 Ben Konrath <ben@bagu.org>
3203 Update Java formatter settings.
3205 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3207 2011-02-02 Ben Konrath <ben@bagu.org>
3209 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3211 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3213 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3214 the compiled webapp directory that Eclipse uses as we're using Maven now.
3215 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3216 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3218 * pom.xml: Format file, change target Java version to 1.6.
3220 2011-02-02 Ben Konrath <ben@bagu.org>
3222 Add information about a deployment related issue.
3224 * README: Add Notes section with the problem outlined.
3226 2011-02-02 Ben Konrath <ben@bagu.org>
3228 Call Glom.libglom_deinit() when the servlet is shutdown.
3230 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3231 Glom.libglom_deinit() to destroy() method.
3233 2011-01-28 Ben Konrath <ben@bagu.org>
3235 Use generated Util class to get the RPC Async interface.
3237 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3239 * src/main/java/org/glom/web/c