1 2011-12-05 Ben Konrath <ben@bagu.org>
3 Remove check for LayoutItem_Portal in list table method.
5 This check is no longer necessary because the method isn't being used
6 to create the LayoutItemPortal DTO.
8 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
10 2011-12-05 Ben Konrath <ben@bagu.org>
12 Properly support related list navigation.
14 Navigation from the "Repository Analyzer -> Package Scans ->
15 Dependencies" related table wasn't working because the primary key for
16 related tables wasn't being set properly. This commit fixes the
19 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
20 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
21 doesn't set the primary key properly for related list tables.
22 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
23 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
24 useful for getting the primary key for list view tables and for related
26 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
27 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
28 Move code to set the primary key for the table from the abstract
29 ListDBAccess class to ListViewDBAccess as it's only correct for list
31 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
32 Properly add primary key to related list tables.
34 2011-12-02 Ben Konrath <ben@bagu.org>
36 Properly set the horizontal alignment of fields.
38 This fix is for both the list tables and the details view.
40 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
41 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
42 to set the horizontal alignment of fields.
44 2011-12-02 Ben Konrath <ben@bagu.org>
46 Display currency codes in the details view.
48 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
50 2011-12-02 Ben Konrath <ben@bagu.org>
52 Avoid duplicate JNI call.
54 JNI is not as efficient as pure Java and this is an easy (and small)
57 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
58 Use previously retrieved value for whereClauseToTableName instead of
61 2011-12-02 Ben Konrath <ben@bagu.org>
63 Rename a couple of variables in RelatedListNavigation.
65 This is a rename-only refactor.
67 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
69 2011-12-02 Ben Konrath <ben@bagu.org>
71 Indicate clearly that a mismatched primary key type is a bug.
73 * src/main/java/org/glom/web/server/Utils.java: Change log level from
74 warning to error. Add 'This is a bug.' to message.
76 2011-12-02 Ben Konrath <ben@bagu.org>
78 Update / fix some comments.
80 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
82 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
84 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
85 Fix comments. Add some TODOs.
87 2011-12-02 Ben Konrath <ben@bagu.org>
89 Enable navigation to details view with string primary key from related list.
91 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
92 Create a text primary key value when return type of result is
93 java.sql.Types.VARCHAR.
95 2011-12-02 Ben Konrath <ben@bagu.org>
97 Use checkboxes for booleans in the details view.
99 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
101 2011-12-01 Ben Konrath <ben@bagu.org>
103 Improve performance of related list height calculation.
105 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
106 Put code to calculate the expected height in a static initializer so
107 that that it's only called once.
109 2011-12-01 Ben Konrath <ben@bagu.org>
111 Show related list tables in notebooks (again).
113 Calculate the height of the related list tables so the Notebook can be
114 set the correct height. The height of the related list table is also needed by
115 FlowTable to be able decide how to create the layout.
117 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
118 and set the Portal height based on the height of the related list
119 table and the Portal container.
120 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
121 Add method to calculate the height of the related list tables.
122 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
123 * src/main/webapp/style.css: Add css class for Pager. This is needed to
124 calculate the height of the Pager widget.
126 2011-12-01 Ben Konrath <ben@bagu.org>
128 Use CellTable API for table property instead of setting style on Element.
130 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
132 2011-12-01 Ben Konrath <ben@bagu.org>
134 Make ListViewTable and RelatedListTable a consistent height.
136 The tables are now a consistent height regardless of the contents of
137 the table. A hidden button is added to empty rows to ensure that the
138 height of these rows will match the height of rows with data.
140 A navigation button column is now added to every table. The width of
141 the navigation column is set to 0px when a RelatedListTable shouldn't
142 have navigation buttons. This maintains the a consistent row height in
143 tables that don't show the navigation buttons.
145 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
146 navigation column when not needed.
147 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
148 arguments for navigation button to constructor of ListViewTable.
149 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
150 hidden button for empty data rows.
151 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
152 arguments for navigation button to constructor.
153 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
154 create navigation buttons. Add hideNavigationButtons() method.
155 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
156 arguments for navigation button to constructor.
158 2011-12-01 Ben Konrath <ben@bagu.org>
160 Use 'visibility: hidden' in Utils.getWidgetHeight().
162 This is better choice because hidden elements are invisible, don't
163 respond to events and are not part of the tab order. They will,
164 however, take up space which is required to be able to calculate the
165 height of the widget.
167 * src/main/java/org/glom/web/client/Utils.java:
169 2011-12-01 Ben Konrath <ben@bagu.org>
171 Use Utils.getWidgetHeight() in FlowTable.
173 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
175 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
177 2011-12-01 Ben Konrath <ben@bagu.org>
179 Put the details css class name on the correct table column.
181 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
183 2011-11-30 Ben Konrath <ben@bagu.org>
185 Update for java-libglom API change.
187 The getters and setters on FieldFormatting and NumericFormat were
188 changed to remove the 'M'.
190 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
192 2011-11-29 Ben Konrath <ben@bagu.org>
194 Only allow RelatedListTables in Portals.
196 * src/main/java/org/glom/web/client/ui/details/Portal.java:
198 2011-11-29 Ben Konrath <ben@bagu.org>
200 Only create a contents panel for Portals when title is being set.
202 * src/main/java/org/glom/web/client/ui/details/Portal.java:
204 2011-11-29 Ben Konrath <ben@bagu.org>
206 Set TabLayoutPanel height based on calculated height its widgets.
208 This is a potential fix for this bug:
210 https://bugzilla.gnome.org/show_bug.cgi?id=665133
212 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
214 2011-11-29 Ben Konrath <ben@bagu.org>
216 Align details field labels and data with the Open buttons.
218 * src/main/webapp/style.css:
220 2011-11-29 Ben Konrath <ben@bagu.org>
222 Remove unnecessary <div> in the Notebook widget.
224 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
225 method to get container FlowPanel (<div>).
226 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
227 initWidget() method directly on the TabLayoutPanel widget instead of
228 Group's container widget.
230 2011-11-29 Ben Konrath <ben@bagu.org>
232 Don't add group titles for Portals in Notebooks.
234 This reverts the previous patch and fixes a bug I introduced with
235 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
237 * src/main/java/org/glom/web/client/ui/details/Group.java:
238 * src/main/java/org/glom/web/client/ui/details/Portal.java:
240 2011-11-28 Ben Konrath <ben@bagu.org>
242 Remove unused boolean argument in Portal constructor.
246 * src/main/java/org/glom/web/client/ui/details/Group.java:
247 * src/main/java/org/glom/web/client/ui/details/Portal.java:
249 2011-11-28 Ben Konrath <ben@bagu.org>
251 Remove hack for glom 1.18 style glom files.
253 * src/main/java/org/glom/web/client/ui/details/Group.java:
254 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
255 * src/main/java/org/glom/web/client/ui/details/Portal.java:
257 2011-11-28 Ben Konrath <ben@bagu.org>
259 Use Gda Value version of primary key to log result too large error.
261 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
263 2011-11-28 Ben Konrath <ben@bagu.org>
265 Don't use TypedDataItem.getText() for Unknown types from the URL.
267 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
268 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
269 instead of getText().
270 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
271 String field and getUnknown() method.
273 2011-11-28 Ben Konrath <ben@bagu.org>
275 Log an error message when the java-libglom .so is not present.
277 The error message was being set in the exception but not logged.
279 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
281 2011-11-28 Ben Konrath <ben@bagu.org>
283 Ignore LayoutItem_CalendarPortals.
285 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
286 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
288 2011-11-28 Ben Konrath <ben@bagu.org>
290 Extract method for creating the LayoutItemPortal DTO.
292 Just breaking the code up into smaller chunks.
294 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
296 2011-11-28 Ben Konrath <ben@bagu.org>
300 This should have been added with the refactor. Oops!
302 * src/main/java/org/glom/web/shared/TypedDataItem.java:
304 2011-11-28 Ben Konrath <ben@bagu.org>
306 Create primary key value from URL string using type from Glom document.
308 See this bug, comments 19 - 25:
310 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
312 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
313 create a TypeDataItem for the primary key here when loading from a
314 URL. Show the same string for the primary key value as was received
315 from the URL string (when loading from a URL).
316 * src/main/java/org/glom/web/server/Utils.java: Update method for
317 creating the Gda Value from the TypeDataItem to properly deal with
318 creating a Gda Value based on the Glom document type for the primary
319 key value string when loading from a URL.
320 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
321 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
322 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
323 Update for changed method name.
325 2011-11-27 Ben Konrath <ben@bagu.org>
327 Rename PrimaryKeyItem to TypedDataItem.
329 The name PrimaryKeyItem suggests what the class should be used for.
330 TypedDataItem is a neutral name that describes the class better.
332 This is a rename-only refactor.
334 * src/main/java/org/glom/web/client/OnlineGlomService.java:
335 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
336 * src/main/java/org/glom/web/client/Utils.java:
337 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
338 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
339 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
340 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
341 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
342 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
343 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
344 * src/main/java/org/glom/web/server/Utils.java:
345 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
346 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
347 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
348 * src/main/java/org/glom/web/shared/NavigationRecord.java:
350 2011-11-25 Ben Konrath <ben@bagu.org>
352 Improve Gda Value conversion from PrimaryKeyItem.
354 The value from the PrimaryKeyItem is only used if its type match the
355 type from the glom document.
357 * src/main/java/org/glom/web/server/Utils.java:
359 2011-11-25 Ben Konrath <ben@bagu.org>
361 Manually check if the java-liblgom .so is visible to the JVM.
363 It seems that Tomcat has problems when a static initializer throws an
364 exception. This check is done before the first method call into
365 java-libglom so that execution doesn't continue if the .so is not
368 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
370 2011-11-25 Ben Konrath <ben@bagu.org>
372 Improve browser configuration error messages.
376 https://bugzilla.gnome.org/show_bug.cgi?id=662792
378 * src/main/java/org/glom/web/client/OnlineGlomService.java:
379 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
380 getConfigurationErrorMessage() method.
381 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
382 Get and display a specific configuration error message when no Glom
384 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
385 Implement getConfigurationErrorMessage() method. Surround configuration
386 code in the init() method with a try/catch block. This allows the
387 errors to be caught while keeping the servlet available to retrieve the
388 configuration error message.
390 2011-11-25 Ben Konrath <ben@bagu.org>
392 Don't use Strings to hold primary key values.
394 The primary key values are now held in a new data object
395 (PrimaryKeyItem) that holds type information and the primary key value
396 using the correct type.
398 * src/main/java/org/glom/web/client/OnlineGlomService.java:
399 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
400 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
401 PrimaryKeyItem instead of String to hold the primary key value.
402 * src/main/java/org/glom/web/client/Utils.java: Remove
403 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
404 PrimaryKeyItem based on the GlomFieldType and the DataItem.
405 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
406 PrimaryKeyItem instead of String to hold the primary key value. Load
407 document selection page when the documentID has not been set correctly.
408 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
409 DetailsPlace -> URL and URL -> DetailsPlace conversion with
411 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
412 Return empty string for URL instead of "null".
413 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
414 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
415 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
416 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
417 PrimaryKeyItem instead of String to hold primary key values.
418 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
419 PrimaryKeyValue to a Gda Value.
420 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
421 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
422 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
423 Replace temporary database access code that uses the PrimaryKeyValue to
424 Gda Value conversion.
425 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
426 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
427 PrimaryKeyItem instead of String.
428 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
429 hold primary key values.
431 2011-11-24 Ben Konrath <ben@bagu.org>
433 Use newly added java-libglom API to create queries.
435 This isn't finished. I still need to stop using Strings for primary key
436 values in the client code.
438 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
439 libglom to use fake connections so that retrieving the query string will
441 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
442 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
443 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
444 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
445 Use the newly added libglom sql methods and classes to create the
446 query. Add temporary hack to convert primary value strings to Gda
449 2011-11-23 Ben Konrath <ben@bagu.org>
451 Don't explicitly set the height of Portals.
453 See comments 6 - 10 of this bug for details:
455 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
457 * src/main/java/org/glom/web/client/ui/details/Portal.java:
459 2011-11-23 Ben Konrath <ben@bagu.org>
461 Use an HTML table instead of CSS for the FlowTable layout.
463 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
464 GWT's FlexTable to implement the FlowTable.
465 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
467 2011-11-18 Ben Konrath <ben@bagu.org>
469 Add boolean example to HTML table mockup.
471 * mockups/details-view-html-tables-text-entries.html:
473 2011-11-17 Ben Konrath <ben@bagu.org>
475 Ensure the pager buttons are always visible for related lists.
477 To accomplish this, I've turned off text wrapping in the list view and
478 related list tables for both the header and data text. The related list
479 table now has a fixed layout so the it doesn't overflow its container.
480 This is required to ensure that the cell text is clipped when it
481 overflows the cell and an ellipsis is added to the right side of the
482 cell when text is clipped.
484 A fixed table layout for the related list table in the details view
485 seems what we want for the details view anyway, so the side-effect is
488 The ellipsis will only be displayed in Firefox >= 7.
492 https://bugzilla.gnome.org/show_bug.cgi?id=662930
494 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
495 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
496 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
498 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
499 Set the 'table-layout: fixed' CSS property to the related list table.
500 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
501 'white-space: nowrap;' CSS property on both the list view and the
504 2011-11-16 Ben Konrath <ben@bagu.org>
506 Rework the fix for empty notebook tab labels.
508 Setting the empty group titles with its name caused problems for the
509 details layout. Instead of using libglom's
510 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
511 to the client when the title is empty. This allows the Notebook to use
512 the name when the title is empty without affecting anything else.
514 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
515 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
517 2011-11-16 Ben Konrath <ben@bagu.org>
519 Set group titles with name when title is empty.
521 This fixes a problem with an empty notebook tab label in the Lesson
522 Planner document. The forth tab in the notebook should be "Internet":
524 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
526 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
527 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
530 2011-11-16 Ben Konrath <ben@bagu.org>
532 Remove whitespace from the configured username properties.
534 This assumes that usernames won't have whitespace at the beginning
535 or end. But I think this is a reasonable assumption.
537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
538 String.trim() to remove the whitespace from the username properties.
540 2011-11-15 Ben Konrath <ben@bagu.org>
542 Add details view mockup with HTML tables and text entries.
544 This is from the attachment on this bug:
546 https://bugzilla.gnome.org/show_bug.cgi?id=663109
548 * mockups/details-view-html-tables-text-entries.html:
550 2011-11-15 Ben Konrath <ben@bagu.org>
552 Add space between the columns of the flow table.
556 https://bugzilla.gnome.org/show_bug.cgi?id=662918
558 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
559 space between columns in the flow table.
561 2011-11-15 Ben Konrath <ben@bagu.org>
563 Add backup files to the .gitignore.
565 * .gitignore: Ignore files that end with ~.
567 2011-11-09 Ben Konrath <ben@bagu.org>
569 Use latest release of gwt-log.
571 Gwt-log releases are now being submitted to the maven central
572 repository so manual installation of the jar is no longer required.
574 * pom.xml: Update version and groupId of gwt-log dependency.
576 2011-10-31 Ben Konrath <ben@bagu.org>
578 Don't use GWT numeric formatting to override the glom currency formatting.
580 Currencies are now displayed like they are in Glom. See this bug:
582 https://bugzilla.gnome.org/show_bug.cgi?id=646216
584 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
586 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
587 currency code to constructor and set it when the cell is rendered.
588 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
589 currency code to the constructor of the NumericCell.
591 2011-10-27 Ben Konrath <ben@bagu.org>
593 Require the latest release of java-libglom (1.17.4).
597 2011-10-26 Ben Konrath <ben@bagu.org>
599 Add style to Notebook that matches current theme.
601 It's not the best style in the world but it's better than the default.
603 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
604 padding at the bottom of the child widgets.
605 * src/main/webapp/style.css: Add style for the Notebook.
607 2011-10-26 Ben Konrath <ben@bagu.org>
609 Move servlet initialization code to overridden init method.
611 This is half of the solution to getting proper error messages
612 displayed when configuration errors occur. Here's the relevant bug:
614 https://bugzilla.gnome.org/show_bug.cgi?id=662792
616 The rest of the solution involves surrounding the init method with a
617 try/catch block and setting a global variable with the error /
618 exception. A new async method should be created to retrieve and display
619 the error message / exception.
621 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
622 code from constructor to init method adding exceptions as needed.
624 2011-10-26 Ben Konrath <ben@bagu.org>
626 Add script to monitor and restart tomcat if required.
628 * utils/check-and-recover-tomcat.py: New file.
630 2011-10-26 Ben Konrath <ben@bagu.org>
632 Display the correct number of data items in the pager.
636 https://bugzilla.gnome.org/show_bug.cgi?id=661441
638 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
639 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
640 The implementation is the same for both tables: Keep track of the
641 number of non-empty rows and fire and RowCountChangeEvent after the data has
643 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
644 custom Pager class that subclasses SimplePager to handle displaying
645 the correct number when empty rows have been added.
647 2011-10-26 Ben Konrath <ben@bagu.org>
649 Correct error in previous commit.
651 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
652 eventBus parameter from listView.setCellTable().
654 2011-10-26 Ben Konrath <ben@bagu.org>
656 Fix error in TODO comment.
658 * src/main/java/org/glom/web/client/activity/ListActivity.java:
660 2011-10-24 Ben Konrath <ben@bagu.org>
662 Create Notebook widgets to the details view.
664 This isn't finished just yet - I still need to create a reasonable
665 style to match the current theme.
667 * src/main/java/org/glom/web/client/Utils.java: Add method for
668 calculating the height of a widget. This is used in the Notebook class.
669 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
670 new constructor method in Group.
671 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
672 method for creating child widget that can be used by subclasses
673 like Notebook. New constructor that allows disabling the group
674 titles - Notebooks don't set a group title for their child groups.
675 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
676 to make Notebooks using GWT's TabLayoutPanel.
677 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
678 constructor that allows disabling the group titles.
679 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
680 LayoutItemNotebook DTO.
681 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
682 DTO for Notebooks. It's just an empty class for now but we might need
683 it to transfer some specific information in the future.
685 2011-10-21 Ben Konrath <ben@bagu.org>
687 Add navigation buttons to related list tables.
689 * src/main/java/org/glom/web/client/OnlineGlomService.java:
690 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
691 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
692 method getSuitableRecordToViewDetails() for getting the table name
693 and primary key value for related list navigation buttons.
694 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
695 private cell renderer class to get the navigation information for
696 related list tables from the server. Extract the navigation
697 processing code from the details cell navigation and use it for the
698 related list navigation as well.
699 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
700 cell renderer class for the details open buttons. This was needed
701 because the related list navigation buttons and the list view
702 navigation buttons need to react differently when clicked.
703 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
704 the onEnterKeyDown() method because it's now overriden in the
705 subclasses that are specific to the related list tables and the list
707 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
708 the vertical size a little because the buttons add a bit of vertical
709 space to table. This is not a perfect solution because the vertical
710 size of with table fewer than 5 rows will be a little smaller.
711 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
712 changes in how navigation buttons are handled.
713 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
714 getSuitableRecordToViewDetails() using the new RelatedListNavigation
715 database access object.
716 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
717 to find the portal for a given relationship name from
718 RelatedListDBAccess. Add method to find a primary key field for a
720 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
721 Move code to find the portal for a given relationship name to
723 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
724 New file: database access object for getting the related list
725 navigation information (the table name and the primary key value).
726 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
727 DTO for transferring a table name to navigate to and a primary key
729 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
730 boolean and getter/setter to specifies if the related list should add
733 2011-10-24 Murray Cumming <murrayc@murrayc.com>
735 Use the master branch of java-libglom
737 * pom.xml: Depend on java-libglom 1.19 instead.
739 This is the master branch. See also the libglom-1-18 branch.
741 2011-10-11 Ben Konrath <ben@bagu.org>
743 Enable the open navigation button when the data has been set.
745 This avoids having active buttons that don't do anything when the data
748 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
750 2011-10-11 Ben Konrath <ben@bagu.org>
752 Use IsWidget interface for FlowTableItem.
754 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
755 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
757 2011-10-11 Ben Konrath <ben@bagu.org>
759 Remove GWT styling from open button in details view.
761 There are still some issues with how the details cell is arranged but
762 this should be made to match Glom 1.20. I'm going to leave fixing this
763 until I have Glom 1.20 up and running.
765 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
766 style name on open button.
767 * src/main/webapp/style.css: Move and edit details-navigation class.
768 Re-arrange some classes to make them appear in the same order as the
771 2011-10-07 Ben Konrath <ben@bagu.org>
775 * .gitignore: Ignore new cache directory.
776 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
777 * pom.xml: Change GWT and maven plugin to 2.4.0.
778 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
780 * src/main/java/org/glom/web/client/ClientFactory.java:
781 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
782 * src/main/java/org/glom/web/client/OnlineGlom.java:
783 Update source for API changes.
784 * utils/build-onlineglom-war.sh: Remove cache directory before the
787 2011-10-07 Ben Konrath <ben@bagu.org>
789 Add navigation buttons in the details view.
791 This isn't finished but I thought I'd commit what I have as it's a
792 pretty good start. I still need to:
794 1. Change the style so that it fits better into the current theme
795 2. Adjust the details cell to expand as much as possible.
797 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
798 click handlers to navigation buttons in the DetailsCells. Create a
799 refreshData() method to get just the data from the server without the
801 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
802 Update the tableSelector and browser title when the table name
803 changes without using the tableSelector.
804 * src/main/java/org/glom/web/client/ui/DetailsView.java:
805 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
806 getDetailsCells() to getCells(). Update variable names.
807 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
808 method to set click handler on navigation button. Rename a few
809 variables. Add navigation buttons where needed.
810 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
811 variables and methods.
812 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
813 navigation boolean and navigation table as required in the
815 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
816 variables for navigation along with getter/setter methods.
818 2011-10-07 Ben Konrath <ben@bagu.org>
820 Rename Field to DetailsCell.
822 This is a refactor-only commit. No functionality has been added or
825 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
826 Update variable and method names.
827 * src/main/java/org/glom/web/client/ui/DetailsView.java:
828 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
829 variable and method names.
830 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
832 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
833 variable and method names.
835 2011-10-07 Ben Konrath <ben@bagu.org>
837 Create separate methods for layout and data the details view.
839 This is a refactor-only commit. No functionality has been added or
842 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
843 private methods: setData(), createLayout().
845 2011-10-07 Ben Konrath <ben@bagu.org>
847 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
849 This is part of a change to get navigation buttons in the details view
850 but it should have been done this way from the start.
852 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
853 for method name change in TableSelectionView.
854 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
855 Create TableChangeEvent and set the browser title using the
856 TableSelectionView API.
857 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
858 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
859 Change getSelectedTable() to getSelectedTableName(). Add
860 getSelectedTableTitle().
862 2011-10-07 Ben Konrath <ben@bagu.org>
864 Use primaryKeyValue naming convention in constructor of DetailsPlace.
866 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
868 2011-10-07 Ben Konrath <ben@bagu.org>
870 Update TableChangeEvent to use newTableName naming convention.
872 This makes the class more consistent with GWT naming conventions.
874 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
875 Update for method name change in TableChangeEvent.
876 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
877 for method name change in TableChangeEvent.
878 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
879 newTableName variable and getter method. Make toDebugString()
882 2011-09-30 Ben Konrath <ben@bagu.org>
884 Disable the pager in the list tables when the data row count is less than the minimum.
886 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
887 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
889 2011-09-30 Ben Konrath <ben@bagu.org>
891 Add empty rows to the end of related list and list view tables.
893 I also extracted the cell rendering classes from the ListTable because
894 the code was becoming a little crazy with all the anonymous inner
895 classes. My plan is to use these cell rendering classes in the details
896 view as well so this refactor will be needed for that change.
898 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
899 set the row count in related list tables if the data has more rows
900 than the minimum number of rows visible.
901 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
902 row count in list view tables if the data has more rows than the
903 minimum number of rows visible.
904 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
905 for rendering TYPE_BOOLEAN cells. The code was extracted from the
907 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
908 for rendering TYPE_NUMERIC cells. The code was extracted from the
910 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
911 class for rendering cells with buttons in list views. The code was
912 extracted from the ListTable class.
913 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
914 for rendering TYPE_TEXT cells. The code was extracted from the
916 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
917 Add empty rows to the end of the data if required. Implement
918 ListTable.getMinNumVisibleRows().
919 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
920 cell renderer code to public classes. Return null in
921 Column.getValue() for empty rows. Add new abstract method:
922 getMinNumVisibleRows(). Move code to set the row count of the list view
923 table to ListViewImpl.
924 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
925 empty rows to the end of the data if required. Implement
926 ListTable.getMinNumVisibleRows().
929 2011-09-27 Ben Konrath <ben@bagu.org>
931 Use GWT.log for client-side debugging statements.
933 These are optimized out when deployed so I should have used this method
934 in the first place. These statements will eventually be replaced with some sort
935 of notification in the browser.
937 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
938 * src/main/java/org/glom/web/client/activity/ListActivity.java:
939 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
940 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
941 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
943 2011-09-27 Ben Konrath <ben@bagu.org>
945 Put tableselector on the right, back to list link on right.
947 The idea is that the table selector is acting like a label for the
948 currently displayed table so it should be placed below the document title. This
949 puts the table title in a similar position to where it is in Glom.
951 * mockups/details-contacts.html:
952 * mockups/details-projects.html:
953 * mockups/listview-contacts.html:
954 * mockups/listview-projects.html:
956 Update mockups to match how the interfaces currently look.
957 * src/main/webapp/style.css: Swap positions of backlink with the table
958 selector. Add some space on the left side of the table selector to
959 line things up with the document title.
961 2011-09-27 Ben Konrath <ben@bagu.org>
963 Add field colouring to details view.
965 This change re-works how field colouring works. The colour formatting
966 information is now set to the client with the layout information instead of
967 with the data. This eliminates the need to send the same colour strings for
968 data in list view column when colour information is set.
970 In order to set an alternate colour for negative numeric values, the
971 number is now sent to client and formatted with the GWT NumberFormat class.
973 This change also fixes:
975 https://bugzilla.gnome.org/show_bug.cgi?id=659752
977 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
978 internationalization framework which is needed for client side numeric
980 * src/main/java/org/glom/web/client/Utils.java: New file for some
981 client static utility methods.
982 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
983 the DataItem object to the Field class. Use a utility method to
984 create the foreignKeyValue string.
985 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
986 alignment and text colours in the constructor. Add setData(DataItem)
987 method. Remove setText(String) method.
988 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
989 colour information to GlomTextCell. Create and use GlomNumberCell for
990 rendering numbers. Use utility method to get the string for the
991 primary key of the key provider. Re-work how the horizontal alignment
993 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
994 formatting to layout information. Methods for converting the libglom
995 formatting information were moved from DBAccess.
996 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
997 numeric formatting (it's now done on the client side). Don't set text
998 colours in DataItem. Move libglom formatting conversion methods to
1000 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1001 getters/setters for text colour information.
1002 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1003 for transferring the libglom NumericFormat information to the client.
1004 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1005 and getters/setters for: GlomNumericFormat, background colour and
1006 foreground colour strings.
1008 2011-09-26 Ben Konrath <ben@bagu.org>
1010 Simplify code that iterates through the LayoutGroup.
1012 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1014 2011-09-26 Ben Konrath <ben@bagu.org>
1016 Accept Eclipse formatting for OnlineGlomServiceAsync.
1018 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1020 2011-09-26 Ben Konrath <ben@bagu.org>
1022 Don't use the ListDBAccess classes to get the primary key layout information.
1024 This was causing a bug where the wrong index for the hidden primary key
1025 was being sent to the client.
1027 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1028 primary key while creating the LayoutGroup DTO. Create a
1029 LayoutItemField DTO for hidden primary keys. Don't use the
1030 RelatedListDBAccess because it was only used for getting the primary
1032 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1033 access modifier from public to protected for getPrimaryKeyField() and
1034 getPrimaryKeyLayoutItemField().
1035 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1036 abstract method getExpectedResultSize() because RelatedListDBAccess
1037 doesn't have enough info to implement it.
1038 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1039 Remove @Override for getExpectedResultSize().
1040 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1041 Remove method getExpectedResultSize().
1043 2011-09-23 Ben Konrath <ben@bagu.org>
1045 Log which layout (list or details) the ignored item is from.
1047 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1049 2011-09-23 Ben Konrath <ben@bagu.org>
1051 Remove annotations that turn off code formatting in DataItem.
1053 * src/main/java/org/glom/web/shared/DataItem.java:
1055 2011-09-23 Ben Konrath <ben@bagu.org>
1057 Rename GlomField to DataItem and update associated methods.
1059 This is a rename-only refactor. No functionality has been added or
1062 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1063 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1064 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1065 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1066 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1067 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1068 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1069 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1070 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1071 * src/main/java/org/glom/web/server/database/DBAccess.java:
1072 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1073 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1074 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1075 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1076 * src/main/java/org/glom/web/shared/DataItem.java:
1077 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1078 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1080 2011-09-23 Ben Konrath <ben@bagu.org>
1082 Rename GlomDocument to DocumentInfo and update associated methods.
1084 This is a rename-only refactor. No functionality has been added or
1087 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1088 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1089 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1090 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1091 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1092 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1093 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1095 2011-09-20 Ben Konrath <ben@bagu.org>
1097 Require java-libglom 1.17.3.
1099 This picks up the fix for the seg fault problem with the Scenes table
1100 in the Openismus Film Manager example.
1104 2011-09-20 Ben Konrath <ben@bagu.org>
1106 Change the way sort clause is added for primary key when no sort clause is requested.
1108 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1109 before the sort clause is created. When a sort clause is not requested, the
1110 sort clause is created by finding the primary key in the LayoutFieldVector
1113 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1115 2011-09-20 Ben Konrath <ben@bagu.org>
1117 Log error message if no documents are found in the configured directory.
1119 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1120 Extract the glom file extension string to a private static final class
1121 variable (mostly as syntactic sugar). Accept a minor formatting change.
1122 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1123 the example glom.document.directory configuration property to make it
1124 more clear that it can any directory, not just the home directory.
1126 2011-09-18 Ben Konrath <ben@bagu.org>
1128 Add related lists to details view.
1130 The related list table has support for paging and sorting just like the
1131 table in the list view.
1133 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1134 SQL queries for the related list tables.
1135 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1136 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1138 Rename getList methods to getListView and add comments. Remove
1139 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1140 it being unused. Add methods: getDetailsLayoutAndData(),
1141 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1142 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1143 Create the layout and set the data for the fields in one async call
1144 instead of two. Create related lists where appropriate.
1145 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1146 for method name changes in OnlineGlomService.
1147 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1148 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1149 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1151 * src/main/java/org/glom/web/client/ui/ListView.java:
1152 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1153 tableName from setCellTable(). Create a ListViewTable instead of
1155 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1156 represent a data field in the details view.
1157 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1158 from addDetailsCell() to Field class. Keep track of the Fields and
1159 Portals in the details view.
1160 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1161 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1162 and add a method to get it. Add method to set the contents of the
1164 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1165 New class for related list tables. This class has the data provider
1166 for the related list table.
1167 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1168 abstract class which is the base class for the ListViewTable and the
1170 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1171 New class for list view tables. This class has the data provider for
1172 the list view table.
1173 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1174 methods for related list tables. Add more information to the
1175 LayoutItemField and LayoutItemPortal DTOs.
1176 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1177 Remove debugging print statement.
1178 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1179 Remove debugging print statements. Add primary key field to SQL count
1181 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1182 Remove unnecessary LayoutFieldVector parameter from
1183 getResultSizeOfSQLQuery() method.
1184 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1185 New class for related list table database access.
1186 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1187 class that is a wrapper DTO for details view layout and data.
1188 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1189 new 'fromField' string to this DTO.
1190 * src/main/webapp/style.css: Remove bottom margin and override top
1193 2011-09-15 Ben Konrath <ben@bagu.org>
1195 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1197 This sets things up to make it easier to add the data retrieval for
1198 related lists (portals). No user noticeable changes were made with
1201 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1202 class has the code to retrieve the layouts and access the
1203 database using the new database helper classes.
1204 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1205 Most of the functionality has been removed from this class. This
1206 class now represents the public interface for the client side
1207 code. It also deals with configuring the servlet and cleaning
1208 things up when the servlet is stopped.
1209 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1210 of static methods into this utility class.
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 These classes have the database retrieval code. The class hierarchy
1216 has been setup to make it easy to reuse code for similar
1219 2011-09-06 Ben Konrath <ben@bagu.org>
1221 Create separate classes for list table code and the data provider.
1223 As part of this refactor, I also split up the code a bit to make it
1226 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1227 table code to two new classes (below).
1228 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1229 with code from ListViewImpl.
1230 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1231 New file with code from ListViewImpl.
1233 2011-09-06 Ben Konrath <ben@bagu.org>
1235 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1237 This fixes the LayoutItemPortal DTO to match the libglom layout object
1240 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1242 2011-09-01 Ben Konrath <ben@bagu.org>
1244 Set title of Portals in the Details View.
1246 * pom.xml: Bump required version of java-libglom to 1.17.1.
1247 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1248 widget creation to its own class. Add comments to constructor.
1249 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1250 The code is mostly from the Group class with the title now set.
1251 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1252 title of Portal. Update some comments. Fix some code formatting.
1254 2011-09-01 Ben Konrath <ben@bagu.org>
1256 Remove TODO comment for the flow table column width.
1258 The flow table column width is working correctly and doesn't need to be
1259 changed. See this mailing list post for more info:
1261 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1263 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1265 2011-08-27 Ben Konrath <ben@bagu.org>
1267 Add document title (database name) to top of the browser page.
1269 I added the document title to the TableSelecitonView but that will
1270 change if / when we add a view that doesn't require table selection.
1272 * mockups/details-contacts.html:
1273 * mockups/details-projects.html:
1274 * mockups/listview-contacts.html:
1275 * mockups/listview-projects.html:
1276 * mockups/style.css: Add document title to mockups to keep things
1278 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1279 sizes to account for the document title.
1280 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1281 Set the document title when it has been retrieved from the server.
1282 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1283 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1284 and implement setDocumentTitle(String) method.
1285 * src/main/webapp/style.css: Add ID for document title style.
1287 2011-08-25 Ben Konrath <ben@bagu.org>
1289 Add NavigationType enum to LayoutItemPortal DTO.
1291 This is the start of adding support for Portals to the Details View.
1293 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1294 LayoutItem_Portal.navigation_type enum from libglom to
1295 LayoutItemPortal.NavigationType enum.
1296 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1297 NavigationType enum, field for storing the NavigationType and getter
1300 2011-08-25 Ben Konrath <ben@bagu.org>
1302 Implement the flow table layout in the Details View.
1304 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1305 FlowTable to Group to account for the renamed class.
1306 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1307 File. This is a container widget that implements the Glom details view
1308 flow table behaviour.
1309 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1310 org/glom/web/client/ui/FlowTable.java.
1311 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1312 so that the size of the subgroups are a closer match to the size of
1313 the Glom subgroups. This makes the flowtable layout match the layout
1314 in Glom for the Music Collection example file.
1316 2011-08-16 Ben Konrath <ben@bagu.org>
1318 Create container element for LayoutItemPortal in Details View.
1320 This will help me develop the layout for the FlowTable.
1322 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1323 fieldPanel variable to detailsCell.
1325 2011-08-15 Ben Konrath <ben@bagu.org>
1327 Set the height of the data element in the Details View.
1329 I changed the InlineLabels (text in a span element) to Labels (text in
1330 a div element) so that I could set the height of the details-data
1331 elements instead of the details-cell parent elements. This allows the
1332 the details-data element to display the correct height if style is
1333 applied that shows the height.
1335 This change has the added benefit of allowing the order of the labels
1336 and data elements to be changed for right-to-left languages.
1338 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1339 InlineLabels to Labels.
1340 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1341 InlineLabels to Labels. Set the height of the data element.
1342 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1343 multiline text height in the Formatting DTO.
1344 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1345 for multiline height along with getter and setter methods.
1346 * src/main/webapp/style.css: Adjust style to account for the change
1347 from span elements to div elements in the details cell.
1349 2011-08-15 Ben Konrath <ben@bagu.org>
1351 Make the List View appearance match the mockups.
1353 It doesn't match exactly but it's much better than it was.
1355 * mockups/listview-contacts.html: Remove unused css classes.
1356 * mockups/listview-projects.html: Remove unused css classes.
1357 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1358 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1359 for mainPanel instead of VerticalPanel (table). Set style name on
1360 CellTable. Set style name on Details column. Right-align Details
1362 * src/main/webapp/style.css: Adjust properties to match the mockups.
1364 2011-08-12 Ben Konrath <ben@bagu.org>
1366 Add better support for subgroups in the details view.
1368 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1369 changed FlowTable constructor.
1370 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1371 support for subgroups and subgroup-titles.
1372 * src/main/webapp/style.css: Add CSS class for subgroups and
1375 2011-08-12 Ben Konrath <ben@bagu.org>
1377 Return the top level LayoutGroup title.
1379 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1381 2011-08-11 Ben Konrath <ben@bagu.org>
1383 Make the TableSelector header match the mockup.
1385 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1386 the layout panel. Properly lineup the table selection header with
1387 the list and details view.
1388 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1389 margin around the details view.
1390 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1391 Rename listBox variable to tableSelector. Set id for the style sheet.
1392 Use a FlowPanel instead of a HorizontalPanel.
1393 * src/main/webapp/style.css: Add properties to make the TableSelector
1394 box match the mockups.
1396 2011-07-13 Ben Konrath <ben@bagu.org>
1398 Update install script for java-libglom version change.
1400 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1403 2011-07-13 Ben Konrath <ben@bagu.org>
1405 Add support sub-group in the details view.
1407 I also removed the code that special-cased the default details view
1410 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1412 I still have to make a proper flowtable.
1414 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1415 Don't special-case default details view layout.
1416 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1417 addLayoutField() as I'm going to use it.
1418 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1419 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1421 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1422 extracted from DetailsViewImpl.GroupPanel. Add support for
1424 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1425 column count when getting the details layout.
1427 2011-07-12 Ben Konrath <ben@bagu.org>
1429 Set browser title with database and table titles.
1431 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1432 Set the browser title when the table changes and when the activity
1434 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1435 title when retrieving document info (the GlomDocument object).
1436 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1437 with getter and setter methods. Remove unused convenience constructor.
1438 Use default code formatting.
1440 2011-07-12 Ben Konrath <ben@bagu.org>
1442 Ignore LayoutItemPortals in the details view.
1444 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1447 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1448 LayoutItemPortal layout objects.
1449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1450 LayoutItemPortal objects when retrieving the details layout.
1451 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1452 file. This is an empty class and just used to get type information for
1455 2011-07-12 Ben Konrath <ben@bagu.org>
1457 Use java-libglom 1.17.0.
1461 2011-07-11 Ben Konrath <ben@bagu.org>
1463 Remove "Table:" label from table selector.
1465 This matches a recent change in the Glom UI.
1467 * mockups/details-contacts.html:
1468 * mockups/details-projects.html:
1469 * mockups/listview-contacts.html:
1470 * mockups/listview-projects.html: Remove the "Table:" label from the
1472 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1474 2011-07-11 Ben Konrath <ben@bagu.org>
1476 Add main groups to the details view.
1478 This makes things look a little nicer in the details view. The next step
1479 is to implement the flowtable.
1481 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1482 resources from the standard gwt css theme. Standard.css is now
1483 included in OnlineGlom.html so that the online glom css rules have
1484 precedence over the gwt theme.
1485 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1486 the whole LayoutGroup to the DetailsView instead of just the titles.
1487 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1488 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1489 details layout with a helper class (GroupPanel). I might extract this
1490 class when I make the full flowtable.
1491 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1492 string as default so I don't have to worry about NPEs when processing
1494 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1495 note beside OnlineGlom.gwt.xml above).
1496 * src/main/webapp/style.css: Add default font-size to body to override
1497 the font-size set by the standard theme. Don't use h2 tags for
1498 group-title. Create new details-cell class.
1500 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1502 ConfiguredDocument: Set the port number too.
1504 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1505 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1506 Glom document. Presumably this worked sometimes so far because there is a
1507 default port number.
1509 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1511 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1513 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1514 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1515 correct, though we should throw an exception too.
1517 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1519 Fix a addDocuemnt typo.
1521 * src/main/java/org/glom/web/shared/Documents.java
1522 (Documents.addDocuemnt): Rename to addDocument().
1523 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1524 (OnlineGlomServiceImpl.getDocuments): Adapt.
1526 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1528 Slightly improved log output when connection fails.
1530 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1531 (ConfiguredDocument.setUsernameAndPassword):
1532 We don't know for sure if it' the username/password that's wrong, so
1533 rephrase the message.
1534 Also ouput the exception message, though it's generic in this case.
1536 2011-07-08 Ben Konrath <ben@bagu.org>
1540 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1541 added braces to a one line if statement because the Eclipse formatter
1542 was getting confused.
1544 2011-07-07 Ben Konrath <ben@bagu.org>
1546 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1548 These should really be two separate tasks but I counldn't get things to
1549 work with GWT 2.2.0 and Eclipse 3.7.
1553 * .settings/org.eclipse.jdt.core.prefs:
1554 * .settings/org.eclipse.jdt.ui.prefs:
1555 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1556 * .settings/org.eclipse.m2e.core.prefs:
1557 Add new config files. Update current files. Remove references to the
1558 webtools plugins as we're not using any of the webtools features.
1559 * .gitignore: Add logs directory which is created when running with
1561 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1562 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1563 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1565 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1567 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1569 onlineglom.properties: Add explanatory comments.
1571 * src/main/resources/onlineglom.properties: Also change the default user
1572 from ben to someuser, to avoid the risk of people thinking we just
1573 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1575 2011-06-28 Ben Konrath <ben@bagu.org>
1577 Use filename in Log for incorrect passwords.
1579 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1580 getFileName(String) method to get the filename from the URI.
1582 2011-06-28 Ben Konrath <ben@bagu.org>
1584 Add the table name to the URL token for the ListPlace.
1586 This makes things consistent between the DetailsPlace and the
1587 ListPlace. It also allows the the ListPlace to be bookmarked.
1589 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1590 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1592 Remove getDefaultListLayout(). The default layout is now returned
1593 by the getListLayout() method when the table name is an empty string.
1594 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1595 Add table name field. Change to a new ListPlace when the table
1596 has been changed. Use getListLayout() for getting the default
1598 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1599 Add table name field. Set the correct table name in the list box
1600 when loading from bookmark. This corrects a problem for the
1602 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1603 Move table name to super-class (HasSelectableTable). Move document
1604 and table URL keys to super-class in HasSelectableTable.
1605 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1606 Add table name field. Add Tokenizer class with URL key common to
1607 the subclasses (DetailsPlace and ListPlace).
1608 * src/main/java/org/glom/web/client/place/ListPlace.java:
1609 Add table name. Add code to parse the URL token.
1610 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1611 Update ListPlace construction with empty table name string.
1612 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1613 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1614 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1615 Update ListPlace construction with table name string.
1616 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1617 Change defaultTableName field to tableName to reflect how it's now
1618 used. Update the getter and setter methods.
1620 2011-06-28 Ben Konrath <ben@bagu.org>
1622 Enable the table selector in the DetailsView.
1624 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1625 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1627 Remove getDefaultDetailsLayout(). The default layout is now returned
1628 by the getDetailsLayout() method when the table name is an empty
1630 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1631 event handler for table change event. Change to using
1632 getDetailsLayout() for the default details layout.
1633 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1635 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1636 when navigating to the details place.
1638 2011-06-27 Ben Konrath <ben@bagu.org>
1640 Use filename based unique document ID in URL and for RPC.
1642 The document ID is the glom document name with spaces (' ') replaced
1643 with pluses ('+') and without the .glom extension.
1645 This change is mostly a string substitution of 'documentTitle' for
1646 'documentID'. The only code change is the addition of a Documents DTO to get the
1647 filename to document title mappings as indicated below.
1649 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1650 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1651 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1652 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1653 Use Documents DTO to create the document links in the document
1655 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1656 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1657 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1658 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1659 * src/main/java/org/glom/web/client/place/ListPlace.java:
1660 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1661 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1662 * src/main/java/org/glom/web/client/ui/ListView.java:
1663 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1664 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1665 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1666 * src/main/java/org/glom/web/server/Log.java:
1667 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1668 getDocumentTitles() to getDocuments() and return the Documents DTO.
1669 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1670 transferring the filename to document title mappings.
1672 2011-06-25 Ben Konrath <ben@bagu.org>
1674 Make the authentication popup work again.
1676 This bug was introduced when I extracted ConfiguredDocument to its own class.
1678 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1679 correct success / fail status in setUsernameAndPassword().
1681 2011-06-25 Ben Konrath <ben@bagu.org>
1683 Use filename as unique key for configuring database usernames and passwords.
1685 This replaces the use of the Glom document title which could change
1686 depending on the locale. Thanks to Murray Cumming for pointing out this
1689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1690 * src/main/resources/onlineglom.properties:
1692 2011-06-24 Ben Konrath <ben@bagu.org>
1694 Pass primary key value to DetailsView.
1696 This enables the DetailsView to load the correct data.
1698 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1699 primary key value field and set in constructor. Pass primary key
1700 value to getDetailsData().
1701 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1702 variables for document title and primary key value.
1703 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1704 key value to the DetailsPlace.
1706 2011-06-24 Ben Konrath <ben@bagu.org>
1708 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1710 This allows the primary key to be retrieved by the Details button. This
1711 functionality has not been implemented yet but it's in the works.
1713 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1714 the LayoutGroup result to ListView.setCellTable instead of all of its
1715 fields individually.
1716 * src/main/java/org/glom/web/client/ui/ListView.java:
1717 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1718 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1719 get the primary key for the table.
1720 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1721 index of the primary key in the LayoutGroup accounting for hidden
1722 primary keys. Rename getJavaNumberFormat() to
1723 convertToJavaNumberFormat() for consistency. Cleanup / add some
1725 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1726 field for primary key index and a field to indicate whether the
1727 primary key is hidden or not.
1729 2011-06-23 Ben Konrath <ben@bagu.org>
1731 Rename getTableData methods to getListData.
1733 This is a rename refactor for consistency with other methods.
1735 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1736 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1737 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1740 2011-06-23 Ben Konrath <ben@bagu.org>
1742 Extract the ConfiguredDocument innerclass into its own class.
1744 This makes the servlet code more object oriented.
1746 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1747 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1749 new ConfiguredDocument class.
1751 2011-06-21 Ben Konrath <ben@bagu.org>
1753 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1755 This makes things more inline with how libglom works and reduces code
1756 duplication. This refactor lays the groundwork for adding the primary key to
1757 the LayoutGroup object.
1759 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1760 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1761 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1762 Change method names to getListLayout and getDefaultListLayout for
1763 consistency. Use LayoutGroup as the DTO for the list layout instead of
1764 ColumnInfo and LayoutListTable.
1765 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1766 new method names along with the LayoutGroup object for transferring the
1768 * src/main/java/org/glom/web/client/ui/ListView.java:
1769 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1770 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1771 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1773 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1774 Replaced with LayoutGroup.
1775 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1776 expectedResultSize and defaultTableName fields which are needed for
1778 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1779 type field which is needed for the list layout but will also be
1780 useful for the details layout as things progress.
1781 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1782 Make class abstract. Remove the unnecessary
1783 getFormattingHorizontalAlignment method. Add setFormatting method.
1785 2011-06-16 Ben Konrath <ben@bagu.org>
1787 Add scripts for building and installing war.
1789 These will help when updating OnlineGlom but they're also good
1790 supplemental documentation of the build and deployment proceeding.
1792 * utils/build-onlineglom-war.sh: New file.
1793 * utils/install-onlineglom-war.sh: New file.
1795 2011-06-16 Ben Konrath <ben@bagu.org>
1797 Create wrapper class to create consistent log messages.
1799 I wrapped methods in the Log class of gwt-log to add the method names
1800 from the servlet and create consistent formatting of the document title
1801 and table names in the log messages.
1803 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1805 log methods to use methods from wrapped Log class.
1807 2011-06-16 Ben Konrath <ben@bagu.org>
1809 Remove superfluous conditional return.
1811 Thanks to Murray Cumming for pointing this out!
1813 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1815 2011-06-15 Ben Konrath <ben@bagu.org>
1817 Return an ArrayList of LayoutGroups for the Details layout.
1819 This corrects a problem with the details layout as it can have more
1820 than one top level LayoutGroup.
1822 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1823 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1824 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1825 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1826 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1827 with ArrayList of LayoutGroups for the details view layout.
1828 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1829 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1830 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1831 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1832 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1833 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1835 2011-06-14 Ben Konrath <ben@bagu.org>
1837 Use cast_dynamic method to determine the libglom LayoutItem type.
1839 This is better than finding the LayoutItem type by using the string
1840 returned from the get_part_type_name() method.
1842 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1844 2011-06-14 Ben Konrath <ben@bagu.org>
1846 Add method names to log entries in the servlet.
1848 This helps when tracking down deployment problems.
1850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1852 2011-06-14 Ben Konrath <ben@bagu.org>
1854 Add data to the DetailsView using a hard-coded primary key value.
1856 The layout and functionality of the DetailsView is not complete. This
1857 is just a checkpoint so the patch doesn't get too big.
1859 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1860 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1861 Add getDetailsData() servlet method.
1862 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1863 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1864 LayoutFields are added to the DetailsView.
1865 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1866 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1867 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1868 take the string for the title instead of the object.
1869 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1870 Add implementation getDetailsData() along with some private helper
1872 * src/main/webapp/style.css: Add padding to details-data class. Add a
1873 details-label class with the same padding as the details-data class.
1875 2011-06-03 Ben Konrath <ben@bagu.org>
1877 Use presenter.goTo() to change to the DetailsPlace.
1879 This will make things easier when we need to open the DetailsView with
1880 data specific to the row that was clicked.
1882 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1884 2011-06-02 Ben Konrath <ben@bagu.org>
1886 Add CSS file from mockups.
1888 I'm adding this now because it's going to be useful to have when
1889 developing the DetailsView. The TableSelectionView and ListView aren't
1892 * src/main/webapp/OnlineGlom.html:
1893 * src/main/webapp/style.css:
1895 2011-06-02 Ben Konrath <ben@bagu.org>
1897 Use String.isEmpty() to check for empty string.
1899 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1901 2011-06-02 Ben Konrath <ben@bagu.org>
1903 Display main layout group titles in the DetailsView.
1905 This is the start of the DetailsActivity/DetailsView implementation.
1907 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1908 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1909 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1910 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1911 Get the layout information for the details view from the server and set
1912 the main layout group titles.
1913 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1914 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1915 Add addLayoutGroup() and addLayoutField() methods. This are just
1916 temporary methods for creating the the details view that will change
1918 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1919 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1921 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1922 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1923 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1924 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1925 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1926 Data Transfer Objects that mimic the libglom object structure. These are
1927 used for transferring the details layout but could also be used for
1928 transferring the list layout.
1930 2011-05-27 Ben Konrath <ben@bagu.org>
1932 Reset the AuthenticationPopup when clearing the ListView.
1934 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1936 2011-05-27 Ben Konrath <ben@bagu.org>
1938 Fix problem with onlineglom.properties file loading.
1940 The old way worked in Eclipse but not on the server. Loading the
1941 onlineglom.properties file now works in Eclipse and on the server.
1943 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1945 2011-05-24 Ben Konrath <ben@bagu.org>
1947 Update gwt-log from 3.1.0 to 3.1.2.
1949 Gwt-log 3.1.0 has been marked as depreciated.
1953 2011-05-24 Ben Konrath <ben@bagu.org>
1955 Add comment to ListActivity.goTo() method.
1957 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1959 2011-05-24 Ben Konrath <ben@bagu.org>
1961 Remove FIXME in convertGdkColorToHtmlColour()
1963 The Gdk::Color value returned by libglom is 16-bits per channel on both
1964 64 and 32-bit platforms.
1966 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1968 2011-05-19 Ben Konrath <ben@bagu.org>
1970 Improve performance of initial ListView load.
1972 I removed a round trip to the server for getting the default table name
1973 and then requesting information about that table. This also removes a potential
1974 problem with the table change handler not being setup in time to receive the
1975 table change event from the ListActivity.
1977 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1978 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1979 getDefaultLayoutListTable() method. Improve comments.
1980 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1981 getDefaultLayoutListTable() method instead of firing a table change
1982 event to get the table to load.
1983 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1984 implementation of getDefaultLayoutListTable() method.
1985 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1988 2011-05-19 Ben Konrath <ben@bagu.org>
1990 Override toDebugString() in TableChangeEvent.
1992 This is useful to have for debugging.
1994 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1996 2011-05-19 Ben Konrath <ben@bagu.org>
1998 Add a "Back to List" link when at the DetailsPlace.
2000 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2001 Populate the CellTable based on the selected table of the ListBox if
2002 it's set otherwise use the default table. This allows the "Back to
2004 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2005 Remove Place from constructors. Add a setPlace() method. Add
2006 goToPlace() method. Set class as presenter for TableSelectionView.
2007 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2008 Use the same TableSelectionActivity when switching between the List and
2010 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2011 Subclass the new HasSelectableTablePlace. This removes some duplicate
2013 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2014 New class to represent Places that display the TableSelectionView.
2015 * src/main/java/org/glom/web/client/place/ListPlace.java:
2016 Subclass the new HasSelectableTablePlace. This removes some duplicate
2018 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2019 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2020 Add Presenter interface. Add setBackLinkVisible() method. Add
2021 setBackLink() method.
2023 2011-05-18 Ben Konrath <ben@bagu.org>
2025 Enable the "Details" buttons.
2027 Right now only an empty details view is displayed.
2029 * src/main/java/org/glom/web/client/ClientFactory.java:
2030 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2031 Add DetailsView to ClientFactory.
2032 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2033 A basic activity for the details view.
2034 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2035 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2037 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2038 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2040 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2041 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2042 unnecessary super() in constructor.
2043 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2044 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2045 really shouldn't create a new TableSelectionActivity for both the ListPlace
2046 and the DetailsPlace so this should be considered a temporary solution.
2047 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2048 New file. Represents a URL for the details view.
2049 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2050 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2051 A basic details view interface and implementation.
2052 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2053 Enable the "Details" buttons.
2055 2011-05-12 Ben Konrath <ben@bagu.org>
2057 Use a LayoutPanel with multiple display areas for main layout.
2059 This is mostly a refactor in that there are no changes from the user
2060 point of view. These changes are required so that we can swap out the list view
2061 with the details view when the user clicks the "Details" button.
2063 * src/main/java/org/glom/web/client/ClientFactory.java:
2064 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2065 OnlineGlomView. Add TableSelectionView, ListView and
2066 AuthenticationPopup.
2067 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2068 for main layout. Add display regions for main activities. Add
2069 activity manager for for main activities.
2070 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2071 file from parts of the deleted OnlineGlomActivity.
2072 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2073 New file from parts of the deleted OnlineGlomActivity.
2074 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2075 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2076 New files for app wide table change event.
2077 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2078 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2079 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2080 Activity mappers for the main activities replace the deleted app-wide
2082 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2083 Fix a spelling error in he comment.
2084 * src/main/java/org/glom/web/client/ui/ListView.java:
2085 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2086 Renamed from LayoutListView and modified for MVP. This still not a
2087 proper dumb view as prescribed by the MVP pattern but it works for now.
2088 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2089 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2090 New widget stripped out of the deleted OnlineGlomView.
2091 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2092 Remove hack that is fixed by this patch.
2094 2011-05-06 Ben Konrath <ben@bagu.org>
2096 Rename OnlineGlomPlace to ListPlace.
2098 The only change besides the rename is that url will now display #list
2099 instead of #Document.
2101 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2102 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2103 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2104 * src/main/java/org/glom/web/client/place/ListPlace.java:
2105 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2107 2011-05-06 Ben Konrath <ben@bagu.org>
2109 Use Presenter for app navigation.
2111 This is the proper way to deal with Place (URL) changes with the MVP
2114 * src/main/java/org/glom/web/client/ClientFactory.java:
2115 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2116 PlaceHistoryMapper and PlaceHistoryHandler.
2117 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2118 PlaceHistoryMapper and PlaceHistoryHandler.
2119 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2120 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2121 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2122 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2123 Add Presenter interface and setPresenter methods. Rename addHyperLink
2124 to addDocumentLink taking only the document title as a parameter.
2126 2011-04-14 Ben Konrath <ben@bagu.org>
2128 Prompt for db username/password if they haven't been set.
2130 This is implemented with a popup widget that is contained within the
2131 OnlineGlomView and managed by the OnlineGlomActivity.
2133 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2134 methods for checking and setting the database username and password.
2135 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2136 new methods for checking and setting the database username and
2138 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2139 Display authentication popup if the JDBC connection to the database
2140 has not been authenticated.
2141 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2143 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2144 for dealing with the authentication popup.
2145 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2146 Implement the methods for dealing with the authentication popup.
2147 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2148 try to executed queries if the database connection hasn't been
2149 authenticated. Implement methods for checking and setting the
2150 database username and password.
2152 2011-04-12 Ben Konrath <ben@bagu.org>
2154 Make log messages a little clearer.
2156 Add a dash betweeen the document title and the table name.
2158 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2160 2011-04-12 Ben Konrath <ben@bagu.org>
2162 Protect against NPEs when cleaning up database resources.
2164 While this isn't strictly necessary because the exception is caught,
2165 not protecting against the NPEs makes it harder to find the real error
2168 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2170 2011-04-12 Ben Konrath <ben@bagu.org>
2172 Move configuration of the servlet to the constructor.
2174 The servlet will be initialized even if the database authentication
2175 information is not set or correct. I still need to add the UI for prompting
2176 the user for the authentication information when it's required.
2178 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2179 javadocs for getDocumentTitles() method.
2180 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2181 Set error message when RPC fails.
2182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2183 glom files directory from the configuration file. Try to set the
2184 database authentication information for the specific document if it's
2185 set and works otherwise try to use the global authentication
2186 information set for the directory.
2187 * src/main/resources/onlineglom.properties: Moved from
2188 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2189 Added detailed comments for the new keys.
2191 2011-04-11 Ben Konrath <ben@bagu.org>
2193 Remove unnecessary @Override in DocumentSelectionViewImpl.
2195 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2197 2011-04-11 Ben Konrath <ben@bagu.org>
2199 Remove center alignment in DocumentSelectionView.
2201 The title element is still centred but the document titles and bottom
2202 sentence are both left-aligned.
2204 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2206 2011-04-11 Ben Konrath <ben@bagu.org>
2208 Change 'Demo' naming convention to 'Document'.
2210 This is just a rename refactor with no functional changes to the code.
2212 * src/main/java/org/glom/web/client/ClientFactory.java:
2213 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2214 * src/main/java/org/glom/web/client/OnlineGlom.java:
2215 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2216 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2217 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2218 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2219 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2220 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2221 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2222 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2223 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2226 2011-04-08 Ben Konrath <ben@bagu.org>
2228 Remove FIXME from safeLongToInt() method.
2230 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2235 2011-04-08 Ben Konrath <ben@bagu.org>
2237 Display an error if no glom documents are found in the specified directory.
2239 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2240 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2241 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2242 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2244 2011-04-08 Ben Konrath <ben@bagu.org>
2246 Add copyright header to one more file ... oops.
2248 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2250 2011-04-08 Ben Konrath <ben@bagu.org>
2252 Add copyright header to files without it.
2254 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2255 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2256 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2257 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2258 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2259 * src/main/java/org/glom/web/shared/GlomField.java:
2261 2011-04-08 Ben Konrath <ben@bagu.org>
2263 Add support for accessing multiple glom documents in the servlet.
2265 This completes the demo selection functionality.
2267 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2268 document title to methods.
2269 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2270 document title to methods.
2271 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2272 Set browser window title when the activity starts. Correct name of
2273 document title variable.
2274 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2275 Set browser window title when the activity starts. Set the table
2276 selector change handler after table selector has been set. Clear the
2277 OnlineGlomView when the activity has been stopped.
2278 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2279 document title as the place token. Use "#Document:" instead of
2280 "#OnlineGlomPlace:" in the URL.
2281 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2282 Change heading to "Online Glom"
2283 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2284 document title in RPC methods.
2285 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2286 setDocumentTitle() method. Add clear() method.
2287 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2288 setDocumentTitle() method. Implement clear() method which removes the
2289 change handler on the ListBox, clears the ListBox and clears the
2291 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2292 Implement methods with document title. Keep track for the configured
2293 glom documents and their corresponding JDBC configurations in a hash
2294 table. This information is retrieved using the document title as the
2295 key in the hash table.
2296 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2297 document title field as it's no longer needed.
2299 2011-04-08 Ben Konrath <ben@bagu.org>
2301 Update the Eclipse JDT configuration.
2303 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2304 methods. Automatically add the copyright header to new files.
2306 2011-04-05 Ben Konrath <ben@bagu.org>
2308 Add new page for demo selection.
2310 This patch adds all the components required to view and start an
2311 OnlineGlom demo by clicking on the desired hyperlink. The user is
2312 able to return to the demo selection page with the browser's back
2313 button. I still need to modify the servlet to work with multiple
2314 documents so all demo links will load the file defined in the
2315 OnlineGlom.properties.
2317 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2318 This is only useful during development so we don't need to save it.
2319 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2320 get a reference to the DemoSelectionView.
2321 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2322 method to get a reference to the DemoSelectionView.
2323 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2324 default view to DemoSelectionView.
2325 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2326 to get glom document titles for glom files in a hard-coded directory.
2327 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2328 method to get glom document titles for glom files in a hard-coded
2330 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2331 Presenter for DemoSelectionView.
2332 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2333 for DemoSelectionView.
2334 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2335 Update for DemoSelectionView.
2336 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2337 Basic 'Place' implementation for the DemoSelectionView.
2338 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2339 The interface for the DemoSelectionView.
2340 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2341 The implementation of the DemoSelectionView.
2342 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2343 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2344 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2345 implementation of method to get glom document titles for glom files
2346 in a hard-coded directory.
2347 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2348 on longer being used.
2349 * src/main/webapp/glom.png: Glom logo.
2351 2011-04-05 Ben Konrath <ben@bagu.org>
2353 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2355 This is the forth and final commit of a refactor that will allow
2356 OnlineGlom to be used with multiple documents.
2358 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2359 Move RPC code from OnlineGlomViewImpl to this class.
2360 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2362 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2363 RPC code to the presenter class (the P in MVP).
2365 2011-04-04 Ben Konrath <ben@bagu.org>
2367 Start moving the existing OnlineGlom code to MVP.
2369 This work is based on the GWT MVP framework that is documented here:
2371 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2373 This is the third commit of a refactor that will allow OnlineGlom to
2374 be used with multiple documents.
2376 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2377 Interface for client factory which is used to get instances of various
2378 classes throughout the app.
2379 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2380 Implementation of client factory.
2381 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2382 initialize the MVP framework.
2383 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2384 New file. Activity manager for the main container widget. This is the
2386 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2387 Maps place (URL) to its corresponding activity.
2388 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2389 New file. This is just a place holder for a generated file.
2390 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2391 New file. Represents the URL for the main Online Glom app.
2392 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2393 for changes in LayoutListViewImpl.
2394 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2395 interface for View. Move code to OnlineGlomViewImpl class.
2396 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2397 file. Implementation of OnlineGlomView.
2398 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2399 Place resources. Use ClientFactoryImpl by default.
2401 2011-04-04 Ben Konrath <ben@bagu.org>
2403 Move View classes to their own package.
2405 This is the second commit of a refactor that will allow OnlineGlom to
2406 be used with multiple documents.
2408 * src/main/java/org/glom/web/client/OnlineGlom.java:
2409 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2410 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2412 2011-04-02 Ben Konrath <ben@bagu.org>
2414 Move UI code from the main module to its own class.
2416 This is the first commit of a refactor that will allow OnlineGlom to be
2417 used with multiple documents.
2419 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2420 references to OnlineGlom to OnlineGlomView.
2421 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2422 OnlineGlomView and instantiate it here.
2423 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2424 represents the main OnlineGlomView with one document.
2426 2011-04-01 Ben Konrath <ben@bagu.org>
2428 Fix formatting of gwt.xml and add DTD.
2430 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2432 2011-03-30 Ben Konrath <ben@bagu.org>
2434 Propperly convert gdkColor string to html colour string.
2436 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2438 2011-03-28 Ben Konrath <ben@bagu.org>
2440 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2442 This implementation matches
2443 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2444 readable and is not tied to Swig.
2446 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2448 2011-03-28 Ben Konrath <ben@bagu.org>
2450 Use read-only checkboxes for boolean field types.
2452 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2453 in the CellTable based on the field type. It currently only
2454 distinguishes between boolean and text columns but I'll need to add
2455 support for more types.
2456 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2457 column type in the ColumnInfo object. Add method to convert between the
2458 glom field type enum in ColumnInfo and the glom field type in libglom.
2459 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2461 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2462 getting and setting booleans.
2464 2011-03-25 Ben Konrath <ben@bagu.org>
2466 Don't get the Date twice from the ResultSet.
2468 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2470 2011-03-25 Ben Konrath <ben@bagu.org>
2472 Cleanup code in the servlet.
2474 * TODO: Remove item about row count. Add item about testing row count
2475 query with large number of rows.
2476 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2477 spelling mistakes, change method parameter to be consistent with
2480 2011-03-25 Ben Konrath <ben@bagu.org>
2482 Add server side logging with the gwt-log library.
2484 * .gitignore: Ignore the log file we're now producing.
2485 * TODO: Add a couple TODO item for logging.
2486 * pom.xml: Add gwt-log and log4j as a dependency.
2487 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2488 logging of errors, warnings and some important info.
2489 * src/main/resources/log4j.properties: New file to configure log4j.
2491 2011-03-24 Ben Konrath <ben@bagu.org>
2493 Add a disable button for the Details view.
2495 * src/main/java/org/glom/web/client/LayoutListView.java:
2497 2011-03-22 Ben Konrath <ben@bagu.org>
2499 Use a count query to get the number of rows for the list view pager.
2501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2503 2011-03-22 Ben Konrath <ben@bagu.org>
2505 Add more TODO information about CellTable pager positioning.
2509 2011-03-19 Ben Konrath <ben@bagu.org>
2511 Add TODO item about CellTable pager positioning.
2515 2011-03-18 Ben Konrath <ben@bagu.org>
2517 Remove unneeded GlomFieldColumn class.
2519 This is just a small code cleanup.
2521 * src/main/java/org/glom/web/client/LayoutListView.java:
2523 2011-03-18 Ben Konrath <ben@bagu.org>
2525 Use cursor mode in the query that gets data for the list view.
2527 I still need to fix the potential memory problem when getting the row
2528 count for the list view.
2530 * TODO: Add note about testing memory usage with large data sets. Add
2531 item about fixing row counting with large data sets.
2532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2533 PostgreSQL JDBC driver into cursor mode when getting data for the
2536 2011-03-15 Ben Konrath <ben@bagu.org>
2538 Remove the GWT Container from the Eclipse build classpath.
2540 The GWT dependencies are set by Maven so this isn't needed.
2544 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2546 Added some earlier mockups to git, but not to the tarball dist.
2548 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2549 Openismus. These hopefully show how we might structure the HTML so that
2550 it can be styled easily with CSS. However, we probably need to adapt them
2551 for the CSS structure that GWT dictates for common widgets.
2553 2011-03-14 Ben Konrath <ben@bagu.org>
2555 Locate OnlineGlom.properties using the ServletContext.
2557 This is required to be able to locate the file in the deployed servlet.
2559 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2560 Configure the database and glom document in in a helper method so
2561 that the ServletContext can be used to locate OnlineGlom.properties.
2562 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2563 src/main/webapp. This is the proper location for .properites files.
2565 2011-03-12 Ben Konrath <ben@bagu.org>
2567 Add note to README about why we're compiling down to obfuscated JavaScript.
2571 2011-03-11 Ben Konrath <ben@bagu.org>
2573 Use properties file to configure servlet.
2575 This allows people to change the glom file path, db username and db
2576 password without recompiling the code.
2578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2579 * src/main/webapp/OnlineGlom.properties:
2581 2011-03-11 Ben Konrath <ben@bagu.org>
2583 Use table fields in layout list view if the layout list is not defined.
2585 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2586 Manually create a LayoutFieldVector for the query builder using the
2587 table fields when a layout list is not defined in the glom file.
2589 2011-03-11 Ben Konrath <ben@bagu.org>
2591 Only show FIXME string for images when there's an image.
2593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2594 in this change are some small code cleanups.
2596 2011-03-11 Ben Konrath <ben@bagu.org>
2598 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2600 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2602 2011-03-11 Ben Konrath <ben@bagu.org>
2604 Correctly set the index of the default table.
2606 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2607 Correctly set the index of the default table. Add commented out example
2610 2011-03-10 Ben Konrath <ben@bagu.org>
2612 Add comment to pom.xml about the previous change.
2614 * pom.xml: Add comment about the deployment issue so that it's obvious
2615 why java-libglom is set to the provided scope.
2617 2011-03-10 Ben Konrath <ben@bagu.org>
2619 Change java-libglom dependency from compile to provided in pom.xml.
2621 Since java-libglom uses jni it can only be loaded once and therefore
2622 must be placed in $CATALINA_HOME/lib and not included in each war.
2623 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2624 More information about this issue can be found in the Tomcat 6 release
2625 notes in the "JNI Based Applications" section:
2627 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2629 * README: Remove note about this issue. Deployment info should really
2630 be on the wiki anyway so I'll add it right now.
2631 * pom.xml: Change java-libglom dependency from compile to provided so
2632 that it's copied in to the packaged war.
2634 2011-03-09 Ben Konrath <ben@bagu.org>
2636 Change to using a neutral locale for currency, date and time formatting.
2638 This solves the problem of currency values being represented without a
2639 space between the currency code and the number (e.g. "EUR5.89" is now
2640 represented as "EUR 5.89"). More work is required when we implement
2641 a locale preference setting.
2643 * TODO: Add note about currency formatting issues with different
2645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2646 to using the neutral ROOT locale.
2648 2011-03-09 Ben Konrath <ben@bagu.org>
2650 Add support for currency codes that are not ISO 4217 codes.
2652 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2653 the currency code defined in the glom file when it's not 3 characters
2654 long or when Java doesn't recognize the string as an ISO 4217 code.
2656 2011-03-08 Ben Konrath <ben@bagu.org>
2658 Remove test classes, launch configurations and configuration.
2660 The test stuff was getting in the way when creating the war. To make
2661 the war file you can now do 'mvn clean package'. The packaged war file
2662 will be in the target directory.
2664 * .classpath: Remove unused classpathentry for tests and i18n.
2665 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2666 property. Don't run test or i18n goals when packaging the war.
2667 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2672 * OnlineGlomTest-dev.launch:
2673 * OnlineGlomTest-prod.launch:
2674 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2675 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2677 2011-03-07 Ben Konrath <ben@bagu.org>
2679 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2681 These fixes allow me to use 'mvn deploy' to create the war file.
2683 * .classpath: This generated config has been updated by Eclipse. This
2684 change was probably triggered by me updating from Eclipse 3.6.1 to
2686 * .gitignore: Add entry to ignore the directory
2687 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2688 * .project: The generated config has been updated by Eclipse. This
2689 change was probably triggered by me updating from Eclipse 3.6.1 to
2691 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2692 so that Eclipse doesn't complain
2693 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2694 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2695 'tests' directory to 'client' directory. This is the new
2696 gwt-maven-plugin convension.
2697 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2698 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2700 2011-03-07 Ben Konrath <ben@bagu.org>
2702 Add support for horizontal alignment in the LayoutList columns.
2704 * TODO: Remove item about horizontal alignment. Add item about
2705 improvements to ColumnInfo.
2706 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2707 alignment on the columns. Use ColumnInfo RPC object get the column
2708 title and horizontal alignment.
2709 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2710 LayoutListView creation with ColumnInfo RPC object.
2711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2712 a ColumnInfo object for every LayoutList columnn. Convert the
2713 FieldFormatting.HorizontalAlignment to the correct
2714 ColumnnInfo.HorizontatlAlignment with the new
2715 getColumnInfoHorizontalAlignment helper method.
2716 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2717 to encapsulate column information like alignment and title. This
2718 could be used to set the colour instead of on a per cell field basis.
2719 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2720 column title storage and retrieval with ColumnInfo.
2722 2011-03-04 Ben Konrath <ben@bagu.org>
2724 Add support for column sorting.
2726 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2727 AsynDataProvider to be an anonymous inner class. Use new
2728 getSortedTableData RPC method when column sort is requested. Set all
2729 columns sortable and add an AsyncHandler to activate sorting in the
2731 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2732 method getSortedTableData(). Cleanup other method signatures.
2733 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2734 new method getSortedTableData(). Cleanup other method signatures.
2735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2736 Implement getSortedTableData() and getTableData() methods by using a
2737 private helper method with the appropriate parameters filled in. Use
2738 user supplied sort clause when supplied, otherwise fall back to
2739 sorting by the primary key. Move destroy() method to be underneath
2740 constructor for readability. Cleanup comments.
2742 2011-03-03 Ben Konrath <ben@bagu.org>
2744 Add support for colour text and colour backgrounds to the layout list cells.
2746 Only the cell backgrounds are coloured which leaves a gap between the
2747 cells that isn't coloured. I need to figure out a way to set
2748 'style=background-colour:' on the whole column rather than just the
2751 * TODO: Add a note about colouring the background of the whole column.
2752 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2753 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2754 render the coloured text and backgrounds. Use GlomField[] for the row type.
2755 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2757 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2758 GlomField[] for the row type.
2759 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2760 GlomField[] for the row type. Set the text, text colour and background
2761 colour in the GlomField objects as specified in the glom document. Add
2762 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2763 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2764 the glom field text, foreground colour and background colour.
2766 2011-03-02 Ben Konrath <ben@bagu.org>
2768 Don't display hidden tables in the combo box.
2770 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2772 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2773 code to ignore hidden tables using ArrayLists for the table names and
2775 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2776 tableNames to use ArrayLists instead of String[]. Update getter and setter
2779 2011-03-01 Ben Konrath <ben@bagu.org>
2781 Add support for Date and Time number types.
2783 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2784 Implement formatting for Date and Time values. Change the default glom
2785 file to small business example.
2787 2011-03-01 Ben Konrath <ben@bagu.org>
2789 Add support for formatting glom types as specified in the glom file.
2791 Formatting isn't finished yet - I still need to add support for Date
2794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2795 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2796 checks for null values in JDBC cleanup code and catch all exceptions
2797 instead of just SQLExceptions.
2798 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2801 2011-03-01 Ben Konrath <ben@bagu.org>
2803 Use GWT 2.2.0 instead of 2.1.1.
2805 * pom.xml: Change GWT version numbers.
2807 2011-03-01 Ben Konrath <ben@bagu.org>
2809 A few small code cleanups.
2811 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2813 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2814 unnecessary object creation in constructor.
2815 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2816 unnecessary object creation in constructor.
2818 2011-02-28 Ben Konrath <ben@bagu.org>
2820 Add file for TODO list.
2824 2011-02-18 Ben Konrath <ben@bagu.org>
2826 Enable the CellTable Pager when more than 20 rows need to be viewed.
2828 The Pager will automatically become active when the results are larger
2829 than the CellTable size which is currently set to 20 lines.
2831 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2832 name on debug statment in RPC call in LayoutListDataProvider, add
2833 numRows parameter to LayoutListView constructor, propperly set rowCount
2835 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2836 name on debug statment in RPC call, use LayoutListTable object in RPC
2837 calls, pass rowCount to LayoutListView.
2838 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2839 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2841 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2842 interface for changes in OnlineGlomService.
2843 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2844 getLayoutListHeaders() to getLayoutListTable() and return
2845 LayoutListTable. Using this object allows me to pass other information
2846 about the LayoutList like the expected number of rows in the result set.
2847 The Connection object from the connection pool is now propperly closed.
2848 Only the requested number of lines are returned to the client in
2850 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2851 GlomTable and add columnTitles and numRows.
2853 2011-02-18 Ben Konrath <ben@bagu.org>
2855 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2857 This is a small performance boost. I'll use GlomTable to get the required
2858 layoutlist information.
2860 * src/main/java/org/glom/web/client/OnlineGlom.java:
2861 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2862 * src/main/java/org/glom/web/shared/GlomDocument.java:
2864 2011-02-18 Ben Konrath <ben@bagu.org>
2866 Add option to turn off formatting in JDT formatter preferences.
2868 * .settings/org.eclipse.jdt.core.prefs:
2870 2011-02-18 Ben Konrath <ben@bagu.org>
2872 Rename LayoutList to LayoutListView.
2874 I'm working towards setting things up to easily use MVP when the time
2877 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2879 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2882 2011-02-17 Ben Konrath <ben@bagu.org>
2884 Move LayoutListDataProvider class into LayoutList.java.
2886 * src/main/java/org/glom/web/client/LayoutList.java:
2888 2011-02-17 Ben Konrath <ben@bagu.org>
2890 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2892 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2894 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2895 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2896 from LibGlomServer.java.
2897 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2898 Rename from LibGlomServiceAsync.java.
2899 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2900 Rename from LibGlomServiceImpl.java.
2901 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2903 2011-02-17 Ben Konrath <ben@bagu.org>
2905 Update JDT settings.
2907 * .settings/org.eclipse.jdt.core.prefs:
2909 2011-02-17 Ben Konrath <ben@bagu.org>
2911 Move GWT-RPC objects to shared package (where they should be).
2913 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2914 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2915 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2916 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2917 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2918 org.glom.web.shared package.
2919 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2920 org.glom.web.shared package.
2921 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2922 directory in compilation to javascript.
2924 2011-02-16 Ben Konrath <ben@bagu.org>
2926 Add sort clause to the sql query that grabs table information.
2928 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2929 if one of the columns is a primary key.
2931 2011-02-16 Ben Konrath <ben@bagu.org>
2933 Disable generateAsync feature of gwt-maven.
2935 The generated interface does not correctly match the methods in LibGlomService
2936 and the generated singleton Util inner-class doesn't respect the servlet
2939 * pom.xml: Turn off generateAsync feature.
2940 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2941 with singleton Util inner-class.
2943 2011-02-14 Ben Konrath <ben@bagu.org>
2945 Add LGPL v3 licence notices.
2947 Followed directions listed here:
2948 http://www.gnu.org/licenses/gpl-howto.html
2950 * COPYING: This file is a copy of the GPL v3.
2951 * COPYING.LESSER: This file is a copy of the LGPL v3.
2952 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2954 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2956 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2958 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2960 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2962 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2964 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2967 2011-02-14 Ben Konrath <ben@bagu.org>
2969 Use ArrayList instead of Array in GWT-RPC calls.
2971 Apparently this gives a slight performance boost to the compiled
2974 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2976 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2979 2011-02-14 Ben Konrath <ben@bagu.org>
2981 Access data from a postgres db rather than the example glom file.
2983 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2984 compile down to obfuscated javascript.
2985 * pom.xml: Add c3p0 and postgres JDBC libraries.
2986 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2987 using a postgres db accessed through the c3p0 connection pooling library.
2989 2011-02-14 Ben Konrath <ben@bagu.org>
2991 Update Java formatter settings.
2993 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2995 2011-02-02 Ben Konrath <ben@bagu.org>
2997 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2999 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3001 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3002 the compiled webapp directory that Eclipse uses as we're using Maven now.
3003 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3004 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3006 * pom.xml: Format file, change target Java version to 1.6.
3008 2011-02-02 Ben Konrath <ben@bagu.org>
3010 Add information about a deployment related issue.
3012 * README: Add Notes section with the problem outlined.
3014 2011-02-02 Ben Konrath <ben@bagu.org>
3016 Call Glom.libglom_deinit() when the servlet is shutdown.
3018 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3019 Glom.libglom_deinit() to destroy() method.
3021 2011-01-28 Ben Konrath <ben@bagu.org>
3023 Use generated Util class to get the RPC Async interface.
3025 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3027 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3028 getInstance() method to get a reference to the RPC Async interface.
3029 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3030 getInstance() method to get a reference to the RPC Async interface, remove
3031 the now unused getLibGlomServiceProxy() method.
3033 2011-01-27 Ben Konrath <ben@bagu.org>
3035 Cleanup ChangeLog entry from previous commit.
3037 * ChangeLog: Group logical changes together and add comments.
3039 2011-01-25 Ben Konrath <ben@bagu.org>
3041 Convert to gwt-maven project.
3043 * .gitignore: Update for new project structure.
3044 * README: New file with a link to the online documentation.
3045 * pom.xml: The generated maven configuration file with some tweaks.
3047 Add / update Eclipse settings. These files are a merge of the files that
3048 were generated with the gwt-maven plugin and the files we were previously
3052 * .settings/.jsdtscope:
3053 * .settings/com.google.gdt.eclipse.core.prefs:
3054 * .settings/com.google.gwt.eclipse.core.prefs:
3055 * .settings/org.eclipse.jdt.core.prefs:
3056 * .settings/org.eclipse.wst.common.component:
3057 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3058 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3059 * .settings/org.maven.ide.eclipse.prefs:
3060 * OnlineGlomTest-dev.launch:
3061 * OnlineGlomTest-prod.launch:
3063 Java source files moved from the 'src' directory to the directory structure
3065 * src/main/java/org/glom/web/client/GlomDocument.java:
3066 * src/main/java/org/glom/web/client/GlomTable.java:
3067 * src/main/java/org/glom/web/client/LayoutList.java:
3068 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3069 * src/main/java/org/glom/web/client/LibGlomService.java:
3070 * src/main/java/org/glom/web/client/OnlineGlom.java:
3071 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3073 Non-functional property file used for translations. I included this as
3074 reminder that it's something I need to sort out.
3075 * src/main/resources/org/glom/web/client/Messages.properties:
3077 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3078 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3080 The servlet configuration files moved from the 'war' directory.
3081 * src/main/webapp/OnlineGlom.css:
3082 * src/main/webapp/OnlineGlom.html:
3083 * src/main/webapp/WEB-INF/web.xml:
3085 Generated test files with most of the code commented out. I included these
3086 so that it's easy to add tests when we're ready for them.
3087 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3088 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3090 2011-01-25 Ben Konrath <ben@bagu.org>
3092 Remove unused println.
3094 * src/org/glom/web/server/LibGlomServiceImpl.java:
3096 2011-01-25 Ben Konrath <ben@bagu.org>
3098 Add project specific JDT settings.
3100 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3101 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3103 2011-01-25 Ben Konrath <ben@bagu.org>
3105 Populate celltable with example data.
3107 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3108 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3109 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3110 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3111 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3112 asynchronously gets the example data.
3113 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3114 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3115 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3116 curently selected table to be retrieved by other widgets.
3117 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3118 implement getTableData() in a hacky way. This method needs to be updated
3119 to grab information from the database when database creating is
3122 2011-01-20 Ben Konrath <ben@bagu.org>
3124 Set table headers when table dropBox changes.
3126 * src/org/glom/web/client/GlomDocument.java: Correct some method
3128 * src/org/glom/web/client/LibGlomService.java: Add method
3129 to get list layout field names.
3130 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3131 to get list layout field names.
3132 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3133 widget for list layout table.
3134 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3135 the table drop box and add new updateTable() method to asynchronously
3136 get the layout list field names for the currently selected table.
3137 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3138 implementation of getLayoutListHeaders() method.
3139 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3141 2011-01-18 Ben Konrath <ben@bagu.org>
3143 Make a listBox with table titles instead of the flexTable demo.
3145 This is the start of something more useful.
3147 * .classpath: Exclude a bunch of packages from the JVM that are
3148 getting in the way of the Eclipse content assist.
3149 * src/org/glom/web/client/GlomDocument.java:
3150 * src/org/glom/web/client/GlomTable.java:
3151 * src/org/glom/web/client/LibGlomService.java:
3152 * src/org/glom/web/client/LibGlomServiceAsync.java:
3153 * src/org/glom/web/client/OnlineGlom.java:
3154 * src/org/glom/web/server/LibGlomServiceImpl.java:
3155 * war/OnlineGlom.html:
3156 * war/WEB-INF/web.xml:
3158 211-01-13 Ben Konrath <ben@bagu.org>
3160 Update to new java-libglom API.
3162 * .gitignore: Ignore OnlineGlom.war.
3163 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3165 2010-12-20 Ben Konrath <ben@bagu.org>
3167 Add some basic style to the table listing.
3169 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3170 header, print useful error message on async callback failure.
3171 * war/OnlineGlom.css: Add style for table header, remove defaults
3172 provided by the Eclipse project wizard.
3174 2010-12-20 Ben Konrath <ben@bagu.org>
3176 Load example file from installed glom dir.
3178 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3179 provided by java-libglom to find the example file.
3181 2010-12-20 Ben Konrath <ben@bagu.org>
3183 Update Eclipse settings.
3186 * .settings/com.google.gdt.eclipse.core.prefs:
3187 * .settings/com.google.gwt.eclipse.core.prefs:
3189 2010-12-17 Ben Konrath <ben@bagu.org>
3193 * .classpath: New file.
3194 * .gitignore: New file.
3195 * .project: New file.
3196 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3197 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3198 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3199 * src/org/glom/web/client/GlomTable.java: New file.
3200 * src/org/glom/web/client/OnlineGlom.java: New file.
3201 * src/org/glom/web/client/TableNameService.java: New file.
3202 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3203 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3204 * war/OnlineGlom.css: New file.
3205 * war/OnlineGlom.html: New file.
3206 * war/WEB-INF/web.xml: New file.
3207 * war/images/glom.png: New file.