1 2011-12-14 Ben Konrath <ben@bagu.org>
3 Replace \n with <br/> for multiline text in the details view.
5 Vertical scrollbars are added when needed as well.
7 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
9 2011-12-14 Ben Konrath <ben@bagu.org>
11 Specify the font for document selection links.
13 * src/main/webapp/style.css:
15 2011-12-14 Ben Konrath <ben@bagu.org>
17 Fix bouncy CellTable while paging.
19 This doesn't currently work with related list tables in unselected
22 * src/main/java/org/glom/web/client/ui/list/ListTable.java
24 2011-12-14 Ben Konrath <ben@bagu.org>
26 Revamp the appearance of the document selection page.
28 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
29 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
30 * src/main/webapp/style.css:
32 2011-12-13 Ben Konrath <ben@bagu.org>
34 Set navigation button column to the smallest size possible.
36 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
38 2011-12-13 Ben Konrath <ben@bagu.org>
40 Change OpenButton nomenclature to NavigationButton.
42 Using NavigtionButton makes things more generic. Classes, methods and
43 variables have been changed.
45 This is a rename-only refactor.
47 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
48 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
49 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
50 Renamed from OpenButtonCell.
51 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
52 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
53 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
55 2011-12-12 Ben Konrath <ben@bagu.org>
57 Remove unnecessary String argument in RelatedListTable and ListViewTable.
59 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
60 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
61 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
62 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
64 2011-12-12 Ben Konrath <ben@bagu.org>
66 Update variable names and comments.
68 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
69 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
71 2011-12-12 Ben Konrath <ben@bagu.org>
73 Properly initialize numNonEmptyRows variable to zero.
75 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
76 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
78 2011-12-05 Ben Konrath <ben@bagu.org>
80 Add latest mockup with HTML tables.
82 Features of this mockup:
84 -> HTML table for flowtable
85 -> HTML table for flowtable column
86 -> Example of how related lists would look
87 -> Not using text entries for data items
89 The current version of Online Glom doesn't use HTML tables for the
92 This mockup has been sent to the glom-devel mailing list but it's good
93 to have it here as well.
95 * mockups/details-view-html-tables.html:
97 2011-12-05 Ben Konrath <ben@bagu.org>
99 Remove unnecessary getPrimaryKeyField() method.
101 getPrimaryKeyFieldForTable(String) has been renamed to
102 getPrimaryKeyField(String).
104 * src/main/java/org/glom/web/server/database/DBAccess.java:
105 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
106 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
108 2011-12-05 Ben Konrath <ben@bagu.org>
110 Add string representation of TypedDataItem value to conversion error message.
112 * src/main/java/org/glom/web/server/Utils.java: Logging the error
113 message was extracted into its own method to avoid duplication.
115 2011-12-05 Ben Konrath <ben@bagu.org>
117 Add type checking to navigation primary key value creation.
119 Create navigation primary key only if the expected type from the Glom
120 document matches the type returned by the SQL query.
122 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
124 2011-12-05 Ben Konrath <ben@bagu.org>
126 Rename a couple of variables in RelatedListNavigation.
128 This is a rename-only refactor.
130 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
132 2011-12-05 Ben Konrath <ben@bagu.org>
134 Move getListLayoutGroup() into getListViewLayoutGroup().
136 This removes getListLayoutGroup(). It was only being called by
137 getListViewLayoutGroup().
139 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
141 2011-12-05 Ben Konrath <ben@bagu.org>
143 Remove check for LayoutItem_Portal in list table method.
145 This check is no longer necessary because the method isn't being used
146 to create the LayoutItemPortal DTO.
148 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
150 2011-12-05 Ben Konrath <ben@bagu.org>
152 Properly support related list navigation.
154 Navigation from the "Repository Analyzer -> Package Scans ->
155 Dependencies" related table wasn't working because the primary key for
156 related tables wasn't being set properly. This commit fixes the
159 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
160 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
161 doesn't set the primary key properly for related list tables.
162 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
163 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
164 useful for getting the primary key for list view tables and for related
166 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
167 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
168 Move code to set the primary key for the table from the abstract
169 ListDBAccess class to ListViewDBAccess as it's only correct for list
171 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
172 Properly add primary key to related list tables.
174 2011-12-02 Ben Konrath <ben@bagu.org>
176 Properly set the horizontal alignment of fields.
178 This fix is for both the list tables and the details view.
180 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
181 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
182 to set the horizontal alignment of fields.
184 2011-12-02 Ben Konrath <ben@bagu.org>
186 Display currency codes in the details view.
188 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
190 2011-12-02 Ben Konrath <ben@bagu.org>
192 Avoid duplicate JNI call.
194 JNI is not as efficient as pure Java and this is an easy (and small)
197 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
198 Use previously retrieved value for whereClauseToTableName instead of
201 2011-12-02 Ben Konrath <ben@bagu.org>
203 Rename a couple of variables in RelatedListNavigation.
205 This is a rename-only refactor.
207 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
209 2011-12-02 Ben Konrath <ben@bagu.org>
211 Indicate clearly that a mismatched primary key type is a bug.
213 * src/main/java/org/glom/web/server/Utils.java: Change log level from
214 warning to error. Add 'This is a bug.' to message.
216 2011-12-02 Ben Konrath <ben@bagu.org>
218 Update / fix some comments.
220 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
222 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
224 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
225 Fix comments. Add some TODOs.
227 2011-12-02 Ben Konrath <ben@bagu.org>
229 Enable navigation to details view with string primary key from related list.
231 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
232 Create a text primary key value when return type of result is
233 java.sql.Types.VARCHAR.
235 2011-12-02 Ben Konrath <ben@bagu.org>
237 Use checkboxes for booleans in the details view.
239 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
241 2011-12-01 Ben Konrath <ben@bagu.org>
243 Improve performance of related list height calculation.
245 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
246 Put code to calculate the expected height in a static initializer so
247 that that it's only called once.
249 2011-12-01 Ben Konrath <ben@bagu.org>
251 Show related list tables in notebooks (again).
253 Calculate the height of the related list tables so the Notebook can be
254 set the correct height. The height of the related list table is also needed by
255 FlowTable to be able decide how to create the layout.
257 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
258 and set the Portal height based on the height of the related list
259 table and the Portal container.
260 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
261 Add method to calculate the height of the related list tables.
262 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
263 * src/main/webapp/style.css: Add css class for Pager. This is needed to
264 calculate the height of the Pager widget.
266 2011-12-01 Ben Konrath <ben@bagu.org>
268 Use CellTable API for table property instead of setting style on Element.
270 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
272 2011-12-01 Ben Konrath <ben@bagu.org>
274 Make ListViewTable and RelatedListTable a consistent height.
276 The tables are now a consistent height regardless of the contents of
277 the table. A hidden button is added to empty rows to ensure that the
278 height of these rows will match the height of rows with data.
280 A navigation button column is now added to every table. The width of
281 the navigation column is set to 0px when a RelatedListTable shouldn't
282 have navigation buttons. This maintains the a consistent row height in
283 tables that don't show the navigation buttons.
285 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
286 navigation column when not needed.
287 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
288 arguments for navigation button to constructor of ListViewTable.
289 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
290 hidden button for empty data rows.
291 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
292 arguments for navigation button to constructor.
293 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
294 create navigation buttons. Add hideNavigationButtons() method.
295 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
296 arguments for navigation button to constructor.
298 2011-12-01 Ben Konrath <ben@bagu.org>
300 Use 'visibility: hidden' in Utils.getWidgetHeight().
302 This is better choice because hidden elements are invisible, don't
303 respond to events and are not part of the tab order. They will,
304 however, take up space which is required to be able to calculate the
305 height of the widget.
307 * src/main/java/org/glom/web/client/Utils.java:
309 2011-12-01 Ben Konrath <ben@bagu.org>
311 Use Utils.getWidgetHeight() in FlowTable.
313 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
315 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
317 2011-12-01 Ben Konrath <ben@bagu.org>
319 Put the details css class name on the correct table column.
321 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
323 2011-11-30 Ben Konrath <ben@bagu.org>
325 Update for java-libglom API change.
327 The getters and setters on FieldFormatting and NumericFormat were
328 changed to remove the 'M'.
330 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
332 2011-11-29 Ben Konrath <ben@bagu.org>
334 Only allow RelatedListTables in Portals.
336 * src/main/java/org/glom/web/client/ui/details/Portal.java:
338 2011-11-29 Ben Konrath <ben@bagu.org>
340 Only create a contents panel for Portals when title is being set.
342 * src/main/java/org/glom/web/client/ui/details/Portal.java:
344 2011-11-29 Ben Konrath <ben@bagu.org>
346 Set TabLayoutPanel height based on calculated height its widgets.
348 This is a potential fix for this bug:
350 https://bugzilla.gnome.org/show_bug.cgi?id=665133
352 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
354 2011-11-29 Ben Konrath <ben@bagu.org>
356 Align details field labels and data with the Open buttons.
358 * src/main/webapp/style.css:
360 2011-11-29 Ben Konrath <ben@bagu.org>
362 Remove unnecessary <div> in the Notebook widget.
364 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
365 method to get container FlowPanel (<div>).
366 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
367 initWidget() method directly on the TabLayoutPanel widget instead of
368 Group's container widget.
370 2011-11-29 Ben Konrath <ben@bagu.org>
372 Don't add group titles for Portals in Notebooks.
374 This reverts the previous patch and fixes a bug I introduced with
375 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
377 * src/main/java/org/glom/web/client/ui/details/Group.java:
378 * src/main/java/org/glom/web/client/ui/details/Portal.java:
380 2011-11-28 Ben Konrath <ben@bagu.org>
382 Remove unused boolean argument in Portal constructor.
386 * src/main/java/org/glom/web/client/ui/details/Group.java:
387 * src/main/java/org/glom/web/client/ui/details/Portal.java:
389 2011-11-28 Ben Konrath <ben@bagu.org>
391 Remove hack for glom 1.18 style glom files.
393 * src/main/java/org/glom/web/client/ui/details/Group.java:
394 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
395 * src/main/java/org/glom/web/client/ui/details/Portal.java:
397 2011-11-28 Ben Konrath <ben@bagu.org>
399 Use Gda Value version of primary key to log result too large error.
401 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
403 2011-11-28 Ben Konrath <ben@bagu.org>
405 Don't use TypedDataItem.getText() for Unknown types from the URL.
407 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
408 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
409 instead of getText().
410 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
411 String field and getUnknown() method.
413 2011-11-28 Ben Konrath <ben@bagu.org>
415 Log an error message when the java-libglom .so is not present.
417 The error message was being set in the exception but not logged.
419 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
421 2011-11-28 Ben Konrath <ben@bagu.org>
423 Ignore LayoutItem_CalendarPortals.
425 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
426 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
428 2011-11-28 Ben Konrath <ben@bagu.org>
430 Extract method for creating the LayoutItemPortal DTO.
432 Just breaking the code up into smaller chunks.
434 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
436 2011-11-28 Ben Konrath <ben@bagu.org>
440 This should have been added with the refactor. Oops!
442 * src/main/java/org/glom/web/shared/TypedDataItem.java:
444 2011-11-28 Ben Konrath <ben@bagu.org>
446 Create primary key value from URL string using type from Glom document.
448 See this bug, comments 19 - 25:
450 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
452 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
453 create a TypeDataItem for the primary key here when loading from a
454 URL. Show the same string for the primary key value as was received
455 from the URL string (when loading from a URL).
456 * src/main/java/org/glom/web/server/Utils.java: Update method for
457 creating the Gda Value from the TypeDataItem to properly deal with
458 creating a Gda Value based on the Glom document type for the primary
459 key value string when loading from a URL.
460 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
461 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
462 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
463 Update for changed method name.
465 2011-11-27 Ben Konrath <ben@bagu.org>
467 Rename PrimaryKeyItem to TypedDataItem.
469 The name PrimaryKeyItem suggests what the class should be used for.
470 TypedDataItem is a neutral name that describes the class better.
472 This is a rename-only refactor.
474 * src/main/java/org/glom/web/client/OnlineGlomService.java:
475 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
476 * src/main/java/org/glom/web/client/Utils.java:
477 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
478 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
479 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
480 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
481 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
482 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
483 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
484 * src/main/java/org/glom/web/server/Utils.java:
485 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
486 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
487 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
488 * src/main/java/org/glom/web/shared/NavigationRecord.java:
490 2011-11-25 Ben Konrath <ben@bagu.org>
492 Improve Gda Value conversion from PrimaryKeyItem.
494 The value from the PrimaryKeyItem is only used if its type match the
495 type from the glom document.
497 * src/main/java/org/glom/web/server/Utils.java:
499 2011-11-25 Ben Konrath <ben@bagu.org>
501 Manually check if the java-liblgom .so is visible to the JVM.
503 It seems that Tomcat has problems when a static initializer throws an
504 exception. This check is done before the first method call into
505 java-libglom so that execution doesn't continue if the .so is not
508 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
510 2011-11-25 Ben Konrath <ben@bagu.org>
512 Improve browser configuration error messages.
516 https://bugzilla.gnome.org/show_bug.cgi?id=662792
518 * src/main/java/org/glom/web/client/OnlineGlomService.java:
519 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
520 getConfigurationErrorMessage() method.
521 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
522 Get and display a specific configuration error message when no Glom
524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
525 Implement getConfigurationErrorMessage() method. Surround configuration
526 code in the init() method with a try/catch block. This allows the
527 errors to be caught while keeping the servlet available to retrieve the
528 configuration error message.
530 2011-11-25 Ben Konrath <ben@bagu.org>
532 Don't use Strings to hold primary key values.
534 The primary key values are now held in a new data object
535 (PrimaryKeyItem) that holds type information and the primary key value
536 using the correct type.
538 * src/main/java/org/glom/web/client/OnlineGlomService.java:
539 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
540 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
541 PrimaryKeyItem instead of String to hold the primary key value.
542 * src/main/java/org/glom/web/client/Utils.java: Remove
543 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
544 PrimaryKeyItem based on the GlomFieldType and the DataItem.
545 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
546 PrimaryKeyItem instead of String to hold the primary key value. Load
547 document selection page when the documentID has not been set correctly.
548 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
549 DetailsPlace -> URL and URL -> DetailsPlace conversion with
551 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
552 Return empty string for URL instead of "null".
553 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
554 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
555 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
556 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
557 PrimaryKeyItem instead of String to hold primary key values.
558 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
559 PrimaryKeyValue to a Gda Value.
560 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
561 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
562 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
563 Replace temporary database access code that uses the PrimaryKeyValue to
564 Gda Value conversion.
565 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
566 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
567 PrimaryKeyItem instead of String.
568 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
569 hold primary key values.
571 2011-11-24 Ben Konrath <ben@bagu.org>
573 Use newly added java-libglom API to create queries.
575 This isn't finished. I still need to stop using Strings for primary key
576 values in the client code.
578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
579 libglom to use fake connections so that retrieving the query string will
581 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
582 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
583 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
584 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
585 Use the newly added libglom sql methods and classes to create the
586 query. Add temporary hack to convert primary value strings to Gda
589 2011-11-23 Ben Konrath <ben@bagu.org>
591 Don't explicitly set the height of Portals.
593 See comments 6 - 10 of this bug for details:
595 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
597 * src/main/java/org/glom/web/client/ui/details/Portal.java:
599 2011-11-23 Ben Konrath <ben@bagu.org>
601 Use an HTML table instead of CSS for the FlowTable layout.
603 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
604 GWT's FlexTable to implement the FlowTable.
605 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
607 2011-11-18 Ben Konrath <ben@bagu.org>
609 Add boolean example to HTML table mockup.
611 * mockups/details-view-html-tables-text-entries.html:
613 2011-11-17 Ben Konrath <ben@bagu.org>
615 Ensure the pager buttons are always visible for related lists.
617 To accomplish this, I've turned off text wrapping in the list view and
618 related list tables for both the header and data text. The related list
619 table now has a fixed layout so the it doesn't overflow its container.
620 This is required to ensure that the cell text is clipped when it
621 overflows the cell and an ellipsis is added to the right side of the
622 cell when text is clipped.
624 A fixed table layout for the related list table in the details view
625 seems what we want for the details view anyway, so the side-effect is
628 The ellipsis will only be displayed in Firefox >= 7.
632 https://bugzilla.gnome.org/show_bug.cgi?id=662930
634 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
635 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
636 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
638 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
639 Set the 'table-layout: fixed' CSS property to the related list table.
640 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
641 'white-space: nowrap;' CSS property on both the list view and the
644 2011-11-16 Ben Konrath <ben@bagu.org>
646 Rework the fix for empty notebook tab labels.
648 Setting the empty group titles with its name caused problems for the
649 details layout. Instead of using libglom's
650 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
651 to the client when the title is empty. This allows the Notebook to use
652 the name when the title is empty without affecting anything else.
654 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
655 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
657 2011-11-16 Ben Konrath <ben@bagu.org>
659 Set group titles with name when title is empty.
661 This fixes a problem with an empty notebook tab label in the Lesson
662 Planner document. The forth tab in the notebook should be "Internet":
664 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
666 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
667 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
670 2011-11-16 Ben Konrath <ben@bagu.org>
672 Remove whitespace from the configured username properties.
674 This assumes that usernames won't have whitespace at the beginning
675 or end. But I think this is a reasonable assumption.
677 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
678 String.trim() to remove the whitespace from the username properties.
680 2011-11-15 Ben Konrath <ben@bagu.org>
682 Add details view mockup with HTML tables and text entries.
684 This is from the attachment on this bug:
686 https://bugzilla.gnome.org/show_bug.cgi?id=663109
688 * mockups/details-view-html-tables-text-entries.html:
690 2011-11-15 Ben Konrath <ben@bagu.org>
692 Add space between the columns of the flow table.
696 https://bugzilla.gnome.org/show_bug.cgi?id=662918
698 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
699 space between columns in the flow table.
701 2011-11-15 Ben Konrath <ben@bagu.org>
703 Add backup files to the .gitignore.
705 * .gitignore: Ignore files that end with ~.
707 2011-11-09 Ben Konrath <ben@bagu.org>
709 Use latest release of gwt-log.
711 Gwt-log releases are now being submitted to the maven central
712 repository so manual installation of the jar is no longer required.
714 * pom.xml: Update version and groupId of gwt-log dependency.
716 2011-10-31 Ben Konrath <ben@bagu.org>
718 Don't use GWT numeric formatting to override the glom currency formatting.
720 Currencies are now displayed like they are in Glom. See this bug:
722 https://bugzilla.gnome.org/show_bug.cgi?id=646216
724 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
726 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
727 currency code to constructor and set it when the cell is rendered.
728 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
729 currency code to the constructor of the NumericCell.
731 2011-10-27 Ben Konrath <ben@bagu.org>
733 Require the latest release of java-libglom (1.17.4).
737 2011-10-26 Ben Konrath <ben@bagu.org>
739 Add style to Notebook that matches current theme.
741 It's not the best style in the world but it's better than the default.
743 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
744 padding at the bottom of the child widgets.
745 * src/main/webapp/style.css: Add style for the Notebook.
747 2011-10-26 Ben Konrath <ben@bagu.org>
749 Move servlet initialization code to overridden init method.
751 This is half of the solution to getting proper error messages
752 displayed when configuration errors occur. Here's the relevant bug:
754 https://bugzilla.gnome.org/show_bug.cgi?id=662792
756 The rest of the solution involves surrounding the init method with a
757 try/catch block and setting a global variable with the error /
758 exception. A new async method should be created to retrieve and display
759 the error message / exception.
761 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
762 code from constructor to init method adding exceptions as needed.
764 2011-10-26 Ben Konrath <ben@bagu.org>
766 Add script to monitor and restart tomcat if required.
768 * utils/check-and-recover-tomcat.py: New file.
770 2011-10-26 Ben Konrath <ben@bagu.org>
772 Display the correct number of data items in the pager.
776 https://bugzilla.gnome.org/show_bug.cgi?id=661441
778 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
779 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
780 The implementation is the same for both tables: Keep track of the
781 number of non-empty rows and fire and RowCountChangeEvent after the data has
783 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
784 custom Pager class that subclasses SimplePager to handle displaying
785 the correct number when empty rows have been added.
787 2011-10-26 Ben Konrath <ben@bagu.org>
789 Correct error in previous commit.
791 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
792 eventBus parameter from listView.setCellTable().
794 2011-10-26 Ben Konrath <ben@bagu.org>
796 Fix error in TODO comment.
798 * src/main/java/org/glom/web/client/activity/ListActivity.java:
800 2011-10-24 Ben Konrath <ben@bagu.org>
802 Create Notebook widgets to the details view.
804 This isn't finished just yet - I still need to create a reasonable
805 style to match the current theme.
807 * src/main/java/org/glom/web/client/Utils.java: Add method for
808 calculating the height of a widget. This is used in the Notebook class.
809 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
810 new constructor method in Group.
811 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
812 method for creating child widget that can be used by subclasses
813 like Notebook. New constructor that allows disabling the group
814 titles - Notebooks don't set a group title for their child groups.
815 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
816 to make Notebooks using GWT's TabLayoutPanel.
817 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
818 constructor that allows disabling the group titles.
819 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
820 LayoutItemNotebook DTO.
821 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
822 DTO for Notebooks. It's just an empty class for now but we might need
823 it to transfer some specific information in the future.
825 2011-10-21 Ben Konrath <ben@bagu.org>
827 Add navigation buttons to related list tables.
829 * src/main/java/org/glom/web/client/OnlineGlomService.java:
830 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
831 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
832 method getSuitableRecordToViewDetails() for getting the table name
833 and primary key value for related list navigation buttons.
834 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
835 private cell renderer class to get the navigation information for
836 related list tables from the server. Extract the navigation
837 processing code from the details cell navigation and use it for the
838 related list navigation as well.
839 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
840 cell renderer class for the details open buttons. This was needed
841 because the related list navigation buttons and the list view
842 navigation buttons need to react differently when clicked.
843 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
844 the onEnterKeyDown() method because it's now overriden in the
845 subclasses that are specific to the related list tables and the list
847 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
848 the vertical size a little because the buttons add a bit of vertical
849 space to table. This is not a perfect solution because the vertical
850 size of with table fewer than 5 rows will be a little smaller.
851 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
852 changes in how navigation buttons are handled.
853 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
854 getSuitableRecordToViewDetails() using the new RelatedListNavigation
855 database access object.
856 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
857 to find the portal for a given relationship name from
858 RelatedListDBAccess. Add method to find a primary key field for a
860 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
861 Move code to find the portal for a given relationship name to
863 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
864 New file: database access object for getting the related list
865 navigation information (the table name and the primary key value).
866 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
867 DTO for transferring a table name to navigate to and a primary key
869 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
870 boolean and getter/setter to specifies if the related list should add
873 2011-10-24 Murray Cumming <murrayc@murrayc.com>
875 Use the master branch of java-libglom
877 * pom.xml: Depend on java-libglom 1.19 instead.
879 This is the master branch. See also the libglom-1-18 branch.
881 2011-10-11 Ben Konrath <ben@bagu.org>
883 Enable the open navigation button when the data has been set.
885 This avoids having active buttons that don't do anything when the data
888 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
890 2011-10-11 Ben Konrath <ben@bagu.org>
892 Use IsWidget interface for FlowTableItem.
894 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
895 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
897 2011-10-11 Ben Konrath <ben@bagu.org>
899 Remove GWT styling from open button in details view.
901 There are still some issues with how the details cell is arranged but
902 this should be made to match Glom 1.20. I'm going to leave fixing this
903 until I have Glom 1.20 up and running.
905 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
906 style name on open button.
907 * src/main/webapp/style.css: Move and edit details-navigation class.
908 Re-arrange some classes to make them appear in the same order as the
911 2011-10-07 Ben Konrath <ben@bagu.org>
915 * .gitignore: Ignore new cache directory.
916 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
917 * pom.xml: Change GWT and maven plugin to 2.4.0.
918 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
920 * src/main/java/org/glom/web/client/ClientFactory.java:
921 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
922 * src/main/java/org/glom/web/client/OnlineGlom.java:
923 Update source for API changes.
924 * utils/build-onlineglom-war.sh: Remove cache directory before the
927 2011-10-07 Ben Konrath <ben@bagu.org>
929 Add navigation buttons in the details view.
931 This isn't finished but I thought I'd commit what I have as it's a
932 pretty good start. I still need to:
934 1. Change the style so that it fits better into the current theme
935 2. Adjust the details cell to expand as much as possible.
937 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
938 click handlers to navigation buttons in the DetailsCells. Create a
939 refreshData() method to get just the data from the server without the
941 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
942 Update the tableSelector and browser title when the table name
943 changes without using the tableSelector.
944 * src/main/java/org/glom/web/client/ui/DetailsView.java:
945 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
946 getDetailsCells() to getCells(). Update variable names.
947 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
948 method to set click handler on navigation button. Rename a few
949 variables. Add navigation buttons where needed.
950 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
951 variables and methods.
952 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
953 navigation boolean and navigation table as required in the
955 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
956 variables for navigation along with getter/setter methods.
958 2011-10-07 Ben Konrath <ben@bagu.org>
960 Rename Field to DetailsCell.
962 This is a refactor-only commit. No functionality has been added or
965 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
966 Update variable and method names.
967 * src/main/java/org/glom/web/client/ui/DetailsView.java:
968 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
969 variable and method names.
970 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
972 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
973 variable and method names.
975 2011-10-07 Ben Konrath <ben@bagu.org>
977 Create separate methods for layout and data the details view.
979 This is a refactor-only commit. No functionality has been added or
982 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
983 private methods: setData(), createLayout().
985 2011-10-07 Ben Konrath <ben@bagu.org>
987 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
989 This is part of a change to get navigation buttons in the details view
990 but it should have been done this way from the start.
992 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
993 for method name change in TableSelectionView.
994 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
995 Create TableChangeEvent and set the browser title using the
996 TableSelectionView API.
997 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
998 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
999 Change getSelectedTable() to getSelectedTableName(). Add
1000 getSelectedTableTitle().
1002 2011-10-07 Ben Konrath <ben@bagu.org>
1004 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1006 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1008 2011-10-07 Ben Konrath <ben@bagu.org>
1010 Update TableChangeEvent to use newTableName naming convention.
1012 This makes the class more consistent with GWT naming conventions.
1014 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1015 Update for method name change in TableChangeEvent.
1016 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1017 for method name change in TableChangeEvent.
1018 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1019 newTableName variable and getter method. Make toDebugString()
1022 2011-09-30 Ben Konrath <ben@bagu.org>
1024 Disable the pager in the list tables when the data row count is less than the minimum.
1026 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1027 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1029 2011-09-30 Ben Konrath <ben@bagu.org>
1031 Add empty rows to the end of related list and list view tables.
1033 I also extracted the cell rendering classes from the ListTable because
1034 the code was becoming a little crazy with all the anonymous inner
1035 classes. My plan is to use these cell rendering classes in the details
1036 view as well so this refactor will be needed for that change.
1038 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1039 set the row count in related list tables if the data has more rows
1040 than the minimum number of rows visible.
1041 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1042 row count in list view tables if the data has more rows than the
1043 minimum number of rows visible.
1044 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1045 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1047 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1048 for rendering TYPE_NUMERIC cells. The code was extracted from the
1050 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1051 class for rendering cells with buttons in list views. The code was
1052 extracted from the ListTable class.
1053 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1054 for rendering TYPE_TEXT cells. The code was extracted from the
1056 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1057 Add empty rows to the end of the data if required. Implement
1058 ListTable.getMinNumVisibleRows().
1059 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1060 cell renderer code to public classes. Return null in
1061 Column.getValue() for empty rows. Add new abstract method:
1062 getMinNumVisibleRows(). Move code to set the row count of the list view
1063 table to ListViewImpl.
1064 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1065 empty rows to the end of the data if required. Implement
1066 ListTable.getMinNumVisibleRows().
1069 2011-09-27 Ben Konrath <ben@bagu.org>
1071 Use GWT.log for client-side debugging statements.
1073 These are optimized out when deployed so I should have used this method
1074 in the first place. These statements will eventually be replaced with some sort
1075 of notification in the browser.
1077 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1078 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1079 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1080 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1081 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1083 2011-09-27 Ben Konrath <ben@bagu.org>
1085 Put tableselector on the right, back to list link on right.
1087 The idea is that the table selector is acting like a label for the
1088 currently displayed table so it should be placed below the document title. This
1089 puts the table title in a similar position to where it is in Glom.
1091 * mockups/details-contacts.html:
1092 * mockups/details-projects.html:
1093 * mockups/listview-contacts.html:
1094 * mockups/listview-projects.html:
1095 * mockups/style.css:
1096 Update mockups to match how the interfaces currently look.
1097 * src/main/webapp/style.css: Swap positions of backlink with the table
1098 selector. Add some space on the left side of the table selector to
1099 line things up with the document title.
1101 2011-09-27 Ben Konrath <ben@bagu.org>
1103 Add field colouring to details view.
1105 This change re-works how field colouring works. The colour formatting
1106 information is now set to the client with the layout information instead of
1107 with the data. This eliminates the need to send the same colour strings for
1108 data in list view column when colour information is set.
1110 In order to set an alternate colour for negative numeric values, the
1111 number is now sent to client and formatted with the GWT NumberFormat class.
1113 This change also fixes:
1115 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1117 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1118 internationalization framework which is needed for client side numeric
1120 * src/main/java/org/glom/web/client/Utils.java: New file for some
1121 client static utility methods.
1122 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1123 the DataItem object to the Field class. Use a utility method to
1124 create the foreignKeyValue string.
1125 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1126 alignment and text colours in the constructor. Add setData(DataItem)
1127 method. Remove setText(String) method.
1128 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1129 colour information to GlomTextCell. Create and use GlomNumberCell for
1130 rendering numbers. Use utility method to get the string for the
1131 primary key of the key provider. Re-work how the horizontal alignment
1133 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1134 formatting to layout information. Methods for converting the libglom
1135 formatting information were moved from DBAccess.
1136 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1137 numeric formatting (it's now done on the client side). Don't set text
1138 colours in DataItem. Move libglom formatting conversion methods to
1140 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1141 getters/setters for text colour information.
1142 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1143 for transferring the libglom NumericFormat information to the client.
1144 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1145 and getters/setters for: GlomNumericFormat, background colour and
1146 foreground colour strings.
1148 2011-09-26 Ben Konrath <ben@bagu.org>
1150 Simplify code that iterates through the LayoutGroup.
1152 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1154 2011-09-26 Ben Konrath <ben@bagu.org>
1156 Accept Eclipse formatting for OnlineGlomServiceAsync.
1158 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1160 2011-09-26 Ben Konrath <ben@bagu.org>
1162 Don't use the ListDBAccess classes to get the primary key layout information.
1164 This was causing a bug where the wrong index for the hidden primary key
1165 was being sent to the client.
1167 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1168 primary key while creating the LayoutGroup DTO. Create a
1169 LayoutItemField DTO for hidden primary keys. Don't use the
1170 RelatedListDBAccess because it was only used for getting the primary
1172 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1173 access modifier from public to protected for getPrimaryKeyField() and
1174 getPrimaryKeyLayoutItemField().
1175 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1176 abstract method getExpectedResultSize() because RelatedListDBAccess
1177 doesn't have enough info to implement it.
1178 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1179 Remove @Override for getExpectedResultSize().
1180 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1181 Remove method getExpectedResultSize().
1183 2011-09-23 Ben Konrath <ben@bagu.org>
1185 Log which layout (list or details) the ignored item is from.
1187 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1189 2011-09-23 Ben Konrath <ben@bagu.org>
1191 Remove annotations that turn off code formatting in DataItem.
1193 * src/main/java/org/glom/web/shared/DataItem.java:
1195 2011-09-23 Ben Konrath <ben@bagu.org>
1197 Rename GlomField to DataItem and update associated methods.
1199 This is a rename-only refactor. No functionality has been added or
1202 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1203 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1204 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1205 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1206 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1207 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1208 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1209 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1210 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1211 * src/main/java/org/glom/web/server/database/DBAccess.java:
1212 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1213 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1214 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1215 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1216 * src/main/java/org/glom/web/shared/DataItem.java:
1217 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1218 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1220 2011-09-23 Ben Konrath <ben@bagu.org>
1222 Rename GlomDocument to DocumentInfo and update associated methods.
1224 This is a rename-only refactor. No functionality has been added or
1227 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1228 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1229 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1230 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1231 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1233 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1235 2011-09-20 Ben Konrath <ben@bagu.org>
1237 Require java-libglom 1.17.3.
1239 This picks up the fix for the seg fault problem with the Scenes table
1240 in the Openismus Film Manager example.
1244 2011-09-20 Ben Konrath <ben@bagu.org>
1246 Change the way sort clause is added for primary key when no sort clause is requested.
1248 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1249 before the sort clause is created. When a sort clause is not requested, the
1250 sort clause is created by finding the primary key in the LayoutFieldVector
1253 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1255 2011-09-20 Ben Konrath <ben@bagu.org>
1257 Log error message if no documents are found in the configured directory.
1259 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1260 Extract the glom file extension string to a private static final class
1261 variable (mostly as syntactic sugar). Accept a minor formatting change.
1262 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1263 the example glom.document.directory configuration property to make it
1264 more clear that it can any directory, not just the home directory.
1266 2011-09-18 Ben Konrath <ben@bagu.org>
1268 Add related lists to details view.
1270 The related list table has support for paging and sorting just like the
1271 table in the list view.
1273 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1274 SQL queries for the related list tables.
1275 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1276 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1277 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1278 Rename getList methods to getListView and add comments. Remove
1279 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1280 it being unused. Add methods: getDetailsLayoutAndData(),
1281 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1282 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1283 Create the layout and set the data for the fields in one async call
1284 instead of two. Create related lists where appropriate.
1285 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1286 for method name changes in OnlineGlomService.
1287 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1288 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1289 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1291 * src/main/java/org/glom/web/client/ui/ListView.java:
1292 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1293 tableName from setCellTable(). Create a ListViewTable instead of
1295 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1296 represent a data field in the details view.
1297 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1298 from addDetailsCell() to Field class. Keep track of the Fields and
1299 Portals in the details view.
1300 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1301 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1302 and add a method to get it. Add method to set the contents of the
1304 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1305 New class for related list tables. This class has the data provider
1306 for the related list table.
1307 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1308 abstract class which is the base class for the ListViewTable and the
1310 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1311 New class for list view tables. This class has the data provider for
1312 the list view table.
1313 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1314 methods for related list tables. Add more information to the
1315 LayoutItemField and LayoutItemPortal DTOs.
1316 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1317 Remove debugging print statement.
1318 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1319 Remove debugging print statements. Add primary key field to SQL count
1321 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1322 Remove unnecessary LayoutFieldVector parameter from
1323 getResultSizeOfSQLQuery() method.
1324 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1325 New class for related list table database access.
1326 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1327 class that is a wrapper DTO for details view layout and data.
1328 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1329 new 'fromField' string to this DTO.
1330 * src/main/webapp/style.css: Remove bottom margin and override top
1333 2011-09-15 Ben Konrath <ben@bagu.org>
1335 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1337 This sets things up to make it easier to add the data retrieval for
1338 related lists (portals). No user noticeable changes were made with
1341 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1342 class has the code to retrieve the layouts and access the
1343 database using the new database helper classes.
1344 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1345 Most of the functionality has been removed from this class. This
1346 class now represents the public interface for the client side
1347 code. It also deals with configuring the servlet and cleaning
1348 things up when the servlet is stopped.
1349 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1350 of static methods into this utility class.
1351 * src/main/java/org/glom/web/server/database/DBAccess.java:
1352 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1353 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1354 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1355 These classes have the database retrieval code. The class hierarchy
1356 has been setup to make it easy to reuse code for similar
1359 2011-09-06 Ben Konrath <ben@bagu.org>
1361 Create separate classes for list table code and the data provider.
1363 As part of this refactor, I also split up the code a bit to make it
1366 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1367 table code to two new classes (below).
1368 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1369 with code from ListViewImpl.
1370 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1371 New file with code from ListViewImpl.
1373 2011-09-06 Ben Konrath <ben@bagu.org>
1375 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1377 This fixes the LayoutItemPortal DTO to match the libglom layout object
1380 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1382 2011-09-01 Ben Konrath <ben@bagu.org>
1384 Set title of Portals in the Details View.
1386 * pom.xml: Bump required version of java-libglom to 1.17.1.
1387 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1388 widget creation to its own class. Add comments to constructor.
1389 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1390 The code is mostly from the Group class with the title now set.
1391 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1392 title of Portal. Update some comments. Fix some code formatting.
1394 2011-09-01 Ben Konrath <ben@bagu.org>
1396 Remove TODO comment for the flow table column width.
1398 The flow table column width is working correctly and doesn't need to be
1399 changed. See this mailing list post for more info:
1401 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1403 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1405 2011-08-27 Ben Konrath <ben@bagu.org>
1407 Add document title (database name) to top of the browser page.
1409 I added the document title to the TableSelecitonView but that will
1410 change if / when we add a view that doesn't require table selection.
1412 * mockups/details-contacts.html:
1413 * mockups/details-projects.html:
1414 * mockups/listview-contacts.html:
1415 * mockups/listview-projects.html:
1416 * mockups/style.css: Add document title to mockups to keep things
1418 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1419 sizes to account for the document title.
1420 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1421 Set the document title when it has been retrieved from the server.
1422 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1423 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1424 and implement setDocumentTitle(String) method.
1425 * src/main/webapp/style.css: Add ID for document title style.
1427 2011-08-25 Ben Konrath <ben@bagu.org>
1429 Add NavigationType enum to LayoutItemPortal DTO.
1431 This is the start of adding support for Portals to the Details View.
1433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1434 LayoutItem_Portal.navigation_type enum from libglom to
1435 LayoutItemPortal.NavigationType enum.
1436 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1437 NavigationType enum, field for storing the NavigationType and getter
1440 2011-08-25 Ben Konrath <ben@bagu.org>
1442 Implement the flow table layout in the Details View.
1444 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1445 FlowTable to Group to account for the renamed class.
1446 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1447 File. This is a container widget that implements the Glom details view
1448 flow table behaviour.
1449 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1450 org/glom/web/client/ui/FlowTable.java.
1451 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1452 so that the size of the subgroups are a closer match to the size of
1453 the Glom subgroups. This makes the flowtable layout match the layout
1454 in Glom for the Music Collection example file.
1456 2011-08-16 Ben Konrath <ben@bagu.org>
1458 Create container element for LayoutItemPortal in Details View.
1460 This will help me develop the layout for the FlowTable.
1462 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1463 fieldPanel variable to detailsCell.
1465 2011-08-15 Ben Konrath <ben@bagu.org>
1467 Set the height of the data element in the Details View.
1469 I changed the InlineLabels (text in a span element) to Labels (text in
1470 a div element) so that I could set the height of the details-data
1471 elements instead of the details-cell parent elements. This allows the
1472 the details-data element to display the correct height if style is
1473 applied that shows the height.
1475 This change has the added benefit of allowing the order of the labels
1476 and data elements to be changed for right-to-left languages.
1478 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1479 InlineLabels to Labels.
1480 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1481 InlineLabels to Labels. Set the height of the data element.
1482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1483 multiline text height in the Formatting DTO.
1484 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1485 for multiline height along with getter and setter methods.
1486 * src/main/webapp/style.css: Adjust style to account for the change
1487 from span elements to div elements in the details cell.
1489 2011-08-15 Ben Konrath <ben@bagu.org>
1491 Make the List View appearance match the mockups.
1493 It doesn't match exactly but it's much better than it was.
1495 * mockups/listview-contacts.html: Remove unused css classes.
1496 * mockups/listview-projects.html: Remove unused css classes.
1497 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1498 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1499 for mainPanel instead of VerticalPanel (table). Set style name on
1500 CellTable. Set style name on Details column. Right-align Details
1502 * src/main/webapp/style.css: Adjust properties to match the mockups.
1504 2011-08-12 Ben Konrath <ben@bagu.org>
1506 Add better support for subgroups in the details view.
1508 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1509 changed FlowTable constructor.
1510 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1511 support for subgroups and subgroup-titles.
1512 * src/main/webapp/style.css: Add CSS class for subgroups and
1515 2011-08-12 Ben Konrath <ben@bagu.org>
1517 Return the top level LayoutGroup title.
1519 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1521 2011-08-11 Ben Konrath <ben@bagu.org>
1523 Make the TableSelector header match the mockup.
1525 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1526 the layout panel. Properly lineup the table selection header with
1527 the list and details view.
1528 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1529 margin around the details view.
1530 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1531 Rename listBox variable to tableSelector. Set id for the style sheet.
1532 Use a FlowPanel instead of a HorizontalPanel.
1533 * src/main/webapp/style.css: Add properties to make the TableSelector
1534 box match the mockups.
1536 2011-07-13 Ben Konrath <ben@bagu.org>
1538 Update install script for java-libglom version change.
1540 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1543 2011-07-13 Ben Konrath <ben@bagu.org>
1545 Add support sub-group in the details view.
1547 I also removed the code that special-cased the default details view
1550 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1552 I still have to make a proper flowtable.
1554 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1555 Don't special-case default details view layout.
1556 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1557 addLayoutField() as I'm going to use it.
1558 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1559 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1561 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1562 extracted from DetailsViewImpl.GroupPanel. Add support for
1564 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1565 column count when getting the details layout.
1567 2011-07-12 Ben Konrath <ben@bagu.org>
1569 Set browser title with database and table titles.
1571 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1572 Set the browser title when the table changes and when the activity
1574 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1575 title when retrieving document info (the GlomDocument object).
1576 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1577 with getter and setter methods. Remove unused convenience constructor.
1578 Use default code formatting.
1580 2011-07-12 Ben Konrath <ben@bagu.org>
1582 Ignore LayoutItemPortals in the details view.
1584 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1587 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1588 LayoutItemPortal layout objects.
1589 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1590 LayoutItemPortal objects when retrieving the details layout.
1591 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1592 file. This is an empty class and just used to get type information for
1595 2011-07-12 Ben Konrath <ben@bagu.org>
1597 Use java-libglom 1.17.0.
1601 2011-07-11 Ben Konrath <ben@bagu.org>
1603 Remove "Table:" label from table selector.
1605 This matches a recent change in the Glom UI.
1607 * mockups/details-contacts.html:
1608 * mockups/details-projects.html:
1609 * mockups/listview-contacts.html:
1610 * mockups/listview-projects.html: Remove the "Table:" label from the
1612 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1614 2011-07-11 Ben Konrath <ben@bagu.org>
1616 Add main groups to the details view.
1618 This makes things look a little nicer in the details view. The next step
1619 is to implement the flowtable.
1621 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1622 resources from the standard gwt css theme. Standard.css is now
1623 included in OnlineGlom.html so that the online glom css rules have
1624 precedence over the gwt theme.
1625 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1626 the whole LayoutGroup to the DetailsView instead of just the titles.
1627 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1628 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1629 details layout with a helper class (GroupPanel). I might extract this
1630 class when I make the full flowtable.
1631 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1632 string as default so I don't have to worry about NPEs when processing
1634 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1635 note beside OnlineGlom.gwt.xml above).
1636 * src/main/webapp/style.css: Add default font-size to body to override
1637 the font-size set by the standard theme. Don't use h2 tags for
1638 group-title. Create new details-cell class.
1640 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1642 ConfiguredDocument: Set the port number too.
1644 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1645 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1646 Glom document. Presumably this worked sometimes so far because there is a
1647 default port number.
1649 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1651 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1653 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1654 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1655 correct, though we should throw an exception too.
1657 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1659 Fix a addDocuemnt typo.
1661 * src/main/java/org/glom/web/shared/Documents.java
1662 (Documents.addDocuemnt): Rename to addDocument().
1663 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1664 (OnlineGlomServiceImpl.getDocuments): Adapt.
1666 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1668 Slightly improved log output when connection fails.
1670 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1671 (ConfiguredDocument.setUsernameAndPassword):
1672 We don't know for sure if it' the username/password that's wrong, so
1673 rephrase the message.
1674 Also ouput the exception message, though it's generic in this case.
1676 2011-07-08 Ben Konrath <ben@bagu.org>
1680 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1681 added braces to a one line if statement because the Eclipse formatter
1682 was getting confused.
1684 2011-07-07 Ben Konrath <ben@bagu.org>
1686 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1688 These should really be two separate tasks but I counldn't get things to
1689 work with GWT 2.2.0 and Eclipse 3.7.
1693 * .settings/org.eclipse.jdt.core.prefs:
1694 * .settings/org.eclipse.jdt.ui.prefs:
1695 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1696 * .settings/org.eclipse.m2e.core.prefs:
1697 Add new config files. Update current files. Remove references to the
1698 webtools plugins as we're not using any of the webtools features.
1699 * .gitignore: Add logs directory which is created when running with
1701 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1702 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1703 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1705 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1707 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1709 onlineglom.properties: Add explanatory comments.
1711 * src/main/resources/onlineglom.properties: Also change the default user
1712 from ben to someuser, to avoid the risk of people thinking we just
1713 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1715 2011-06-28 Ben Konrath <ben@bagu.org>
1717 Use filename in Log for incorrect passwords.
1719 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1720 getFileName(String) method to get the filename from the URI.
1722 2011-06-28 Ben Konrath <ben@bagu.org>
1724 Add the table name to the URL token for the ListPlace.
1726 This makes things consistent between the DetailsPlace and the
1727 ListPlace. It also allows the the ListPlace to be bookmarked.
1729 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1730 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1731 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1732 Remove getDefaultListLayout(). The default layout is now returned
1733 by the getListLayout() method when the table name is an empty string.
1734 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1735 Add table name field. Change to a new ListPlace when the table
1736 has been changed. Use getListLayout() for getting the default
1738 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1739 Add table name field. Set the correct table name in the list box
1740 when loading from bookmark. This corrects a problem for the
1742 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1743 Move table name to super-class (HasSelectableTable). Move document
1744 and table URL keys to super-class in HasSelectableTable.
1745 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1746 Add table name field. Add Tokenizer class with URL key common to
1747 the subclasses (DetailsPlace and ListPlace).
1748 * src/main/java/org/glom/web/client/place/ListPlace.java:
1749 Add table name. Add code to parse the URL token.
1750 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1751 Update ListPlace construction with empty table name string.
1752 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1753 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1754 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1755 Update ListPlace construction with table name string.
1756 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1757 Change defaultTableName field to tableName to reflect how it's now
1758 used. Update the getter and setter methods.
1760 2011-06-28 Ben Konrath <ben@bagu.org>
1762 Enable the table selector in the DetailsView.
1764 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1765 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1766 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1767 Remove getDefaultDetailsLayout(). The default layout is now returned
1768 by the getDetailsLayout() method when the table name is an empty
1770 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1771 event handler for table change event. Change to using
1772 getDetailsLayout() for the default details layout.
1773 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1775 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1776 when navigating to the details place.
1778 2011-06-27 Ben Konrath <ben@bagu.org>
1780 Use filename based unique document ID in URL and for RPC.
1782 The document ID is the glom document name with spaces (' ') replaced
1783 with pluses ('+') and without the .glom extension.
1785 This change is mostly a string substitution of 'documentTitle' for
1786 'documentID'. The only code change is the addition of a Documents DTO to get the
1787 filename to document title mappings as indicated below.
1789 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1790 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1791 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1792 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1793 Use Documents DTO to create the document links in the document
1795 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1796 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1797 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1798 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1799 * src/main/java/org/glom/web/client/place/ListPlace.java:
1800 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1801 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1802 * src/main/java/org/glom/web/client/ui/ListView.java:
1803 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1804 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1805 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1806 * src/main/java/org/glom/web/server/Log.java:
1807 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1808 getDocumentTitles() to getDocuments() and return the Documents DTO.
1809 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1810 transferring the filename to document title mappings.
1812 2011-06-25 Ben Konrath <ben@bagu.org>
1814 Make the authentication popup work again.
1816 This bug was introduced when I extracted ConfiguredDocument to its own class.
1818 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1819 correct success / fail status in setUsernameAndPassword().
1821 2011-06-25 Ben Konrath <ben@bagu.org>
1823 Use filename as unique key for configuring database usernames and passwords.
1825 This replaces the use of the Glom document title which could change
1826 depending on the locale. Thanks to Murray Cumming for pointing out this
1829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1830 * src/main/resources/onlineglom.properties:
1832 2011-06-24 Ben Konrath <ben@bagu.org>
1834 Pass primary key value to DetailsView.
1836 This enables the DetailsView to load the correct data.
1838 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1839 primary key value field and set in constructor. Pass primary key
1840 value to getDetailsData().
1841 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1842 variables for document title and primary key value.
1843 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1844 key value to the DetailsPlace.
1846 2011-06-24 Ben Konrath <ben@bagu.org>
1848 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1850 This allows the primary key to be retrieved by the Details button. This
1851 functionality has not been implemented yet but it's in the works.
1853 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1854 the LayoutGroup result to ListView.setCellTable instead of all of its
1855 fields individually.
1856 * src/main/java/org/glom/web/client/ui/ListView.java:
1857 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1858 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1859 get the primary key for the table.
1860 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1861 index of the primary key in the LayoutGroup accounting for hidden
1862 primary keys. Rename getJavaNumberFormat() to
1863 convertToJavaNumberFormat() for consistency. Cleanup / add some
1865 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1866 field for primary key index and a field to indicate whether the
1867 primary key is hidden or not.
1869 2011-06-23 Ben Konrath <ben@bagu.org>
1871 Rename getTableData methods to getListData.
1873 This is a rename refactor for consistency with other methods.
1875 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1876 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1877 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1880 2011-06-23 Ben Konrath <ben@bagu.org>
1882 Extract the ConfiguredDocument innerclass into its own class.
1884 This makes the servlet code more object oriented.
1886 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1887 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1888 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1889 new ConfiguredDocument class.
1891 2011-06-21 Ben Konrath <ben@bagu.org>
1893 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1895 This makes things more inline with how libglom works and reduces code
1896 duplication. This refactor lays the groundwork for adding the primary key to
1897 the LayoutGroup object.
1899 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1900 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1901 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1902 Change method names to getListLayout and getDefaultListLayout for
1903 consistency. Use LayoutGroup as the DTO for the list layout instead of
1904 ColumnInfo and LayoutListTable.
1905 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1906 new method names along with the LayoutGroup object for transferring the
1908 * src/main/java/org/glom/web/client/ui/ListView.java:
1909 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1910 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1911 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1913 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1914 Replaced with LayoutGroup.
1915 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1916 expectedResultSize and defaultTableName fields which are needed for
1918 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1919 type field which is needed for the list layout but will also be
1920 useful for the details layout as things progress.
1921 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1922 Make class abstract. Remove the unnecessary
1923 getFormattingHorizontalAlignment method. Add setFormatting method.
1925 2011-06-16 Ben Konrath <ben@bagu.org>
1927 Add scripts for building and installing war.
1929 These will help when updating OnlineGlom but they're also good
1930 supplemental documentation of the build and deployment proceeding.
1932 * utils/build-onlineglom-war.sh: New file.
1933 * utils/install-onlineglom-war.sh: New file.
1935 2011-06-16 Ben Konrath <ben@bagu.org>
1937 Create wrapper class to create consistent log messages.
1939 I wrapped methods in the Log class of gwt-log to add the method names
1940 from the servlet and create consistent formatting of the document title
1941 and table names in the log messages.
1943 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1944 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1945 log methods to use methods from wrapped Log class.
1947 2011-06-16 Ben Konrath <ben@bagu.org>
1949 Remove superfluous conditional return.
1951 Thanks to Murray Cumming for pointing this out!
1953 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1955 2011-06-15 Ben Konrath <ben@bagu.org>
1957 Return an ArrayList of LayoutGroups for the Details layout.
1959 This corrects a problem with the details layout as it can have more
1960 than one top level LayoutGroup.
1962 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1963 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1964 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1965 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1966 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1967 with ArrayList of LayoutGroups for the details view layout.
1968 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1969 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1970 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1971 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1972 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1973 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1975 2011-06-14 Ben Konrath <ben@bagu.org>
1977 Use cast_dynamic method to determine the libglom LayoutItem type.
1979 This is better than finding the LayoutItem type by using the string
1980 returned from the get_part_type_name() method.
1982 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1984 2011-06-14 Ben Konrath <ben@bagu.org>
1986 Add method names to log entries in the servlet.
1988 This helps when tracking down deployment problems.
1990 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1992 2011-06-14 Ben Konrath <ben@bagu.org>
1994 Add data to the DetailsView using a hard-coded primary key value.
1996 The layout and functionality of the DetailsView is not complete. This
1997 is just a checkpoint so the patch doesn't get too big.
1999 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2000 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2001 Add getDetailsData() servlet method.
2002 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2003 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2004 LayoutFields are added to the DetailsView.
2005 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2006 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2007 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2008 take the string for the title instead of the object.
2009 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2010 Add implementation getDetailsData() along with some private helper
2012 * src/main/webapp/style.css: Add padding to details-data class. Add a
2013 details-label class with the same padding as the details-data class.
2015 2011-06-03 Ben Konrath <ben@bagu.org>
2017 Use presenter.goTo() to change to the DetailsPlace.
2019 This will make things easier when we need to open the DetailsView with
2020 data specific to the row that was clicked.
2022 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2024 2011-06-02 Ben Konrath <ben@bagu.org>
2026 Add CSS file from mockups.
2028 I'm adding this now because it's going to be useful to have when
2029 developing the DetailsView. The TableSelectionView and ListView aren't
2032 * src/main/webapp/OnlineGlom.html:
2033 * src/main/webapp/style.css:
2035 2011-06-02 Ben Konrath <ben@bagu.org>
2037 Use String.isEmpty() to check for empty string.
2039 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2041 2011-06-02 Ben Konrath <ben@bagu.org>
2043 Display main layout group titles in the DetailsView.
2045 This is the start of the DetailsActivity/DetailsView implementation.
2047 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2048 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2049 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2050 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2051 Get the layout information for the details view from the server and set
2052 the main layout group titles.
2053 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2054 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2055 Add addLayoutGroup() and addLayoutField() methods. This are just
2056 temporary methods for creating the the details view that will change
2058 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2059 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2061 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2062 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2063 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2064 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2065 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2066 Data Transfer Objects that mimic the libglom object structure. These are
2067 used for transferring the details layout but could also be used for
2068 transferring the list layout.
2070 2011-05-27 Ben Konrath <ben@bagu.org>
2072 Reset the AuthenticationPopup when clearing the ListView.
2074 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2076 2011-05-27 Ben Konrath <ben@bagu.org>
2078 Fix problem with onlineglom.properties file loading.
2080 The old way worked in Eclipse but not on the server. Loading the
2081 onlineglom.properties file now works in Eclipse and on the server.
2083 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2085 2011-05-24 Ben Konrath <ben@bagu.org>
2087 Update gwt-log from 3.1.0 to 3.1.2.
2089 Gwt-log 3.1.0 has been marked as depreciated.
2093 2011-05-24 Ben Konrath <ben@bagu.org>
2095 Add comment to ListActivity.goTo() method.
2097 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2099 2011-05-24 Ben Konrath <ben@bagu.org>
2101 Remove FIXME in convertGdkColorToHtmlColour()
2103 The Gdk::Color value returned by libglom is 16-bits per channel on both
2104 64 and 32-bit platforms.
2106 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2108 2011-05-19 Ben Konrath <ben@bagu.org>
2110 Improve performance of initial ListView load.
2112 I removed a round trip to the server for getting the default table name
2113 and then requesting information about that table. This also removes a potential
2114 problem with the table change handler not being setup in time to receive the
2115 table change event from the ListActivity.
2117 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2118 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2119 getDefaultLayoutListTable() method. Improve comments.
2120 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2121 getDefaultLayoutListTable() method instead of firing a table change
2122 event to get the table to load.
2123 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2124 implementation of getDefaultLayoutListTable() method.
2125 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2128 2011-05-19 Ben Konrath <ben@bagu.org>
2130 Override toDebugString() in TableChangeEvent.
2132 This is useful to have for debugging.
2134 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2136 2011-05-19 Ben Konrath <ben@bagu.org>
2138 Add a "Back to List" link when at the DetailsPlace.
2140 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2141 Populate the CellTable based on the selected table of the ListBox if
2142 it's set otherwise use the default table. This allows the "Back to
2144 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2145 Remove Place from constructors. Add a setPlace() method. Add
2146 goToPlace() method. Set class as presenter for TableSelectionView.
2147 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2148 Use the same TableSelectionActivity when switching between the List and
2150 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2151 Subclass the new HasSelectableTablePlace. This removes some duplicate
2153 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2154 New class to represent Places that display the TableSelectionView.
2155 * src/main/java/org/glom/web/client/place/ListPlace.java:
2156 Subclass the new HasSelectableTablePlace. This removes some duplicate
2158 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2159 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2160 Add Presenter interface. Add setBackLinkVisible() method. Add
2161 setBackLink() method.
2163 2011-05-18 Ben Konrath <ben@bagu.org>
2165 Enable the "Details" buttons.
2167 Right now only an empty details view is displayed.
2169 * src/main/java/org/glom/web/client/ClientFactory.java:
2170 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2171 Add DetailsView to ClientFactory.
2172 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2173 A basic activity for the details view.
2174 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2175 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2177 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2178 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2180 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2181 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2182 unnecessary super() in constructor.
2183 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2184 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2185 really shouldn't create a new TableSelectionActivity for both the ListPlace
2186 and the DetailsPlace so this should be considered a temporary solution.
2187 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2188 New file. Represents a URL for the details view.
2189 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2190 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2191 A basic details view interface and implementation.
2192 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2193 Enable the "Details" buttons.
2195 2011-05-12 Ben Konrath <ben@bagu.org>
2197 Use a LayoutPanel with multiple display areas for main layout.
2199 This is mostly a refactor in that there are no changes from the user
2200 point of view. These changes are required so that we can swap out the list view
2201 with the details view when the user clicks the "Details" button.
2203 * src/main/java/org/glom/web/client/ClientFactory.java:
2204 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2205 OnlineGlomView. Add TableSelectionView, ListView and
2206 AuthenticationPopup.
2207 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2208 for main layout. Add display regions for main activities. Add
2209 activity manager for for main activities.
2210 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2211 file from parts of the deleted OnlineGlomActivity.
2212 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2213 New file from parts of the deleted OnlineGlomActivity.
2214 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2215 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2216 New files for app wide table change event.
2217 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2218 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2219 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2220 Activity mappers for the main activities replace the deleted app-wide
2222 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2223 Fix a spelling error in he comment.
2224 * src/main/java/org/glom/web/client/ui/ListView.java:
2225 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2226 Renamed from LayoutListView and modified for MVP. This still not a
2227 proper dumb view as prescribed by the MVP pattern but it works for now.
2228 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2229 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2230 New widget stripped out of the deleted OnlineGlomView.
2231 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2232 Remove hack that is fixed by this patch.
2234 2011-05-06 Ben Konrath <ben@bagu.org>
2236 Rename OnlineGlomPlace to ListPlace.
2238 The only change besides the rename is that url will now display #list
2239 instead of #Document.
2241 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2242 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2243 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2244 * src/main/java/org/glom/web/client/place/ListPlace.java:
2245 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2247 2011-05-06 Ben Konrath <ben@bagu.org>
2249 Use Presenter for app navigation.
2251 This is the proper way to deal with Place (URL) changes with the MVP
2254 * src/main/java/org/glom/web/client/ClientFactory.java:
2255 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2256 PlaceHistoryMapper and PlaceHistoryHandler.
2257 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2258 PlaceHistoryMapper and PlaceHistoryHandler.
2259 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2260 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2261 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2262 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2263 Add Presenter interface and setPresenter methods. Rename addHyperLink
2264 to addDocumentLink taking only the document title as a parameter.
2266 2011-04-14 Ben Konrath <ben@bagu.org>
2268 Prompt for db username/password if they haven't been set.
2270 This is implemented with a popup widget that is contained within the
2271 OnlineGlomView and managed by the OnlineGlomActivity.
2273 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2274 methods for checking and setting the database username and password.
2275 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2276 new methods for checking and setting the database username and
2278 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2279 Display authentication popup if the JDBC connection to the database
2280 has not been authenticated.
2281 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2283 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2284 for dealing with the authentication popup.
2285 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2286 Implement the methods for dealing with the authentication popup.
2287 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2288 try to executed queries if the database connection hasn't been
2289 authenticated. Implement methods for checking and setting the
2290 database username and password.
2292 2011-04-12 Ben Konrath <ben@bagu.org>
2294 Make log messages a little clearer.
2296 Add a dash betweeen the document title and the table name.
2298 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2300 2011-04-12 Ben Konrath <ben@bagu.org>
2302 Protect against NPEs when cleaning up database resources.
2304 While this isn't strictly necessary because the exception is caught,
2305 not protecting against the NPEs makes it harder to find the real error
2308 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2310 2011-04-12 Ben Konrath <ben@bagu.org>
2312 Move configuration of the servlet to the constructor.
2314 The servlet will be initialized even if the database authentication
2315 information is not set or correct. I still need to add the UI for prompting
2316 the user for the authentication information when it's required.
2318 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2319 javadocs for getDocumentTitles() method.
2320 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2321 Set error message when RPC fails.
2322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2323 glom files directory from the configuration file. Try to set the
2324 database authentication information for the specific document if it's
2325 set and works otherwise try to use the global authentication
2326 information set for the directory.
2327 * src/main/resources/onlineglom.properties: Moved from
2328 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2329 Added detailed comments for the new keys.
2331 2011-04-11 Ben Konrath <ben@bagu.org>
2333 Remove unnecessary @Override in DocumentSelectionViewImpl.
2335 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2337 2011-04-11 Ben Konrath <ben@bagu.org>
2339 Remove center alignment in DocumentSelectionView.
2341 The title element is still centred but the document titles and bottom
2342 sentence are both left-aligned.
2344 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2346 2011-04-11 Ben Konrath <ben@bagu.org>
2348 Change 'Demo' naming convention to 'Document'.
2350 This is just a rename refactor with no functional changes to the code.
2352 * src/main/java/org/glom/web/client/ClientFactory.java:
2353 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2354 * src/main/java/org/glom/web/client/OnlineGlom.java:
2355 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2356 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2357 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2358 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2359 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2360 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2361 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2362 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2363 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2366 2011-04-08 Ben Konrath <ben@bagu.org>
2368 Remove FIXME from safeLongToInt() method.
2370 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2373 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2375 2011-04-08 Ben Konrath <ben@bagu.org>
2377 Display an error if no glom documents are found in the specified directory.
2379 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2380 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2381 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2384 2011-04-08 Ben Konrath <ben@bagu.org>
2386 Add copyright header to one more file ... oops.
2388 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2390 2011-04-08 Ben Konrath <ben@bagu.org>
2392 Add copyright header to files without it.
2394 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2395 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2396 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2397 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2398 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2399 * src/main/java/org/glom/web/shared/GlomField.java:
2401 2011-04-08 Ben Konrath <ben@bagu.org>
2403 Add support for accessing multiple glom documents in the servlet.
2405 This completes the demo selection functionality.
2407 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2408 document title to methods.
2409 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2410 document title to methods.
2411 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2412 Set browser window title when the activity starts. Correct name of
2413 document title variable.
2414 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2415 Set browser window title when the activity starts. Set the table
2416 selector change handler after table selector has been set. Clear the
2417 OnlineGlomView when the activity has been stopped.
2418 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2419 document title as the place token. Use "#Document:" instead of
2420 "#OnlineGlomPlace:" in the URL.
2421 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2422 Change heading to "Online Glom"
2423 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2424 document title in RPC methods.
2425 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2426 setDocumentTitle() method. Add clear() method.
2427 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2428 setDocumentTitle() method. Implement clear() method which removes the
2429 change handler on the ListBox, clears the ListBox and clears the
2431 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2432 Implement methods with document title. Keep track for the configured
2433 glom documents and their corresponding JDBC configurations in a hash
2434 table. This information is retrieved using the document title as the
2435 key in the hash table.
2436 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2437 document title field as it's no longer needed.
2439 2011-04-08 Ben Konrath <ben@bagu.org>
2441 Update the Eclipse JDT configuration.
2443 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2444 methods. Automatically add the copyright header to new files.
2446 2011-04-05 Ben Konrath <ben@bagu.org>
2448 Add new page for demo selection.
2450 This patch adds all the components required to view and start an
2451 OnlineGlom demo by clicking on the desired hyperlink. The user is
2452 able to return to the demo selection page with the browser's back
2453 button. I still need to modify the servlet to work with multiple
2454 documents so all demo links will load the file defined in the
2455 OnlineGlom.properties.
2457 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2458 This is only useful during development so we don't need to save it.
2459 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2460 get a reference to the DemoSelectionView.
2461 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2462 method to get a reference to the DemoSelectionView.
2463 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2464 default view to DemoSelectionView.
2465 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2466 to get glom document titles for glom files in a hard-coded directory.
2467 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2468 method to get glom document titles for glom files in a hard-coded
2470 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2471 Presenter for DemoSelectionView.
2472 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2473 for DemoSelectionView.
2474 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2475 Update for DemoSelectionView.
2476 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2477 Basic 'Place' implementation for the DemoSelectionView.
2478 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2479 The interface for the DemoSelectionView.
2480 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2481 The implementation of the DemoSelectionView.
2482 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2483 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2484 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2485 implementation of method to get glom document titles for glom files
2486 in a hard-coded directory.
2487 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2488 on longer being used.
2489 * src/main/webapp/glom.png: Glom logo.
2491 2011-04-05 Ben Konrath <ben@bagu.org>
2493 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2495 This is the forth and final commit of a refactor that will allow
2496 OnlineGlom to be used with multiple documents.
2498 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2499 Move RPC code from OnlineGlomViewImpl to this class.
2500 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2502 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2503 RPC code to the presenter class (the P in MVP).
2505 2011-04-04 Ben Konrath <ben@bagu.org>
2507 Start moving the existing OnlineGlom code to MVP.
2509 This work is based on the GWT MVP framework that is documented here:
2511 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2513 This is the third commit of a refactor that will allow OnlineGlom to
2514 be used with multiple documents.
2516 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2517 Interface for client factory which is used to get instances of various
2518 classes throughout the app.
2519 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2520 Implementation of client factory.
2521 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2522 initialize the MVP framework.
2523 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2524 New file. Activity manager for the main container widget. This is the
2526 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2527 Maps place (URL) to its corresponding activity.
2528 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2529 New file. This is just a place holder for a generated file.
2530 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2531 New file. Represents the URL for the main Online Glom app.
2532 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2533 for changes in LayoutListViewImpl.
2534 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2535 interface for View. Move code to OnlineGlomViewImpl class.
2536 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2537 file. Implementation of OnlineGlomView.
2538 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2539 Place resources. Use ClientFactoryImpl by default.
2541 2011-04-04 Ben Konrath <ben@bagu.org>
2543 Move View classes to their own package.
2545 This is the second commit of a refactor that will allow OnlineGlom to
2546 be used with multiple documents.
2548 * src/main/java/org/glom/web/client/OnlineGlom.java:
2549 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2550 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2552 2011-04-02 Ben Konrath <ben@bagu.org>
2554 Move UI code from the main module to its own class.
2556 This is the first commit of a refactor that will allow OnlineGlom to be
2557 used with multiple documents.
2559 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2560 references to OnlineGlom to OnlineGlomView.
2561 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2562 OnlineGlomView and instantiate it here.
2563 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2564 represents the main OnlineGlomView with one document.
2566 2011-04-01 Ben Konrath <ben@bagu.org>
2568 Fix formatting of gwt.xml and add DTD.
2570 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2572 2011-03-30 Ben Konrath <ben@bagu.org>
2574 Propperly convert gdkColor string to html colour string.
2576 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2578 2011-03-28 Ben Konrath <ben@bagu.org>
2580 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2582 This implementation matches
2583 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2584 readable and is not tied to Swig.
2586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2588 2011-03-28 Ben Konrath <ben@bagu.org>
2590 Use read-only checkboxes for boolean field types.
2592 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2593 in the CellTable based on the field type. It currently only
2594 distinguishes between boolean and text columns but I'll need to add
2595 support for more types.
2596 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2597 column type in the ColumnInfo object. Add method to convert between the
2598 glom field type enum in ColumnInfo and the glom field type in libglom.
2599 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2601 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2602 getting and setting booleans.
2604 2011-03-25 Ben Konrath <ben@bagu.org>
2606 Don't get the Date twice from the ResultSet.
2608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2610 2011-03-25 Ben Konrath <ben@bagu.org>
2612 Cleanup code in the servlet.
2614 * TODO: Remove item about row count. Add item about testing row count
2615 query with large number of rows.
2616 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2617 spelling mistakes, change method parameter to be consistent with
2620 2011-03-25 Ben Konrath <ben@bagu.org>
2622 Add server side logging with the gwt-log library.
2624 * .gitignore: Ignore the log file we're now producing.
2625 * TODO: Add a couple TODO item for logging.
2626 * pom.xml: Add gwt-log and log4j as a dependency.
2627 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2628 logging of errors, warnings and some important info.
2629 * src/main/resources/log4j.properties: New file to configure log4j.
2631 2011-03-24 Ben Konrath <ben@bagu.org>
2633 Add a disable button for the Details view.
2635 * src/main/java/org/glom/web/client/LayoutListView.java:
2637 2011-03-22 Ben Konrath <ben@bagu.org>
2639 Use a count query to get the number of rows for the list view pager.
2641 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2643 2011-03-22 Ben Konrath <ben@bagu.org>
2645 Add more TODO information about CellTable pager positioning.
2649 2011-03-19 Ben Konrath <ben@bagu.org>
2651 Add TODO item about CellTable pager positioning.
2655 2011-03-18 Ben Konrath <ben@bagu.org>
2657 Remove unneeded GlomFieldColumn class.
2659 This is just a small code cleanup.
2661 * src/main/java/org/glom/web/client/LayoutListView.java:
2663 2011-03-18 Ben Konrath <ben@bagu.org>
2665 Use cursor mode in the query that gets data for the list view.
2667 I still need to fix the potential memory problem when getting the row
2668 count for the list view.
2670 * TODO: Add note about testing memory usage with large data sets. Add
2671 item about fixing row counting with large data sets.
2672 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2673 PostgreSQL JDBC driver into cursor mode when getting data for the
2676 2011-03-15 Ben Konrath <ben@bagu.org>
2678 Remove the GWT Container from the Eclipse build classpath.
2680 The GWT dependencies are set by Maven so this isn't needed.
2684 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2686 Added some earlier mockups to git, but not to the tarball dist.
2688 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2689 Openismus. These hopefully show how we might structure the HTML so that
2690 it can be styled easily with CSS. However, we probably need to adapt them
2691 for the CSS structure that GWT dictates for common widgets.
2693 2011-03-14 Ben Konrath <ben@bagu.org>
2695 Locate OnlineGlom.properties using the ServletContext.
2697 This is required to be able to locate the file in the deployed servlet.
2699 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2700 Configure the database and glom document in in a helper method so
2701 that the ServletContext can be used to locate OnlineGlom.properties.
2702 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2703 src/main/webapp. This is the proper location for .properites files.
2705 2011-03-12 Ben Konrath <ben@bagu.org>
2707 Add note to README about why we're compiling down to obfuscated JavaScript.
2711 2011-03-11 Ben Konrath <ben@bagu.org>
2713 Use properties file to configure servlet.
2715 This allows people to change the glom file path, db username and db
2716 password without recompiling the code.
2718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2719 * src/main/webapp/OnlineGlom.properties:
2721 2011-03-11 Ben Konrath <ben@bagu.org>
2723 Use table fields in layout list view if the layout list is not defined.
2725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2726 Manually create a LayoutFieldVector for the query builder using the
2727 table fields when a layout list is not defined in the glom file.
2729 2011-03-11 Ben Konrath <ben@bagu.org>
2731 Only show FIXME string for images when there's an image.
2733 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2734 in this change are some small code cleanups.
2736 2011-03-11 Ben Konrath <ben@bagu.org>
2738 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2742 2011-03-11 Ben Konrath <ben@bagu.org>
2744 Correctly set the index of the default table.
2746 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2747 Correctly set the index of the default table. Add commented out example
2750 2011-03-10 Ben Konrath <ben@bagu.org>
2752 Add comment to pom.xml about the previous change.
2754 * pom.xml: Add comment about the deployment issue so that it's obvious
2755 why java-libglom is set to the provided scope.
2757 2011-03-10 Ben Konrath <ben@bagu.org>
2759 Change java-libglom dependency from compile to provided in pom.xml.
2761 Since java-libglom uses jni it can only be loaded once and therefore
2762 must be placed in $CATALINA_HOME/lib and not included in each war.
2763 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2764 More information about this issue can be found in the Tomcat 6 release
2765 notes in the "JNI Based Applications" section:
2767 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2769 * README: Remove note about this issue. Deployment info should really
2770 be on the wiki anyway so I'll add it right now.
2771 * pom.xml: Change java-libglom dependency from compile to provided so
2772 that it's copied in to the packaged war.
2774 2011-03-09 Ben Konrath <ben@bagu.org>
2776 Change to using a neutral locale for currency, date and time formatting.
2778 This solves the problem of currency values being represented without a
2779 space between the currency code and the number (e.g. "EUR5.89" is now
2780 represented as "EUR 5.89"). More work is required when we implement
2781 a locale preference setting.
2783 * TODO: Add note about currency formatting issues with different
2785 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2786 to using the neutral ROOT locale.
2788 2011-03-09 Ben Konrath <ben@bagu.org>
2790 Add support for currency codes that are not ISO 4217 codes.
2792 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2793 the currency code defined in the glom file when it's not 3 characters
2794 long or when Java doesn't recognize the string as an ISO 4217 code.
2796 2011-03-08 Ben Konrath <ben@bagu.org>
2798 Remove test classes, launch configurations and configuration.
2800 The test stuff was getting in the way when creating the war. To make
2801 the war file you can now do 'mvn clean package'. The packaged war file
2802 will be in the target directory.
2804 * .classpath: Remove unused classpathentry for tests and i18n.
2805 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2806 property. Don't run test or i18n goals when packaging the war.
2807 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2812 * OnlineGlomTest-dev.launch:
2813 * OnlineGlomTest-prod.launch:
2814 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2815 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2817 2011-03-07 Ben Konrath <ben@bagu.org>
2819 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2821 These fixes allow me to use 'mvn deploy' to create the war file.
2823 * .classpath: This generated config has been updated by Eclipse. This
2824 change was probably triggered by me updating from Eclipse 3.6.1 to
2826 * .gitignore: Add entry to ignore the directory
2827 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2828 * .project: The generated config has been updated by Eclipse. This
2829 change was probably triggered by me updating from Eclipse 3.6.1 to
2831 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2832 so that Eclipse doesn't complain
2833 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2834 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2835 'tests' directory to 'client' directory. This is the new
2836 gwt-maven-plugin convension.
2837 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2838 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2840 2011-03-07 Ben Konrath <ben@bagu.org>
2842 Add support for horizontal alignment in the LayoutList columns.
2844 * TODO: Remove item about horizontal alignment. Add item about
2845 improvements to ColumnInfo.
2846 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2847 alignment on the columns. Use ColumnInfo RPC object get the column
2848 title and horizontal alignment.
2849 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2850 LayoutListView creation with ColumnInfo RPC object.
2851 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2852 a ColumnInfo object for every LayoutList columnn. Convert the
2853 FieldFormatting.HorizontalAlignment to the correct
2854 ColumnnInfo.HorizontatlAlignment with the new
2855 getColumnInfoHorizontalAlignment helper method.
2856 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2857 to encapsulate column information like alignment and title. This
2858 could be used to set the colour instead of on a per cell field basis.
2859 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2860 column title storage and retrieval with ColumnInfo.
2862 2011-03-04 Ben Konrath <ben@bagu.org>
2864 Add support for column sorting.
2866 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2867 AsynDataProvider to be an anonymous inner class. Use new
2868 getSortedTableData RPC method when column sort is requested. Set all
2869 columns sortable and add an AsyncHandler to activate sorting in the
2871 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2872 method getSortedTableData(). Cleanup other method signatures.
2873 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2874 new method getSortedTableData(). Cleanup other method signatures.
2875 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2876 Implement getSortedTableData() and getTableData() methods by using a
2877 private helper method with the appropriate parameters filled in. Use
2878 user supplied sort clause when supplied, otherwise fall back to
2879 sorting by the primary key. Move destroy() method to be underneath
2880 constructor for readability. Cleanup comments.
2882 2011-03-03 Ben Konrath <ben@bagu.org>
2884 Add support for colour text and colour backgrounds to the layout list cells.
2886 Only the cell backgrounds are coloured which leaves a gap between the
2887 cells that isn't coloured. I need to figure out a way to set
2888 'style=background-colour:' on the whole column rather than just the
2891 * TODO: Add a note about colouring the background of the whole column.
2892 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2893 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2894 render the coloured text and backgrounds. Use GlomField[] for the row type.
2895 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2897 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2898 GlomField[] for the row type.
2899 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2900 GlomField[] for the row type. Set the text, text colour and background
2901 colour in the GlomField objects as specified in the glom document. Add
2902 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2903 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2904 the glom field text, foreground colour and background colour.
2906 2011-03-02 Ben Konrath <ben@bagu.org>
2908 Don't display hidden tables in the combo box.
2910 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2912 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2913 code to ignore hidden tables using ArrayLists for the table names and
2915 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2916 tableNames to use ArrayLists instead of String[]. Update getter and setter
2919 2011-03-01 Ben Konrath <ben@bagu.org>
2921 Add support for Date and Time number types.
2923 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2924 Implement formatting for Date and Time values. Change the default glom
2925 file to small business example.
2927 2011-03-01 Ben Konrath <ben@bagu.org>
2929 Add support for formatting glom types as specified in the glom file.
2931 Formatting isn't finished yet - I still need to add support for Date
2934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2935 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2936 checks for null values in JDBC cleanup code and catch all exceptions
2937 instead of just SQLExceptions.
2938 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2941 2011-03-01 Ben Konrath <ben@bagu.org>
2943 Use GWT 2.2.0 instead of 2.1.1.
2945 * pom.xml: Change GWT version numbers.
2947 2011-03-01 Ben Konrath <ben@bagu.org>
2949 A few small code cleanups.
2951 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2953 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2954 unnecessary object creation in constructor.
2955 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2956 unnecessary object creation in constructor.
2958 2011-02-28 Ben Konrath <ben@bagu.org>
2960 Add file for TODO list.
2964 2011-02-18 Ben Konrath <ben@bagu.org>
2966 Enable the CellTable Pager when more than 20 rows need to be viewed.
2968 The Pager will automatically become active when the results are larger
2969 than the CellTable size which is currently set to 20 lines.
2971 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2972 name on debug statment in RPC call in LayoutListDataProvider, add
2973 numRows parameter to LayoutListView constructor, propperly set rowCount
2975 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2976 name on debug statment in RPC call, use LayoutListTable object in RPC
2977 calls, pass rowCount to LayoutListView.
2978 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2979 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2981 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2982 interface for changes in OnlineGlomService.
2983 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2984 getLayoutListHeaders() to getLayoutListTable() and return
2985 LayoutListTable. Using this object allows me to pass other information
2986 about the LayoutList like the expected number of rows in the result set.
2987 The Connection object from the connection pool is now propperly closed.
2988 Only the requested number of lines are returned to the client in
2990 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2991 GlomTable and add columnTitles and numRows.
2993 2011-02-18 Ben Konrath <ben@bagu.org>
2995 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2997 This is a small performance boost. I'll use GlomTable to get the required
2998 layoutlist information.
3000 * src/main/java/org/glom/web/client/OnlineGlom.java:
3001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3002 * src/main/java/org/glom/web/shared/GlomDocument.java:
3004 2011-02-18 Ben Konrath <ben@bagu.org>
3006 Add option to turn off formatting in JDT formatter preferences.
3008 * .settings/org.eclipse.jdt.core.prefs:
3010 2011-02-18 Ben Konrath <ben@bagu.org>
3012 Rename LayoutList to LayoutListView.
3014 I'm working towards setting things up to easily use MVP when the time
3017 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3019 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3022 2011-02-17 Ben Konrath <ben@bagu.org>
3024 Move LayoutListDataProvider class into LayoutList.java.
3026 * src/main/java/org/glom/web/client/LayoutList.java:
3028 2011-02-17 Ben Konrath <ben@bagu.org>
3030 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3032 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3034 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3035 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3036 from LibGlomServer.java.
3037 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3038 Rename from LibGlomServiceAsync.java.
3039 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3040 Rename from LibGlomServiceImpl.java.
3041 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3043 2011-02-17 Ben Konrath <ben@bagu.org>
3045 Update JDT settings.
3047 * .settings/org.eclipse.jdt.core.prefs:
3049 2011-02-17 Ben Konrath <ben@bagu.org>
3051 Move GWT-RPC objects to shared package (where they should be).
3053 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3054 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3055 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3056 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3057 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3058 org.glom.web.shared package.
3059 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3060 org.glom.web.shared package.
3061 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3062 directory in compilation to javascript.
3064 2011-02-16 Ben Konrath <ben@bagu.org>
3066 Add sort clause to the sql query that grabs table information.
3068 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3069 if one of the columns is a primary key.
3071 2011-02-16 Ben Konrath <ben@bagu.org>
3073 Disable generateAsync feature of gwt-maven.
3075 The generated interface does not correctly match the methods in LibGlomService
3076 and the generated singleton Util inner-class doesn't respect the servlet
3079 * pom.xml: Turn off generateAsync feature.
3080 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3081 with singleton Util inner-class.
3083 2011-02-14 Ben Konrath <ben@bagu.org>
3085 Add LGPL v3 licence notices.
3087 Followed directions listed here:
3088 http://www.gnu.org/licenses/gpl-howto.html
3090 * COPYING: This file is a copy of the GPL v3.
3091 * COPYING.LESSER: This file is a copy of the LGPL v3.
3092 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3094 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3096 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3098 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3100 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3102 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3104 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3107 2011-02-14 Ben Konrath <ben@bagu.org>
3109 Use ArrayList instead of Array in GWT-RPC calls.
3111 Apparently this gives a slight performance boost to the compiled
3114 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3116 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3119 2011-02-14 Ben Konrath <ben@bagu.org>
3121 Access data from a postgres db rather than the example glom file.
3123 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3124 compile down to obfuscated javascript.
3125 * pom.xml: Add c3p0 and postgres JDBC libraries.
3126 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3127 using a postgres db accessed through the c3p0 connection pooling library.
3129 2011-02-14 Ben Konrath <ben@bagu.org>
3131 Update Java formatter settings.
3133 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3135 2011-02-02 Ben Konrath <ben@bagu.org>
3137 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3139 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3141 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3142 the compiled webapp directory that Eclipse uses as we're using Maven now.
3143 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3144 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3146 * pom.xml: Format file, change target Java version to 1.6.
3148 2011-02-02 Ben Konrath <ben@bagu.org>
3150 Add information about a deployment related issue.
3152 * README: Add Notes section with the problem outlined.
3154 2011-02-02 Ben Konrath <ben@bagu.org>
3156 Call Glom.libglom_deinit() when the servlet is shutdown.
3158 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3159 Glom.libglom_deinit() to destroy() method.
3161 2011-01-28 Ben Konrath <ben@bagu.org>
3163 Use generated Util class to get the RPC Async interface.
3165 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3167 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3168 getInstance() method to get a reference to the RPC Async interface.
3169 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3170 getInstance() method to get a reference to the RPC Async interface, remove
3171 the now unused getLibGlomServiceProxy() method.
3173 2011-01-27 Ben Konrath <ben@bagu.org>
3175 Cleanup ChangeLog entry from previous commit.
3177 * ChangeLog: Group logical changes together and add comments.
3179 2011-01-25 Ben Konrath <ben@bagu.org>
3181 Convert to gwt-maven project.
3183 * .gitignore: Update for new project structure.
3184 * README: New file with a link to the online documentation.
3185 * pom.xml: The generated maven configuration file with some tweaks.
3187 Add / update Eclipse settings. These files are a merge of the files that
3188 were generated with the gwt-maven plugin and the files we were previously
3192 * .settings/.jsdtscope:
3193 * .settings/com.google.gdt.eclipse.core.prefs:
3194 * .settings/com.google.gwt.eclipse.core.prefs:
3195 * .settings/org.eclipse.jdt.core.prefs:
3196 * .settings/org.eclipse.wst.common.component:
3197 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3198 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3199 * .settings/org.maven.ide.eclipse.prefs:
3200 * OnlineGlomTest-dev.launch:
3201 * OnlineGlomTest-prod.launch:
3203 Java source files moved from the 'src' directory to the directory structure
3205 * src/main/java/org/glom/web/client/GlomDocument.java:
3206 * src/main/java/org/glom/web/client/GlomTable.java:
3207 * src/main/java/org/glom/web/client/LayoutList.java:
3208 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3209 * src/main/java/org/glom/web/client/LibGlomService.java:
3210 * src/main/java/org/glom/web/client/OnlineGlom.java:
3211 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3213 Non-functional property file used for translations. I included this as
3214 reminder that it's something I need to sort out.
3215 * src/main/resources/org/glom/web/client/Messages.properties:
3217 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3218 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3220 The servlet configuration files moved from the 'war' directory.
3221 * src/main/webapp/OnlineGlom.css:
3222 * src/main/webapp/OnlineGlom.html:
3223 * src/main/webapp/WEB-INF/web.xml:
3225 Generated test files with most of the code commented out. I included these
3226 so that it's easy to add tests when we're ready for them.
3227 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3228 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3230 2011-01-25 Ben Konrath <ben@bagu.org>
3232 Remove unused println.
3234 * src/org/glom/web/server/LibGlomServiceImpl.java:
3236 2011-01-25 Ben Konrath <ben@bagu.org>