1 2011-11-15 Ben Konrath <ben@bagu.org>
3 Add space between the columns of the flow table.
7 https://bugzilla.gnome.org/show_bug.cgi?id=662918
9 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
10 space between columns in the flow table.
12 2011-11-15 Ben Konrath <ben@bagu.org>
14 Add backup files to the .gitignore.
16 * .gitignore: Ignore files that end with ~.
18 2011-11-09 Ben Konrath <ben@bagu.org>
20 Use latest release of gwt-log.
22 Gwt-log releases are now being submitted to the maven central
23 repository so manual installation of the jar is no longer required.
25 * pom.xml: Update version and groupId of gwt-log dependency.
27 2011-10-31 Ben Konrath <ben@bagu.org>
29 Don't use GWT numeric formatting to override the glom currency formatting.
31 Currencies are now displayed like they are in Glom. See this bug:
33 https://bugzilla.gnome.org/show_bug.cgi?id=646216
35 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
37 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
38 currency code to constructor and set it when the cell is rendered.
39 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
40 currency code to the constructor of the NumericCell.
42 2011-10-27 Ben Konrath <ben@bagu.org>
44 Require the latest release of java-libglom (1.17.4).
48 2011-10-26 Ben Konrath <ben@bagu.org>
50 Add style to Notebook that matches current theme.
52 It's not the best style in the world but it's better than the default.
54 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
55 padding at the bottom of the child widgets.
56 * src/main/webapp/style.css: Add style for the Notebook.
58 2011-10-26 Ben Konrath <ben@bagu.org>
60 Move servlet initialization code to overridden init method.
62 This is half of the solution to getting proper error messages
63 displayed when configuration errors occur. Here's the relevant bug:
65 https://bugzilla.gnome.org/show_bug.cgi?id=662792
67 The rest of the solution involves surrounding the init method with a
68 try/catch block and setting a global variable with the error /
69 exception. A new async method should be created to retrieve and display
70 the error message / exception.
72 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
73 code from constructor to init method adding exceptions as needed.
75 2011-10-26 Ben Konrath <ben@bagu.org>
77 Add script to monitor and restart tomcat if required.
79 * utils/check-and-recover-tomcat.py: New file.
81 2011-10-26 Ben Konrath <ben@bagu.org>
83 Display the correct number of data items in the pager.
87 https://bugzilla.gnome.org/show_bug.cgi?id=661441
89 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
90 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
91 The implementation is the same for both tables: Keep track of the
92 number of non-empty rows and fire and RowCountChangeEvent after the data has
94 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
95 custom Pager class that subclasses SimplePager to handle displaying
96 the correct number when empty rows have been added.
98 2011-10-26 Ben Konrath <ben@bagu.org>
100 Correct error in previous commit.
102 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
103 eventBus parameter from listView.setCellTable().
105 2011-10-26 Ben Konrath <ben@bagu.org>
107 Fix error in TODO comment.
109 * src/main/java/org/glom/web/client/activity/ListActivity.java:
111 2011-10-24 Ben Konrath <ben@bagu.org>
113 Create Notebook widgets to the details view.
115 This isn't finished just yet - I still need to create a reasonable
116 style to match the current theme.
118 * src/main/java/org/glom/web/client/Utils.java: Add method for
119 calculating the height of a widget. This is used in the Notebook class.
120 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
121 new constructor method in Group.
122 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
123 method for creating child widget that can be used by subclasses
124 like Notebook. New constructor that allows disabling the group
125 titles - Notebooks don't set a group title for their child groups.
126 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
127 to make Notebooks using GWT's TabLayoutPanel.
128 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
129 constructor that allows disabling the group titles.
130 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
131 LayoutItemNotebook DTO.
132 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
133 DTO for Notebooks. It's just an empty class for now but we might need
134 it to transfer some specific information in the future.
136 2011-10-21 Ben Konrath <ben@bagu.org>
138 Add navigation buttons to related list tables.
140 * src/main/java/org/glom/web/client/OnlineGlomService.java:
141 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
142 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
143 method getSuitableRecordToViewDetails() for getting the table name
144 and primary key value for related list navigation buttons.
145 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
146 private cell renderer class to get the navigation information for
147 related list tables from the server. Extract the navigation
148 processing code from the details cell navigation and use it for the
149 related list navigation as well.
150 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
151 cell renderer class for the details open buttons. This was needed
152 because the related list navigation buttons and the list view
153 navigation buttons need to react differently when clicked.
154 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
155 the onEnterKeyDown() method because it's now overriden in the
156 subclasses that are specific to the related list tables and the list
158 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
159 the vertical size a little because the buttons add a bit of vertical
160 space to table. This is not a perfect solution because the vertical
161 size of with table fewer than 5 rows will be a little smaller.
162 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
163 changes in how navigation buttons are handled.
164 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
165 getSuitableRecordToViewDetails() using the new RelatedListNavigation
166 database access object.
167 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
168 to find the portal for a given relationship name from
169 RelatedListDBAccess. Add method to find a primary key field for a
171 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
172 Move code to find the portal for a given relationship name to
174 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
175 New file: database access object for getting the related list
176 navigation information (the table name and the primary key value).
177 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
178 DTO for transferring a table name to navigate to and a primary key
180 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
181 boolean and getter/setter to specifies if the related list should add
184 2011-10-24 Murray Cumming <murrayc@murrayc.com>
186 Use the master branch of java-libglom
188 * pom.xml: Depend on java-libglom 1.19 instead.
190 This is the master branch. See also the libglom-1-18 branch.
192 2011-10-11 Ben Konrath <ben@bagu.org>
194 Enable the open navigation button when the data has been set.
196 This avoids having active buttons that don't do anything when the data
199 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
201 2011-10-11 Ben Konrath <ben@bagu.org>
203 Use IsWidget interface for FlowTableItem.
205 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
206 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
208 2011-10-11 Ben Konrath <ben@bagu.org>
210 Remove GWT styling from open button in details view.
212 There are still some issues with how the details cell is arranged but
213 this should be made to match Glom 1.20. I'm going to leave fixing this
214 until I have Glom 1.20 up and running.
216 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
217 style name on open button.
218 * src/main/webapp/style.css: Move and edit details-navigation class.
219 Re-arrange some classes to make them appear in the same order as the
222 2011-10-07 Ben Konrath <ben@bagu.org>
226 * .gitignore: Ignore new cache directory.
227 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
228 * pom.xml: Change GWT and maven plugin to 2.4.0.
229 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
231 * src/main/java/org/glom/web/client/ClientFactory.java:
232 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
233 * src/main/java/org/glom/web/client/OnlineGlom.java:
234 Update source for API changes.
235 * utils/build-onlineglom-war.sh: Remove cache directory before the
238 2011-10-07 Ben Konrath <ben@bagu.org>
240 Add navigation buttons in the details view.
242 This isn't finished but I thought I'd commit what I have as it's a
243 pretty good start. I still need to:
245 1. Change the style so that it fits better into the current theme
246 2. Adjust the details cell to expand as much as possible.
248 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
249 click handlers to navigation buttons in the DetailsCells. Create a
250 refreshData() method to get just the data from the server without the
252 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
253 Update the tableSelector and browser title when the table name
254 changes without using the tableSelector.
255 * src/main/java/org/glom/web/client/ui/DetailsView.java:
256 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
257 getDetailsCells() to getCells(). Update variable names.
258 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
259 method to set click handler on navigation button. Rename a few
260 variables. Add navigation buttons where needed.
261 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
262 variables and methods.
263 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
264 navigation boolean and navigation table as required in the
266 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
267 variables for navigation along with getter/setter methods.
269 2011-10-07 Ben Konrath <ben@bagu.org>
271 Rename Field to DetailsCell.
273 This is a refactor-only commit. No functionality has been added or
276 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
277 Update variable and method names.
278 * src/main/java/org/glom/web/client/ui/DetailsView.java:
279 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
280 variable and method names.
281 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
283 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
284 variable and method names.
286 2011-10-07 Ben Konrath <ben@bagu.org>
288 Create separate methods for layout and data the details view.
290 This is a refactor-only commit. No functionality has been added or
293 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
294 private methods: setData(), createLayout().
296 2011-10-07 Ben Konrath <ben@bagu.org>
298 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
300 This is part of a change to get navigation buttons in the details view
301 but it should have been done this way from the start.
303 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
304 for method name change in TableSelectionView.
305 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
306 Create TableChangeEvent and set the browser title using the
307 TableSelectionView API.
308 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
309 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
310 Change getSelectedTable() to getSelectedTableName(). Add
311 getSelectedTableTitle().
313 2011-10-07 Ben Konrath <ben@bagu.org>
315 Use primaryKeyValue naming convention in constructor of DetailsPlace.
317 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
319 2011-10-07 Ben Konrath <ben@bagu.org>
321 Update TableChangeEvent to use newTableName naming convention.
323 This makes the class more consistent with GWT naming conventions.
325 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
326 Update for method name change in TableChangeEvent.
327 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
328 for method name change in TableChangeEvent.
329 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
330 newTableName variable and getter method. Make toDebugString()
333 2011-09-30 Ben Konrath <ben@bagu.org>
335 Disable the pager in the list tables when the data row count is less than the minimum.
337 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
338 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
340 2011-09-30 Ben Konrath <ben@bagu.org>
342 Add empty rows to the end of related list and list view tables.
344 I also extracted the cell rendering classes from the ListTable because
345 the code was becoming a little crazy with all the anonymous inner
346 classes. My plan is to use these cell rendering classes in the details
347 view as well so this refactor will be needed for that change.
349 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
350 set the row count in related list tables if the data has more rows
351 than the minimum number of rows visible.
352 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
353 row count in list view tables if the data has more rows than the
354 minimum number of rows visible.
355 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
356 for rendering TYPE_BOOLEAN cells. The code was extracted from the
358 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
359 for rendering TYPE_NUMERIC cells. The code was extracted from the
361 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
362 class for rendering cells with buttons in list views. The code was
363 extracted from the ListTable class.
364 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
365 for rendering TYPE_TEXT cells. The code was extracted from the
367 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
368 Add empty rows to the end of the data if required. Implement
369 ListTable.getMinNumVisibleRows().
370 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
371 cell renderer code to public classes. Return null in
372 Column.getValue() for empty rows. Add new abstract method:
373 getMinNumVisibleRows(). Move code to set the row count of the list view
374 table to ListViewImpl.
375 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
376 empty rows to the end of the data if required. Implement
377 ListTable.getMinNumVisibleRows().
380 2011-09-27 Ben Konrath <ben@bagu.org>
382 Use GWT.log for client-side debugging statements.
384 These are optimized out when deployed so I should have used this method
385 in the first place. These statements will eventually be replaced with some sort
386 of notification in the browser.
388 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
389 * src/main/java/org/glom/web/client/activity/ListActivity.java:
390 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
391 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
392 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
394 2011-09-27 Ben Konrath <ben@bagu.org>
396 Put tableselector on the right, back to list link on right.
398 The idea is that the table selector is acting like a label for the
399 currently displayed table so it should be placed below the document title. This
400 puts the table title in a similar position to where it is in Glom.
402 * mockups/details-contacts.html:
403 * mockups/details-projects.html:
404 * mockups/listview-contacts.html:
405 * mockups/listview-projects.html:
407 Update mockups to match how the interfaces currently look.
408 * src/main/webapp/style.css: Swap positions of backlink with the table
409 selector. Add some space on the left side of the table selector to
410 line things up with the document title.
412 2011-09-27 Ben Konrath <ben@bagu.org>
414 Add field colouring to details view.
416 This change re-works how field colouring works. The colour formatting
417 information is now set to the client with the layout information instead of
418 with the data. This eliminates the need to send the same colour strings for
419 data in list view column when colour information is set.
421 In order to set an alternate colour for negative numeric values, the
422 number is now sent to client and formatted with the GWT NumberFormat class.
424 This change also fixes:
426 https://bugzilla.gnome.org/show_bug.cgi?id=659752
428 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
429 internationalization framework which is needed for client side numeric
431 * src/main/java/org/glom/web/client/Utils.java: New file for some
432 client static utility methods.
433 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
434 the DataItem object to the Field class. Use a utility method to
435 create the foreignKeyValue string.
436 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
437 alignment and text colours in the constructor. Add setData(DataItem)
438 method. Remove setText(String) method.
439 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
440 colour information to GlomTextCell. Create and use GlomNumberCell for
441 rendering numbers. Use utility method to get the string for the
442 primary key of the key provider. Re-work how the horizontal alignment
444 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
445 formatting to layout information. Methods for converting the libglom
446 formatting information were moved from DBAccess.
447 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
448 numeric formatting (it's now done on the client side). Don't set text
449 colours in DataItem. Move libglom formatting conversion methods to
451 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
452 getters/setters for text colour information.
453 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
454 for transferring the libglom NumericFormat information to the client.
455 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
456 and getters/setters for: GlomNumericFormat, background colour and
457 foreground colour strings.
459 2011-09-26 Ben Konrath <ben@bagu.org>
461 Simplify code that iterates through the LayoutGroup.
463 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
465 2011-09-26 Ben Konrath <ben@bagu.org>
467 Accept Eclipse formatting for OnlineGlomServiceAsync.
469 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
471 2011-09-26 Ben Konrath <ben@bagu.org>
473 Don't use the ListDBAccess classes to get the primary key layout information.
475 This was causing a bug where the wrong index for the hidden primary key
476 was being sent to the client.
478 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
479 primary key while creating the LayoutGroup DTO. Create a
480 LayoutItemField DTO for hidden primary keys. Don't use the
481 RelatedListDBAccess because it was only used for getting the primary
483 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
484 access modifier from public to protected for getPrimaryKeyField() and
485 getPrimaryKeyLayoutItemField().
486 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
487 abstract method getExpectedResultSize() because RelatedListDBAccess
488 doesn't have enough info to implement it.
489 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
490 Remove @Override for getExpectedResultSize().
491 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
492 Remove method getExpectedResultSize().
494 2011-09-23 Ben Konrath <ben@bagu.org>
496 Log which layout (list or details) the ignored item is from.
498 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
500 2011-09-23 Ben Konrath <ben@bagu.org>
502 Remove annotations that turn off code formatting in DataItem.
504 * src/main/java/org/glom/web/shared/DataItem.java:
506 2011-09-23 Ben Konrath <ben@bagu.org>
508 Rename GlomField to DataItem and update associated methods.
510 This is a rename-only refactor. No functionality has been added or
513 * src/main/java/org/glom/web/client/OnlineGlomService.java:
514 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
515 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
516 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
517 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
518 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
519 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
520 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
522 * src/main/java/org/glom/web/server/database/DBAccess.java:
523 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
524 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
525 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
526 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
527 * src/main/java/org/glom/web/shared/DataItem.java:
528 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
529 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
531 2011-09-23 Ben Konrath <ben@bagu.org>
533 Rename GlomDocument to DocumentInfo and update associated methods.
535 This is a rename-only refactor. No functionality has been added or
538 * src/main/java/org/glom/web/client/OnlineGlomService.java:
539 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
540 * src/main/java/org/glom/web/client/activity/ListActivity.java:
541 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
542 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
544 * src/main/java/org/glom/web/shared/DocumentInfo.java:
546 2011-09-20 Ben Konrath <ben@bagu.org>
548 Require java-libglom 1.17.3.
550 This picks up the fix for the seg fault problem with the Scenes table
551 in the Openismus Film Manager example.
555 2011-09-20 Ben Konrath <ben@bagu.org>
557 Change the way sort clause is added for primary key when no sort clause is requested.
559 The primary key is now added to the LayoutFieldVector (fieldsToGet)
560 before the sort clause is created. When a sort clause is not requested, the
561 sort clause is created by finding the primary key in the LayoutFieldVector
564 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
566 2011-09-20 Ben Konrath <ben@bagu.org>
568 Log error message if no documents are found in the configured directory.
570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
571 Extract the glom file extension string to a private static final class
572 variable (mostly as syntactic sugar). Accept a minor formatting change.
573 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
574 the example glom.document.directory configuration property to make it
575 more clear that it can any directory, not just the home directory.
577 2011-09-18 Ben Konrath <ben@bagu.org>
579 Add related lists to details view.
581 The related list table has support for paging and sorting just like the
582 table in the list view.
584 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
585 SQL queries for the related list tables.
586 * src/main/java/org/glom/web/client/OnlineGlomService.java:
587 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
589 Rename getList methods to getListView and add comments. Remove
590 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
591 it being unused. Add methods: getDetailsLayoutAndData(),
592 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
593 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
594 Create the layout and set the data for the fields in one async call
595 instead of two. Create related lists where appropriate.
596 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
597 for method name changes in OnlineGlomService.
598 * src/main/java/org/glom/web/client/ui/DetailsView.java:
599 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
600 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
602 * src/main/java/org/glom/web/client/ui/ListView.java:
603 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
604 tableName from setCellTable(). Create a ListViewTable instead of
606 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
607 represent a data field in the details view.
608 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
609 from addDetailsCell() to Field class. Keep track of the Fields and
610 Portals in the details view.
611 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
612 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
613 and add a method to get it. Add method to set the contents of the
615 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
616 New class for related list tables. This class has the data provider
617 for the related list table.
618 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
619 abstract class which is the base class for the ListViewTable and the
621 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
622 New class for list view tables. This class has the data provider for
624 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
625 methods for related list tables. Add more information to the
626 LayoutItemField and LayoutItemPortal DTOs.
627 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
628 Remove debugging print statement.
629 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
630 Remove debugging print statements. Add primary key field to SQL count
632 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
633 Remove unnecessary LayoutFieldVector parameter from
634 getResultSizeOfSQLQuery() method.
635 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
636 New class for related list table database access.
637 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
638 class that is a wrapper DTO for details view layout and data.
639 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
640 new 'fromField' string to this DTO.
641 * src/main/webapp/style.css: Remove bottom margin and override top
644 2011-09-15 Ben Konrath <ben@bagu.org>
646 Breakup the OnlineGlomServiceImpl class to make it more manageable.
648 This sets things up to make it easier to add the data retrieval for
649 related lists (portals). No user noticeable changes were made with
652 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
653 class has the code to retrieve the layouts and access the
654 database using the new database helper classes.
655 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
656 Most of the functionality has been removed from this class. This
657 class now represents the public interface for the client side
658 code. It also deals with configuring the servlet and cleaning
659 things up when the servlet is stopped.
660 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
661 of static methods into this utility class.
662 * src/main/java/org/glom/web/server/database/DBAccess.java:
663 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
664 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
665 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
666 These classes have the database retrieval code. The class hierarchy
667 has been setup to make it easy to reuse code for similar
670 2011-09-06 Ben Konrath <ben@bagu.org>
672 Create separate classes for list table code and the data provider.
674 As part of this refactor, I also split up the code a bit to make it
677 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
678 table code to two new classes (below).
679 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
680 with code from ListViewImpl.
681 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
682 New file with code from ListViewImpl.
684 2011-09-06 Ben Konrath <ben@bagu.org>
686 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
688 This fixes the LayoutItemPortal DTO to match the libglom layout object
691 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
693 2011-09-01 Ben Konrath <ben@bagu.org>
695 Set title of Portals in the Details View.
697 * pom.xml: Bump required version of java-libglom to 1.17.1.
698 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
699 widget creation to its own class. Add comments to constructor.
700 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
701 The code is mostly from the Group class with the title now set.
702 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
703 title of Portal. Update some comments. Fix some code formatting.
705 2011-09-01 Ben Konrath <ben@bagu.org>
707 Remove TODO comment for the flow table column width.
709 The flow table column width is working correctly and doesn't need to be
710 changed. See this mailing list post for more info:
712 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
714 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
716 2011-08-27 Ben Konrath <ben@bagu.org>
718 Add document title (database name) to top of the browser page.
720 I added the document title to the TableSelecitonView but that will
721 change if / when we add a view that doesn't require table selection.
723 * mockups/details-contacts.html:
724 * mockups/details-projects.html:
725 * mockups/listview-contacts.html:
726 * mockups/listview-projects.html:
727 * mockups/style.css: Add document title to mockups to keep things
729 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
730 sizes to account for the document title.
731 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
732 Set the document title when it has been retrieved from the server.
733 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
734 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
735 and implement setDocumentTitle(String) method.
736 * src/main/webapp/style.css: Add ID for document title style.
738 2011-08-25 Ben Konrath <ben@bagu.org>
740 Add NavigationType enum to LayoutItemPortal DTO.
742 This is the start of adding support for Portals to the Details View.
744 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
745 LayoutItem_Portal.navigation_type enum from libglom to
746 LayoutItemPortal.NavigationType enum.
747 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
748 NavigationType enum, field for storing the NavigationType and getter
751 2011-08-25 Ben Konrath <ben@bagu.org>
753 Implement the flow table layout in the Details View.
755 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
756 FlowTable to Group to account for the renamed class.
757 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
758 File. This is a container widget that implements the Glom details view
759 flow table behaviour.
760 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
761 org/glom/web/client/ui/FlowTable.java.
762 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
763 so that the size of the subgroups are a closer match to the size of
764 the Glom subgroups. This makes the flowtable layout match the layout
765 in Glom for the Music Collection example file.
767 2011-08-16 Ben Konrath <ben@bagu.org>
769 Create container element for LayoutItemPortal in Details View.
771 This will help me develop the layout for the FlowTable.
773 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
774 fieldPanel variable to detailsCell.
776 2011-08-15 Ben Konrath <ben@bagu.org>
778 Set the height of the data element in the Details View.
780 I changed the InlineLabels (text in a span element) to Labels (text in
781 a div element) so that I could set the height of the details-data
782 elements instead of the details-cell parent elements. This allows the
783 the details-data element to display the correct height if style is
784 applied that shows the height.
786 This change has the added benefit of allowing the order of the labels
787 and data elements to be changed for right-to-left languages.
789 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
790 InlineLabels to Labels.
791 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
792 InlineLabels to Labels. Set the height of the data element.
793 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
794 multiline text height in the Formatting DTO.
795 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
796 for multiline height along with getter and setter methods.
797 * src/main/webapp/style.css: Adjust style to account for the change
798 from span elements to div elements in the details cell.
800 2011-08-15 Ben Konrath <ben@bagu.org>
802 Make the List View appearance match the mockups.
804 It doesn't match exactly but it's much better than it was.
806 * mockups/listview-contacts.html: Remove unused css classes.
807 * mockups/listview-projects.html: Remove unused css classes.
808 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
809 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
810 for mainPanel instead of VerticalPanel (table). Set style name on
811 CellTable. Set style name on Details column. Right-align Details
813 * src/main/webapp/style.css: Adjust properties to match the mockups.
815 2011-08-12 Ben Konrath <ben@bagu.org>
817 Add better support for subgroups in the details view.
819 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
820 changed FlowTable constructor.
821 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
822 support for subgroups and subgroup-titles.
823 * src/main/webapp/style.css: Add CSS class for subgroups and
826 2011-08-12 Ben Konrath <ben@bagu.org>
828 Return the top level LayoutGroup title.
830 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
832 2011-08-11 Ben Konrath <ben@bagu.org>
834 Make the TableSelector header match the mockup.
836 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
837 the layout panel. Properly lineup the table selection header with
838 the list and details view.
839 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
840 margin around the details view.
841 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
842 Rename listBox variable to tableSelector. Set id for the style sheet.
843 Use a FlowPanel instead of a HorizontalPanel.
844 * src/main/webapp/style.css: Add properties to make the TableSelector
845 box match the mockups.
847 2011-07-13 Ben Konrath <ben@bagu.org>
849 Update install script for java-libglom version change.
851 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
854 2011-07-13 Ben Konrath <ben@bagu.org>
856 Add support sub-group in the details view.
858 I also removed the code that special-cased the default details view
861 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
863 I still have to make a proper flowtable.
865 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
866 Don't special-case default details view layout.
867 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
868 addLayoutField() as I'm going to use it.
869 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
870 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
872 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
873 extracted from DetailsViewImpl.GroupPanel. Add support for
875 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
876 column count when getting the details layout.
878 2011-07-12 Ben Konrath <ben@bagu.org>
880 Set browser title with database and table titles.
882 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
883 Set the browser title when the table changes and when the activity
885 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
886 title when retrieving document info (the GlomDocument object).
887 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
888 with getter and setter methods. Remove unused convenience constructor.
889 Use default code formatting.
891 2011-07-12 Ben Konrath <ben@bagu.org>
893 Ignore LayoutItemPortals in the details view.
895 I added a new DTO for the LayoutItemPortal so that I can ignore it in
898 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
899 LayoutItemPortal layout objects.
900 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
901 LayoutItemPortal objects when retrieving the details layout.
902 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
903 file. This is an empty class and just used to get type information for
906 2011-07-12 Ben Konrath <ben@bagu.org>
908 Use java-libglom 1.17.0.
912 2011-07-11 Ben Konrath <ben@bagu.org>
914 Remove "Table:" label from table selector.
916 This matches a recent change in the Glom UI.
918 * mockups/details-contacts.html:
919 * mockups/details-projects.html:
920 * mockups/listview-contacts.html:
921 * mockups/listview-projects.html: Remove the "Table:" label from the
923 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
925 2011-07-11 Ben Konrath <ben@bagu.org>
927 Add main groups to the details view.
929 This makes things look a little nicer in the details view. The next step
930 is to implement the flowtable.
932 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
933 resources from the standard gwt css theme. Standard.css is now
934 included in OnlineGlom.html so that the online glom css rules have
935 precedence over the gwt theme.
936 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
937 the whole LayoutGroup to the DetailsView instead of just the titles.
938 * src/main/java/org/glom/web/client/ui/DetailsView.java:
939 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
940 details layout with a helper class (GroupPanel). I might extract this
941 class when I make the full flowtable.
942 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
943 string as default so I don't have to worry about NPEs when processing
945 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
946 note beside OnlineGlom.gwt.xml above).
947 * src/main/webapp/style.css: Add default font-size to body to override
948 the font-size set by the standard theme. Don't use h2 tags for
949 group-title. Create new details-cell class.
951 2011-07-08 Murray Cumming <murrayc@murrayc.com>
953 ConfiguredDocument: Set the port number too.
955 * src/main/java/org/glom/web/server/ConfiguredDocument.java
956 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
957 Glom document. Presumably this worked sometimes so far because there is a
960 2011-07-08 Murray Cumming <murrayc@murrayc.com>
962 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
964 * src/main/java/org/glom/web/server/ConfiguredDocument.java
965 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
966 correct, though we should throw an exception too.
968 2011-07-08 Murray Cumming <murrayc@murrayc.com>
970 Fix a addDocuemnt typo.
972 * src/main/java/org/glom/web/shared/Documents.java
973 (Documents.addDocuemnt): Rename to addDocument().
974 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
975 (OnlineGlomServiceImpl.getDocuments): Adapt.
977 2011-07-08 Murray Cumming <murrayc@murrayc.com>
979 Slightly improved log output when connection fails.
981 * src/main/java/org/glom/web/server/ConfiguredDocument.java
982 (ConfiguredDocument.setUsernameAndPassword):
983 We don't know for sure if it' the username/password that's wrong, so
984 rephrase the message.
985 Also ouput the exception message, though it's generic in this case.
987 2011-07-08 Ben Konrath <ben@bagu.org>
991 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
992 added braces to a one line if statement because the Eclipse formatter
993 was getting confused.
995 2011-07-07 Ben Konrath <ben@bagu.org>
997 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
999 These should really be two separate tasks but I counldn't get things to
1000 work with GWT 2.2.0 and Eclipse 3.7.
1004 * .settings/org.eclipse.jdt.core.prefs:
1005 * .settings/org.eclipse.jdt.ui.prefs:
1006 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1007 * .settings/org.eclipse.m2e.core.prefs:
1008 Add new config files. Update current files. Remove references to the
1009 webtools plugins as we're not using any of the webtools features.
1010 * .gitignore: Add logs directory which is created when running with
1012 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1013 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1014 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1016 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1018 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1020 onlineglom.properties: Add explanatory comments.
1022 * src/main/resources/onlineglom.properties: Also change the default user
1023 from ben to someuser, to avoid the risk of people thinking we just
1024 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1026 2011-06-28 Ben Konrath <ben@bagu.org>
1028 Use filename in Log for incorrect passwords.
1030 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1031 getFileName(String) method to get the filename from the URI.
1033 2011-06-28 Ben Konrath <ben@bagu.org>
1035 Add the table name to the URL token for the ListPlace.
1037 This makes things consistent between the DetailsPlace and the
1038 ListPlace. It also allows the the ListPlace to be bookmarked.
1040 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1041 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1042 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1043 Remove getDefaultListLayout(). The default layout is now returned
1044 by the getListLayout() method when the table name is an empty string.
1045 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1046 Add table name field. Change to a new ListPlace when the table
1047 has been changed. Use getListLayout() for getting the default
1049 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1050 Add table name field. Set the correct table name in the list box
1051 when loading from bookmark. This corrects a problem for the
1053 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1054 Move table name to super-class (HasSelectableTable). Move document
1055 and table URL keys to super-class in HasSelectableTable.
1056 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1057 Add table name field. Add Tokenizer class with URL key common to
1058 the subclasses (DetailsPlace and ListPlace).
1059 * src/main/java/org/glom/web/client/place/ListPlace.java:
1060 Add table name. Add code to parse the URL token.
1061 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1062 Update ListPlace construction with empty table name string.
1063 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1064 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1065 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1066 Update ListPlace construction with table name string.
1067 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1068 Change defaultTableName field to tableName to reflect how it's now
1069 used. Update the getter and setter methods.
1071 2011-06-28 Ben Konrath <ben@bagu.org>
1073 Enable the table selector in the DetailsView.
1075 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1076 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1077 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1078 Remove getDefaultDetailsLayout(). The default layout is now returned
1079 by the getDetailsLayout() method when the table name is an empty
1081 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1082 event handler for table change event. Change to using
1083 getDetailsLayout() for the default details layout.
1084 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1086 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1087 when navigating to the details place.
1089 2011-06-27 Ben Konrath <ben@bagu.org>
1091 Use filename based unique document ID in URL and for RPC.
1093 The document ID is the glom document name with spaces (' ') replaced
1094 with pluses ('+') and without the .glom extension.
1096 This change is mostly a string substitution of 'documentTitle' for
1097 'documentID'. The only code change is the addition of a Documents DTO to get the
1098 filename to document title mappings as indicated below.
1100 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1101 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1102 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1103 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1104 Use Documents DTO to create the document links in the document
1106 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1107 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1108 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1109 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1110 * src/main/java/org/glom/web/client/place/ListPlace.java:
1111 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1112 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1113 * src/main/java/org/glom/web/client/ui/ListView.java:
1114 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1115 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1116 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1117 * src/main/java/org/glom/web/server/Log.java:
1118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1119 getDocumentTitles() to getDocuments() and return the Documents DTO.
1120 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1121 transferring the filename to document title mappings.
1123 2011-06-25 Ben Konrath <ben@bagu.org>
1125 Make the authentication popup work again.
1127 This bug was introduced when I extracted ConfiguredDocument to its own class.
1129 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1130 correct success / fail status in setUsernameAndPassword().
1132 2011-06-25 Ben Konrath <ben@bagu.org>
1134 Use filename as unique key for configuring database usernames and passwords.
1136 This replaces the use of the Glom document title which could change
1137 depending on the locale. Thanks to Murray Cumming for pointing out this
1140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1141 * src/main/resources/onlineglom.properties:
1143 2011-06-24 Ben Konrath <ben@bagu.org>
1145 Pass primary key value to DetailsView.
1147 This enables the DetailsView to load the correct data.
1149 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1150 primary key value field and set in constructor. Pass primary key
1151 value to getDetailsData().
1152 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1153 variables for document title and primary key value.
1154 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1155 key value to the DetailsPlace.
1157 2011-06-24 Ben Konrath <ben@bagu.org>
1159 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1161 This allows the primary key to be retrieved by the Details button. This
1162 functionality has not been implemented yet but it's in the works.
1164 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1165 the LayoutGroup result to ListView.setCellTable instead of all of its
1166 fields individually.
1167 * src/main/java/org/glom/web/client/ui/ListView.java:
1168 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1169 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1170 get the primary key for the table.
1171 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1172 index of the primary key in the LayoutGroup accounting for hidden
1173 primary keys. Rename getJavaNumberFormat() to
1174 convertToJavaNumberFormat() for consistency. Cleanup / add some
1176 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1177 field for primary key index and a field to indicate whether the
1178 primary key is hidden or not.
1180 2011-06-23 Ben Konrath <ben@bagu.org>
1182 Rename getTableData methods to getListData.
1184 This is a rename refactor for consistency with other methods.
1186 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1187 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1188 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1189 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1191 2011-06-23 Ben Konrath <ben@bagu.org>
1193 Extract the ConfiguredDocument innerclass into its own class.
1195 This makes the servlet code more object oriented.
1197 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1198 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1199 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1200 new ConfiguredDocument class.
1202 2011-06-21 Ben Konrath <ben@bagu.org>
1204 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1206 This makes things more inline with how libglom works and reduces code
1207 duplication. This refactor lays the groundwork for adding the primary key to
1208 the LayoutGroup object.
1210 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1211 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1212 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1213 Change method names to getListLayout and getDefaultListLayout for
1214 consistency. Use LayoutGroup as the DTO for the list layout instead of
1215 ColumnInfo and LayoutListTable.
1216 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1217 new method names along with the LayoutGroup object for transferring the
1219 * src/main/java/org/glom/web/client/ui/ListView.java:
1220 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1221 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1222 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1224 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1225 Replaced with LayoutGroup.
1226 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1227 expectedResultSize and defaultTableName fields which are needed for
1229 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1230 type field which is needed for the list layout but will also be
1231 useful for the details layout as things progress.
1232 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1233 Make class abstract. Remove the unnecessary
1234 getFormattingHorizontalAlignment method. Add setFormatting method.
1236 2011-06-16 Ben Konrath <ben@bagu.org>
1238 Add scripts for building and installing war.
1240 These will help when updating OnlineGlom but they're also good
1241 supplemental documentation of the build and deployment proceeding.
1243 * utils/build-onlineglom-war.sh: New file.
1244 * utils/install-onlineglom-war.sh: New file.
1246 2011-06-16 Ben Konrath <ben@bagu.org>
1248 Create wrapper class to create consistent log messages.
1250 I wrapped methods in the Log class of gwt-log to add the method names
1251 from the servlet and create consistent formatting of the document title
1252 and table names in the log messages.
1254 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1255 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1256 log methods to use methods from wrapped Log class.
1258 2011-06-16 Ben Konrath <ben@bagu.org>
1260 Remove superfluous conditional return.
1262 Thanks to Murray Cumming for pointing this out!
1264 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1266 2011-06-15 Ben Konrath <ben@bagu.org>
1268 Return an ArrayList of LayoutGroups for the Details layout.
1270 This corrects a problem with the details layout as it can have more
1271 than one top level LayoutGroup.
1273 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1274 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1275 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1276 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1277 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1278 with ArrayList of LayoutGroups for the details view layout.
1279 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1280 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1281 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1282 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1283 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1284 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1286 2011-06-14 Ben Konrath <ben@bagu.org>
1288 Use cast_dynamic method to determine the libglom LayoutItem type.
1290 This is better than finding the LayoutItem type by using the string
1291 returned from the get_part_type_name() method.
1293 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1295 2011-06-14 Ben Konrath <ben@bagu.org>
1297 Add method names to log entries in the servlet.
1299 This helps when tracking down deployment problems.
1301 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1303 2011-06-14 Ben Konrath <ben@bagu.org>
1305 Add data to the DetailsView using a hard-coded primary key value.
1307 The layout and functionality of the DetailsView is not complete. This
1308 is just a checkpoint so the patch doesn't get too big.
1310 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1311 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1312 Add getDetailsData() servlet method.
1313 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1314 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1315 LayoutFields are added to the DetailsView.
1316 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1317 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1318 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1319 take the string for the title instead of the object.
1320 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1321 Add implementation getDetailsData() along with some private helper
1323 * src/main/webapp/style.css: Add padding to details-data class. Add a
1324 details-label class with the same padding as the details-data class.
1326 2011-06-03 Ben Konrath <ben@bagu.org>
1328 Use presenter.goTo() to change to the DetailsPlace.
1330 This will make things easier when we need to open the DetailsView with
1331 data specific to the row that was clicked.
1333 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1335 2011-06-02 Ben Konrath <ben@bagu.org>
1337 Add CSS file from mockups.
1339 I'm adding this now because it's going to be useful to have when
1340 developing the DetailsView. The TableSelectionView and ListView aren't
1343 * src/main/webapp/OnlineGlom.html:
1344 * src/main/webapp/style.css:
1346 2011-06-02 Ben Konrath <ben@bagu.org>
1348 Use String.isEmpty() to check for empty string.
1350 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1352 2011-06-02 Ben Konrath <ben@bagu.org>
1354 Display main layout group titles in the DetailsView.
1356 This is the start of the DetailsActivity/DetailsView implementation.
1358 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1359 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1360 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1361 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1362 Get the layout information for the details view from the server and set
1363 the main layout group titles.
1364 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1365 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1366 Add addLayoutGroup() and addLayoutField() methods. This are just
1367 temporary methods for creating the the details view that will change
1369 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1370 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1372 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1373 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1374 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1375 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1376 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1377 Data Transfer Objects that mimic the libglom object structure. These are
1378 used for transferring the details layout but could also be used for
1379 transferring the list layout.
1381 2011-05-27 Ben Konrath <ben@bagu.org>
1383 Reset the AuthenticationPopup when clearing the ListView.
1385 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1387 2011-05-27 Ben Konrath <ben@bagu.org>
1389 Fix problem with onlineglom.properties file loading.
1391 The old way worked in Eclipse but not on the server. Loading the
1392 onlineglom.properties file now works in Eclipse and on the server.
1394 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1396 2011-05-24 Ben Konrath <ben@bagu.org>
1398 Update gwt-log from 3.1.0 to 3.1.2.
1400 Gwt-log 3.1.0 has been marked as depreciated.
1404 2011-05-24 Ben Konrath <ben@bagu.org>
1406 Add comment to ListActivity.goTo() method.
1408 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1410 2011-05-24 Ben Konrath <ben@bagu.org>
1412 Remove FIXME in convertGdkColorToHtmlColour()
1414 The Gdk::Color value returned by libglom is 16-bits per channel on both
1415 64 and 32-bit platforms.
1417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1419 2011-05-19 Ben Konrath <ben@bagu.org>
1421 Improve performance of initial ListView load.
1423 I removed a round trip to the server for getting the default table name
1424 and then requesting information about that table. This also removes a potential
1425 problem with the table change handler not being setup in time to receive the
1426 table change event from the ListActivity.
1428 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1429 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1430 getDefaultLayoutListTable() method. Improve comments.
1431 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1432 getDefaultLayoutListTable() method instead of firing a table change
1433 event to get the table to load.
1434 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1435 implementation of getDefaultLayoutListTable() method.
1436 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1439 2011-05-19 Ben Konrath <ben@bagu.org>
1441 Override toDebugString() in TableChangeEvent.
1443 This is useful to have for debugging.
1445 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1447 2011-05-19 Ben Konrath <ben@bagu.org>
1449 Add a "Back to List" link when at the DetailsPlace.
1451 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1452 Populate the CellTable based on the selected table of the ListBox if
1453 it's set otherwise use the default table. This allows the "Back to
1455 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1456 Remove Place from constructors. Add a setPlace() method. Add
1457 goToPlace() method. Set class as presenter for TableSelectionView.
1458 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1459 Use the same TableSelectionActivity when switching between the List and
1461 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1462 Subclass the new HasSelectableTablePlace. This removes some duplicate
1464 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1465 New class to represent Places that display the TableSelectionView.
1466 * src/main/java/org/glom/web/client/place/ListPlace.java:
1467 Subclass the new HasSelectableTablePlace. This removes some duplicate
1469 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1470 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1471 Add Presenter interface. Add setBackLinkVisible() method. Add
1472 setBackLink() method.
1474 2011-05-18 Ben Konrath <ben@bagu.org>
1476 Enable the "Details" buttons.
1478 Right now only an empty details view is displayed.
1480 * src/main/java/org/glom/web/client/ClientFactory.java:
1481 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1482 Add DetailsView to ClientFactory.
1483 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1484 A basic activity for the details view.
1485 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1486 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1488 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1489 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1491 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1492 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1493 unnecessary super() in constructor.
1494 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1495 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1496 really shouldn't create a new TableSelectionActivity for both the ListPlace
1497 and the DetailsPlace so this should be considered a temporary solution.
1498 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1499 New file. Represents a URL for the details view.
1500 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1501 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1502 A basic details view interface and implementation.
1503 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1504 Enable the "Details" buttons.
1506 2011-05-12 Ben Konrath <ben@bagu.org>
1508 Use a LayoutPanel with multiple display areas for main layout.
1510 This is mostly a refactor in that there are no changes from the user
1511 point of view. These changes are required so that we can swap out the list view
1512 with the details view when the user clicks the "Details" button.
1514 * src/main/java/org/glom/web/client/ClientFactory.java:
1515 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1516 OnlineGlomView. Add TableSelectionView, ListView and
1517 AuthenticationPopup.
1518 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1519 for main layout. Add display regions for main activities. Add
1520 activity manager for for main activities.
1521 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1522 file from parts of the deleted OnlineGlomActivity.
1523 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1524 New file from parts of the deleted OnlineGlomActivity.
1525 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1526 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1527 New files for app wide table change event.
1528 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1529 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1530 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1531 Activity mappers for the main activities replace the deleted app-wide
1533 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1534 Fix a spelling error in he comment.
1535 * src/main/java/org/glom/web/client/ui/ListView.java:
1536 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1537 Renamed from LayoutListView and modified for MVP. This still not a
1538 proper dumb view as prescribed by the MVP pattern but it works for now.
1539 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1540 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1541 New widget stripped out of the deleted OnlineGlomView.
1542 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1543 Remove hack that is fixed by this patch.
1545 2011-05-06 Ben Konrath <ben@bagu.org>
1547 Rename OnlineGlomPlace to ListPlace.
1549 The only change besides the rename is that url will now display #list
1550 instead of #Document.
1552 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1553 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1554 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1555 * src/main/java/org/glom/web/client/place/ListPlace.java:
1556 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1558 2011-05-06 Ben Konrath <ben@bagu.org>
1560 Use Presenter for app navigation.
1562 This is the proper way to deal with Place (URL) changes with the MVP
1565 * src/main/java/org/glom/web/client/ClientFactory.java:
1566 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1567 PlaceHistoryMapper and PlaceHistoryHandler.
1568 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1569 PlaceHistoryMapper and PlaceHistoryHandler.
1570 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1571 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1572 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1573 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1574 Add Presenter interface and setPresenter methods. Rename addHyperLink
1575 to addDocumentLink taking only the document title as a parameter.
1577 2011-04-14 Ben Konrath <ben@bagu.org>
1579 Prompt for db username/password if they haven't been set.
1581 This is implemented with a popup widget that is contained within the
1582 OnlineGlomView and managed by the OnlineGlomActivity.
1584 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1585 methods for checking and setting the database username and password.
1586 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1587 new methods for checking and setting the database username and
1589 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1590 Display authentication popup if the JDBC connection to the database
1591 has not been authenticated.
1592 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1594 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1595 for dealing with the authentication popup.
1596 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1597 Implement the methods for dealing with the authentication popup.
1598 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1599 try to executed queries if the database connection hasn't been
1600 authenticated. Implement methods for checking and setting the
1601 database username and password.
1603 2011-04-12 Ben Konrath <ben@bagu.org>
1605 Make log messages a little clearer.
1607 Add a dash betweeen the document title and the table name.
1609 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1611 2011-04-12 Ben Konrath <ben@bagu.org>
1613 Protect against NPEs when cleaning up database resources.
1615 While this isn't strictly necessary because the exception is caught,
1616 not protecting against the NPEs makes it harder to find the real error
1619 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1621 2011-04-12 Ben Konrath <ben@bagu.org>
1623 Move configuration of the servlet to the constructor.
1625 The servlet will be initialized even if the database authentication
1626 information is not set or correct. I still need to add the UI for prompting
1627 the user for the authentication information when it's required.
1629 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1630 javadocs for getDocumentTitles() method.
1631 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1632 Set error message when RPC fails.
1633 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1634 glom files directory from the configuration file. Try to set the
1635 database authentication information for the specific document if it's
1636 set and works otherwise try to use the global authentication
1637 information set for the directory.
1638 * src/main/resources/onlineglom.properties: Moved from
1639 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1640 Added detailed comments for the new keys.
1642 2011-04-11 Ben Konrath <ben@bagu.org>
1644 Remove unnecessary @Override in DocumentSelectionViewImpl.
1646 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1648 2011-04-11 Ben Konrath <ben@bagu.org>
1650 Remove center alignment in DocumentSelectionView.
1652 The title element is still centred but the document titles and bottom
1653 sentence are both left-aligned.
1655 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1657 2011-04-11 Ben Konrath <ben@bagu.org>
1659 Change 'Demo' naming convention to 'Document'.
1661 This is just a rename refactor with no functional changes to the code.
1663 * src/main/java/org/glom/web/client/ClientFactory.java:
1664 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1665 * src/main/java/org/glom/web/client/OnlineGlom.java:
1666 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1667 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1668 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1669 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1670 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1671 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1672 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1673 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1674 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1675 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1677 2011-04-08 Ben Konrath <ben@bagu.org>
1679 Remove FIXME from safeLongToInt() method.
1681 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1684 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1686 2011-04-08 Ben Konrath <ben@bagu.org>
1688 Display an error if no glom documents are found in the specified directory.
1690 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1691 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1692 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1693 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1695 2011-04-08 Ben Konrath <ben@bagu.org>
1697 Add copyright header to one more file ... oops.
1699 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1701 2011-04-08 Ben Konrath <ben@bagu.org>
1703 Add copyright header to files without it.
1705 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1706 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1707 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1708 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1709 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1710 * src/main/java/org/glom/web/shared/GlomField.java:
1712 2011-04-08 Ben Konrath <ben@bagu.org>
1714 Add support for accessing multiple glom documents in the servlet.
1716 This completes the demo selection functionality.
1718 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1719 document title to methods.
1720 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1721 document title to methods.
1722 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1723 Set browser window title when the activity starts. Correct name of
1724 document title variable.
1725 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1726 Set browser window title when the activity starts. Set the table
1727 selector change handler after table selector has been set. Clear the
1728 OnlineGlomView when the activity has been stopped.
1729 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1730 document title as the place token. Use "#Document:" instead of
1731 "#OnlineGlomPlace:" in the URL.
1732 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1733 Change heading to "Online Glom"
1734 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1735 document title in RPC methods.
1736 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1737 setDocumentTitle() method. Add clear() method.
1738 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1739 setDocumentTitle() method. Implement clear() method which removes the
1740 change handler on the ListBox, clears the ListBox and clears the
1742 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1743 Implement methods with document title. Keep track for the configured
1744 glom documents and their corresponding JDBC configurations in a hash
1745 table. This information is retrieved using the document title as the
1746 key in the hash table.
1747 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1748 document title field as it's no longer needed.
1750 2011-04-08 Ben Konrath <ben@bagu.org>
1752 Update the Eclipse JDT configuration.
1754 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1755 methods. Automatically add the copyright header to new files.
1757 2011-04-05 Ben Konrath <ben@bagu.org>
1759 Add new page for demo selection.
1761 This patch adds all the components required to view and start an
1762 OnlineGlom demo by clicking on the desired hyperlink. The user is
1763 able to return to the demo selection page with the browser's back
1764 button. I still need to modify the servlet to work with multiple
1765 documents so all demo links will load the file defined in the
1766 OnlineGlom.properties.
1768 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1769 This is only useful during development so we don't need to save it.
1770 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1771 get a reference to the DemoSelectionView.
1772 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1773 method to get a reference to the DemoSelectionView.
1774 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1775 default view to DemoSelectionView.
1776 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1777 to get glom document titles for glom files in a hard-coded directory.
1778 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1779 method to get glom document titles for glom files in a hard-coded
1781 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1782 Presenter for DemoSelectionView.
1783 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1784 for DemoSelectionView.
1785 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1786 Update for DemoSelectionView.
1787 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1788 Basic 'Place' implementation for the DemoSelectionView.
1789 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1790 The interface for the DemoSelectionView.
1791 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1792 The implementation of the DemoSelectionView.
1793 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1794 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1795 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1796 implementation of method to get glom document titles for glom files
1797 in a hard-coded directory.
1798 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1799 on longer being used.
1800 * src/main/webapp/glom.png: Glom logo.
1802 2011-04-05 Ben Konrath <ben@bagu.org>
1804 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1806 This is the forth and final commit of a refactor that will allow
1807 OnlineGlom to be used with multiple documents.
1809 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1810 Move RPC code from OnlineGlomViewImpl to this class.
1811 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1813 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1814 RPC code to the presenter class (the P in MVP).
1816 2011-04-04 Ben Konrath <ben@bagu.org>
1818 Start moving the existing OnlineGlom code to MVP.
1820 This work is based on the GWT MVP framework that is documented here:
1822 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1824 This is the third commit of a refactor that will allow OnlineGlom to
1825 be used with multiple documents.
1827 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1828 Interface for client factory which is used to get instances of various
1829 classes throughout the app.
1830 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1831 Implementation of client factory.
1832 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1833 initialize the MVP framework.
1834 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1835 New file. Activity manager for the main container widget. This is the
1837 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1838 Maps place (URL) to its corresponding activity.
1839 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1840 New file. This is just a place holder for a generated file.
1841 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1842 New file. Represents the URL for the main Online Glom app.
1843 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1844 for changes in LayoutListViewImpl.
1845 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1846 interface for View. Move code to OnlineGlomViewImpl class.
1847 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1848 file. Implementation of OnlineGlomView.
1849 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1850 Place resources. Use ClientFactoryImpl by default.
1852 2011-04-04 Ben Konrath <ben@bagu.org>
1854 Move View classes to their own package.
1856 This is the second commit of a refactor that will allow OnlineGlom to
1857 be used with multiple documents.
1859 * src/main/java/org/glom/web/client/OnlineGlom.java:
1860 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1861 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1863 2011-04-02 Ben Konrath <ben@bagu.org>
1865 Move UI code from the main module to its own class.
1867 This is the first commit of a refactor that will allow OnlineGlom to be
1868 used with multiple documents.
1870 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1871 references to OnlineGlom to OnlineGlomView.
1872 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1873 OnlineGlomView and instantiate it here.
1874 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1875 represents the main OnlineGlomView with one document.
1877 2011-04-01 Ben Konrath <ben@bagu.org>
1879 Fix formatting of gwt.xml and add DTD.
1881 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1883 2011-03-30 Ben Konrath <ben@bagu.org>
1885 Propperly convert gdkColor string to html colour string.
1887 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1889 2011-03-28 Ben Konrath <ben@bagu.org>
1891 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1893 This implementation matches
1894 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1895 readable and is not tied to Swig.
1897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1899 2011-03-28 Ben Konrath <ben@bagu.org>
1901 Use read-only checkboxes for boolean field types.
1903 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1904 in the CellTable based on the field type. It currently only
1905 distinguishes between boolean and text columns but I'll need to add
1906 support for more types.
1907 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1908 column type in the ColumnInfo object. Add method to convert between the
1909 glom field type enum in ColumnInfo and the glom field type in libglom.
1910 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1912 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1913 getting and setting booleans.
1915 2011-03-25 Ben Konrath <ben@bagu.org>
1917 Don't get the Date twice from the ResultSet.
1919 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1921 2011-03-25 Ben Konrath <ben@bagu.org>
1923 Cleanup code in the servlet.
1925 * TODO: Remove item about row count. Add item about testing row count
1926 query with large number of rows.
1927 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1928 spelling mistakes, change method parameter to be consistent with
1931 2011-03-25 Ben Konrath <ben@bagu.org>
1933 Add server side logging with the gwt-log library.
1935 * .gitignore: Ignore the log file we're now producing.
1936 * TODO: Add a couple TODO item for logging.
1937 * pom.xml: Add gwt-log and log4j as a dependency.
1938 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1939 logging of errors, warnings and some important info.
1940 * src/main/resources/log4j.properties: New file to configure log4j.
1942 2011-03-24 Ben Konrath <ben@bagu.org>
1944 Add a disable button for the Details view.
1946 * src/main/java/org/glom/web/client/LayoutListView.java:
1948 2011-03-22 Ben Konrath <ben@bagu.org>
1950 Use a count query to get the number of rows for the list view pager.
1952 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1954 2011-03-22 Ben Konrath <ben@bagu.org>
1956 Add more TODO information about CellTable pager positioning.
1960 2011-03-19 Ben Konrath <ben@bagu.org>
1962 Add TODO item about CellTable pager positioning.
1966 2011-03-18 Ben Konrath <ben@bagu.org>
1968 Remove unneeded GlomFieldColumn class.
1970 This is just a small code cleanup.
1972 * src/main/java/org/glom/web/client/LayoutListView.java:
1974 2011-03-18 Ben Konrath <ben@bagu.org>
1976 Use cursor mode in the query that gets data for the list view.
1978 I still need to fix the potential memory problem when getting the row
1979 count for the list view.
1981 * TODO: Add note about testing memory usage with large data sets. Add
1982 item about fixing row counting with large data sets.
1983 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1984 PostgreSQL JDBC driver into cursor mode when getting data for the
1987 2011-03-15 Ben Konrath <ben@bagu.org>
1989 Remove the GWT Container from the Eclipse build classpath.
1991 The GWT dependencies are set by Maven so this isn't needed.
1995 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1997 Added some earlier mockups to git, but not to the tarball dist.
1999 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2000 Openismus. These hopefully show how we might structure the HTML so that
2001 it can be styled easily with CSS. However, we probably need to adapt them
2002 for the CSS structure that GWT dictates for common widgets.
2004 2011-03-14 Ben Konrath <ben@bagu.org>
2006 Locate OnlineGlom.properties using the ServletContext.
2008 This is required to be able to locate the file in the deployed servlet.
2010 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2011 Configure the database and glom document in in a helper method so
2012 that the ServletContext can be used to locate OnlineGlom.properties.
2013 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2014 src/main/webapp. This is the proper location for .properites files.
2016 2011-03-12 Ben Konrath <ben@bagu.org>
2018 Add note to README about why we're compiling down to obfuscated JavaScript.
2022 2011-03-11 Ben Konrath <ben@bagu.org>
2024 Use properties file to configure servlet.
2026 This allows people to change the glom file path, db username and db
2027 password without recompiling the code.
2029 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2030 * src/main/webapp/OnlineGlom.properties:
2032 2011-03-11 Ben Konrath <ben@bagu.org>
2034 Use table fields in layout list view if the layout list is not defined.
2036 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2037 Manually create a LayoutFieldVector for the query builder using the
2038 table fields when a layout list is not defined in the glom file.
2040 2011-03-11 Ben Konrath <ben@bagu.org>
2042 Only show FIXME string for images when there's an image.
2044 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2045 in this change are some small code cleanups.
2047 2011-03-11 Ben Konrath <ben@bagu.org>
2049 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2051 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2053 2011-03-11 Ben Konrath <ben@bagu.org>
2055 Correctly set the index of the default table.
2057 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2058 Correctly set the index of the default table. Add commented out example
2061 2011-03-10 Ben Konrath <ben@bagu.org>
2063 Add comment to pom.xml about the previous change.
2065 * pom.xml: Add comment about the deployment issue so that it's obvious
2066 why java-libglom is set to the provided scope.
2068 2011-03-10 Ben Konrath <ben@bagu.org>
2070 Change java-libglom dependency from compile to provided in pom.xml.
2072 Since java-libglom uses jni it can only be loaded once and therefore
2073 must be placed in $CATALINA_HOME/lib and not included in each war.
2074 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2075 More information about this issue can be found in the Tomcat 6 release
2076 notes in the "JNI Based Applications" section:
2078 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2080 * README: Remove note about this issue. Deployment info should really
2081 be on the wiki anyway so I'll add it right now.
2082 * pom.xml: Change java-libglom dependency from compile to provided so
2083 that it's copied in to the packaged war.
2085 2011-03-09 Ben Konrath <ben@bagu.org>
2087 Change to using a neutral locale for currency, date and time formatting.
2089 This solves the problem of currency values being represented without a
2090 space between the currency code and the number (e.g. "EUR5.89" is now
2091 represented as "EUR 5.89"). More work is required when we implement
2092 a locale preference setting.
2094 * TODO: Add note about currency formatting issues with different
2096 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2097 to using the neutral ROOT locale.
2099 2011-03-09 Ben Konrath <ben@bagu.org>
2101 Add support for currency codes that are not ISO 4217 codes.
2103 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2104 the currency code defined in the glom file when it's not 3 characters
2105 long or when Java doesn't recognize the string as an ISO 4217 code.
2107 2011-03-08 Ben Konrath <ben@bagu.org>
2109 Remove test classes, launch configurations and configuration.
2111 The test stuff was getting in the way when creating the war. To make
2112 the war file you can now do 'mvn clean package'. The packaged war file
2113 will be in the target directory.
2115 * .classpath: Remove unused classpathentry for tests and i18n.
2116 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2117 property. Don't run test or i18n goals when packaging the war.
2118 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2123 * OnlineGlomTest-dev.launch:
2124 * OnlineGlomTest-prod.launch:
2125 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2126 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2128 2011-03-07 Ben Konrath <ben@bagu.org>
2130 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2132 These fixes allow me to use 'mvn deploy' to create the war file.
2134 * .classpath: This generated config has been updated by Eclipse. This
2135 change was probably triggered by me updating from Eclipse 3.6.1 to
2137 * .gitignore: Add entry to ignore the directory
2138 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2139 * .project: The generated config has been updated by Eclipse. This
2140 change was probably triggered by me updating from Eclipse 3.6.1 to
2142 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2143 so that Eclipse doesn't complain
2144 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2145 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2146 'tests' directory to 'client' directory. This is the new
2147 gwt-maven-plugin convension.
2148 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2149 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2151 2011-03-07 Ben Konrath <ben@bagu.org>
2153 Add support for horizontal alignment in the LayoutList columns.
2155 * TODO: Remove item about horizontal alignment. Add item about
2156 improvements to ColumnInfo.
2157 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2158 alignment on the columns. Use ColumnInfo RPC object get the column
2159 title and horizontal alignment.
2160 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2161 LayoutListView creation with ColumnInfo RPC object.
2162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2163 a ColumnInfo object for every LayoutList columnn. Convert the
2164 FieldFormatting.HorizontalAlignment to the correct
2165 ColumnnInfo.HorizontatlAlignment with the new
2166 getColumnInfoHorizontalAlignment helper method.
2167 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2168 to encapsulate column information like alignment and title. This
2169 could be used to set the colour instead of on a per cell field basis.
2170 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2171 column title storage and retrieval with ColumnInfo.
2173 2011-03-04 Ben Konrath <ben@bagu.org>
2175 Add support for column sorting.
2177 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2178 AsynDataProvider to be an anonymous inner class. Use new
2179 getSortedTableData RPC method when column sort is requested. Set all
2180 columns sortable and add an AsyncHandler to activate sorting in the
2182 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2183 method getSortedTableData(). Cleanup other method signatures.
2184 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2185 new method getSortedTableData(). Cleanup other method signatures.
2186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2187 Implement getSortedTableData() and getTableData() methods by using a
2188 private helper method with the appropriate parameters filled in. Use
2189 user supplied sort clause when supplied, otherwise fall back to
2190 sorting by the primary key. Move destroy() method to be underneath
2191 constructor for readability. Cleanup comments.
2193 2011-03-03 Ben Konrath <ben@bagu.org>
2195 Add support for colour text and colour backgrounds to the layout list cells.
2197 Only the cell backgrounds are coloured which leaves a gap between the
2198 cells that isn't coloured. I need to figure out a way to set
2199 'style=background-colour:' on the whole column rather than just the
2202 * TODO: Add a note about colouring the background of the whole column.
2203 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2204 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2205 render the coloured text and backgrounds. Use GlomField[] for the row type.
2206 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2208 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2209 GlomField[] for the row type.
2210 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2211 GlomField[] for the row type. Set the text, text colour and background
2212 colour in the GlomField objects as specified in the glom document. Add
2213 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2214 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2215 the glom field text, foreground colour and background colour.
2217 2011-03-02 Ben Konrath <ben@bagu.org>
2219 Don't display hidden tables in the combo box.
2221 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2224 code to ignore hidden tables using ArrayLists for the table names and
2226 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2227 tableNames to use ArrayLists instead of String[]. Update getter and setter
2230 2011-03-01 Ben Konrath <ben@bagu.org>
2232 Add support for Date and Time number types.
2234 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2235 Implement formatting for Date and Time values. Change the default glom
2236 file to small business example.
2238 2011-03-01 Ben Konrath <ben@bagu.org>
2240 Add support for formatting glom types as specified in the glom file.
2242 Formatting isn't finished yet - I still need to add support for Date
2245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2246 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2247 checks for null values in JDBC cleanup code and catch all exceptions
2248 instead of just SQLExceptions.
2249 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2252 2011-03-01 Ben Konrath <ben@bagu.org>
2254 Use GWT 2.2.0 instead of 2.1.1.
2256 * pom.xml: Change GWT version numbers.
2258 2011-03-01 Ben Konrath <ben@bagu.org>
2260 A few small code cleanups.
2262 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2264 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2265 unnecessary object creation in constructor.
2266 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2267 unnecessary object creation in constructor.
2269 2011-02-28 Ben Konrath <ben@bagu.org>
2271 Add file for TODO list.
2275 2011-02-18 Ben Konrath <ben@bagu.org>
2277 Enable the CellTable Pager when more than 20 rows need to be viewed.
2279 The Pager will automatically become active when the results are larger
2280 than the CellTable size which is currently set to 20 lines.
2282 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2283 name on debug statment in RPC call in LayoutListDataProvider, add
2284 numRows parameter to LayoutListView constructor, propperly set rowCount
2286 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2287 name on debug statment in RPC call, use LayoutListTable object in RPC
2288 calls, pass rowCount to LayoutListView.
2289 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2290 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2292 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2293 interface for changes in OnlineGlomService.
2294 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2295 getLayoutListHeaders() to getLayoutListTable() and return
2296 LayoutListTable. Using this object allows me to pass other information
2297 about the LayoutList like the expected number of rows in the result set.
2298 The Connection object from the connection pool is now propperly closed.
2299 Only the requested number of lines are returned to the client in
2301 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2302 GlomTable and add columnTitles and numRows.
2304 2011-02-18 Ben Konrath <ben@bagu.org>
2306 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2308 This is a small performance boost. I'll use GlomTable to get the required
2309 layoutlist information.
2311 * src/main/java/org/glom/web/client/OnlineGlom.java:
2312 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2313 * src/main/java/org/glom/web/shared/GlomDocument.java:
2315 2011-02-18 Ben Konrath <ben@bagu.org>
2317 Add option to turn off formatting in JDT formatter preferences.
2319 * .settings/org.eclipse.jdt.core.prefs:
2321 2011-02-18 Ben Konrath <ben@bagu.org>
2323 Rename LayoutList to LayoutListView.
2325 I'm working towards setting things up to easily use MVP when the time
2328 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2330 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2333 2011-02-17 Ben Konrath <ben@bagu.org>
2335 Move LayoutListDataProvider class into LayoutList.java.
2337 * src/main/java/org/glom/web/client/LayoutList.java:
2339 2011-02-17 Ben Konrath <ben@bagu.org>
2341 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2343 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2345 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2346 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2347 from LibGlomServer.java.
2348 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2349 Rename from LibGlomServiceAsync.java.
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2351 Rename from LibGlomServiceImpl.java.
2352 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2354 2011-02-17 Ben Konrath <ben@bagu.org>
2356 Update JDT settings.
2358 * .settings/org.eclipse.jdt.core.prefs:
2360 2011-02-17 Ben Konrath <ben@bagu.org>
2362 Move GWT-RPC objects to shared package (where they should be).
2364 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2365 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2366 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2367 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2368 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2369 org.glom.web.shared package.
2370 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2371 org.glom.web.shared package.
2372 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2373 directory in compilation to javascript.
2375 2011-02-16 Ben Konrath <ben@bagu.org>
2377 Add sort clause to the sql query that grabs table information.
2379 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2380 if one of the columns is a primary key.
2382 2011-02-16 Ben Konrath <ben@bagu.org>
2384 Disable generateAsync feature of gwt-maven.
2386 The generated interface does not correctly match the methods in LibGlomService
2387 and the generated singleton Util inner-class doesn't respect the servlet
2390 * pom.xml: Turn off generateAsync feature.
2391 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2392 with singleton Util inner-class.
2394 2011-02-14 Ben Konrath <ben@bagu.org>
2396 Add LGPL v3 licence notices.
2398 Followed directions listed here:
2399 http://www.gnu.org/licenses/gpl-howto.html
2401 * COPYING: This file is a copy of the GPL v3.
2402 * COPYING.LESSER: This file is a copy of the LGPL v3.
2403 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2405 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2407 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2409 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2411 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2413 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2415 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2418 2011-02-14 Ben Konrath <ben@bagu.org>
2420 Use ArrayList instead of Array in GWT-RPC calls.
2422 Apparently this gives a slight performance boost to the compiled
2425 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2427 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2430 2011-02-14 Ben Konrath <ben@bagu.org>
2432 Access data from a postgres db rather than the example glom file.
2434 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2435 compile down to obfuscated javascript.
2436 * pom.xml: Add c3p0 and postgres JDBC libraries.
2437 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2438 using a postgres db accessed through the c3p0 connection pooling library.
2440 2011-02-14 Ben Konrath <ben@bagu.org>
2442 Update Java formatter settings.
2444 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2446 2011-02-02 Ben Konrath <ben@bagu.org>
2448 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2450 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2452 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2453 the compiled webapp directory that Eclipse uses as we're using Maven now.
2454 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2455 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2457 * pom.xml: Format file, change target Java version to 1.6.
2459 2011-02-02 Ben Konrath <ben@bagu.org>
2461 Add information about a deployment related issue.
2463 * README: Add Notes section with the problem outlined.
2465 2011-02-02 Ben Konrath <ben@bagu.org>
2467 Call Glom.libglom_deinit() when the servlet is shutdown.
2469 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2470 Glom.libglom_deinit() to destroy() method.
2472 2011-01-28 Ben Konrath <ben@bagu.org>
2474 Use generated Util class to get the RPC Async interface.
2476 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2478 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2479 getInstance() method to get a reference to the RPC Async interface.
2480 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2481 getInstance() method to get a reference to the RPC Async interface, remove
2482 the now unused getLibGlomServiceProxy() method.
2484 2011-01-27 Ben Konrath <ben@bagu.org>
2486 Cleanup ChangeLog entry from previous commit.
2488 * ChangeLog: Group logical changes together and add comments.
2490 2011-01-25 Ben Konrath <ben@bagu.org>
2492 Convert to gwt-maven project.
2494 * .gitignore: Update for new project structure.
2495 * README: New file with a link to the online documentation.
2496 * pom.xml: The generated maven configuration file with some tweaks.
2498 Add / update Eclipse settings. These files are a merge of the files that
2499 were generated with the gwt-maven plugin and the files we were previously
2503 * .settings/.jsdtscope:
2504 * .settings/com.google.gdt.eclipse.core.prefs:
2505 * .settings/com.google.gwt.eclipse.core.prefs:
2506 * .settings/org.eclipse.jdt.core.prefs:
2507 * .settings/org.eclipse.wst.common.component:
2508 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2509 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2510 * .settings/org.maven.ide.eclipse.prefs:
2511 * OnlineGlomTest-dev.launch:
2512 * OnlineGlomTest-prod.launch:
2514 Java source files moved from the 'src' directory to the directory structure
2516 * src/main/java/org/glom/web/client/GlomDocument.java:
2517 * src/main/java/org/glom/web/client/GlomTable.java:
2518 * src/main/java/org/glom/web/client/LayoutList.java:
2519 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2520 * src/main/java/org/glom/web/client/LibGlomService.java:
2521 * src/main/java/org/glom/web/client/OnlineGlom.java:
2522 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2524 Non-functional property file used for translations. I included this as
2525 reminder that it's something I need to sort out.
2526 * src/main/resources/org/glom/web/client/Messages.properties:
2528 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2529 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2531 The servlet configuration files moved from the 'war' directory.
2532 * src/main/webapp/OnlineGlom.css:
2533 * src/main/webapp/OnlineGlom.html:
2534 * src/main/webapp/WEB-INF/web.xml:
2536 Generated test files with most of the code commented out. I included these
2537 so that it's easy to add tests when we're ready for them.
2538 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2539 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2541 2011-01-25 Ben Konrath <ben@bagu.org>
2543 Remove unused println.
2545 * src/org/glom/web/server/LibGlomServiceImpl.java:
2547 2011-01-25 Ben Konrath <ben@bagu.org>
2549 Add project specific JDT settings.
2551 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2552 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2554 2011-01-25 Ben Konrath <ben@bagu.org>
2556 Populate celltable with example data.
2558 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2559 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2560 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2561 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2562 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2563 asynchronously gets the example data.
2564 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2565 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2566 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2567 curently selected table to be retrieved by other widgets.
2568 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2569 implement getTableData() in a hacky way. This method needs to be updated
2570 to grab information from the database when database creating is
2573 2011-01-20 Ben Konrath <ben@bagu.org>
2575 Set table headers when table dropBox changes.
2577 * src/org/glom/web/client/GlomDocument.java: Correct some method
2579 * src/org/glom/web/client/LibGlomService.java: Add method
2580 to get list layout field names.
2581 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2582 to get list layout field names.
2583 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2584 widget for list layout table.
2585 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2586 the table drop box and add new updateTable() method to asynchronously
2587 get the layout list field names for the currently selected table.
2588 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2589 implementation of getLayoutListHeaders() method.
2590 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2592 2011-01-18 Ben Konrath <ben@bagu.org>
2594 Make a listBox with table titles instead of the flexTable demo.
2596 This is the start of something more useful.
2598 * .classpath: Exclude a bunch of packages from the JVM that are
2599 getting in the way of the Eclipse content assist.
2600 * src/org/glom/web/client/GlomDocument.java:
2601 * src/org/glom/web/client/GlomTable.java:
2602 * src/org/glom/web/client/LibGlomService.java:
2603 * src/org/glom/web/client/LibGlomServiceAsync.java:
2604 * src/org/glom/web/client/OnlineGlom.java:
2605 * src/org/glom/web/server/LibGlomServiceImpl.java:
2606 * war/OnlineGlom.html:
2607 * war/WEB-INF/web.xml:
2609 211-01-13 Ben Konrath <ben@bagu.org>
2611 Update to new java-libglom API.
2613 * .gitignore: Ignore OnlineGlom.war.
2614 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2616 2010-12-20 Ben Konrath <ben@bagu.org>
2618 Add some basic style to the table listing.
2620 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2621 header, print useful error message on async callback failure.
2622 * war/OnlineGlom.css: Add style for table header, remove defaults
2623 provided by the Eclipse project wizard.
2625 2010-12-20 Ben Konrath <ben@bagu.org>
2627 Load example file from installed glom dir.
2629 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2630 provided by java-libglom to find the example file.
2632 2010-12-20 Ben Konrath <ben@bagu.org>
2634 Update Eclipse settings.
2637 * .settings/com.google.gdt.eclipse.core.prefs:
2638 * .settings/com.google.gwt.eclipse.core.prefs:
2640 2010-12-17 Ben Konrath <ben@bagu.org>
2644 * .classpath: New file.
2645 * .gitignore: New file.
2646 * .project: New file.
2647 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2648 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2649 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2650 * src/org/glom/web/client/GlomTable.java: New file.
2651 * src/org/glom/web/client/OnlineGlom.java: New file.
2652 * src/org/glom/web/client/TableNameService.java: New file.
2653 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2654 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2655 * war/OnlineGlom.css: New file.
2656 * war/OnlineGlom.html: New file.
2657 * war/WEB-INF/web.xml: New file.
2658 * war/images/glom.png: New file.