1 2011-11-23 Ben Konrath <ben@bagu.org>
3 Don't explicitly set the height of Portals.
5 See comments 6 - 10 of this bug for details:
7 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
9 * src/main/java/org/glom/web/client/ui/details/Portal.java:
11 2011-11-23 Ben Konrath <ben@bagu.org>
13 Use an HTML table instead of CSS for the FlowTable layout.
15 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
16 GWT's FlexTable to implement the FlowTable.
17 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
19 2011-11-18 Ben Konrath <ben@bagu.org>
21 Add boolean example to HTML table mockup.
23 * mockups/details-view-html-tables-text-entries.html:
25 2011-11-17 Ben Konrath <ben@bagu.org>
27 Ensure the pager buttons are always visible for related lists.
29 To accomplish this, I've turned off text wrapping in the list view and
30 related list tables for both the header and data text. The related list
31 table now has a fixed layout so the it doesn't overflow its container.
32 This is required to ensure that the cell text is clipped when it
33 overflows the cell and an ellipsis is added to the right side of the
34 cell when text is clipped.
36 A fixed table layout for the related list table in the details view
37 seems what we want for the details view anyway, so the side-effect is
40 The ellipsis will only be displayed in Firefox >= 7.
44 https://bugzilla.gnome.org/show_bug.cgi?id=662930
46 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
47 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
48 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
50 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
51 Set the 'table-layout: fixed' CSS property to the related list table.
52 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
53 'white-space: nowrap;' CSS property on both the list view and the
56 2011-11-16 Ben Konrath <ben@bagu.org>
58 Rework the fix for empty notebook tab labels.
60 Setting the empty group titles with its name caused problems for the
61 details layout. Instead of using libglom's
62 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
63 to the client when the title is empty. This allows the Notebook to use
64 the name when the title is empty without affecting anything else.
66 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
67 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
69 2011-11-16 Ben Konrath <ben@bagu.org>
71 Set group titles with name when title is empty.
73 This fixes a problem with an empty notebook tab label in the Lesson
74 Planner document. The forth tab in the notebook should be "Internet":
76 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
78 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
79 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
82 2011-11-16 Ben Konrath <ben@bagu.org>
84 Remove whitespace from the configured username properties.
86 This assumes that usernames won't have whitespace at the beginning
87 or end. But I think this is a reasonable assumption.
89 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
90 String.trim() to remove the whitespace from the username properties.
92 2011-11-15 Ben Konrath <ben@bagu.org>
94 Add details view mockup with HTML tables and text entries.
96 This is from the attachment on this bug:
98 https://bugzilla.gnome.org/show_bug.cgi?id=663109
100 * mockups/details-view-html-tables-text-entries.html:
102 2011-11-15 Ben Konrath <ben@bagu.org>
104 Add space between the columns of the flow table.
108 https://bugzilla.gnome.org/show_bug.cgi?id=662918
110 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
111 space between columns in the flow table.
113 2011-11-15 Ben Konrath <ben@bagu.org>
115 Add backup files to the .gitignore.
117 * .gitignore: Ignore files that end with ~.
119 2011-11-09 Ben Konrath <ben@bagu.org>
121 Use latest release of gwt-log.
123 Gwt-log releases are now being submitted to the maven central
124 repository so manual installation of the jar is no longer required.
126 * pom.xml: Update version and groupId of gwt-log dependency.
128 2011-10-31 Ben Konrath <ben@bagu.org>
130 Don't use GWT numeric formatting to override the glom currency formatting.
132 Currencies are now displayed like they are in Glom. See this bug:
134 https://bugzilla.gnome.org/show_bug.cgi?id=646216
136 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
138 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
139 currency code to constructor and set it when the cell is rendered.
140 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
141 currency code to the constructor of the NumericCell.
143 2011-10-27 Ben Konrath <ben@bagu.org>
145 Require the latest release of java-libglom (1.17.4).
149 2011-10-26 Ben Konrath <ben@bagu.org>
151 Add style to Notebook that matches current theme.
153 It's not the best style in the world but it's better than the default.
155 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
156 padding at the bottom of the child widgets.
157 * src/main/webapp/style.css: Add style for the Notebook.
159 2011-10-26 Ben Konrath <ben@bagu.org>
161 Move servlet initialization code to overridden init method.
163 This is half of the solution to getting proper error messages
164 displayed when configuration errors occur. Here's the relevant bug:
166 https://bugzilla.gnome.org/show_bug.cgi?id=662792
168 The rest of the solution involves surrounding the init method with a
169 try/catch block and setting a global variable with the error /
170 exception. A new async method should be created to retrieve and display
171 the error message / exception.
173 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
174 code from constructor to init method adding exceptions as needed.
176 2011-10-26 Ben Konrath <ben@bagu.org>
178 Add script to monitor and restart tomcat if required.
180 * utils/check-and-recover-tomcat.py: New file.
182 2011-10-26 Ben Konrath <ben@bagu.org>
184 Display the correct number of data items in the pager.
188 https://bugzilla.gnome.org/show_bug.cgi?id=661441
190 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
191 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
192 The implementation is the same for both tables: Keep track of the
193 number of non-empty rows and fire and RowCountChangeEvent after the data has
195 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
196 custom Pager class that subclasses SimplePager to handle displaying
197 the correct number when empty rows have been added.
199 2011-10-26 Ben Konrath <ben@bagu.org>
201 Correct error in previous commit.
203 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
204 eventBus parameter from listView.setCellTable().
206 2011-10-26 Ben Konrath <ben@bagu.org>
208 Fix error in TODO comment.
210 * src/main/java/org/glom/web/client/activity/ListActivity.java:
212 2011-10-24 Ben Konrath <ben@bagu.org>
214 Create Notebook widgets to the details view.
216 This isn't finished just yet - I still need to create a reasonable
217 style to match the current theme.
219 * src/main/java/org/glom/web/client/Utils.java: Add method for
220 calculating the height of a widget. This is used in the Notebook class.
221 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
222 new constructor method in Group.
223 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
224 method for creating child widget that can be used by subclasses
225 like Notebook. New constructor that allows disabling the group
226 titles - Notebooks don't set a group title for their child groups.
227 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
228 to make Notebooks using GWT's TabLayoutPanel.
229 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
230 constructor that allows disabling the group titles.
231 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
232 LayoutItemNotebook DTO.
233 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
234 DTO for Notebooks. It's just an empty class for now but we might need
235 it to transfer some specific information in the future.
237 2011-10-21 Ben Konrath <ben@bagu.org>
239 Add navigation buttons to related list tables.
241 * src/main/java/org/glom/web/client/OnlineGlomService.java:
242 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
243 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
244 method getSuitableRecordToViewDetails() for getting the table name
245 and primary key value for related list navigation buttons.
246 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
247 private cell renderer class to get the navigation information for
248 related list tables from the server. Extract the navigation
249 processing code from the details cell navigation and use it for the
250 related list navigation as well.
251 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
252 cell renderer class for the details open buttons. This was needed
253 because the related list navigation buttons and the list view
254 navigation buttons need to react differently when clicked.
255 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
256 the onEnterKeyDown() method because it's now overriden in the
257 subclasses that are specific to the related list tables and the list
259 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
260 the vertical size a little because the buttons add a bit of vertical
261 space to table. This is not a perfect solution because the vertical
262 size of with table fewer than 5 rows will be a little smaller.
263 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
264 changes in how navigation buttons are handled.
265 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
266 getSuitableRecordToViewDetails() using the new RelatedListNavigation
267 database access object.
268 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
269 to find the portal for a given relationship name from
270 RelatedListDBAccess. Add method to find a primary key field for a
272 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
273 Move code to find the portal for a given relationship name to
275 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
276 New file: database access object for getting the related list
277 navigation information (the table name and the primary key value).
278 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
279 DTO for transferring a table name to navigate to and a primary key
281 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
282 boolean and getter/setter to specifies if the related list should add
285 2011-10-24 Murray Cumming <murrayc@murrayc.com>
287 Use the master branch of java-libglom
289 * pom.xml: Depend on java-libglom 1.19 instead.
291 This is the master branch. See also the libglom-1-18 branch.
293 2011-10-11 Ben Konrath <ben@bagu.org>
295 Enable the open navigation button when the data has been set.
297 This avoids having active buttons that don't do anything when the data
300 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
302 2011-10-11 Ben Konrath <ben@bagu.org>
304 Use IsWidget interface for FlowTableItem.
306 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
307 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
309 2011-10-11 Ben Konrath <ben@bagu.org>
311 Remove GWT styling from open button in details view.
313 There are still some issues with how the details cell is arranged but
314 this should be made to match Glom 1.20. I'm going to leave fixing this
315 until I have Glom 1.20 up and running.
317 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
318 style name on open button.
319 * src/main/webapp/style.css: Move and edit details-navigation class.
320 Re-arrange some classes to make them appear in the same order as the
323 2011-10-07 Ben Konrath <ben@bagu.org>
327 * .gitignore: Ignore new cache directory.
328 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
329 * pom.xml: Change GWT and maven plugin to 2.4.0.
330 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
332 * src/main/java/org/glom/web/client/ClientFactory.java:
333 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
334 * src/main/java/org/glom/web/client/OnlineGlom.java:
335 Update source for API changes.
336 * utils/build-onlineglom-war.sh: Remove cache directory before the
339 2011-10-07 Ben Konrath <ben@bagu.org>
341 Add navigation buttons in the details view.
343 This isn't finished but I thought I'd commit what I have as it's a
344 pretty good start. I still need to:
346 1. Change the style so that it fits better into the current theme
347 2. Adjust the details cell to expand as much as possible.
349 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
350 click handlers to navigation buttons in the DetailsCells. Create a
351 refreshData() method to get just the data from the server without the
353 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
354 Update the tableSelector and browser title when the table name
355 changes without using the tableSelector.
356 * src/main/java/org/glom/web/client/ui/DetailsView.java:
357 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
358 getDetailsCells() to getCells(). Update variable names.
359 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
360 method to set click handler on navigation button. Rename a few
361 variables. Add navigation buttons where needed.
362 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
363 variables and methods.
364 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
365 navigation boolean and navigation table as required in the
367 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
368 variables for navigation along with getter/setter methods.
370 2011-10-07 Ben Konrath <ben@bagu.org>
372 Rename Field to DetailsCell.
374 This is a refactor-only commit. No functionality has been added or
377 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
378 Update variable and method names.
379 * src/main/java/org/glom/web/client/ui/DetailsView.java:
380 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
381 variable and method names.
382 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
384 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
385 variable and method names.
387 2011-10-07 Ben Konrath <ben@bagu.org>
389 Create separate methods for layout and data the details view.
391 This is a refactor-only commit. No functionality has been added or
394 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
395 private methods: setData(), createLayout().
397 2011-10-07 Ben Konrath <ben@bagu.org>
399 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
401 This is part of a change to get navigation buttons in the details view
402 but it should have been done this way from the start.
404 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
405 for method name change in TableSelectionView.
406 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
407 Create TableChangeEvent and set the browser title using the
408 TableSelectionView API.
409 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
410 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
411 Change getSelectedTable() to getSelectedTableName(). Add
412 getSelectedTableTitle().
414 2011-10-07 Ben Konrath <ben@bagu.org>
416 Use primaryKeyValue naming convention in constructor of DetailsPlace.
418 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
420 2011-10-07 Ben Konrath <ben@bagu.org>
422 Update TableChangeEvent to use newTableName naming convention.
424 This makes the class more consistent with GWT naming conventions.
426 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
427 Update for method name change in TableChangeEvent.
428 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
429 for method name change in TableChangeEvent.
430 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
431 newTableName variable and getter method. Make toDebugString()
434 2011-09-30 Ben Konrath <ben@bagu.org>
436 Disable the pager in the list tables when the data row count is less than the minimum.
438 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
439 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
441 2011-09-30 Ben Konrath <ben@bagu.org>
443 Add empty rows to the end of related list and list view tables.
445 I also extracted the cell rendering classes from the ListTable because
446 the code was becoming a little crazy with all the anonymous inner
447 classes. My plan is to use these cell rendering classes in the details
448 view as well so this refactor will be needed for that change.
450 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
451 set the row count in related list tables if the data has more rows
452 than the minimum number of rows visible.
453 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
454 row count in list view tables if the data has more rows than the
455 minimum number of rows visible.
456 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
457 for rendering TYPE_BOOLEAN cells. The code was extracted from the
459 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
460 for rendering TYPE_NUMERIC cells. The code was extracted from the
462 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
463 class for rendering cells with buttons in list views. The code was
464 extracted from the ListTable class.
465 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
466 for rendering TYPE_TEXT cells. The code was extracted from the
468 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
469 Add empty rows to the end of the data if required. Implement
470 ListTable.getMinNumVisibleRows().
471 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
472 cell renderer code to public classes. Return null in
473 Column.getValue() for empty rows. Add new abstract method:
474 getMinNumVisibleRows(). Move code to set the row count of the list view
475 table to ListViewImpl.
476 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
477 empty rows to the end of the data if required. Implement
478 ListTable.getMinNumVisibleRows().
481 2011-09-27 Ben Konrath <ben@bagu.org>
483 Use GWT.log for client-side debugging statements.
485 These are optimized out when deployed so I should have used this method
486 in the first place. These statements will eventually be replaced with some sort
487 of notification in the browser.
489 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
490 * src/main/java/org/glom/web/client/activity/ListActivity.java:
491 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
492 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
493 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
495 2011-09-27 Ben Konrath <ben@bagu.org>
497 Put tableselector on the right, back to list link on right.
499 The idea is that the table selector is acting like a label for the
500 currently displayed table so it should be placed below the document title. This
501 puts the table title in a similar position to where it is in Glom.
503 * mockups/details-contacts.html:
504 * mockups/details-projects.html:
505 * mockups/listview-contacts.html:
506 * mockups/listview-projects.html:
508 Update mockups to match how the interfaces currently look.
509 * src/main/webapp/style.css: Swap positions of backlink with the table
510 selector. Add some space on the left side of the table selector to
511 line things up with the document title.
513 2011-09-27 Ben Konrath <ben@bagu.org>
515 Add field colouring to details view.
517 This change re-works how field colouring works. The colour formatting
518 information is now set to the client with the layout information instead of
519 with the data. This eliminates the need to send the same colour strings for
520 data in list view column when colour information is set.
522 In order to set an alternate colour for negative numeric values, the
523 number is now sent to client and formatted with the GWT NumberFormat class.
525 This change also fixes:
527 https://bugzilla.gnome.org/show_bug.cgi?id=659752
529 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
530 internationalization framework which is needed for client side numeric
532 * src/main/java/org/glom/web/client/Utils.java: New file for some
533 client static utility methods.
534 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
535 the DataItem object to the Field class. Use a utility method to
536 create the foreignKeyValue string.
537 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
538 alignment and text colours in the constructor. Add setData(DataItem)
539 method. Remove setText(String) method.
540 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
541 colour information to GlomTextCell. Create and use GlomNumberCell for
542 rendering numbers. Use utility method to get the string for the
543 primary key of the key provider. Re-work how the horizontal alignment
545 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
546 formatting to layout information. Methods for converting the libglom
547 formatting information were moved from DBAccess.
548 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
549 numeric formatting (it's now done on the client side). Don't set text
550 colours in DataItem. Move libglom formatting conversion methods to
552 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
553 getters/setters for text colour information.
554 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
555 for transferring the libglom NumericFormat information to the client.
556 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
557 and getters/setters for: GlomNumericFormat, background colour and
558 foreground colour strings.
560 2011-09-26 Ben Konrath <ben@bagu.org>
562 Simplify code that iterates through the LayoutGroup.
564 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
566 2011-09-26 Ben Konrath <ben@bagu.org>
568 Accept Eclipse formatting for OnlineGlomServiceAsync.
570 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
572 2011-09-26 Ben Konrath <ben@bagu.org>
574 Don't use the ListDBAccess classes to get the primary key layout information.
576 This was causing a bug where the wrong index for the hidden primary key
577 was being sent to the client.
579 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
580 primary key while creating the LayoutGroup DTO. Create a
581 LayoutItemField DTO for hidden primary keys. Don't use the
582 RelatedListDBAccess because it was only used for getting the primary
584 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
585 access modifier from public to protected for getPrimaryKeyField() and
586 getPrimaryKeyLayoutItemField().
587 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
588 abstract method getExpectedResultSize() because RelatedListDBAccess
589 doesn't have enough info to implement it.
590 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
591 Remove @Override for getExpectedResultSize().
592 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
593 Remove method getExpectedResultSize().
595 2011-09-23 Ben Konrath <ben@bagu.org>
597 Log which layout (list or details) the ignored item is from.
599 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
601 2011-09-23 Ben Konrath <ben@bagu.org>
603 Remove annotations that turn off code formatting in DataItem.
605 * src/main/java/org/glom/web/shared/DataItem.java:
607 2011-09-23 Ben Konrath <ben@bagu.org>
609 Rename GlomField to DataItem and update associated methods.
611 This is a rename-only refactor. No functionality has been added or
614 * src/main/java/org/glom/web/client/OnlineGlomService.java:
615 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
616 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
617 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
618 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
619 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
620 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
621 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
622 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
623 * src/main/java/org/glom/web/server/database/DBAccess.java:
624 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
625 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
626 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
627 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
628 * src/main/java/org/glom/web/shared/DataItem.java:
629 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
630 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
632 2011-09-23 Ben Konrath <ben@bagu.org>
634 Rename GlomDocument to DocumentInfo and update associated methods.
636 This is a rename-only refactor. No functionality has been added or
639 * src/main/java/org/glom/web/client/OnlineGlomService.java:
640 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
641 * src/main/java/org/glom/web/client/activity/ListActivity.java:
642 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
643 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
644 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
645 * src/main/java/org/glom/web/shared/DocumentInfo.java:
647 2011-09-20 Ben Konrath <ben@bagu.org>
649 Require java-libglom 1.17.3.
651 This picks up the fix for the seg fault problem with the Scenes table
652 in the Openismus Film Manager example.
656 2011-09-20 Ben Konrath <ben@bagu.org>
658 Change the way sort clause is added for primary key when no sort clause is requested.
660 The primary key is now added to the LayoutFieldVector (fieldsToGet)
661 before the sort clause is created. When a sort clause is not requested, the
662 sort clause is created by finding the primary key in the LayoutFieldVector
665 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
667 2011-09-20 Ben Konrath <ben@bagu.org>
669 Log error message if no documents are found in the configured directory.
671 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
672 Extract the glom file extension string to a private static final class
673 variable (mostly as syntactic sugar). Accept a minor formatting change.
674 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
675 the example glom.document.directory configuration property to make it
676 more clear that it can any directory, not just the home directory.
678 2011-09-18 Ben Konrath <ben@bagu.org>
680 Add related lists to details view.
682 The related list table has support for paging and sorting just like the
683 table in the list view.
685 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
686 SQL queries for the related list tables.
687 * src/main/java/org/glom/web/client/OnlineGlomService.java:
688 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
690 Rename getList methods to getListView and add comments. Remove
691 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
692 it being unused. Add methods: getDetailsLayoutAndData(),
693 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
694 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
695 Create the layout and set the data for the fields in one async call
696 instead of two. Create related lists where appropriate.
697 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
698 for method name changes in OnlineGlomService.
699 * src/main/java/org/glom/web/client/ui/DetailsView.java:
700 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
701 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
703 * src/main/java/org/glom/web/client/ui/ListView.java:
704 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
705 tableName from setCellTable(). Create a ListViewTable instead of
707 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
708 represent a data field in the details view.
709 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
710 from addDetailsCell() to Field class. Keep track of the Fields and
711 Portals in the details view.
712 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
713 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
714 and add a method to get it. Add method to set the contents of the
716 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
717 New class for related list tables. This class has the data provider
718 for the related list table.
719 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
720 abstract class which is the base class for the ListViewTable and the
722 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
723 New class for list view tables. This class has the data provider for
725 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
726 methods for related list tables. Add more information to the
727 LayoutItemField and LayoutItemPortal DTOs.
728 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
729 Remove debugging print statement.
730 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
731 Remove debugging print statements. Add primary key field to SQL count
733 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
734 Remove unnecessary LayoutFieldVector parameter from
735 getResultSizeOfSQLQuery() method.
736 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
737 New class for related list table database access.
738 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
739 class that is a wrapper DTO for details view layout and data.
740 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
741 new 'fromField' string to this DTO.
742 * src/main/webapp/style.css: Remove bottom margin and override top
745 2011-09-15 Ben Konrath <ben@bagu.org>
747 Breakup the OnlineGlomServiceImpl class to make it more manageable.
749 This sets things up to make it easier to add the data retrieval for
750 related lists (portals). No user noticeable changes were made with
753 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
754 class has the code to retrieve the layouts and access the
755 database using the new database helper classes.
756 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
757 Most of the functionality has been removed from this class. This
758 class now represents the public interface for the client side
759 code. It also deals with configuring the servlet and cleaning
760 things up when the servlet is stopped.
761 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
762 of static methods into this utility class.
763 * src/main/java/org/glom/web/server/database/DBAccess.java:
764 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
765 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
766 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
767 These classes have the database retrieval code. The class hierarchy
768 has been setup to make it easy to reuse code for similar
771 2011-09-06 Ben Konrath <ben@bagu.org>
773 Create separate classes for list table code and the data provider.
775 As part of this refactor, I also split up the code a bit to make it
778 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
779 table code to two new classes (below).
780 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
781 with code from ListViewImpl.
782 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
783 New file with code from ListViewImpl.
785 2011-09-06 Ben Konrath <ben@bagu.org>
787 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
789 This fixes the LayoutItemPortal DTO to match the libglom layout object
792 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
794 2011-09-01 Ben Konrath <ben@bagu.org>
796 Set title of Portals in the Details View.
798 * pom.xml: Bump required version of java-libglom to 1.17.1.
799 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
800 widget creation to its own class. Add comments to constructor.
801 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
802 The code is mostly from the Group class with the title now set.
803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
804 title of Portal. Update some comments. Fix some code formatting.
806 2011-09-01 Ben Konrath <ben@bagu.org>
808 Remove TODO comment for the flow table column width.
810 The flow table column width is working correctly and doesn't need to be
811 changed. See this mailing list post for more info:
813 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
815 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
817 2011-08-27 Ben Konrath <ben@bagu.org>
819 Add document title (database name) to top of the browser page.
821 I added the document title to the TableSelecitonView but that will
822 change if / when we add a view that doesn't require table selection.
824 * mockups/details-contacts.html:
825 * mockups/details-projects.html:
826 * mockups/listview-contacts.html:
827 * mockups/listview-projects.html:
828 * mockups/style.css: Add document title to mockups to keep things
830 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
831 sizes to account for the document title.
832 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
833 Set the document title when it has been retrieved from the server.
834 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
835 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
836 and implement setDocumentTitle(String) method.
837 * src/main/webapp/style.css: Add ID for document title style.
839 2011-08-25 Ben Konrath <ben@bagu.org>
841 Add NavigationType enum to LayoutItemPortal DTO.
843 This is the start of adding support for Portals to the Details View.
845 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
846 LayoutItem_Portal.navigation_type enum from libglom to
847 LayoutItemPortal.NavigationType enum.
848 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
849 NavigationType enum, field for storing the NavigationType and getter
852 2011-08-25 Ben Konrath <ben@bagu.org>
854 Implement the flow table layout in the Details View.
856 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
857 FlowTable to Group to account for the renamed class.
858 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
859 File. This is a container widget that implements the Glom details view
860 flow table behaviour.
861 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
862 org/glom/web/client/ui/FlowTable.java.
863 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
864 so that the size of the subgroups are a closer match to the size of
865 the Glom subgroups. This makes the flowtable layout match the layout
866 in Glom for the Music Collection example file.
868 2011-08-16 Ben Konrath <ben@bagu.org>
870 Create container element for LayoutItemPortal in Details View.
872 This will help me develop the layout for the FlowTable.
874 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
875 fieldPanel variable to detailsCell.
877 2011-08-15 Ben Konrath <ben@bagu.org>
879 Set the height of the data element in the Details View.
881 I changed the InlineLabels (text in a span element) to Labels (text in
882 a div element) so that I could set the height of the details-data
883 elements instead of the details-cell parent elements. This allows the
884 the details-data element to display the correct height if style is
885 applied that shows the height.
887 This change has the added benefit of allowing the order of the labels
888 and data elements to be changed for right-to-left languages.
890 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
891 InlineLabels to Labels.
892 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
893 InlineLabels to Labels. Set the height of the data element.
894 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
895 multiline text height in the Formatting DTO.
896 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
897 for multiline height along with getter and setter methods.
898 * src/main/webapp/style.css: Adjust style to account for the change
899 from span elements to div elements in the details cell.
901 2011-08-15 Ben Konrath <ben@bagu.org>
903 Make the List View appearance match the mockups.
905 It doesn't match exactly but it's much better than it was.
907 * mockups/listview-contacts.html: Remove unused css classes.
908 * mockups/listview-projects.html: Remove unused css classes.
909 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
910 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
911 for mainPanel instead of VerticalPanel (table). Set style name on
912 CellTable. Set style name on Details column. Right-align Details
914 * src/main/webapp/style.css: Adjust properties to match the mockups.
916 2011-08-12 Ben Konrath <ben@bagu.org>
918 Add better support for subgroups in the details view.
920 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
921 changed FlowTable constructor.
922 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
923 support for subgroups and subgroup-titles.
924 * src/main/webapp/style.css: Add CSS class for subgroups and
927 2011-08-12 Ben Konrath <ben@bagu.org>
929 Return the top level LayoutGroup title.
931 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
933 2011-08-11 Ben Konrath <ben@bagu.org>
935 Make the TableSelector header match the mockup.
937 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
938 the layout panel. Properly lineup the table selection header with
939 the list and details view.
940 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
941 margin around the details view.
942 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
943 Rename listBox variable to tableSelector. Set id for the style sheet.
944 Use a FlowPanel instead of a HorizontalPanel.
945 * src/main/webapp/style.css: Add properties to make the TableSelector
946 box match the mockups.
948 2011-07-13 Ben Konrath <ben@bagu.org>
950 Update install script for java-libglom version change.
952 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
955 2011-07-13 Ben Konrath <ben@bagu.org>
957 Add support sub-group in the details view.
959 I also removed the code that special-cased the default details view
962 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
964 I still have to make a proper flowtable.
966 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
967 Don't special-case default details view layout.
968 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
969 addLayoutField() as I'm going to use it.
970 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
971 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
973 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
974 extracted from DetailsViewImpl.GroupPanel. Add support for
976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
977 column count when getting the details layout.
979 2011-07-12 Ben Konrath <ben@bagu.org>
981 Set browser title with database and table titles.
983 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
984 Set the browser title when the table changes and when the activity
986 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
987 title when retrieving document info (the GlomDocument object).
988 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
989 with getter and setter methods. Remove unused convenience constructor.
990 Use default code formatting.
992 2011-07-12 Ben Konrath <ben@bagu.org>
994 Ignore LayoutItemPortals in the details view.
996 I added a new DTO for the LayoutItemPortal so that I can ignore it in
999 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1000 LayoutItemPortal layout objects.
1001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1002 LayoutItemPortal objects when retrieving the details layout.
1003 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1004 file. This is an empty class and just used to get type information for
1007 2011-07-12 Ben Konrath <ben@bagu.org>
1009 Use java-libglom 1.17.0.
1013 2011-07-11 Ben Konrath <ben@bagu.org>
1015 Remove "Table:" label from table selector.
1017 This matches a recent change in the Glom UI.
1019 * mockups/details-contacts.html:
1020 * mockups/details-projects.html:
1021 * mockups/listview-contacts.html:
1022 * mockups/listview-projects.html: Remove the "Table:" label from the
1024 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1026 2011-07-11 Ben Konrath <ben@bagu.org>
1028 Add main groups to the details view.
1030 This makes things look a little nicer in the details view. The next step
1031 is to implement the flowtable.
1033 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1034 resources from the standard gwt css theme. Standard.css is now
1035 included in OnlineGlom.html so that the online glom css rules have
1036 precedence over the gwt theme.
1037 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1038 the whole LayoutGroup to the DetailsView instead of just the titles.
1039 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1040 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1041 details layout with a helper class (GroupPanel). I might extract this
1042 class when I make the full flowtable.
1043 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1044 string as default so I don't have to worry about NPEs when processing
1046 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1047 note beside OnlineGlom.gwt.xml above).
1048 * src/main/webapp/style.css: Add default font-size to body to override
1049 the font-size set by the standard theme. Don't use h2 tags for
1050 group-title. Create new details-cell class.
1052 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1054 ConfiguredDocument: Set the port number too.
1056 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1057 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1058 Glom document. Presumably this worked sometimes so far because there is a
1059 default port number.
1061 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1063 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1065 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1066 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1067 correct, though we should throw an exception too.
1069 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1071 Fix a addDocuemnt typo.
1073 * src/main/java/org/glom/web/shared/Documents.java
1074 (Documents.addDocuemnt): Rename to addDocument().
1075 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1076 (OnlineGlomServiceImpl.getDocuments): Adapt.
1078 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1080 Slightly improved log output when connection fails.
1082 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1083 (ConfiguredDocument.setUsernameAndPassword):
1084 We don't know for sure if it' the username/password that's wrong, so
1085 rephrase the message.
1086 Also ouput the exception message, though it's generic in this case.
1088 2011-07-08 Ben Konrath <ben@bagu.org>
1092 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1093 added braces to a one line if statement because the Eclipse formatter
1094 was getting confused.
1096 2011-07-07 Ben Konrath <ben@bagu.org>
1098 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1100 These should really be two separate tasks but I counldn't get things to
1101 work with GWT 2.2.0 and Eclipse 3.7.
1105 * .settings/org.eclipse.jdt.core.prefs:
1106 * .settings/org.eclipse.jdt.ui.prefs:
1107 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1108 * .settings/org.eclipse.m2e.core.prefs:
1109 Add new config files. Update current files. Remove references to the
1110 webtools plugins as we're not using any of the webtools features.
1111 * .gitignore: Add logs directory which is created when running with
1113 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1114 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1115 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1117 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1119 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1121 onlineglom.properties: Add explanatory comments.
1123 * src/main/resources/onlineglom.properties: Also change the default user
1124 from ben to someuser, to avoid the risk of people thinking we just
1125 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1127 2011-06-28 Ben Konrath <ben@bagu.org>
1129 Use filename in Log for incorrect passwords.
1131 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1132 getFileName(String) method to get the filename from the URI.
1134 2011-06-28 Ben Konrath <ben@bagu.org>
1136 Add the table name to the URL token for the ListPlace.
1138 This makes things consistent between the DetailsPlace and the
1139 ListPlace. It also allows the the ListPlace to be bookmarked.
1141 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1142 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1143 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1144 Remove getDefaultListLayout(). The default layout is now returned
1145 by the getListLayout() method when the table name is an empty string.
1146 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1147 Add table name field. Change to a new ListPlace when the table
1148 has been changed. Use getListLayout() for getting the default
1150 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1151 Add table name field. Set the correct table name in the list box
1152 when loading from bookmark. This corrects a problem for the
1154 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1155 Move table name to super-class (HasSelectableTable). Move document
1156 and table URL keys to super-class in HasSelectableTable.
1157 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1158 Add table name field. Add Tokenizer class with URL key common to
1159 the subclasses (DetailsPlace and ListPlace).
1160 * src/main/java/org/glom/web/client/place/ListPlace.java:
1161 Add table name. Add code to parse the URL token.
1162 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1163 Update ListPlace construction with empty table name string.
1164 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1165 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1166 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1167 Update ListPlace construction with table name string.
1168 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1169 Change defaultTableName field to tableName to reflect how it's now
1170 used. Update the getter and setter methods.
1172 2011-06-28 Ben Konrath <ben@bagu.org>
1174 Enable the table selector in the DetailsView.
1176 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1177 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1178 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1179 Remove getDefaultDetailsLayout(). The default layout is now returned
1180 by the getDetailsLayout() method when the table name is an empty
1182 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1183 event handler for table change event. Change to using
1184 getDetailsLayout() for the default details layout.
1185 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1187 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1188 when navigating to the details place.
1190 2011-06-27 Ben Konrath <ben@bagu.org>
1192 Use filename based unique document ID in URL and for RPC.
1194 The document ID is the glom document name with spaces (' ') replaced
1195 with pluses ('+') and without the .glom extension.
1197 This change is mostly a string substitution of 'documentTitle' for
1198 'documentID'. The only code change is the addition of a Documents DTO to get the
1199 filename to document title mappings as indicated below.
1201 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1202 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1203 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1204 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1205 Use Documents DTO to create the document links in the document
1207 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1208 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1209 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1210 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1211 * src/main/java/org/glom/web/client/place/ListPlace.java:
1212 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1213 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1214 * src/main/java/org/glom/web/client/ui/ListView.java:
1215 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1216 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1217 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1218 * src/main/java/org/glom/web/server/Log.java:
1219 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1220 getDocumentTitles() to getDocuments() and return the Documents DTO.
1221 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1222 transferring the filename to document title mappings.
1224 2011-06-25 Ben Konrath <ben@bagu.org>
1226 Make the authentication popup work again.
1228 This bug was introduced when I extracted ConfiguredDocument to its own class.
1230 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1231 correct success / fail status in setUsernameAndPassword().
1233 2011-06-25 Ben Konrath <ben@bagu.org>
1235 Use filename as unique key for configuring database usernames and passwords.
1237 This replaces the use of the Glom document title which could change
1238 depending on the locale. Thanks to Murray Cumming for pointing out this
1241 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1242 * src/main/resources/onlineglom.properties:
1244 2011-06-24 Ben Konrath <ben@bagu.org>
1246 Pass primary key value to DetailsView.
1248 This enables the DetailsView to load the correct data.
1250 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1251 primary key value field and set in constructor. Pass primary key
1252 value to getDetailsData().
1253 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1254 variables for document title and primary key value.
1255 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1256 key value to the DetailsPlace.
1258 2011-06-24 Ben Konrath <ben@bagu.org>
1260 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1262 This allows the primary key to be retrieved by the Details button. This
1263 functionality has not been implemented yet but it's in the works.
1265 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1266 the LayoutGroup result to ListView.setCellTable instead of all of its
1267 fields individually.
1268 * src/main/java/org/glom/web/client/ui/ListView.java:
1269 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1270 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1271 get the primary key for the table.
1272 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1273 index of the primary key in the LayoutGroup accounting for hidden
1274 primary keys. Rename getJavaNumberFormat() to
1275 convertToJavaNumberFormat() for consistency. Cleanup / add some
1277 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1278 field for primary key index and a field to indicate whether the
1279 primary key is hidden or not.
1281 2011-06-23 Ben Konrath <ben@bagu.org>
1283 Rename getTableData methods to getListData.
1285 This is a rename refactor for consistency with other methods.
1287 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1288 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1289 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1290 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1292 2011-06-23 Ben Konrath <ben@bagu.org>
1294 Extract the ConfiguredDocument innerclass into its own class.
1296 This makes the servlet code more object oriented.
1298 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1299 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1300 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1301 new ConfiguredDocument class.
1303 2011-06-21 Ben Konrath <ben@bagu.org>
1305 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1307 This makes things more inline with how libglom works and reduces code
1308 duplication. This refactor lays the groundwork for adding the primary key to
1309 the LayoutGroup object.
1311 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1312 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1313 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1314 Change method names to getListLayout and getDefaultListLayout for
1315 consistency. Use LayoutGroup as the DTO for the list layout instead of
1316 ColumnInfo and LayoutListTable.
1317 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1318 new method names along with the LayoutGroup object for transferring the
1320 * src/main/java/org/glom/web/client/ui/ListView.java:
1321 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1322 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1323 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1325 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1326 Replaced with LayoutGroup.
1327 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1328 expectedResultSize and defaultTableName fields which are needed for
1330 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1331 type field which is needed for the list layout but will also be
1332 useful for the details layout as things progress.
1333 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1334 Make class abstract. Remove the unnecessary
1335 getFormattingHorizontalAlignment method. Add setFormatting method.
1337 2011-06-16 Ben Konrath <ben@bagu.org>
1339 Add scripts for building and installing war.
1341 These will help when updating OnlineGlom but they're also good
1342 supplemental documentation of the build and deployment proceeding.
1344 * utils/build-onlineglom-war.sh: New file.
1345 * utils/install-onlineglom-war.sh: New file.
1347 2011-06-16 Ben Konrath <ben@bagu.org>
1349 Create wrapper class to create consistent log messages.
1351 I wrapped methods in the Log class of gwt-log to add the method names
1352 from the servlet and create consistent formatting of the document title
1353 and table names in the log messages.
1355 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1356 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1357 log methods to use methods from wrapped Log class.
1359 2011-06-16 Ben Konrath <ben@bagu.org>
1361 Remove superfluous conditional return.
1363 Thanks to Murray Cumming for pointing this out!
1365 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1367 2011-06-15 Ben Konrath <ben@bagu.org>
1369 Return an ArrayList of LayoutGroups for the Details layout.
1371 This corrects a problem with the details layout as it can have more
1372 than one top level LayoutGroup.
1374 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1375 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1376 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1377 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1378 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1379 with ArrayList of LayoutGroups for the details view layout.
1380 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1381 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1382 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1383 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1384 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1385 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1387 2011-06-14 Ben Konrath <ben@bagu.org>
1389 Use cast_dynamic method to determine the libglom LayoutItem type.
1391 This is better than finding the LayoutItem type by using the string
1392 returned from the get_part_type_name() method.
1394 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1396 2011-06-14 Ben Konrath <ben@bagu.org>
1398 Add method names to log entries in the servlet.
1400 This helps when tracking down deployment problems.
1402 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1404 2011-06-14 Ben Konrath <ben@bagu.org>
1406 Add data to the DetailsView using a hard-coded primary key value.
1408 The layout and functionality of the DetailsView is not complete. This
1409 is just a checkpoint so the patch doesn't get too big.
1411 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1412 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1413 Add getDetailsData() servlet method.
1414 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1415 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1416 LayoutFields are added to the DetailsView.
1417 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1418 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1419 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1420 take the string for the title instead of the object.
1421 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1422 Add implementation getDetailsData() along with some private helper
1424 * src/main/webapp/style.css: Add padding to details-data class. Add a
1425 details-label class with the same padding as the details-data class.
1427 2011-06-03 Ben Konrath <ben@bagu.org>
1429 Use presenter.goTo() to change to the DetailsPlace.
1431 This will make things easier when we need to open the DetailsView with
1432 data specific to the row that was clicked.
1434 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1436 2011-06-02 Ben Konrath <ben@bagu.org>
1438 Add CSS file from mockups.
1440 I'm adding this now because it's going to be useful to have when
1441 developing the DetailsView. The TableSelectionView and ListView aren't
1444 * src/main/webapp/OnlineGlom.html:
1445 * src/main/webapp/style.css:
1447 2011-06-02 Ben Konrath <ben@bagu.org>
1449 Use String.isEmpty() to check for empty string.
1451 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1453 2011-06-02 Ben Konrath <ben@bagu.org>
1455 Display main layout group titles in the DetailsView.
1457 This is the start of the DetailsActivity/DetailsView implementation.
1459 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1460 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1461 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1462 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1463 Get the layout information for the details view from the server and set
1464 the main layout group titles.
1465 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1466 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1467 Add addLayoutGroup() and addLayoutField() methods. This are just
1468 temporary methods for creating the the details view that will change
1470 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1471 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1473 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1474 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1475 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1476 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1477 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1478 Data Transfer Objects that mimic the libglom object structure. These are
1479 used for transferring the details layout but could also be used for
1480 transferring the list layout.
1482 2011-05-27 Ben Konrath <ben@bagu.org>
1484 Reset the AuthenticationPopup when clearing the ListView.
1486 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1488 2011-05-27 Ben Konrath <ben@bagu.org>
1490 Fix problem with onlineglom.properties file loading.
1492 The old way worked in Eclipse but not on the server. Loading the
1493 onlineglom.properties file now works in Eclipse and on the server.
1495 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1497 2011-05-24 Ben Konrath <ben@bagu.org>
1499 Update gwt-log from 3.1.0 to 3.1.2.
1501 Gwt-log 3.1.0 has been marked as depreciated.
1505 2011-05-24 Ben Konrath <ben@bagu.org>
1507 Add comment to ListActivity.goTo() method.
1509 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1511 2011-05-24 Ben Konrath <ben@bagu.org>
1513 Remove FIXME in convertGdkColorToHtmlColour()
1515 The Gdk::Color value returned by libglom is 16-bits per channel on both
1516 64 and 32-bit platforms.
1518 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1520 2011-05-19 Ben Konrath <ben@bagu.org>
1522 Improve performance of initial ListView load.
1524 I removed a round trip to the server for getting the default table name
1525 and then requesting information about that table. This also removes a potential
1526 problem with the table change handler not being setup in time to receive the
1527 table change event from the ListActivity.
1529 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1530 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1531 getDefaultLayoutListTable() method. Improve comments.
1532 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1533 getDefaultLayoutListTable() method instead of firing a table change
1534 event to get the table to load.
1535 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1536 implementation of getDefaultLayoutListTable() method.
1537 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1540 2011-05-19 Ben Konrath <ben@bagu.org>
1542 Override toDebugString() in TableChangeEvent.
1544 This is useful to have for debugging.
1546 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1548 2011-05-19 Ben Konrath <ben@bagu.org>
1550 Add a "Back to List" link when at the DetailsPlace.
1552 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1553 Populate the CellTable based on the selected table of the ListBox if
1554 it's set otherwise use the default table. This allows the "Back to
1556 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1557 Remove Place from constructors. Add a setPlace() method. Add
1558 goToPlace() method. Set class as presenter for TableSelectionView.
1559 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1560 Use the same TableSelectionActivity when switching between the List and
1562 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1563 Subclass the new HasSelectableTablePlace. This removes some duplicate
1565 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1566 New class to represent Places that display the TableSelectionView.
1567 * src/main/java/org/glom/web/client/place/ListPlace.java:
1568 Subclass the new HasSelectableTablePlace. This removes some duplicate
1570 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1571 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1572 Add Presenter interface. Add setBackLinkVisible() method. Add
1573 setBackLink() method.
1575 2011-05-18 Ben Konrath <ben@bagu.org>
1577 Enable the "Details" buttons.
1579 Right now only an empty details view is displayed.
1581 * src/main/java/org/glom/web/client/ClientFactory.java:
1582 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1583 Add DetailsView to ClientFactory.
1584 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1585 A basic activity for the details view.
1586 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1587 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1589 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1590 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1592 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1593 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1594 unnecessary super() in constructor.
1595 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1596 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1597 really shouldn't create a new TableSelectionActivity for both the ListPlace
1598 and the DetailsPlace so this should be considered a temporary solution.
1599 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1600 New file. Represents a URL for the details view.
1601 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1602 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1603 A basic details view interface and implementation.
1604 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1605 Enable the "Details" buttons.
1607 2011-05-12 Ben Konrath <ben@bagu.org>
1609 Use a LayoutPanel with multiple display areas for main layout.
1611 This is mostly a refactor in that there are no changes from the user
1612 point of view. These changes are required so that we can swap out the list view
1613 with the details view when the user clicks the "Details" button.
1615 * src/main/java/org/glom/web/client/ClientFactory.java:
1616 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1617 OnlineGlomView. Add TableSelectionView, ListView and
1618 AuthenticationPopup.
1619 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1620 for main layout. Add display regions for main activities. Add
1621 activity manager for for main activities.
1622 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1623 file from parts of the deleted OnlineGlomActivity.
1624 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1625 New file from parts of the deleted OnlineGlomActivity.
1626 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1627 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1628 New files for app wide table change event.
1629 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1630 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1631 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1632 Activity mappers for the main activities replace the deleted app-wide
1634 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1635 Fix a spelling error in he comment.
1636 * src/main/java/org/glom/web/client/ui/ListView.java:
1637 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1638 Renamed from LayoutListView and modified for MVP. This still not a
1639 proper dumb view as prescribed by the MVP pattern but it works for now.
1640 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1641 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1642 New widget stripped out of the deleted OnlineGlomView.
1643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1644 Remove hack that is fixed by this patch.
1646 2011-05-06 Ben Konrath <ben@bagu.org>
1648 Rename OnlineGlomPlace to ListPlace.
1650 The only change besides the rename is that url will now display #list
1651 instead of #Document.
1653 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1654 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1655 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1656 * src/main/java/org/glom/web/client/place/ListPlace.java:
1657 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1659 2011-05-06 Ben Konrath <ben@bagu.org>
1661 Use Presenter for app navigation.
1663 This is the proper way to deal with Place (URL) changes with the MVP
1666 * src/main/java/org/glom/web/client/ClientFactory.java:
1667 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1668 PlaceHistoryMapper and PlaceHistoryHandler.
1669 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1670 PlaceHistoryMapper and PlaceHistoryHandler.
1671 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1672 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1673 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1674 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1675 Add Presenter interface and setPresenter methods. Rename addHyperLink
1676 to addDocumentLink taking only the document title as a parameter.
1678 2011-04-14 Ben Konrath <ben@bagu.org>
1680 Prompt for db username/password if they haven't been set.
1682 This is implemented with a popup widget that is contained within the
1683 OnlineGlomView and managed by the OnlineGlomActivity.
1685 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1686 methods for checking and setting the database username and password.
1687 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1688 new methods for checking and setting the database username and
1690 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1691 Display authentication popup if the JDBC connection to the database
1692 has not been authenticated.
1693 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1695 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1696 for dealing with the authentication popup.
1697 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1698 Implement the methods for dealing with the authentication popup.
1699 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1700 try to executed queries if the database connection hasn't been
1701 authenticated. Implement methods for checking and setting the
1702 database username and password.
1704 2011-04-12 Ben Konrath <ben@bagu.org>
1706 Make log messages a little clearer.
1708 Add a dash betweeen the document title and the table name.
1710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1712 2011-04-12 Ben Konrath <ben@bagu.org>
1714 Protect against NPEs when cleaning up database resources.
1716 While this isn't strictly necessary because the exception is caught,
1717 not protecting against the NPEs makes it harder to find the real error
1720 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1722 2011-04-12 Ben Konrath <ben@bagu.org>
1724 Move configuration of the servlet to the constructor.
1726 The servlet will be initialized even if the database authentication
1727 information is not set or correct. I still need to add the UI for prompting
1728 the user for the authentication information when it's required.
1730 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1731 javadocs for getDocumentTitles() method.
1732 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1733 Set error message when RPC fails.
1734 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1735 glom files directory from the configuration file. Try to set the
1736 database authentication information for the specific document if it's
1737 set and works otherwise try to use the global authentication
1738 information set for the directory.
1739 * src/main/resources/onlineglom.properties: Moved from
1740 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1741 Added detailed comments for the new keys.
1743 2011-04-11 Ben Konrath <ben@bagu.org>
1745 Remove unnecessary @Override in DocumentSelectionViewImpl.
1747 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1749 2011-04-11 Ben Konrath <ben@bagu.org>
1751 Remove center alignment in DocumentSelectionView.
1753 The title element is still centred but the document titles and bottom
1754 sentence are both left-aligned.
1756 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1758 2011-04-11 Ben Konrath <ben@bagu.org>
1760 Change 'Demo' naming convention to 'Document'.
1762 This is just a rename refactor with no functional changes to the code.
1764 * src/main/java/org/glom/web/client/ClientFactory.java:
1765 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1766 * src/main/java/org/glom/web/client/OnlineGlom.java:
1767 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1768 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1769 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1770 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1771 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1772 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1773 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1774 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1775 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1776 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1778 2011-04-08 Ben Konrath <ben@bagu.org>
1780 Remove FIXME from safeLongToInt() method.
1782 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1785 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1787 2011-04-08 Ben Konrath <ben@bagu.org>
1789 Display an error if no glom documents are found in the specified directory.
1791 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1792 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1793 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1796 2011-04-08 Ben Konrath <ben@bagu.org>
1798 Add copyright header to one more file ... oops.
1800 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1802 2011-04-08 Ben Konrath <ben@bagu.org>
1804 Add copyright header to files without it.
1806 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1807 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1808 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1809 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1810 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1811 * src/main/java/org/glom/web/shared/GlomField.java:
1813 2011-04-08 Ben Konrath <ben@bagu.org>
1815 Add support for accessing multiple glom documents in the servlet.
1817 This completes the demo selection functionality.
1819 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1820 document title to methods.
1821 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1822 document title to methods.
1823 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1824 Set browser window title when the activity starts. Correct name of
1825 document title variable.
1826 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1827 Set browser window title when the activity starts. Set the table
1828 selector change handler after table selector has been set. Clear the
1829 OnlineGlomView when the activity has been stopped.
1830 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1831 document title as the place token. Use "#Document:" instead of
1832 "#OnlineGlomPlace:" in the URL.
1833 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1834 Change heading to "Online Glom"
1835 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1836 document title in RPC methods.
1837 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1838 setDocumentTitle() method. Add clear() method.
1839 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1840 setDocumentTitle() method. Implement clear() method which removes the
1841 change handler on the ListBox, clears the ListBox and clears the
1843 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1844 Implement methods with document title. Keep track for the configured
1845 glom documents and their corresponding JDBC configurations in a hash
1846 table. This information is retrieved using the document title as the
1847 key in the hash table.
1848 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1849 document title field as it's no longer needed.
1851 2011-04-08 Ben Konrath <ben@bagu.org>
1853 Update the Eclipse JDT configuration.
1855 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1856 methods. Automatically add the copyright header to new files.
1858 2011-04-05 Ben Konrath <ben@bagu.org>
1860 Add new page for demo selection.
1862 This patch adds all the components required to view and start an
1863 OnlineGlom demo by clicking on the desired hyperlink. The user is
1864 able to return to the demo selection page with the browser's back
1865 button. I still need to modify the servlet to work with multiple
1866 documents so all demo links will load the file defined in the
1867 OnlineGlom.properties.
1869 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1870 This is only useful during development so we don't need to save it.
1871 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1872 get a reference to the DemoSelectionView.
1873 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1874 method to get a reference to the DemoSelectionView.
1875 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1876 default view to DemoSelectionView.
1877 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1878 to get glom document titles for glom files in a hard-coded directory.
1879 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1880 method to get glom document titles for glom files in a hard-coded
1882 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1883 Presenter for DemoSelectionView.
1884 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1885 for DemoSelectionView.
1886 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1887 Update for DemoSelectionView.
1888 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1889 Basic 'Place' implementation for the DemoSelectionView.
1890 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1891 The interface for the DemoSelectionView.
1892 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1893 The implementation of the DemoSelectionView.
1894 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1895 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1896 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1897 implementation of method to get glom document titles for glom files
1898 in a hard-coded directory.
1899 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1900 on longer being used.
1901 * src/main/webapp/glom.png: Glom logo.
1903 2011-04-05 Ben Konrath <ben@bagu.org>
1905 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1907 This is the forth and final commit of a refactor that will allow
1908 OnlineGlom to be used with multiple documents.
1910 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1911 Move RPC code from OnlineGlomViewImpl to this class.
1912 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1914 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1915 RPC code to the presenter class (the P in MVP).
1917 2011-04-04 Ben Konrath <ben@bagu.org>
1919 Start moving the existing OnlineGlom code to MVP.
1921 This work is based on the GWT MVP framework that is documented here:
1923 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1925 This is the third commit of a refactor that will allow OnlineGlom to
1926 be used with multiple documents.
1928 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1929 Interface for client factory which is used to get instances of various
1930 classes throughout the app.
1931 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1932 Implementation of client factory.
1933 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1934 initialize the MVP framework.
1935 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1936 New file. Activity manager for the main container widget. This is the
1938 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1939 Maps place (URL) to its corresponding activity.
1940 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1941 New file. This is just a place holder for a generated file.
1942 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1943 New file. Represents the URL for the main Online Glom app.
1944 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1945 for changes in LayoutListViewImpl.
1946 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1947 interface for View. Move code to OnlineGlomViewImpl class.
1948 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1949 file. Implementation of OnlineGlomView.
1950 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1951 Place resources. Use ClientFactoryImpl by default.
1953 2011-04-04 Ben Konrath <ben@bagu.org>
1955 Move View classes to their own package.
1957 This is the second commit of a refactor that will allow OnlineGlom to
1958 be used with multiple documents.
1960 * src/main/java/org/glom/web/client/OnlineGlom.java:
1961 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1962 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1964 2011-04-02 Ben Konrath <ben@bagu.org>
1966 Move UI code from the main module to its own class.
1968 This is the first commit of a refactor that will allow OnlineGlom to be
1969 used with multiple documents.
1971 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1972 references to OnlineGlom to OnlineGlomView.
1973 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1974 OnlineGlomView and instantiate it here.
1975 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1976 represents the main OnlineGlomView with one document.
1978 2011-04-01 Ben Konrath <ben@bagu.org>
1980 Fix formatting of gwt.xml and add DTD.
1982 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1984 2011-03-30 Ben Konrath <ben@bagu.org>
1986 Propperly convert gdkColor string to html colour string.
1988 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1990 2011-03-28 Ben Konrath <ben@bagu.org>
1992 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1994 This implementation matches
1995 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1996 readable and is not tied to Swig.
1998 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2000 2011-03-28 Ben Konrath <ben@bagu.org>
2002 Use read-only checkboxes for boolean field types.
2004 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2005 in the CellTable based on the field type. It currently only
2006 distinguishes between boolean and text columns but I'll need to add
2007 support for more types.
2008 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2009 column type in the ColumnInfo object. Add method to convert between the
2010 glom field type enum in ColumnInfo and the glom field type in libglom.
2011 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2013 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2014 getting and setting booleans.
2016 2011-03-25 Ben Konrath <ben@bagu.org>
2018 Don't get the Date twice from the ResultSet.
2020 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2022 2011-03-25 Ben Konrath <ben@bagu.org>
2024 Cleanup code in the servlet.
2026 * TODO: Remove item about row count. Add item about testing row count
2027 query with large number of rows.
2028 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2029 spelling mistakes, change method parameter to be consistent with
2032 2011-03-25 Ben Konrath <ben@bagu.org>
2034 Add server side logging with the gwt-log library.
2036 * .gitignore: Ignore the log file we're now producing.
2037 * TODO: Add a couple TODO item for logging.
2038 * pom.xml: Add gwt-log and log4j as a dependency.
2039 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2040 logging of errors, warnings and some important info.
2041 * src/main/resources/log4j.properties: New file to configure log4j.
2043 2011-03-24 Ben Konrath <ben@bagu.org>
2045 Add a disable button for the Details view.
2047 * src/main/java/org/glom/web/client/LayoutListView.java:
2049 2011-03-22 Ben Konrath <ben@bagu.org>
2051 Use a count query to get the number of rows for the list view pager.
2053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2055 2011-03-22 Ben Konrath <ben@bagu.org>
2057 Add more TODO information about CellTable pager positioning.
2061 2011-03-19 Ben Konrath <ben@bagu.org>
2063 Add TODO item about CellTable pager positioning.
2067 2011-03-18 Ben Konrath <ben@bagu.org>
2069 Remove unneeded GlomFieldColumn class.
2071 This is just a small code cleanup.
2073 * src/main/java/org/glom/web/client/LayoutListView.java:
2075 2011-03-18 Ben Konrath <ben@bagu.org>
2077 Use cursor mode in the query that gets data for the list view.
2079 I still need to fix the potential memory problem when getting the row
2080 count for the list view.
2082 * TODO: Add note about testing memory usage with large data sets. Add
2083 item about fixing row counting with large data sets.
2084 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2085 PostgreSQL JDBC driver into cursor mode when getting data for the
2088 2011-03-15 Ben Konrath <ben@bagu.org>
2090 Remove the GWT Container from the Eclipse build classpath.
2092 The GWT dependencies are set by Maven so this isn't needed.
2096 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2098 Added some earlier mockups to git, but not to the tarball dist.
2100 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2101 Openismus. These hopefully show how we might structure the HTML so that
2102 it can be styled easily with CSS. However, we probably need to adapt them
2103 for the CSS structure that GWT dictates for common widgets.
2105 2011-03-14 Ben Konrath <ben@bagu.org>
2107 Locate OnlineGlom.properties using the ServletContext.
2109 This is required to be able to locate the file in the deployed servlet.
2111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2112 Configure the database and glom document in in a helper method so
2113 that the ServletContext can be used to locate OnlineGlom.properties.
2114 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2115 src/main/webapp. This is the proper location for .properites files.
2117 2011-03-12 Ben Konrath <ben@bagu.org>
2119 Add note to README about why we're compiling down to obfuscated JavaScript.
2123 2011-03-11 Ben Konrath <ben@bagu.org>
2125 Use properties file to configure servlet.
2127 This allows people to change the glom file path, db username and db
2128 password without recompiling the code.
2130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2131 * src/main/webapp/OnlineGlom.properties:
2133 2011-03-11 Ben Konrath <ben@bagu.org>
2135 Use table fields in layout list view if the layout list is not defined.
2137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2138 Manually create a LayoutFieldVector for the query builder using the
2139 table fields when a layout list is not defined in the glom file.
2141 2011-03-11 Ben Konrath <ben@bagu.org>
2143 Only show FIXME string for images when there's an image.
2145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2146 in this change are some small code cleanups.
2148 2011-03-11 Ben Konrath <ben@bagu.org>
2150 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2154 2011-03-11 Ben Konrath <ben@bagu.org>
2156 Correctly set the index of the default table.
2158 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2159 Correctly set the index of the default table. Add commented out example
2162 2011-03-10 Ben Konrath <ben@bagu.org>
2164 Add comment to pom.xml about the previous change.
2166 * pom.xml: Add comment about the deployment issue so that it's obvious
2167 why java-libglom is set to the provided scope.
2169 2011-03-10 Ben Konrath <ben@bagu.org>
2171 Change java-libglom dependency from compile to provided in pom.xml.
2173 Since java-libglom uses jni it can only be loaded once and therefore
2174 must be placed in $CATALINA_HOME/lib and not included in each war.
2175 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2176 More information about this issue can be found in the Tomcat 6 release
2177 notes in the "JNI Based Applications" section:
2179 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2181 * README: Remove note about this issue. Deployment info should really
2182 be on the wiki anyway so I'll add it right now.
2183 * pom.xml: Change java-libglom dependency from compile to provided so
2184 that it's copied in to the packaged war.
2186 2011-03-09 Ben Konrath <ben@bagu.org>
2188 Change to using a neutral locale for currency, date and time formatting.
2190 This solves the problem of currency values being represented without a
2191 space between the currency code and the number (e.g. "EUR5.89" is now
2192 represented as "EUR 5.89"). More work is required when we implement
2193 a locale preference setting.
2195 * TODO: Add note about currency formatting issues with different
2197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2198 to using the neutral ROOT locale.
2200 2011-03-09 Ben Konrath <ben@bagu.org>
2202 Add support for currency codes that are not ISO 4217 codes.
2204 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2205 the currency code defined in the glom file when it's not 3 characters
2206 long or when Java doesn't recognize the string as an ISO 4217 code.
2208 2011-03-08 Ben Konrath <ben@bagu.org>
2210 Remove test classes, launch configurations and configuration.
2212 The test stuff was getting in the way when creating the war. To make
2213 the war file you can now do 'mvn clean package'. The packaged war file
2214 will be in the target directory.
2216 * .classpath: Remove unused classpathentry for tests and i18n.
2217 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2218 property. Don't run test or i18n goals when packaging the war.
2219 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2224 * OnlineGlomTest-dev.launch:
2225 * OnlineGlomTest-prod.launch:
2226 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2227 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2229 2011-03-07 Ben Konrath <ben@bagu.org>
2231 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2233 These fixes allow me to use 'mvn deploy' to create the war file.
2235 * .classpath: This generated config has been updated by Eclipse. This
2236 change was probably triggered by me updating from Eclipse 3.6.1 to
2238 * .gitignore: Add entry to ignore the directory
2239 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2240 * .project: The generated config has been updated by Eclipse. This
2241 change was probably triggered by me updating from Eclipse 3.6.1 to
2243 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2244 so that Eclipse doesn't complain
2245 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2246 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2247 'tests' directory to 'client' directory. This is the new
2248 gwt-maven-plugin convension.
2249 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2250 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2252 2011-03-07 Ben Konrath <ben@bagu.org>
2254 Add support for horizontal alignment in the LayoutList columns.
2256 * TODO: Remove item about horizontal alignment. Add item about
2257 improvements to ColumnInfo.
2258 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2259 alignment on the columns. Use ColumnInfo RPC object get the column
2260 title and horizontal alignment.
2261 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2262 LayoutListView creation with ColumnInfo RPC object.
2263 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2264 a ColumnInfo object for every LayoutList columnn. Convert the
2265 FieldFormatting.HorizontalAlignment to the correct
2266 ColumnnInfo.HorizontatlAlignment with the new
2267 getColumnInfoHorizontalAlignment helper method.
2268 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2269 to encapsulate column information like alignment and title. This
2270 could be used to set the colour instead of on a per cell field basis.
2271 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2272 column title storage and retrieval with ColumnInfo.
2274 2011-03-04 Ben Konrath <ben@bagu.org>
2276 Add support for column sorting.
2278 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2279 AsynDataProvider to be an anonymous inner class. Use new
2280 getSortedTableData RPC method when column sort is requested. Set all
2281 columns sortable and add an AsyncHandler to activate sorting in the
2283 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2284 method getSortedTableData(). Cleanup other method signatures.
2285 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2286 new method getSortedTableData(). Cleanup other method signatures.
2287 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2288 Implement getSortedTableData() and getTableData() methods by using a
2289 private helper method with the appropriate parameters filled in. Use
2290 user supplied sort clause when supplied, otherwise fall back to
2291 sorting by the primary key. Move destroy() method to be underneath
2292 constructor for readability. Cleanup comments.
2294 2011-03-03 Ben Konrath <ben@bagu.org>
2296 Add support for colour text and colour backgrounds to the layout list cells.
2298 Only the cell backgrounds are coloured which leaves a gap between the
2299 cells that isn't coloured. I need to figure out a way to set
2300 'style=background-colour:' on the whole column rather than just the
2303 * TODO: Add a note about colouring the background of the whole column.
2304 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2305 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2306 render the coloured text and backgrounds. Use GlomField[] for the row type.
2307 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2309 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2310 GlomField[] for the row type.
2311 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2312 GlomField[] for the row type. Set the text, text colour and background
2313 colour in the GlomField objects as specified in the glom document. Add
2314 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2315 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2316 the glom field text, foreground colour and background colour.
2318 2011-03-02 Ben Konrath <ben@bagu.org>
2320 Don't display hidden tables in the combo box.
2322 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2324 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2325 code to ignore hidden tables using ArrayLists for the table names and
2327 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2328 tableNames to use ArrayLists instead of String[]. Update getter and setter
2331 2011-03-01 Ben Konrath <ben@bagu.org>
2333 Add support for Date and Time number types.
2335 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2336 Implement formatting for Date and Time values. Change the default glom
2337 file to small business example.
2339 2011-03-01 Ben Konrath <ben@bagu.org>
2341 Add support for formatting glom types as specified in the glom file.
2343 Formatting isn't finished yet - I still need to add support for Date
2346 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2347 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2348 checks for null values in JDBC cleanup code and catch all exceptions
2349 instead of just SQLExceptions.
2350 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2353 2011-03-01 Ben Konrath <ben@bagu.org>
2355 Use GWT 2.2.0 instead of 2.1.1.
2357 * pom.xml: Change GWT version numbers.
2359 2011-03-01 Ben Konrath <ben@bagu.org>
2361 A few small code cleanups.
2363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2365 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2366 unnecessary object creation in constructor.
2367 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2368 unnecessary object creation in constructor.
2370 2011-02-28 Ben Konrath <ben@bagu.org>
2372 Add file for TODO list.
2376 2011-02-18 Ben Konrath <ben@bagu.org>
2378 Enable the CellTable Pager when more than 20 rows need to be viewed.
2380 The Pager will automatically become active when the results are larger
2381 than the CellTable size which is currently set to 20 lines.
2383 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2384 name on debug statment in RPC call in LayoutListDataProvider, add
2385 numRows parameter to LayoutListView constructor, propperly set rowCount
2387 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2388 name on debug statment in RPC call, use LayoutListTable object in RPC
2389 calls, pass rowCount to LayoutListView.
2390 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2391 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2393 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2394 interface for changes in OnlineGlomService.
2395 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2396 getLayoutListHeaders() to getLayoutListTable() and return
2397 LayoutListTable. Using this object allows me to pass other information
2398 about the LayoutList like the expected number of rows in the result set.
2399 The Connection object from the connection pool is now propperly closed.
2400 Only the requested number of lines are returned to the client in
2402 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2403 GlomTable and add columnTitles and numRows.
2405 2011-02-18 Ben Konrath <ben@bagu.org>
2407 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2409 This is a small performance boost. I'll use GlomTable to get the required
2410 layoutlist information.
2412 * src/main/java/org/glom/web/client/OnlineGlom.java:
2413 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2414 * src/main/java/org/glom/web/shared/GlomDocument.java:
2416 2011-02-18 Ben Konrath <ben@bagu.org>
2418 Add option to turn off formatting in JDT formatter preferences.
2420 * .settings/org.eclipse.jdt.core.prefs:
2422 2011-02-18 Ben Konrath <ben@bagu.org>
2424 Rename LayoutList to LayoutListView.
2426 I'm working towards setting things up to easily use MVP when the time
2429 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2431 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2434 2011-02-17 Ben Konrath <ben@bagu.org>
2436 Move LayoutListDataProvider class into LayoutList.java.
2438 * src/main/java/org/glom/web/client/LayoutList.java:
2440 2011-02-17 Ben Konrath <ben@bagu.org>
2442 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2444 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2446 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2447 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2448 from LibGlomServer.java.
2449 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2450 Rename from LibGlomServiceAsync.java.
2451 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2452 Rename from LibGlomServiceImpl.java.
2453 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2455 2011-02-17 Ben Konrath <ben@bagu.org>
2457 Update JDT settings.
2459 * .settings/org.eclipse.jdt.core.prefs:
2461 2011-02-17 Ben Konrath <ben@bagu.org>
2463 Move GWT-RPC objects to shared package (where they should be).
2465 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2466 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2467 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2468 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2469 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2470 org.glom.web.shared package.
2471 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2472 org.glom.web.shared package.
2473 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2474 directory in compilation to javascript.
2476 2011-02-16 Ben Konrath <ben@bagu.org>
2478 Add sort clause to the sql query that grabs table information.
2480 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2481 if one of the columns is a primary key.
2483 2011-02-16 Ben Konrath <ben@bagu.org>
2485 Disable generateAsync feature of gwt-maven.
2487 The generated interface does not correctly match the methods in LibGlomService
2488 and the generated singleton Util inner-class doesn't respect the servlet
2491 * pom.xml: Turn off generateAsync feature.
2492 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2493 with singleton Util inner-class.
2495 2011-02-14 Ben Konrath <ben@bagu.org>
2497 Add LGPL v3 licence notices.
2499 Followed directions listed here:
2500 http://www.gnu.org/licenses/gpl-howto.html
2502 * COPYING: This file is a copy of the GPL v3.
2503 * COPYING.LESSER: This file is a copy of the LGPL v3.
2504 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2506 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2508 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2510 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2512 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2514 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2516 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2519 2011-02-14 Ben Konrath <ben@bagu.org>
2521 Use ArrayList instead of Array in GWT-RPC calls.
2523 Apparently this gives a slight performance boost to the compiled
2526 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2528 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2531 2011-02-14 Ben Konrath <ben@bagu.org>
2533 Access data from a postgres db rather than the example glom file.
2535 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2536 compile down to obfuscated javascript.
2537 * pom.xml: Add c3p0 and postgres JDBC libraries.
2538 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2539 using a postgres db accessed through the c3p0 connection pooling library.
2541 2011-02-14 Ben Konrath <ben@bagu.org>
2543 Update Java formatter settings.
2545 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2547 2011-02-02 Ben Konrath <ben@bagu.org>
2549 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2551 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2553 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2554 the compiled webapp directory that Eclipse uses as we're using Maven now.
2555 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2556 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2558 * pom.xml: Format file, change target Java version to 1.6.
2560 2011-02-02 Ben Konrath <ben@bagu.org>
2562 Add information about a deployment related issue.
2564 * README: Add Notes section with the problem outlined.
2566 2011-02-02 Ben Konrath <ben@bagu.org>
2568 Call Glom.libglom_deinit() when the servlet is shutdown.
2570 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2571 Glom.libglom_deinit() to destroy() method.
2573 2011-01-28 Ben Konrath <ben@bagu.org>
2575 Use generated Util class to get the RPC Async interface.
2577 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2579 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2580 getInstance() method to get a reference to the RPC Async interface.
2581 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2582 getInstance() method to get a reference to the RPC Async interface, remove
2583 the now unused getLibGlomServiceProxy() method.
2585 2011-01-27 Ben Konrath <ben@bagu.org>
2587 Cleanup ChangeLog entry from previous commit.
2589 * ChangeLog: Group logical changes together and add comments.
2591 2011-01-25 Ben Konrath <ben@bagu.org>
2593 Convert to gwt-maven project.
2595 * .gitignore: Update for new project structure.
2596 * README: New file with a link to the online documentation.
2597 * pom.xml: The generated maven configuration file with some tweaks.
2599 Add / update Eclipse settings. These files are a merge of the files that
2600 were generated with the gwt-maven plugin and the files we were previously
2604 * .settings/.jsdtscope:
2605 * .settings/com.google.gdt.eclipse.core.prefs:
2606 * .settings/com.google.gwt.eclipse.core.prefs:
2607 * .settings/org.eclipse.jdt.core.prefs:
2608 * .settings/org.eclipse.wst.common.component:
2609 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2610 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2611 * .settings/org.maven.ide.eclipse.prefs:
2612 * OnlineGlomTest-dev.launch:
2613 * OnlineGlomTest-prod.launch:
2615 Java source files moved from the 'src' directory to the directory structure
2617 * src/main/java/org/glom/web/client/GlomDocument.java:
2618 * src/main/java/org/glom/web/client/GlomTable.java:
2619 * src/main/java/org/glom/web/client/LayoutList.java:
2620 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2621 * src/main/java/org/glom/web/client/LibGlomService.java:
2622 * src/main/java/org/glom/web/client/OnlineGlom.java:
2623 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2625 Non-functional property file used for translations. I included this as
2626 reminder that it's something I need to sort out.
2627 * src/main/resources/org/glom/web/client/Messages.properties:
2629 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2630 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2632 The servlet configuration files moved from the 'war' directory.
2633 * src/main/webapp/OnlineGlom.css:
2634 * src/main/webapp/OnlineGlom.html:
2635 * src/main/webapp/WEB-INF/web.xml:
2637 Generated test files with most of the code commented out. I included these
2638 so that it's easy to add tests when we're ready for them.
2639 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2640 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2642 2011-01-25 Ben Konrath <ben@bagu.org>
2644 Remove unused println.
2646 * src/org/glom/web/server/LibGlomServiceImpl.java:
2648 2011-01-25 Ben Konrath <ben@bagu.org>
2650 Add project specific JDT settings.
2652 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2653 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2655 2011-01-25 Ben Konrath <ben@bagu.org>
2657 Populate celltable with example data.
2659 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2660 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2661 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2662 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2663 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2664 asynchronously gets the example data.
2665 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2666 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2667 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2668 curently selected table to be retrieved by other widgets.
2669 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2670 implement getTableData() in a hacky way. This method needs to be updated
2671 to grab information from the database when database creating is
2674 2011-01-20 Ben Konrath <ben@bagu.org>
2676 Set table headers when table dropBox changes.
2678 * src/org/glom/web/client/GlomDocument.java: Correct some method
2680 * src/org/glom/web/client/LibGlomService.java: Add method
2681 to get list layout field names.
2682 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2683 to get list layout field names.
2684 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2685 widget for list layout table.
2686 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2687 the table drop box and add new updateTable() method to asynchronously
2688 get the layout list field names for the currently selected table.
2689 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2690 implementation of getLayoutListHeaders() method.
2691 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2693 2011-01-18 Ben Konrath <ben@bagu.org>
2695 Make a listBox with table titles instead of the flexTable demo.
2697 This is the start of something more useful.
2699 * .classpath: Exclude a bunch of packages from the JVM that are
2700 getting in the way of the Eclipse content assist.
2701 * src/org/glom/web/client/GlomDocument.java:
2702 * src/org/glom/web/client/GlomTable.java:
2703 * src/org/glom/web/client/LibGlomService.java:
2704 * src/org/glom/web/client/LibGlomServiceAsync.java:
2705 * src/org/glom/web/client/OnlineGlom.java:
2706 * src/org/glom/web/server/LibGlomServiceImpl.java:
2707 * war/OnlineGlom.html:
2708 * war/WEB-INF/web.xml:
2710 211-01-13 Ben Konrath <ben@bagu.org>
2712 Update to new java-libglom API.
2714 * .gitignore: Ignore OnlineGlom.war.
2715 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2717 2010-12-20 Ben Konrath <ben@bagu.org>
2719 Add some basic style to the table listing.
2721 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2722 header, print useful error message on async callback failure.
2723 * war/OnlineGlom.css: Add style for table header, remove defaults
2724 provided by the Eclipse project wizard.
2726 2010-12-20 Ben Konrath <ben@bagu.org>
2728 Load example file from installed glom dir.
2730 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2731 provided by java-libglom to find the example file.
2733 2010-12-20 Ben Konrath <ben@bagu.org>
2735 Update Eclipse settings.
2738 * .settings/com.google.gdt.eclipse.core.prefs:
2739 * .settings/com.google.gwt.eclipse.core.prefs:
2741 2010-12-17 Ben Konrath <ben@bagu.org>
2745 * .classpath: New file.
2746 * .gitignore: New file.
2747 * .project: New file.
2748 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2749 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2750 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2751 * src/org/glom/web/client/GlomTable.java: New file.
2752 * src/org/glom/web/client/OnlineGlom.java: New file.
2753 * src/org/glom/web/client/TableNameService.java: New file.
2754 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2755 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2756 * war/OnlineGlom.css: New file.
2757 * war/OnlineGlom.html: New file.
2758 * war/WEB-INF/web.xml: New file.
2759 * war/images/glom.png: New file.