1 2011-11-28 Ben Konrath <ben@bagu.org>
3 Remove hack for glom 1.18 style glom files.
5 * src/main/java/org/glom/web/client/ui/details/Group.java:
6 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
7 * src/main/java/org/glom/web/client/ui/details/Portal.java:
9 2011-11-28 Ben Konrath <ben@bagu.org>
11 Use Gda Value version of primary key to log result too large error.
13 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
15 2011-11-28 Ben Konrath <ben@bagu.org>
17 Don't use TypedDataItem.getText() for Unknown types from the URL.
19 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
20 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
22 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
23 String field and getUnknown() method.
25 2011-11-28 Ben Konrath <ben@bagu.org>
27 Log an error message when the java-libglom .so is not present.
29 The error message was being set in the exception but not logged.
31 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
33 2011-11-28 Ben Konrath <ben@bagu.org>
35 Ignore LayoutItem_CalendarPortals.
37 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
38 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
40 2011-11-28 Ben Konrath <ben@bagu.org>
42 Extract method for creating the LayoutItemPortal DTO.
44 Just breaking the code up into smaller chunks.
46 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
48 2011-11-28 Ben Konrath <ben@bagu.org>
52 This should have been added with the refactor. Oops!
54 * src/main/java/org/glom/web/shared/TypedDataItem.java:
56 2011-11-28 Ben Konrath <ben@bagu.org>
58 Create primary key value from URL string using type from Glom document.
60 See this bug, comments 19 - 25:
62 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
64 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
65 create a TypeDataItem for the primary key here when loading from a
66 URL. Show the same string for the primary key value as was received
67 from the URL string (when loading from a URL).
68 * src/main/java/org/glom/web/server/Utils.java: Update method for
69 creating the Gda Value from the TypeDataItem to properly deal with
70 creating a Gda Value based on the Glom document type for the primary
71 key value string when loading from a URL.
72 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
73 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
74 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
75 Update for changed method name.
77 2011-11-27 Ben Konrath <ben@bagu.org>
79 Rename PrimaryKeyItem to TypedDataItem.
81 The name PrimaryKeyItem suggests what the class should be used for.
82 TypedDataItem is a neutral name that describes the class better.
84 This is a rename-only refactor.
86 * src/main/java/org/glom/web/client/OnlineGlomService.java:
87 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
88 * src/main/java/org/glom/web/client/Utils.java:
89 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
90 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
91 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
92 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
93 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
94 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
95 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
96 * src/main/java/org/glom/web/server/Utils.java:
97 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
98 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
99 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
100 * src/main/java/org/glom/web/shared/NavigationRecord.java:
102 2011-11-25 Ben Konrath <ben@bagu.org>
104 Improve Gda Value conversion from PrimaryKeyItem.
106 The value from the PrimaryKeyItem is only used if its type match the
107 type from the glom document.
109 * src/main/java/org/glom/web/server/Utils.java:
111 2011-11-25 Ben Konrath <ben@bagu.org>
113 Manually check if the java-liblgom .so is visible to the JVM.
115 It seems that Tomcat has problems when a static initializer throws an
116 exception. This check is done before the first method call into
117 java-libglom so that execution doesn't continue if the .so is not
120 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
122 2011-11-25 Ben Konrath <ben@bagu.org>
124 Improve browser configuration error messages.
128 https://bugzilla.gnome.org/show_bug.cgi?id=662792
130 * src/main/java/org/glom/web/client/OnlineGlomService.java:
131 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
132 getConfigurationErrorMessage() method.
133 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
134 Get and display a specific configuration error message when no Glom
136 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
137 Implement getConfigurationErrorMessage() method. Surround configuration
138 code in the init() method with a try/catch block. This allows the
139 errors to be caught while keeping the servlet available to retrieve the
140 configuration error message.
142 2011-11-25 Ben Konrath <ben@bagu.org>
144 Don't use Strings to hold primary key values.
146 The primary key values are now held in a new data object
147 (PrimaryKeyItem) that holds type information and the primary key value
148 using the correct type.
150 * src/main/java/org/glom/web/client/OnlineGlomService.java:
151 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
153 PrimaryKeyItem instead of String to hold the primary key value.
154 * src/main/java/org/glom/web/client/Utils.java: Remove
155 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
156 PrimaryKeyItem based on the GlomFieldType and the DataItem.
157 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
158 PrimaryKeyItem instead of String to hold the primary key value. Load
159 document selection page when the documentID has not been set correctly.
160 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
161 DetailsPlace -> URL and URL -> DetailsPlace conversion with
163 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
164 Return empty string for URL instead of "null".
165 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
166 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
167 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
168 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
169 PrimaryKeyItem instead of String to hold primary key values.
170 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
171 PrimaryKeyValue to a Gda Value.
172 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
173 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
174 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
175 Replace temporary database access code that uses the PrimaryKeyValue to
176 Gda Value conversion.
177 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
178 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
179 PrimaryKeyItem instead of String.
180 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
181 hold primary key values.
183 2011-11-24 Ben Konrath <ben@bagu.org>
185 Use newly added java-libglom API to create queries.
187 This isn't finished. I still need to stop using Strings for primary key
188 values in the client code.
190 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
191 libglom to use fake connections so that retrieving the query string will
193 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
194 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
195 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
196 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
197 Use the newly added libglom sql methods and classes to create the
198 query. Add temporary hack to convert primary value strings to Gda
201 2011-11-23 Ben Konrath <ben@bagu.org>
203 Don't explicitly set the height of Portals.
205 See comments 6 - 10 of this bug for details:
207 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
209 * src/main/java/org/glom/web/client/ui/details/Portal.java:
211 2011-11-23 Ben Konrath <ben@bagu.org>
213 Use an HTML table instead of CSS for the FlowTable layout.
215 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
216 GWT's FlexTable to implement the FlowTable.
217 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
219 2011-11-18 Ben Konrath <ben@bagu.org>
221 Add boolean example to HTML table mockup.
223 * mockups/details-view-html-tables-text-entries.html:
225 2011-11-17 Ben Konrath <ben@bagu.org>
227 Ensure the pager buttons are always visible for related lists.
229 To accomplish this, I've turned off text wrapping in the list view and
230 related list tables for both the header and data text. The related list
231 table now has a fixed layout so the it doesn't overflow its container.
232 This is required to ensure that the cell text is clipped when it
233 overflows the cell and an ellipsis is added to the right side of the
234 cell when text is clipped.
236 A fixed table layout for the related list table in the details view
237 seems what we want for the details view anyway, so the side-effect is
240 The ellipsis will only be displayed in Firefox >= 7.
244 https://bugzilla.gnome.org/show_bug.cgi?id=662930
246 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
247 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
248 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
250 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
251 Set the 'table-layout: fixed' CSS property to the related list table.
252 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
253 'white-space: nowrap;' CSS property on both the list view and the
256 2011-11-16 Ben Konrath <ben@bagu.org>
258 Rework the fix for empty notebook tab labels.
260 Setting the empty group titles with its name caused problems for the
261 details layout. Instead of using libglom's
262 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
263 to the client when the title is empty. This allows the Notebook to use
264 the name when the title is empty without affecting anything else.
266 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
267 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
269 2011-11-16 Ben Konrath <ben@bagu.org>
271 Set group titles with name when title is empty.
273 This fixes a problem with an empty notebook tab label in the Lesson
274 Planner document. The forth tab in the notebook should be "Internet":
276 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
278 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
279 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
282 2011-11-16 Ben Konrath <ben@bagu.org>
284 Remove whitespace from the configured username properties.
286 This assumes that usernames won't have whitespace at the beginning
287 or end. But I think this is a reasonable assumption.
289 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
290 String.trim() to remove the whitespace from the username properties.
292 2011-11-15 Ben Konrath <ben@bagu.org>
294 Add details view mockup with HTML tables and text entries.
296 This is from the attachment on this bug:
298 https://bugzilla.gnome.org/show_bug.cgi?id=663109
300 * mockups/details-view-html-tables-text-entries.html:
302 2011-11-15 Ben Konrath <ben@bagu.org>
304 Add space between the columns of the flow table.
308 https://bugzilla.gnome.org/show_bug.cgi?id=662918
310 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
311 space between columns in the flow table.
313 2011-11-15 Ben Konrath <ben@bagu.org>
315 Add backup files to the .gitignore.
317 * .gitignore: Ignore files that end with ~.
319 2011-11-09 Ben Konrath <ben@bagu.org>
321 Use latest release of gwt-log.
323 Gwt-log releases are now being submitted to the maven central
324 repository so manual installation of the jar is no longer required.
326 * pom.xml: Update version and groupId of gwt-log dependency.
328 2011-10-31 Ben Konrath <ben@bagu.org>
330 Don't use GWT numeric formatting to override the glom currency formatting.
332 Currencies are now displayed like they are in Glom. See this bug:
334 https://bugzilla.gnome.org/show_bug.cgi?id=646216
336 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
338 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
339 currency code to constructor and set it when the cell is rendered.
340 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
341 currency code to the constructor of the NumericCell.
343 2011-10-27 Ben Konrath <ben@bagu.org>
345 Require the latest release of java-libglom (1.17.4).
349 2011-10-26 Ben Konrath <ben@bagu.org>
351 Add style to Notebook that matches current theme.
353 It's not the best style in the world but it's better than the default.
355 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
356 padding at the bottom of the child widgets.
357 * src/main/webapp/style.css: Add style for the Notebook.
359 2011-10-26 Ben Konrath <ben@bagu.org>
361 Move servlet initialization code to overridden init method.
363 This is half of the solution to getting proper error messages
364 displayed when configuration errors occur. Here's the relevant bug:
366 https://bugzilla.gnome.org/show_bug.cgi?id=662792
368 The rest of the solution involves surrounding the init method with a
369 try/catch block and setting a global variable with the error /
370 exception. A new async method should be created to retrieve and display
371 the error message / exception.
373 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
374 code from constructor to init method adding exceptions as needed.
376 2011-10-26 Ben Konrath <ben@bagu.org>
378 Add script to monitor and restart tomcat if required.
380 * utils/check-and-recover-tomcat.py: New file.
382 2011-10-26 Ben Konrath <ben@bagu.org>
384 Display the correct number of data items in the pager.
388 https://bugzilla.gnome.org/show_bug.cgi?id=661441
390 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
391 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
392 The implementation is the same for both tables: Keep track of the
393 number of non-empty rows and fire and RowCountChangeEvent after the data has
395 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
396 custom Pager class that subclasses SimplePager to handle displaying
397 the correct number when empty rows have been added.
399 2011-10-26 Ben Konrath <ben@bagu.org>
401 Correct error in previous commit.
403 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
404 eventBus parameter from listView.setCellTable().
406 2011-10-26 Ben Konrath <ben@bagu.org>
408 Fix error in TODO comment.
410 * src/main/java/org/glom/web/client/activity/ListActivity.java:
412 2011-10-24 Ben Konrath <ben@bagu.org>
414 Create Notebook widgets to the details view.
416 This isn't finished just yet - I still need to create a reasonable
417 style to match the current theme.
419 * src/main/java/org/glom/web/client/Utils.java: Add method for
420 calculating the height of a widget. This is used in the Notebook class.
421 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
422 new constructor method in Group.
423 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
424 method for creating child widget that can be used by subclasses
425 like Notebook. New constructor that allows disabling the group
426 titles - Notebooks don't set a group title for their child groups.
427 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
428 to make Notebooks using GWT's TabLayoutPanel.
429 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
430 constructor that allows disabling the group titles.
431 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
432 LayoutItemNotebook DTO.
433 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
434 DTO for Notebooks. It's just an empty class for now but we might need
435 it to transfer some specific information in the future.
437 2011-10-21 Ben Konrath <ben@bagu.org>
439 Add navigation buttons to related list tables.
441 * src/main/java/org/glom/web/client/OnlineGlomService.java:
442 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
443 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
444 method getSuitableRecordToViewDetails() for getting the table name
445 and primary key value for related list navigation buttons.
446 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
447 private cell renderer class to get the navigation information for
448 related list tables from the server. Extract the navigation
449 processing code from the details cell navigation and use it for the
450 related list navigation as well.
451 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
452 cell renderer class for the details open buttons. This was needed
453 because the related list navigation buttons and the list view
454 navigation buttons need to react differently when clicked.
455 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
456 the onEnterKeyDown() method because it's now overriden in the
457 subclasses that are specific to the related list tables and the list
459 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
460 the vertical size a little because the buttons add a bit of vertical
461 space to table. This is not a perfect solution because the vertical
462 size of with table fewer than 5 rows will be a little smaller.
463 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
464 changes in how navigation buttons are handled.
465 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
466 getSuitableRecordToViewDetails() using the new RelatedListNavigation
467 database access object.
468 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
469 to find the portal for a given relationship name from
470 RelatedListDBAccess. Add method to find a primary key field for a
472 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
473 Move code to find the portal for a given relationship name to
475 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
476 New file: database access object for getting the related list
477 navigation information (the table name and the primary key value).
478 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
479 DTO for transferring a table name to navigate to and a primary key
481 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
482 boolean and getter/setter to specifies if the related list should add
485 2011-10-24 Murray Cumming <murrayc@murrayc.com>
487 Use the master branch of java-libglom
489 * pom.xml: Depend on java-libglom 1.19 instead.
491 This is the master branch. See also the libglom-1-18 branch.
493 2011-10-11 Ben Konrath <ben@bagu.org>
495 Enable the open navigation button when the data has been set.
497 This avoids having active buttons that don't do anything when the data
500 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
502 2011-10-11 Ben Konrath <ben@bagu.org>
504 Use IsWidget interface for FlowTableItem.
506 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
507 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
509 2011-10-11 Ben Konrath <ben@bagu.org>
511 Remove GWT styling from open button in details view.
513 There are still some issues with how the details cell is arranged but
514 this should be made to match Glom 1.20. I'm going to leave fixing this
515 until I have Glom 1.20 up and running.
517 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
518 style name on open button.
519 * src/main/webapp/style.css: Move and edit details-navigation class.
520 Re-arrange some classes to make them appear in the same order as the
523 2011-10-07 Ben Konrath <ben@bagu.org>
527 * .gitignore: Ignore new cache directory.
528 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
529 * pom.xml: Change GWT and maven plugin to 2.4.0.
530 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
532 * src/main/java/org/glom/web/client/ClientFactory.java:
533 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
534 * src/main/java/org/glom/web/client/OnlineGlom.java:
535 Update source for API changes.
536 * utils/build-onlineglom-war.sh: Remove cache directory before the
539 2011-10-07 Ben Konrath <ben@bagu.org>
541 Add navigation buttons in the details view.
543 This isn't finished but I thought I'd commit what I have as it's a
544 pretty good start. I still need to:
546 1. Change the style so that it fits better into the current theme
547 2. Adjust the details cell to expand as much as possible.
549 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
550 click handlers to navigation buttons in the DetailsCells. Create a
551 refreshData() method to get just the data from the server without the
553 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
554 Update the tableSelector and browser title when the table name
555 changes without using the tableSelector.
556 * src/main/java/org/glom/web/client/ui/DetailsView.java:
557 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
558 getDetailsCells() to getCells(). Update variable names.
559 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
560 method to set click handler on navigation button. Rename a few
561 variables. Add navigation buttons where needed.
562 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
563 variables and methods.
564 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
565 navigation boolean and navigation table as required in the
567 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
568 variables for navigation along with getter/setter methods.
570 2011-10-07 Ben Konrath <ben@bagu.org>
572 Rename Field to DetailsCell.
574 This is a refactor-only commit. No functionality has been added or
577 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
578 Update variable and method names.
579 * src/main/java/org/glom/web/client/ui/DetailsView.java:
580 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
581 variable and method names.
582 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
584 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
585 variable and method names.
587 2011-10-07 Ben Konrath <ben@bagu.org>
589 Create separate methods for layout and data the details view.
591 This is a refactor-only commit. No functionality has been added or
594 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
595 private methods: setData(), createLayout().
597 2011-10-07 Ben Konrath <ben@bagu.org>
599 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
601 This is part of a change to get navigation buttons in the details view
602 but it should have been done this way from the start.
604 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
605 for method name change in TableSelectionView.
606 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
607 Create TableChangeEvent and set the browser title using the
608 TableSelectionView API.
609 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
610 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
611 Change getSelectedTable() to getSelectedTableName(). Add
612 getSelectedTableTitle().
614 2011-10-07 Ben Konrath <ben@bagu.org>
616 Use primaryKeyValue naming convention in constructor of DetailsPlace.
618 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
620 2011-10-07 Ben Konrath <ben@bagu.org>
622 Update TableChangeEvent to use newTableName naming convention.
624 This makes the class more consistent with GWT naming conventions.
626 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
627 Update for method name change in TableChangeEvent.
628 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
629 for method name change in TableChangeEvent.
630 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
631 newTableName variable and getter method. Make toDebugString()
634 2011-09-30 Ben Konrath <ben@bagu.org>
636 Disable the pager in the list tables when the data row count is less than the minimum.
638 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
639 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
641 2011-09-30 Ben Konrath <ben@bagu.org>
643 Add empty rows to the end of related list and list view tables.
645 I also extracted the cell rendering classes from the ListTable because
646 the code was becoming a little crazy with all the anonymous inner
647 classes. My plan is to use these cell rendering classes in the details
648 view as well so this refactor will be needed for that change.
650 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
651 set the row count in related list tables if the data has more rows
652 than the minimum number of rows visible.
653 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
654 row count in list view tables if the data has more rows than the
655 minimum number of rows visible.
656 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
657 for rendering TYPE_BOOLEAN cells. The code was extracted from the
659 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
660 for rendering TYPE_NUMERIC cells. The code was extracted from the
662 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
663 class for rendering cells with buttons in list views. The code was
664 extracted from the ListTable class.
665 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
666 for rendering TYPE_TEXT cells. The code was extracted from the
668 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
669 Add empty rows to the end of the data if required. Implement
670 ListTable.getMinNumVisibleRows().
671 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
672 cell renderer code to public classes. Return null in
673 Column.getValue() for empty rows. Add new abstract method:
674 getMinNumVisibleRows(). Move code to set the row count of the list view
675 table to ListViewImpl.
676 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
677 empty rows to the end of the data if required. Implement
678 ListTable.getMinNumVisibleRows().
681 2011-09-27 Ben Konrath <ben@bagu.org>
683 Use GWT.log for client-side debugging statements.
685 These are optimized out when deployed so I should have used this method
686 in the first place. These statements will eventually be replaced with some sort
687 of notification in the browser.
689 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
690 * src/main/java/org/glom/web/client/activity/ListActivity.java:
691 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
692 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
693 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
695 2011-09-27 Ben Konrath <ben@bagu.org>
697 Put tableselector on the right, back to list link on right.
699 The idea is that the table selector is acting like a label for the
700 currently displayed table so it should be placed below the document title. This
701 puts the table title in a similar position to where it is in Glom.
703 * mockups/details-contacts.html:
704 * mockups/details-projects.html:
705 * mockups/listview-contacts.html:
706 * mockups/listview-projects.html:
708 Update mockups to match how the interfaces currently look.
709 * src/main/webapp/style.css: Swap positions of backlink with the table
710 selector. Add some space on the left side of the table selector to
711 line things up with the document title.
713 2011-09-27 Ben Konrath <ben@bagu.org>
715 Add field colouring to details view.
717 This change re-works how field colouring works. The colour formatting
718 information is now set to the client with the layout information instead of
719 with the data. This eliminates the need to send the same colour strings for
720 data in list view column when colour information is set.
722 In order to set an alternate colour for negative numeric values, the
723 number is now sent to client and formatted with the GWT NumberFormat class.
725 This change also fixes:
727 https://bugzilla.gnome.org/show_bug.cgi?id=659752
729 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
730 internationalization framework which is needed for client side numeric
732 * src/main/java/org/glom/web/client/Utils.java: New file for some
733 client static utility methods.
734 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
735 the DataItem object to the Field class. Use a utility method to
736 create the foreignKeyValue string.
737 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
738 alignment and text colours in the constructor. Add setData(DataItem)
739 method. Remove setText(String) method.
740 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
741 colour information to GlomTextCell. Create and use GlomNumberCell for
742 rendering numbers. Use utility method to get the string for the
743 primary key of the key provider. Re-work how the horizontal alignment
745 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
746 formatting to layout information. Methods for converting the libglom
747 formatting information were moved from DBAccess.
748 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
749 numeric formatting (it's now done on the client side). Don't set text
750 colours in DataItem. Move libglom formatting conversion methods to
752 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
753 getters/setters for text colour information.
754 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
755 for transferring the libglom NumericFormat information to the client.
756 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
757 and getters/setters for: GlomNumericFormat, background colour and
758 foreground colour strings.
760 2011-09-26 Ben Konrath <ben@bagu.org>
762 Simplify code that iterates through the LayoutGroup.
764 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
766 2011-09-26 Ben Konrath <ben@bagu.org>
768 Accept Eclipse formatting for OnlineGlomServiceAsync.
770 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
772 2011-09-26 Ben Konrath <ben@bagu.org>
774 Don't use the ListDBAccess classes to get the primary key layout information.
776 This was causing a bug where the wrong index for the hidden primary key
777 was being sent to the client.
779 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
780 primary key while creating the LayoutGroup DTO. Create a
781 LayoutItemField DTO for hidden primary keys. Don't use the
782 RelatedListDBAccess because it was only used for getting the primary
784 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
785 access modifier from public to protected for getPrimaryKeyField() and
786 getPrimaryKeyLayoutItemField().
787 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
788 abstract method getExpectedResultSize() because RelatedListDBAccess
789 doesn't have enough info to implement it.
790 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
791 Remove @Override for getExpectedResultSize().
792 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
793 Remove method getExpectedResultSize().
795 2011-09-23 Ben Konrath <ben@bagu.org>
797 Log which layout (list or details) the ignored item is from.
799 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
801 2011-09-23 Ben Konrath <ben@bagu.org>
803 Remove annotations that turn off code formatting in DataItem.
805 * src/main/java/org/glom/web/shared/DataItem.java:
807 2011-09-23 Ben Konrath <ben@bagu.org>
809 Rename GlomField to DataItem and update associated methods.
811 This is a rename-only refactor. No functionality has been added or
814 * src/main/java/org/glom/web/client/OnlineGlomService.java:
815 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
816 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
817 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
818 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
819 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
820 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
821 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
822 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
823 * src/main/java/org/glom/web/server/database/DBAccess.java:
824 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
825 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
826 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
827 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
828 * src/main/java/org/glom/web/shared/DataItem.java:
829 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
830 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
832 2011-09-23 Ben Konrath <ben@bagu.org>
834 Rename GlomDocument to DocumentInfo and update associated methods.
836 This is a rename-only refactor. No functionality has been added or
839 * src/main/java/org/glom/web/client/OnlineGlomService.java:
840 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
841 * src/main/java/org/glom/web/client/activity/ListActivity.java:
842 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
843 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
844 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
845 * src/main/java/org/glom/web/shared/DocumentInfo.java:
847 2011-09-20 Ben Konrath <ben@bagu.org>
849 Require java-libglom 1.17.3.
851 This picks up the fix for the seg fault problem with the Scenes table
852 in the Openismus Film Manager example.
856 2011-09-20 Ben Konrath <ben@bagu.org>
858 Change the way sort clause is added for primary key when no sort clause is requested.
860 The primary key is now added to the LayoutFieldVector (fieldsToGet)
861 before the sort clause is created. When a sort clause is not requested, the
862 sort clause is created by finding the primary key in the LayoutFieldVector
865 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
867 2011-09-20 Ben Konrath <ben@bagu.org>
869 Log error message if no documents are found in the configured directory.
871 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
872 Extract the glom file extension string to a private static final class
873 variable (mostly as syntactic sugar). Accept a minor formatting change.
874 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
875 the example glom.document.directory configuration property to make it
876 more clear that it can any directory, not just the home directory.
878 2011-09-18 Ben Konrath <ben@bagu.org>
880 Add related lists to details view.
882 The related list table has support for paging and sorting just like the
883 table in the list view.
885 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
886 SQL queries for the related list tables.
887 * src/main/java/org/glom/web/client/OnlineGlomService.java:
888 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
889 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
890 Rename getList methods to getListView and add comments. Remove
891 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
892 it being unused. Add methods: getDetailsLayoutAndData(),
893 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
894 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
895 Create the layout and set the data for the fields in one async call
896 instead of two. Create related lists where appropriate.
897 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
898 for method name changes in OnlineGlomService.
899 * src/main/java/org/glom/web/client/ui/DetailsView.java:
900 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
901 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
903 * src/main/java/org/glom/web/client/ui/ListView.java:
904 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
905 tableName from setCellTable(). Create a ListViewTable instead of
907 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
908 represent a data field in the details view.
909 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
910 from addDetailsCell() to Field class. Keep track of the Fields and
911 Portals in the details view.
912 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
913 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
914 and add a method to get it. Add method to set the contents of the
916 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
917 New class for related list tables. This class has the data provider
918 for the related list table.
919 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
920 abstract class which is the base class for the ListViewTable and the
922 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
923 New class for list view tables. This class has the data provider for
925 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
926 methods for related list tables. Add more information to the
927 LayoutItemField and LayoutItemPortal DTOs.
928 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
929 Remove debugging print statement.
930 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
931 Remove debugging print statements. Add primary key field to SQL count
933 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
934 Remove unnecessary LayoutFieldVector parameter from
935 getResultSizeOfSQLQuery() method.
936 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
937 New class for related list table database access.
938 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
939 class that is a wrapper DTO for details view layout and data.
940 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
941 new 'fromField' string to this DTO.
942 * src/main/webapp/style.css: Remove bottom margin and override top
945 2011-09-15 Ben Konrath <ben@bagu.org>
947 Breakup the OnlineGlomServiceImpl class to make it more manageable.
949 This sets things up to make it easier to add the data retrieval for
950 related lists (portals). No user noticeable changes were made with
953 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
954 class has the code to retrieve the layouts and access the
955 database using the new database helper classes.
956 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
957 Most of the functionality has been removed from this class. This
958 class now represents the public interface for the client side
959 code. It also deals with configuring the servlet and cleaning
960 things up when the servlet is stopped.
961 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
962 of static methods into this utility class.
963 * src/main/java/org/glom/web/server/database/DBAccess.java:
964 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
965 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
966 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
967 These classes have the database retrieval code. The class hierarchy
968 has been setup to make it easy to reuse code for similar
971 2011-09-06 Ben Konrath <ben@bagu.org>
973 Create separate classes for list table code and the data provider.
975 As part of this refactor, I also split up the code a bit to make it
978 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
979 table code to two new classes (below).
980 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
981 with code from ListViewImpl.
982 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
983 New file with code from ListViewImpl.
985 2011-09-06 Ben Konrath <ben@bagu.org>
987 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
989 This fixes the LayoutItemPortal DTO to match the libglom layout object
992 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
994 2011-09-01 Ben Konrath <ben@bagu.org>
996 Set title of Portals in the Details View.
998 * pom.xml: Bump required version of java-libglom to 1.17.1.
999 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1000 widget creation to its own class. Add comments to constructor.
1001 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1002 The code is mostly from the Group class with the title now set.
1003 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1004 title of Portal. Update some comments. Fix some code formatting.
1006 2011-09-01 Ben Konrath <ben@bagu.org>
1008 Remove TODO comment for the flow table column width.
1010 The flow table column width is working correctly and doesn't need to be
1011 changed. See this mailing list post for more info:
1013 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1015 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1017 2011-08-27 Ben Konrath <ben@bagu.org>
1019 Add document title (database name) to top of the browser page.
1021 I added the document title to the TableSelecitonView but that will
1022 change if / when we add a view that doesn't require table selection.
1024 * mockups/details-contacts.html:
1025 * mockups/details-projects.html:
1026 * mockups/listview-contacts.html:
1027 * mockups/listview-projects.html:
1028 * mockups/style.css: Add document title to mockups to keep things
1030 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1031 sizes to account for the document title.
1032 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1033 Set the document title when it has been retrieved from the server.
1034 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1035 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1036 and implement setDocumentTitle(String) method.
1037 * src/main/webapp/style.css: Add ID for document title style.
1039 2011-08-25 Ben Konrath <ben@bagu.org>
1041 Add NavigationType enum to LayoutItemPortal DTO.
1043 This is the start of adding support for Portals to the Details View.
1045 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1046 LayoutItem_Portal.navigation_type enum from libglom to
1047 LayoutItemPortal.NavigationType enum.
1048 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1049 NavigationType enum, field for storing the NavigationType and getter
1052 2011-08-25 Ben Konrath <ben@bagu.org>
1054 Implement the flow table layout in the Details View.
1056 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1057 FlowTable to Group to account for the renamed class.
1058 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1059 File. This is a container widget that implements the Glom details view
1060 flow table behaviour.
1061 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1062 org/glom/web/client/ui/FlowTable.java.
1063 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1064 so that the size of the subgroups are a closer match to the size of
1065 the Glom subgroups. This makes the flowtable layout match the layout
1066 in Glom for the Music Collection example file.
1068 2011-08-16 Ben Konrath <ben@bagu.org>
1070 Create container element for LayoutItemPortal in Details View.
1072 This will help me develop the layout for the FlowTable.
1074 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1075 fieldPanel variable to detailsCell.
1077 2011-08-15 Ben Konrath <ben@bagu.org>
1079 Set the height of the data element in the Details View.
1081 I changed the InlineLabels (text in a span element) to Labels (text in
1082 a div element) so that I could set the height of the details-data
1083 elements instead of the details-cell parent elements. This allows the
1084 the details-data element to display the correct height if style is
1085 applied that shows the height.
1087 This change has the added benefit of allowing the order of the labels
1088 and data elements to be changed for right-to-left languages.
1090 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1091 InlineLabels to Labels.
1092 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1093 InlineLabels to Labels. Set the height of the data element.
1094 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1095 multiline text height in the Formatting DTO.
1096 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1097 for multiline height along with getter and setter methods.
1098 * src/main/webapp/style.css: Adjust style to account for the change
1099 from span elements to div elements in the details cell.
1101 2011-08-15 Ben Konrath <ben@bagu.org>
1103 Make the List View appearance match the mockups.
1105 It doesn't match exactly but it's much better than it was.
1107 * mockups/listview-contacts.html: Remove unused css classes.
1108 * mockups/listview-projects.html: Remove unused css classes.
1109 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1110 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1111 for mainPanel instead of VerticalPanel (table). Set style name on
1112 CellTable. Set style name on Details column. Right-align Details
1114 * src/main/webapp/style.css: Adjust properties to match the mockups.
1116 2011-08-12 Ben Konrath <ben@bagu.org>
1118 Add better support for subgroups in the details view.
1120 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1121 changed FlowTable constructor.
1122 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1123 support for subgroups and subgroup-titles.
1124 * src/main/webapp/style.css: Add CSS class for subgroups and
1127 2011-08-12 Ben Konrath <ben@bagu.org>
1129 Return the top level LayoutGroup title.
1131 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1133 2011-08-11 Ben Konrath <ben@bagu.org>
1135 Make the TableSelector header match the mockup.
1137 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1138 the layout panel. Properly lineup the table selection header with
1139 the list and details view.
1140 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1141 margin around the details view.
1142 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1143 Rename listBox variable to tableSelector. Set id for the style sheet.
1144 Use a FlowPanel instead of a HorizontalPanel.
1145 * src/main/webapp/style.css: Add properties to make the TableSelector
1146 box match the mockups.
1148 2011-07-13 Ben Konrath <ben@bagu.org>
1150 Update install script for java-libglom version change.
1152 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1155 2011-07-13 Ben Konrath <ben@bagu.org>
1157 Add support sub-group in the details view.
1159 I also removed the code that special-cased the default details view
1162 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1164 I still have to make a proper flowtable.
1166 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1167 Don't special-case default details view layout.
1168 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1169 addLayoutField() as I'm going to use it.
1170 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1171 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1173 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1174 extracted from DetailsViewImpl.GroupPanel. Add support for
1176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1177 column count when getting the details layout.
1179 2011-07-12 Ben Konrath <ben@bagu.org>
1181 Set browser title with database and table titles.
1183 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1184 Set the browser title when the table changes and when the activity
1186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1187 title when retrieving document info (the GlomDocument object).
1188 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1189 with getter and setter methods. Remove unused convenience constructor.
1190 Use default code formatting.
1192 2011-07-12 Ben Konrath <ben@bagu.org>
1194 Ignore LayoutItemPortals in the details view.
1196 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1199 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1200 LayoutItemPortal layout objects.
1201 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1202 LayoutItemPortal objects when retrieving the details layout.
1203 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1204 file. This is an empty class and just used to get type information for
1207 2011-07-12 Ben Konrath <ben@bagu.org>
1209 Use java-libglom 1.17.0.
1213 2011-07-11 Ben Konrath <ben@bagu.org>
1215 Remove "Table:" label from table selector.
1217 This matches a recent change in the Glom UI.
1219 * mockups/details-contacts.html:
1220 * mockups/details-projects.html:
1221 * mockups/listview-contacts.html:
1222 * mockups/listview-projects.html: Remove the "Table:" label from the
1224 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1226 2011-07-11 Ben Konrath <ben@bagu.org>
1228 Add main groups to the details view.
1230 This makes things look a little nicer in the details view. The next step
1231 is to implement the flowtable.
1233 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1234 resources from the standard gwt css theme. Standard.css is now
1235 included in OnlineGlom.html so that the online glom css rules have
1236 precedence over the gwt theme.
1237 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1238 the whole LayoutGroup to the DetailsView instead of just the titles.
1239 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1240 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1241 details layout with a helper class (GroupPanel). I might extract this
1242 class when I make the full flowtable.
1243 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1244 string as default so I don't have to worry about NPEs when processing
1246 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1247 note beside OnlineGlom.gwt.xml above).
1248 * src/main/webapp/style.css: Add default font-size to body to override
1249 the font-size set by the standard theme. Don't use h2 tags for
1250 group-title. Create new details-cell class.
1252 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1254 ConfiguredDocument: Set the port number too.
1256 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1257 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1258 Glom document. Presumably this worked sometimes so far because there is a
1259 default port number.
1261 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1263 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1265 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1266 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1267 correct, though we should throw an exception too.
1269 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1271 Fix a addDocuemnt typo.
1273 * src/main/java/org/glom/web/shared/Documents.java
1274 (Documents.addDocuemnt): Rename to addDocument().
1275 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1276 (OnlineGlomServiceImpl.getDocuments): Adapt.
1278 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1280 Slightly improved log output when connection fails.
1282 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1283 (ConfiguredDocument.setUsernameAndPassword):
1284 We don't know for sure if it' the username/password that's wrong, so
1285 rephrase the message.
1286 Also ouput the exception message, though it's generic in this case.
1288 2011-07-08 Ben Konrath <ben@bagu.org>
1292 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1293 added braces to a one line if statement because the Eclipse formatter
1294 was getting confused.
1296 2011-07-07 Ben Konrath <ben@bagu.org>
1298 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1300 These should really be two separate tasks but I counldn't get things to
1301 work with GWT 2.2.0 and Eclipse 3.7.
1305 * .settings/org.eclipse.jdt.core.prefs:
1306 * .settings/org.eclipse.jdt.ui.prefs:
1307 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1308 * .settings/org.eclipse.m2e.core.prefs:
1309 Add new config files. Update current files. Remove references to the
1310 webtools plugins as we're not using any of the webtools features.
1311 * .gitignore: Add logs directory which is created when running with
1313 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1314 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1315 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1317 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1319 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1321 onlineglom.properties: Add explanatory comments.
1323 * src/main/resources/onlineglom.properties: Also change the default user
1324 from ben to someuser, to avoid the risk of people thinking we just
1325 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1327 2011-06-28 Ben Konrath <ben@bagu.org>
1329 Use filename in Log for incorrect passwords.
1331 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1332 getFileName(String) method to get the filename from the URI.
1334 2011-06-28 Ben Konrath <ben@bagu.org>
1336 Add the table name to the URL token for the ListPlace.
1338 This makes things consistent between the DetailsPlace and the
1339 ListPlace. It also allows the the ListPlace to be bookmarked.
1341 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1342 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1343 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1344 Remove getDefaultListLayout(). The default layout is now returned
1345 by the getListLayout() method when the table name is an empty string.
1346 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1347 Add table name field. Change to a new ListPlace when the table
1348 has been changed. Use getListLayout() for getting the default
1350 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1351 Add table name field. Set the correct table name in the list box
1352 when loading from bookmark. This corrects a problem for the
1354 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1355 Move table name to super-class (HasSelectableTable). Move document
1356 and table URL keys to super-class in HasSelectableTable.
1357 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1358 Add table name field. Add Tokenizer class with URL key common to
1359 the subclasses (DetailsPlace and ListPlace).
1360 * src/main/java/org/glom/web/client/place/ListPlace.java:
1361 Add table name. Add code to parse the URL token.
1362 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1363 Update ListPlace construction with empty table name string.
1364 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1365 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1366 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1367 Update ListPlace construction with table name string.
1368 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1369 Change defaultTableName field to tableName to reflect how it's now
1370 used. Update the getter and setter methods.
1372 2011-06-28 Ben Konrath <ben@bagu.org>
1374 Enable the table selector in the DetailsView.
1376 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1377 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1378 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1379 Remove getDefaultDetailsLayout(). The default layout is now returned
1380 by the getDetailsLayout() method when the table name is an empty
1382 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1383 event handler for table change event. Change to using
1384 getDetailsLayout() for the default details layout.
1385 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1387 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1388 when navigating to the details place.
1390 2011-06-27 Ben Konrath <ben@bagu.org>
1392 Use filename based unique document ID in URL and for RPC.
1394 The document ID is the glom document name with spaces (' ') replaced
1395 with pluses ('+') and without the .glom extension.
1397 This change is mostly a string substitution of 'documentTitle' for
1398 'documentID'. The only code change is the addition of a Documents DTO to get the
1399 filename to document title mappings as indicated below.
1401 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1402 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1403 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1404 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1405 Use Documents DTO to create the document links in the document
1407 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1408 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1409 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1410 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1411 * src/main/java/org/glom/web/client/place/ListPlace.java:
1412 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1413 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1414 * src/main/java/org/glom/web/client/ui/ListView.java:
1415 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1416 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1417 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1418 * src/main/java/org/glom/web/server/Log.java:
1419 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1420 getDocumentTitles() to getDocuments() and return the Documents DTO.
1421 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1422 transferring the filename to document title mappings.
1424 2011-06-25 Ben Konrath <ben@bagu.org>
1426 Make the authentication popup work again.
1428 This bug was introduced when I extracted ConfiguredDocument to its own class.
1430 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1431 correct success / fail status in setUsernameAndPassword().
1433 2011-06-25 Ben Konrath <ben@bagu.org>
1435 Use filename as unique key for configuring database usernames and passwords.
1437 This replaces the use of the Glom document title which could change
1438 depending on the locale. Thanks to Murray Cumming for pointing out this
1441 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1442 * src/main/resources/onlineglom.properties:
1444 2011-06-24 Ben Konrath <ben@bagu.org>
1446 Pass primary key value to DetailsView.
1448 This enables the DetailsView to load the correct data.
1450 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1451 primary key value field and set in constructor. Pass primary key
1452 value to getDetailsData().
1453 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1454 variables for document title and primary key value.
1455 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1456 key value to the DetailsPlace.
1458 2011-06-24 Ben Konrath <ben@bagu.org>
1460 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1462 This allows the primary key to be retrieved by the Details button. This
1463 functionality has not been implemented yet but it's in the works.
1465 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1466 the LayoutGroup result to ListView.setCellTable instead of all of its
1467 fields individually.
1468 * src/main/java/org/glom/web/client/ui/ListView.java:
1469 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1470 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1471 get the primary key for the table.
1472 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1473 index of the primary key in the LayoutGroup accounting for hidden
1474 primary keys. Rename getJavaNumberFormat() to
1475 convertToJavaNumberFormat() for consistency. Cleanup / add some
1477 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1478 field for primary key index and a field to indicate whether the
1479 primary key is hidden or not.
1481 2011-06-23 Ben Konrath <ben@bagu.org>
1483 Rename getTableData methods to getListData.
1485 This is a rename refactor for consistency with other methods.
1487 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1488 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1489 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1490 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1492 2011-06-23 Ben Konrath <ben@bagu.org>
1494 Extract the ConfiguredDocument innerclass into its own class.
1496 This makes the servlet code more object oriented.
1498 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1499 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1501 new ConfiguredDocument class.
1503 2011-06-21 Ben Konrath <ben@bagu.org>
1505 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1507 This makes things more inline with how libglom works and reduces code
1508 duplication. This refactor lays the groundwork for adding the primary key to
1509 the LayoutGroup object.
1511 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1512 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1513 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1514 Change method names to getListLayout and getDefaultListLayout for
1515 consistency. Use LayoutGroup as the DTO for the list layout instead of
1516 ColumnInfo and LayoutListTable.
1517 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1518 new method names along with the LayoutGroup object for transferring the
1520 * src/main/java/org/glom/web/client/ui/ListView.java:
1521 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1522 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1523 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1525 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1526 Replaced with LayoutGroup.
1527 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1528 expectedResultSize and defaultTableName fields which are needed for
1530 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1531 type field which is needed for the list layout but will also be
1532 useful for the details layout as things progress.
1533 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1534 Make class abstract. Remove the unnecessary
1535 getFormattingHorizontalAlignment method. Add setFormatting method.
1537 2011-06-16 Ben Konrath <ben@bagu.org>
1539 Add scripts for building and installing war.
1541 These will help when updating OnlineGlom but they're also good
1542 supplemental documentation of the build and deployment proceeding.
1544 * utils/build-onlineglom-war.sh: New file.
1545 * utils/install-onlineglom-war.sh: New file.
1547 2011-06-16 Ben Konrath <ben@bagu.org>
1549 Create wrapper class to create consistent log messages.
1551 I wrapped methods in the Log class of gwt-log to add the method names
1552 from the servlet and create consistent formatting of the document title
1553 and table names in the log messages.
1555 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1557 log methods to use methods from wrapped Log class.
1559 2011-06-16 Ben Konrath <ben@bagu.org>
1561 Remove superfluous conditional return.
1563 Thanks to Murray Cumming for pointing this out!
1565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1567 2011-06-15 Ben Konrath <ben@bagu.org>
1569 Return an ArrayList of LayoutGroups for the Details layout.
1571 This corrects a problem with the details layout as it can have more
1572 than one top level LayoutGroup.
1574 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1575 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1576 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1577 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1578 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1579 with ArrayList of LayoutGroups for the details view layout.
1580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1581 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1582 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1583 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1584 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1585 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1587 2011-06-14 Ben Konrath <ben@bagu.org>
1589 Use cast_dynamic method to determine the libglom LayoutItem type.
1591 This is better than finding the LayoutItem type by using the string
1592 returned from the get_part_type_name() method.
1594 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1596 2011-06-14 Ben Konrath <ben@bagu.org>
1598 Add method names to log entries in the servlet.
1600 This helps when tracking down deployment problems.
1602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1604 2011-06-14 Ben Konrath <ben@bagu.org>
1606 Add data to the DetailsView using a hard-coded primary key value.
1608 The layout and functionality of the DetailsView is not complete. This
1609 is just a checkpoint so the patch doesn't get too big.
1611 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1612 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1613 Add getDetailsData() servlet method.
1614 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1615 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1616 LayoutFields are added to the DetailsView.
1617 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1618 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1619 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1620 take the string for the title instead of the object.
1621 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1622 Add implementation getDetailsData() along with some private helper
1624 * src/main/webapp/style.css: Add padding to details-data class. Add a
1625 details-label class with the same padding as the details-data class.
1627 2011-06-03 Ben Konrath <ben@bagu.org>
1629 Use presenter.goTo() to change to the DetailsPlace.
1631 This will make things easier when we need to open the DetailsView with
1632 data specific to the row that was clicked.
1634 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1636 2011-06-02 Ben Konrath <ben@bagu.org>
1638 Add CSS file from mockups.
1640 I'm adding this now because it's going to be useful to have when
1641 developing the DetailsView. The TableSelectionView and ListView aren't
1644 * src/main/webapp/OnlineGlom.html:
1645 * src/main/webapp/style.css:
1647 2011-06-02 Ben Konrath <ben@bagu.org>
1649 Use String.isEmpty() to check for empty string.
1651 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1653 2011-06-02 Ben Konrath <ben@bagu.org>
1655 Display main layout group titles in the DetailsView.
1657 This is the start of the DetailsActivity/DetailsView implementation.
1659 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1660 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1661 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1662 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1663 Get the layout information for the details view from the server and set
1664 the main layout group titles.
1665 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1666 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1667 Add addLayoutGroup() and addLayoutField() methods. This are just
1668 temporary methods for creating the the details view that will change
1670 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1671 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1673 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1674 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1675 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1676 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1677 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1678 Data Transfer Objects that mimic the libglom object structure. These are
1679 used for transferring the details layout but could also be used for
1680 transferring the list layout.
1682 2011-05-27 Ben Konrath <ben@bagu.org>
1684 Reset the AuthenticationPopup when clearing the ListView.
1686 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1688 2011-05-27 Ben Konrath <ben@bagu.org>
1690 Fix problem with onlineglom.properties file loading.
1692 The old way worked in Eclipse but not on the server. Loading the
1693 onlineglom.properties file now works in Eclipse and on the server.
1695 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1697 2011-05-24 Ben Konrath <ben@bagu.org>
1699 Update gwt-log from 3.1.0 to 3.1.2.
1701 Gwt-log 3.1.0 has been marked as depreciated.
1705 2011-05-24 Ben Konrath <ben@bagu.org>
1707 Add comment to ListActivity.goTo() method.
1709 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1711 2011-05-24 Ben Konrath <ben@bagu.org>
1713 Remove FIXME in convertGdkColorToHtmlColour()
1715 The Gdk::Color value returned by libglom is 16-bits per channel on both
1716 64 and 32-bit platforms.
1718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1720 2011-05-19 Ben Konrath <ben@bagu.org>
1722 Improve performance of initial ListView load.
1724 I removed a round trip to the server for getting the default table name
1725 and then requesting information about that table. This also removes a potential
1726 problem with the table change handler not being setup in time to receive the
1727 table change event from the ListActivity.
1729 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1730 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1731 getDefaultLayoutListTable() method. Improve comments.
1732 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1733 getDefaultLayoutListTable() method instead of firing a table change
1734 event to get the table to load.
1735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1736 implementation of getDefaultLayoutListTable() method.
1737 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1740 2011-05-19 Ben Konrath <ben@bagu.org>
1742 Override toDebugString() in TableChangeEvent.
1744 This is useful to have for debugging.
1746 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1748 2011-05-19 Ben Konrath <ben@bagu.org>
1750 Add a "Back to List" link when at the DetailsPlace.
1752 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1753 Populate the CellTable based on the selected table of the ListBox if
1754 it's set otherwise use the default table. This allows the "Back to
1756 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1757 Remove Place from constructors. Add a setPlace() method. Add
1758 goToPlace() method. Set class as presenter for TableSelectionView.
1759 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1760 Use the same TableSelectionActivity when switching between the List and
1762 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1763 Subclass the new HasSelectableTablePlace. This removes some duplicate
1765 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1766 New class to represent Places that display the TableSelectionView.
1767 * src/main/java/org/glom/web/client/place/ListPlace.java:
1768 Subclass the new HasSelectableTablePlace. This removes some duplicate
1770 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1771 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1772 Add Presenter interface. Add setBackLinkVisible() method. Add
1773 setBackLink() method.
1775 2011-05-18 Ben Konrath <ben@bagu.org>
1777 Enable the "Details" buttons.
1779 Right now only an empty details view is displayed.
1781 * src/main/java/org/glom/web/client/ClientFactory.java:
1782 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1783 Add DetailsView to ClientFactory.
1784 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1785 A basic activity for the details view.
1786 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1787 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1789 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1790 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1792 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1793 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1794 unnecessary super() in constructor.
1795 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1796 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1797 really shouldn't create a new TableSelectionActivity for both the ListPlace
1798 and the DetailsPlace so this should be considered a temporary solution.
1799 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1800 New file. Represents a URL for the details view.
1801 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1802 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1803 A basic details view interface and implementation.
1804 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1805 Enable the "Details" buttons.
1807 2011-05-12 Ben Konrath <ben@bagu.org>
1809 Use a LayoutPanel with multiple display areas for main layout.
1811 This is mostly a refactor in that there are no changes from the user
1812 point of view. These changes are required so that we can swap out the list view
1813 with the details view when the user clicks the "Details" button.
1815 * src/main/java/org/glom/web/client/ClientFactory.java:
1816 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1817 OnlineGlomView. Add TableSelectionView, ListView and
1818 AuthenticationPopup.
1819 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1820 for main layout. Add display regions for main activities. Add
1821 activity manager for for main activities.
1822 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1823 file from parts of the deleted OnlineGlomActivity.
1824 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1825 New file from parts of the deleted OnlineGlomActivity.
1826 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1827 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1828 New files for app wide table change event.
1829 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1830 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1831 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1832 Activity mappers for the main activities replace the deleted app-wide
1834 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1835 Fix a spelling error in he comment.
1836 * src/main/java/org/glom/web/client/ui/ListView.java:
1837 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1838 Renamed from LayoutListView and modified for MVP. This still not a
1839 proper dumb view as prescribed by the MVP pattern but it works for now.
1840 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1841 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1842 New widget stripped out of the deleted OnlineGlomView.
1843 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1844 Remove hack that is fixed by this patch.
1846 2011-05-06 Ben Konrath <ben@bagu.org>
1848 Rename OnlineGlomPlace to ListPlace.
1850 The only change besides the rename is that url will now display #list
1851 instead of #Document.
1853 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1854 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1855 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1856 * src/main/java/org/glom/web/client/place/ListPlace.java:
1857 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1859 2011-05-06 Ben Konrath <ben@bagu.org>
1861 Use Presenter for app navigation.
1863 This is the proper way to deal with Place (URL) changes with the MVP
1866 * src/main/java/org/glom/web/client/ClientFactory.java:
1867 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1868 PlaceHistoryMapper and PlaceHistoryHandler.
1869 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1870 PlaceHistoryMapper and PlaceHistoryHandler.
1871 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1872 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1873 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1874 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1875 Add Presenter interface and setPresenter methods. Rename addHyperLink
1876 to addDocumentLink taking only the document title as a parameter.
1878 2011-04-14 Ben Konrath <ben@bagu.org>
1880 Prompt for db username/password if they haven't been set.
1882 This is implemented with a popup widget that is contained within the
1883 OnlineGlomView and managed by the OnlineGlomActivity.
1885 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1886 methods for checking and setting the database username and password.
1887 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1888 new methods for checking and setting the database username and
1890 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1891 Display authentication popup if the JDBC connection to the database
1892 has not been authenticated.
1893 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1895 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1896 for dealing with the authentication popup.
1897 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1898 Implement the methods for dealing with the authentication popup.
1899 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1900 try to executed queries if the database connection hasn't been
1901 authenticated. Implement methods for checking and setting the
1902 database username and password.
1904 2011-04-12 Ben Konrath <ben@bagu.org>
1906 Make log messages a little clearer.
1908 Add a dash betweeen the document title and the table name.
1910 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1912 2011-04-12 Ben Konrath <ben@bagu.org>
1914 Protect against NPEs when cleaning up database resources.
1916 While this isn't strictly necessary because the exception is caught,
1917 not protecting against the NPEs makes it harder to find the real error
1920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1922 2011-04-12 Ben Konrath <ben@bagu.org>
1924 Move configuration of the servlet to the constructor.
1926 The servlet will be initialized even if the database authentication
1927 information is not set or correct. I still need to add the UI for prompting
1928 the user for the authentication information when it's required.
1930 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1931 javadocs for getDocumentTitles() method.
1932 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1933 Set error message when RPC fails.
1934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1935 glom files directory from the configuration file. Try to set the
1936 database authentication information for the specific document if it's
1937 set and works otherwise try to use the global authentication
1938 information set for the directory.
1939 * src/main/resources/onlineglom.properties: Moved from
1940 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1941 Added detailed comments for the new keys.
1943 2011-04-11 Ben Konrath <ben@bagu.org>
1945 Remove unnecessary @Override in DocumentSelectionViewImpl.
1947 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1949 2011-04-11 Ben Konrath <ben@bagu.org>
1951 Remove center alignment in DocumentSelectionView.
1953 The title element is still centred but the document titles and bottom
1954 sentence are both left-aligned.
1956 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1958 2011-04-11 Ben Konrath <ben@bagu.org>
1960 Change 'Demo' naming convention to 'Document'.
1962 This is just a rename refactor with no functional changes to the code.
1964 * src/main/java/org/glom/web/client/ClientFactory.java:
1965 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1966 * src/main/java/org/glom/web/client/OnlineGlom.java:
1967 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1968 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1969 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1970 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1971 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1972 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1973 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1974 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1975 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1978 2011-04-08 Ben Konrath <ben@bagu.org>
1980 Remove FIXME from safeLongToInt() method.
1982 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1985 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1987 2011-04-08 Ben Konrath <ben@bagu.org>
1989 Display an error if no glom documents are found in the specified directory.
1991 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1992 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1993 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1994 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1996 2011-04-08 Ben Konrath <ben@bagu.org>
1998 Add copyright header to one more file ... oops.
2000 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2002 2011-04-08 Ben Konrath <ben@bagu.org>
2004 Add copyright header to files without it.
2006 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2007 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2008 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2009 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2010 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2011 * src/main/java/org/glom/web/shared/GlomField.java:
2013 2011-04-08 Ben Konrath <ben@bagu.org>
2015 Add support for accessing multiple glom documents in the servlet.
2017 This completes the demo selection functionality.
2019 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2020 document title to methods.
2021 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2022 document title to methods.
2023 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2024 Set browser window title when the activity starts. Correct name of
2025 document title variable.
2026 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2027 Set browser window title when the activity starts. Set the table
2028 selector change handler after table selector has been set. Clear the
2029 OnlineGlomView when the activity has been stopped.
2030 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2031 document title as the place token. Use "#Document:" instead of
2032 "#OnlineGlomPlace:" in the URL.
2033 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2034 Change heading to "Online Glom"
2035 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2036 document title in RPC methods.
2037 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2038 setDocumentTitle() method. Add clear() method.
2039 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2040 setDocumentTitle() method. Implement clear() method which removes the
2041 change handler on the ListBox, clears the ListBox and clears the
2043 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2044 Implement methods with document title. Keep track for the configured
2045 glom documents and their corresponding JDBC configurations in a hash
2046 table. This information is retrieved using the document title as the
2047 key in the hash table.
2048 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2049 document title field as it's no longer needed.
2051 2011-04-08 Ben Konrath <ben@bagu.org>
2053 Update the Eclipse JDT configuration.
2055 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2056 methods. Automatically add the copyright header to new files.
2058 2011-04-05 Ben Konrath <ben@bagu.org>
2060 Add new page for demo selection.
2062 This patch adds all the components required to view and start an
2063 OnlineGlom demo by clicking on the desired hyperlink. The user is
2064 able to return to the demo selection page with the browser's back
2065 button. I still need to modify the servlet to work with multiple
2066 documents so all demo links will load the file defined in the
2067 OnlineGlom.properties.
2069 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2070 This is only useful during development so we don't need to save it.
2071 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2072 get a reference to the DemoSelectionView.
2073 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2074 method to get a reference to the DemoSelectionView.
2075 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2076 default view to DemoSelectionView.
2077 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2078 to get glom document titles for glom files in a hard-coded directory.
2079 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2080 method to get glom document titles for glom files in a hard-coded
2082 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2083 Presenter for DemoSelectionView.
2084 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2085 for DemoSelectionView.
2086 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2087 Update for DemoSelectionView.
2088 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2089 Basic 'Place' implementation for the DemoSelectionView.
2090 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2091 The interface for the DemoSelectionView.
2092 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2093 The implementation of the DemoSelectionView.
2094 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2095 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2096 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2097 implementation of method to get glom document titles for glom files
2098 in a hard-coded directory.
2099 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2100 on longer being used.
2101 * src/main/webapp/glom.png: Glom logo.
2103 2011-04-05 Ben Konrath <ben@bagu.org>
2105 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2107 This is the forth and final commit of a refactor that will allow
2108 OnlineGlom to be used with multiple documents.
2110 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2111 Move RPC code from OnlineGlomViewImpl to this class.
2112 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2114 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2115 RPC code to the presenter class (the P in MVP).
2117 2011-04-04 Ben Konrath <ben@bagu.org>
2119 Start moving the existing OnlineGlom code to MVP.
2121 This work is based on the GWT MVP framework that is documented here:
2123 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2125 This is the third commit of a refactor that will allow OnlineGlom to
2126 be used with multiple documents.
2128 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2129 Interface for client factory which is used to get instances of various
2130 classes throughout the app.
2131 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2132 Implementation of client factory.
2133 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2134 initialize the MVP framework.
2135 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2136 New file. Activity manager for the main container widget. This is the
2138 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2139 Maps place (URL) to its corresponding activity.
2140 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2141 New file. This is just a place holder for a generated file.
2142 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2143 New file. Represents the URL for the main Online Glom app.
2144 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2145 for changes in LayoutListViewImpl.
2146 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2147 interface for View. Move code to OnlineGlomViewImpl class.
2148 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2149 file. Implementation of OnlineGlomView.
2150 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2151 Place resources. Use ClientFactoryImpl by default.
2153 2011-04-04 Ben Konrath <ben@bagu.org>
2155 Move View classes to their own package.
2157 This is the second commit of a refactor that will allow OnlineGlom to
2158 be used with multiple documents.
2160 * src/main/java/org/glom/web/client/OnlineGlom.java:
2161 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2162 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2164 2011-04-02 Ben Konrath <ben@bagu.org>
2166 Move UI code from the main module to its own class.
2168 This is the first commit of a refactor that will allow OnlineGlom to be
2169 used with multiple documents.
2171 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2172 references to OnlineGlom to OnlineGlomView.
2173 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2174 OnlineGlomView and instantiate it here.
2175 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2176 represents the main OnlineGlomView with one document.
2178 2011-04-01 Ben Konrath <ben@bagu.org>
2180 Fix formatting of gwt.xml and add DTD.
2182 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2184 2011-03-30 Ben Konrath <ben@bagu.org>
2186 Propperly convert gdkColor string to html colour string.
2188 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2190 2011-03-28 Ben Konrath <ben@bagu.org>
2192 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2194 This implementation matches
2195 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2196 readable and is not tied to Swig.
2198 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2200 2011-03-28 Ben Konrath <ben@bagu.org>
2202 Use read-only checkboxes for boolean field types.
2204 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2205 in the CellTable based on the field type. It currently only
2206 distinguishes between boolean and text columns but I'll need to add
2207 support for more types.
2208 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2209 column type in the ColumnInfo object. Add method to convert between the
2210 glom field type enum in ColumnInfo and the glom field type in libglom.
2211 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2213 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2214 getting and setting booleans.
2216 2011-03-25 Ben Konrath <ben@bagu.org>
2218 Don't get the Date twice from the ResultSet.
2220 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2222 2011-03-25 Ben Konrath <ben@bagu.org>
2224 Cleanup code in the servlet.
2226 * TODO: Remove item about row count. Add item about testing row count
2227 query with large number of rows.
2228 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2229 spelling mistakes, change method parameter to be consistent with
2232 2011-03-25 Ben Konrath <ben@bagu.org>
2234 Add server side logging with the gwt-log library.
2236 * .gitignore: Ignore the log file we're now producing.
2237 * TODO: Add a couple TODO item for logging.
2238 * pom.xml: Add gwt-log and log4j as a dependency.
2239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2240 logging of errors, warnings and some important info.
2241 * src/main/resources/log4j.properties: New file to configure log4j.
2243 2011-03-24 Ben Konrath <ben@bagu.org>
2245 Add a disable button for the Details view.
2247 * src/main/java/org/glom/web/client/LayoutListView.java:
2249 2011-03-22 Ben Konrath <ben@bagu.org>
2251 Use a count query to get the number of rows for the list view pager.
2253 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2255 2011-03-22 Ben Konrath <ben@bagu.org>
2257 Add more TODO information about CellTable pager positioning.
2261 2011-03-19 Ben Konrath <ben@bagu.org>
2263 Add TODO item about CellTable pager positioning.
2267 2011-03-18 Ben Konrath <ben@bagu.org>
2269 Remove unneeded GlomFieldColumn class.
2271 This is just a small code cleanup.
2273 * src/main/java/org/glom/web/client/LayoutListView.java:
2275 2011-03-18 Ben Konrath <ben@bagu.org>
2277 Use cursor mode in the query that gets data for the list view.
2279 I still need to fix the potential memory problem when getting the row
2280 count for the list view.
2282 * TODO: Add note about testing memory usage with large data sets. Add
2283 item about fixing row counting with large data sets.
2284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2285 PostgreSQL JDBC driver into cursor mode when getting data for the
2288 2011-03-15 Ben Konrath <ben@bagu.org>
2290 Remove the GWT Container from the Eclipse build classpath.
2292 The GWT dependencies are set by Maven so this isn't needed.
2296 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2298 Added some earlier mockups to git, but not to the tarball dist.
2300 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2301 Openismus. These hopefully show how we might structure the HTML so that
2302 it can be styled easily with CSS. However, we probably need to adapt them
2303 for the CSS structure that GWT dictates for common widgets.
2305 2011-03-14 Ben Konrath <ben@bagu.org>
2307 Locate OnlineGlom.properties using the ServletContext.
2309 This is required to be able to locate the file in the deployed servlet.
2311 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2312 Configure the database and glom document in in a helper method so
2313 that the ServletContext can be used to locate OnlineGlom.properties.
2314 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2315 src/main/webapp. This is the proper location for .properites files.
2317 2011-03-12 Ben Konrath <ben@bagu.org>
2319 Add note to README about why we're compiling down to obfuscated JavaScript.
2323 2011-03-11 Ben Konrath <ben@bagu.org>
2325 Use properties file to configure servlet.
2327 This allows people to change the glom file path, db username and db
2328 password without recompiling the code.
2330 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2331 * src/main/webapp/OnlineGlom.properties:
2333 2011-03-11 Ben Konrath <ben@bagu.org>
2335 Use table fields in layout list view if the layout list is not defined.
2337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2338 Manually create a LayoutFieldVector for the query builder using the
2339 table fields when a layout list is not defined in the glom file.
2341 2011-03-11 Ben Konrath <ben@bagu.org>
2343 Only show FIXME string for images when there's an image.
2345 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2346 in this change are some small code cleanups.
2348 2011-03-11 Ben Konrath <ben@bagu.org>
2350 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2352 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2354 2011-03-11 Ben Konrath <ben@bagu.org>
2356 Correctly set the index of the default table.
2358 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2359 Correctly set the index of the default table. Add commented out example
2362 2011-03-10 Ben Konrath <ben@bagu.org>
2364 Add comment to pom.xml about the previous change.
2366 * pom.xml: Add comment about the deployment issue so that it's obvious
2367 why java-libglom is set to the provided scope.
2369 2011-03-10 Ben Konrath <ben@bagu.org>
2371 Change java-libglom dependency from compile to provided in pom.xml.
2373 Since java-libglom uses jni it can only be loaded once and therefore
2374 must be placed in $CATALINA_HOME/lib and not included in each war.
2375 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2376 More information about this issue can be found in the Tomcat 6 release
2377 notes in the "JNI Based Applications" section:
2379 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2381 * README: Remove note about this issue. Deployment info should really
2382 be on the wiki anyway so I'll add it right now.
2383 * pom.xml: Change java-libglom dependency from compile to provided so
2384 that it's copied in to the packaged war.
2386 2011-03-09 Ben Konrath <ben@bagu.org>
2388 Change to using a neutral locale for currency, date and time formatting.
2390 This solves the problem of currency values being represented without a
2391 space between the currency code and the number (e.g. "EUR5.89" is now
2392 represented as "EUR 5.89"). More work is required when we implement
2393 a locale preference setting.
2395 * TODO: Add note about currency formatting issues with different
2397 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2398 to using the neutral ROOT locale.
2400 2011-03-09 Ben Konrath <ben@bagu.org>
2402 Add support for currency codes that are not ISO 4217 codes.
2404 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2405 the currency code defined in the glom file when it's not 3 characters
2406 long or when Java doesn't recognize the string as an ISO 4217 code.
2408 2011-03-08 Ben Konrath <ben@bagu.org>
2410 Remove test classes, launch configurations and configuration.
2412 The test stuff was getting in the way when creating the war. To make
2413 the war file you can now do 'mvn clean package'. The packaged war file
2414 will be in the target directory.
2416 * .classpath: Remove unused classpathentry for tests and i18n.
2417 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2418 property. Don't run test or i18n goals when packaging the war.
2419 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2424 * OnlineGlomTest-dev.launch:
2425 * OnlineGlomTest-prod.launch:
2426 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2427 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2429 2011-03-07 Ben Konrath <ben@bagu.org>
2431 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2433 These fixes allow me to use 'mvn deploy' to create the war file.
2435 * .classpath: This generated config has been updated by Eclipse. This
2436 change was probably triggered by me updating from Eclipse 3.6.1 to
2438 * .gitignore: Add entry to ignore the directory
2439 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2440 * .project: The generated config has been updated by Eclipse. This
2441 change was probably triggered by me updating from Eclipse 3.6.1 to
2443 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2444 so that Eclipse doesn't complain
2445 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2446 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2447 'tests' directory to 'client' directory. This is the new
2448 gwt-maven-plugin convension.
2449 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2450 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2452 2011-03-07 Ben Konrath <ben@bagu.org>
2454 Add support for horizontal alignment in the LayoutList columns.
2456 * TODO: Remove item about horizontal alignment. Add item about
2457 improvements to ColumnInfo.
2458 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2459 alignment on the columns. Use ColumnInfo RPC object get the column
2460 title and horizontal alignment.
2461 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2462 LayoutListView creation with ColumnInfo RPC object.
2463 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2464 a ColumnInfo object for every LayoutList columnn. Convert the
2465 FieldFormatting.HorizontalAlignment to the correct
2466 ColumnnInfo.HorizontatlAlignment with the new
2467 getColumnInfoHorizontalAlignment helper method.
2468 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2469 to encapsulate column information like alignment and title. This
2470 could be used to set the colour instead of on a per cell field basis.
2471 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2472 column title storage and retrieval with ColumnInfo.
2474 2011-03-04 Ben Konrath <ben@bagu.org>
2476 Add support for column sorting.
2478 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2479 AsynDataProvider to be an anonymous inner class. Use new
2480 getSortedTableData RPC method when column sort is requested. Set all
2481 columns sortable and add an AsyncHandler to activate sorting in the
2483 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2484 method getSortedTableData(). Cleanup other method signatures.
2485 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2486 new method getSortedTableData(). Cleanup other method signatures.
2487 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2488 Implement getSortedTableData() and getTableData() methods by using a
2489 private helper method with the appropriate parameters filled in. Use
2490 user supplied sort clause when supplied, otherwise fall back to
2491 sorting by the primary key. Move destroy() method to be underneath
2492 constructor for readability. Cleanup comments.
2494 2011-03-03 Ben Konrath <ben@bagu.org>
2496 Add support for colour text and colour backgrounds to the layout list cells.
2498 Only the cell backgrounds are coloured which leaves a gap between the
2499 cells that isn't coloured. I need to figure out a way to set
2500 'style=background-colour:' on the whole column rather than just the
2503 * TODO: Add a note about colouring the background of the whole column.
2504 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2505 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2506 render the coloured text and backgrounds. Use GlomField[] for the row type.
2507 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2509 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2510 GlomField[] for the row type.
2511 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2512 GlomField[] for the row type. Set the text, text colour and background
2513 colour in the GlomField objects as specified in the glom document. Add
2514 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2515 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2516 the glom field text, foreground colour and background colour.
2518 2011-03-02 Ben Konrath <ben@bagu.org>
2520 Don't display hidden tables in the combo box.
2522 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2525 code to ignore hidden tables using ArrayLists for the table names and
2527 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2528 tableNames to use ArrayLists instead of String[]. Update getter and setter
2531 2011-03-01 Ben Konrath <ben@bagu.org>
2533 Add support for Date and Time number types.
2535 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2536 Implement formatting for Date and Time values. Change the default glom
2537 file to small business example.
2539 2011-03-01 Ben Konrath <ben@bagu.org>
2541 Add support for formatting glom types as specified in the glom file.
2543 Formatting isn't finished yet - I still need to add support for Date
2546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2547 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2548 checks for null values in JDBC cleanup code and catch all exceptions
2549 instead of just SQLExceptions.
2550 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2553 2011-03-01 Ben Konrath <ben@bagu.org>
2555 Use GWT 2.2.0 instead of 2.1.1.
2557 * pom.xml: Change GWT version numbers.
2559 2011-03-01 Ben Konrath <ben@bagu.org>
2561 A few small code cleanups.
2563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2565 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2566 unnecessary object creation in constructor.
2567 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2568 unnecessary object creation in constructor.
2570 2011-02-28 Ben Konrath <ben@bagu.org>
2572 Add file for TODO list.
2576 2011-02-18 Ben Konrath <ben@bagu.org>
2578 Enable the CellTable Pager when more than 20 rows need to be viewed.
2580 The Pager will automatically become active when the results are larger
2581 than the CellTable size which is currently set to 20 lines.
2583 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2584 name on debug statment in RPC call in LayoutListDataProvider, add
2585 numRows parameter to LayoutListView constructor, propperly set rowCount
2587 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2588 name on debug statment in RPC call, use LayoutListTable object in RPC
2589 calls, pass rowCount to LayoutListView.
2590 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2591 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2593 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2594 interface for changes in OnlineGlomService.
2595 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2596 getLayoutListHeaders() to getLayoutListTable() and return
2597 LayoutListTable. Using this object allows me to pass other information
2598 about the LayoutList like the expected number of rows in the result set.
2599 The Connection object from the connection pool is now propperly closed.
2600 Only the requested number of lines are returned to the client in
2602 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2603 GlomTable and add columnTitles and numRows.
2605 2011-02-18 Ben Konrath <ben@bagu.org>
2607 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2609 This is a small performance boost. I'll use GlomTable to get the required
2610 layoutlist information.
2612 * src/main/java/org/glom/web/client/OnlineGlom.java:
2613 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2614 * src/main/java/org/glom/web/shared/GlomDocument.java:
2616 2011-02-18 Ben Konrath <ben@bagu.org>
2618 Add option to turn off formatting in JDT formatter preferences.
2620 * .settings/org.eclipse.jdt.core.prefs:
2622 2011-02-18 Ben Konrath <ben@bagu.org>
2624 Rename LayoutList to LayoutListView.
2626 I'm working towards setting things up to easily use MVP when the time
2629 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2631 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2634 2011-02-17 Ben Konrath <ben@bagu.org>
2636 Move LayoutListDataProvider class into LayoutList.java.
2638 * src/main/java/org/glom/web/client/LayoutList.java:
2640 2011-02-17 Ben Konrath <ben@bagu.org>
2642 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2644 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2646 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2647 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2648 from LibGlomServer.java.
2649 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2650 Rename from LibGlomServiceAsync.java.
2651 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2652 Rename from LibGlomServiceImpl.java.
2653 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2655 2011-02-17 Ben Konrath <ben@bagu.org>
2657 Update JDT settings.
2659 * .settings/org.eclipse.jdt.core.prefs:
2661 2011-02-17 Ben Konrath <ben@bagu.org>
2663 Move GWT-RPC objects to shared package (where they should be).
2665 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2666 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2667 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2668 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2669 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2670 org.glom.web.shared package.
2671 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2672 org.glom.web.shared package.
2673 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2674 directory in compilation to javascript.
2676 2011-02-16 Ben Konrath <ben@bagu.org>
2678 Add sort clause to the sql query that grabs table information.
2680 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2681 if one of the columns is a primary key.
2683 2011-02-16 Ben Konrath <ben@bagu.org>
2685 Disable generateAsync feature of gwt-maven.
2687 The generated interface does not correctly match the methods in LibGlomService
2688 and the generated singleton Util inner-class doesn't respect the servlet
2691 * pom.xml: Turn off generateAsync feature.
2692 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2693 with singleton Util inner-class.
2695 2011-02-14 Ben Konrath <ben@bagu.org>
2697 Add LGPL v3 licence notices.
2699 Followed directions listed here:
2700 http://www.gnu.org/licenses/gpl-howto.html
2702 * COPYING: This file is a copy of the GPL v3.
2703 * COPYING.LESSER: This file is a copy of the LGPL v3.
2704 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2706 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2708 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2710 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2712 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2714 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2716 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2719 2011-02-14 Ben Konrath <ben@bagu.org>
2721 Use ArrayList instead of Array in GWT-RPC calls.
2723 Apparently this gives a slight performance boost to the compiled
2726 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2728 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2731 2011-02-14 Ben Konrath <ben@bagu.org>
2733 Access data from a postgres db rather than the example glom file.
2735 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2736 compile down to obfuscated javascript.
2737 * pom.xml: Add c3p0 and postgres JDBC libraries.
2738 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2739 using a postgres db accessed through the c3p0 connection pooling library.
2741 2011-02-14 Ben Konrath <ben@bagu.org>
2743 Update Java formatter settings.
2745 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2747 2011-02-02 Ben Konrath <ben@bagu.org>
2749 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2751 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2753 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2754 the compiled webapp directory that Eclipse uses as we're using Maven now.
2755 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2756 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2758 * pom.xml: Format file, change target Java version to 1.6.
2760 2011-02-02 Ben Konrath <ben@bagu.org>
2762 Add information about a deployment related issue.
2764 * README: Add Notes section with the problem outlined.
2766 2011-02-02 Ben Konrath <ben@bagu.org>
2768 Call Glom.libglom_deinit() when the servlet is shutdown.
2770 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2771 Glom.libglom_deinit() to destroy() method.
2773 2011-01-28 Ben Konrath <ben@bagu.org>
2775 Use generated Util class to get the RPC Async interface.
2777 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2779 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2780 getInstance() method to get a reference to the RPC Async interface.
2781 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2782 getInstance() method to get a reference to the RPC Async interface, remove
2783 the now unused getLibGlomServiceProxy() method.
2785 2011-01-27 Ben Konrath <ben@bagu.org>
2787 Cleanup ChangeLog entry from previous commit.
2789 * ChangeLog: Group logical changes together and add comments.
2791 2011-01-25 Ben Konrath <ben@bagu.org>
2793 Convert to gwt-maven project.
2795 * .gitignore: Update for new project structure.
2796 * README: New file with a link to the online documentation.
2797 * pom.xml: The generated maven configuration file with some tweaks.
2799 Add / update Eclipse settings. These files are a merge of the files that
2800 were generated with the gwt-maven plugin and the files we were previously
2804 * .settings/.jsdtscope:
2805 * .settings/com.google.gdt.eclipse.core.prefs:
2806 * .settings/com.google.gwt.eclipse.core.prefs:
2807 * .settings/org.eclipse.jdt.core.prefs:
2808 * .settings/org.eclipse.wst.common.component:
2809 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2810 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2811 * .settings/org.maven.ide.eclipse.prefs:
2812 * OnlineGlomTest-dev.launch:
2813 * OnlineGlomTest-prod.launch:
2815 Java source files moved from the 'src' directory to the directory structure
2817 * src/main/java/org/glom/web/client/GlomDocument.java:
2818 * src/main/java/org/glom/web/client/GlomTable.java:
2819 * src/main/java/org/glom/web/client/LayoutList.java:
2820 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2821 * src/main/java/org/glom/web/client/LibGlomService.java:
2822 * src/main/java/org/glom/web/client/OnlineGlom.java:
2823 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2825 Non-functional property file used for translations. I included this as
2826 reminder that it's something I need to sort out.
2827 * src/main/resources/org/glom/web/client/Messages.properties:
2829 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2830 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2832 The servlet configuration files moved from the 'war' directory.
2833 * src/main/webapp/OnlineGlom.css:
2834 * src/main/webapp/OnlineGlom.html:
2835 * src/main/webapp/WEB-INF/web.xml:
2837 Generated test files with most of the code commented out. I included these
2838 so that it's easy to add tests when we're ready for them.
2839 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2840 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2842 2011-01-25 Ben Konrath <ben@bagu.org>
2844 Remove unused println.
2846 * src/org/glom/web/server/LibGlomServiceImpl.java:
2848 2011-01-25 Ben Konrath <ben@bagu.org>
2850 Add project specific JDT settings.
2852 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2853 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2855 2011-01-25 Ben Konrath <ben@bagu.org>
2857 Populate celltable with example data.
2859 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2860 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2861 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2862 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2863 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2864 asynchronously gets the example data.
2865 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2866 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2867 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2868 curently selected table to be retrieved by other widgets.
2869 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2870 implement getTableData() in a hacky way. This method needs to be updated
2871 to grab information from the database when database creating is
2874 2011-01-20 Ben Konrath <ben@bagu.org>
2876 Set table headers when table dropBox changes.
2878 * src/org/glom/web/client/GlomDocument.java: Correct some method
2880 * src/org/glom/web/client/LibGlomService.java: Add method
2881 to get list layout field names.
2882 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2883 to get list layout field names.
2884 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2885 widget for list layout table.
2886 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2887 the table drop box and add new updateTable() method to asynchronously
2888 get the layout list field names for the currently selected table.
2889 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2890 implementation of getLayoutListHeaders() method.
2891 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2893 2011-01-18 Ben Konrath <ben@bagu.org>
2895 Make a listBox with table titles instead of the flexTable demo.
2897 This is the start of something more useful.
2899 * .classpath: Exclude a bunch of packages from the JVM that are
2900 getting in the way of the Eclipse content assist.
2901 * src/org/glom/web/client/GlomDocument.java:
2902 * src/org/glom/web/client/GlomTable.java:
2903 * src/org/glom/web/client/LibGlomService.java:
2904 * src/org/glom/web/client/LibGlomServiceAsync.java:
2905 * src/org/glom/web/client/OnlineGlom.java:
2906 * src/org/glom/web/server/LibGlomServiceImpl.java:
2907 * war/OnlineGlom.html:
2908 * war/WEB-INF/web.xml:
2910 211-01-13 Ben Konrath <ben@bagu.org>
2912 Update to new java-libglom API.
2914 * .gitignore: Ignore OnlineGlom.war.
2915 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2917 2010-12-20 Ben Konrath <ben@bagu.org>
2919 Add some basic style to the table listing.
2921 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2922 header, print useful error message on async callback failure.
2923 * war/OnlineGlom.css: Add style for table header, remove defaults
2924 provided by the Eclipse project wizard.
2926 2010-12-20 Ben Konrath <ben@bagu.org>
2928 Load example file from installed glom dir.
2930 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2931 provided by java-libglom to find the example file.
2933 2010-12-20 Ben Konrath <ben@bagu.org>
2935 Update Eclipse settings.
2938 * .settings/com.google.gdt.eclipse.core.prefs:
2939 * .settings/com.google.gwt.eclipse.core.prefs:
2941 2010-12-17 Ben Konrath <ben@bagu.org>
2945 * .classpath: New file.
2946 * .gitignore: New file.
2947 * .project: New file.
2948 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2949 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2950 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2951 * src/org/glom/web/client/GlomTable.java: New file.
2952 * src/org/glom/web/client/OnlineGlom.java: New file.
2953 * src/org/glom/web/client/TableNameService.java: New file.
2954 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2955 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2956 * war/OnlineGlom.css: New file.
2957 * war/OnlineGlom.html: New file.
2958 * war/WEB-INF/web.xml: New file.
2959 * war/images/glom.png: New file.