1 2011-11-24 Ben Konrath <ben@bagu.org>
3 Use newly added java-libglom API to create queries.
5 This isn't finished. I still need to stop using Strings for primary key
6 values in the client code.
8 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
9 libglom to use fake connections so that retrieving the query string will
11 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
12 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
13 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
14 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
15 Use the newly added libglom sql methods and classes to create the
16 query. Add temporary hack to convert primary value strings to Gda
19 2011-11-23 Ben Konrath <ben@bagu.org>
21 Don't explicitly set the height of Portals.
23 See comments 6 - 10 of this bug for details:
25 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
27 * src/main/java/org/glom/web/client/ui/details/Portal.java:
29 2011-11-23 Ben Konrath <ben@bagu.org>
31 Use an HTML table instead of CSS for the FlowTable layout.
33 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
34 GWT's FlexTable to implement the FlowTable.
35 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
37 2011-11-18 Ben Konrath <ben@bagu.org>
39 Add boolean example to HTML table mockup.
41 * mockups/details-view-html-tables-text-entries.html:
43 2011-11-17 Ben Konrath <ben@bagu.org>
45 Ensure the pager buttons are always visible for related lists.
47 To accomplish this, I've turned off text wrapping in the list view and
48 related list tables for both the header and data text. The related list
49 table now has a fixed layout so the it doesn't overflow its container.
50 This is required to ensure that the cell text is clipped when it
51 overflows the cell and an ellipsis is added to the right side of the
52 cell when text is clipped.
54 A fixed table layout for the related list table in the details view
55 seems what we want for the details view anyway, so the side-effect is
58 The ellipsis will only be displayed in Firefox >= 7.
62 https://bugzilla.gnome.org/show_bug.cgi?id=662930
64 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
65 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
66 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
68 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
69 Set the 'table-layout: fixed' CSS property to the related list table.
70 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
71 'white-space: nowrap;' CSS property on both the list view and the
74 2011-11-16 Ben Konrath <ben@bagu.org>
76 Rework the fix for empty notebook tab labels.
78 Setting the empty group titles with its name caused problems for the
79 details layout. Instead of using libglom's
80 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
81 to the client when the title is empty. This allows the Notebook to use
82 the name when the title is empty without affecting anything else.
84 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
85 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
87 2011-11-16 Ben Konrath <ben@bagu.org>
89 Set group titles with name when title is empty.
91 This fixes a problem with an empty notebook tab label in the Lesson
92 Planner document. The forth tab in the notebook should be "Internet":
94 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
96 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
97 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
100 2011-11-16 Ben Konrath <ben@bagu.org>
102 Remove whitespace from the configured username properties.
104 This assumes that usernames won't have whitespace at the beginning
105 or end. But I think this is a reasonable assumption.
107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
108 String.trim() to remove the whitespace from the username properties.
110 2011-11-15 Ben Konrath <ben@bagu.org>
112 Add details view mockup with HTML tables and text entries.
114 This is from the attachment on this bug:
116 https://bugzilla.gnome.org/show_bug.cgi?id=663109
118 * mockups/details-view-html-tables-text-entries.html:
120 2011-11-15 Ben Konrath <ben@bagu.org>
122 Add space between the columns of the flow table.
126 https://bugzilla.gnome.org/show_bug.cgi?id=662918
128 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
129 space between columns in the flow table.
131 2011-11-15 Ben Konrath <ben@bagu.org>
133 Add backup files to the .gitignore.
135 * .gitignore: Ignore files that end with ~.
137 2011-11-09 Ben Konrath <ben@bagu.org>
139 Use latest release of gwt-log.
141 Gwt-log releases are now being submitted to the maven central
142 repository so manual installation of the jar is no longer required.
144 * pom.xml: Update version and groupId of gwt-log dependency.
146 2011-10-31 Ben Konrath <ben@bagu.org>
148 Don't use GWT numeric formatting to override the glom currency formatting.
150 Currencies are now displayed like they are in Glom. See this bug:
152 https://bugzilla.gnome.org/show_bug.cgi?id=646216
154 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
156 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
157 currency code to constructor and set it when the cell is rendered.
158 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
159 currency code to the constructor of the NumericCell.
161 2011-10-27 Ben Konrath <ben@bagu.org>
163 Require the latest release of java-libglom (1.17.4).
167 2011-10-26 Ben Konrath <ben@bagu.org>
169 Add style to Notebook that matches current theme.
171 It's not the best style in the world but it's better than the default.
173 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
174 padding at the bottom of the child widgets.
175 * src/main/webapp/style.css: Add style for the Notebook.
177 2011-10-26 Ben Konrath <ben@bagu.org>
179 Move servlet initialization code to overridden init method.
181 This is half of the solution to getting proper error messages
182 displayed when configuration errors occur. Here's the relevant bug:
184 https://bugzilla.gnome.org/show_bug.cgi?id=662792
186 The rest of the solution involves surrounding the init method with a
187 try/catch block and setting a global variable with the error /
188 exception. A new async method should be created to retrieve and display
189 the error message / exception.
191 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
192 code from constructor to init method adding exceptions as needed.
194 2011-10-26 Ben Konrath <ben@bagu.org>
196 Add script to monitor and restart tomcat if required.
198 * utils/check-and-recover-tomcat.py: New file.
200 2011-10-26 Ben Konrath <ben@bagu.org>
202 Display the correct number of data items in the pager.
206 https://bugzilla.gnome.org/show_bug.cgi?id=661441
208 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
209 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
210 The implementation is the same for both tables: Keep track of the
211 number of non-empty rows and fire and RowCountChangeEvent after the data has
213 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
214 custom Pager class that subclasses SimplePager to handle displaying
215 the correct number when empty rows have been added.
217 2011-10-26 Ben Konrath <ben@bagu.org>
219 Correct error in previous commit.
221 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
222 eventBus parameter from listView.setCellTable().
224 2011-10-26 Ben Konrath <ben@bagu.org>
226 Fix error in TODO comment.
228 * src/main/java/org/glom/web/client/activity/ListActivity.java:
230 2011-10-24 Ben Konrath <ben@bagu.org>
232 Create Notebook widgets to the details view.
234 This isn't finished just yet - I still need to create a reasonable
235 style to match the current theme.
237 * src/main/java/org/glom/web/client/Utils.java: Add method for
238 calculating the height of a widget. This is used in the Notebook class.
239 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
240 new constructor method in Group.
241 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
242 method for creating child widget that can be used by subclasses
243 like Notebook. New constructor that allows disabling the group
244 titles - Notebooks don't set a group title for their child groups.
245 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
246 to make Notebooks using GWT's TabLayoutPanel.
247 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
248 constructor that allows disabling the group titles.
249 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
250 LayoutItemNotebook DTO.
251 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
252 DTO for Notebooks. It's just an empty class for now but we might need
253 it to transfer some specific information in the future.
255 2011-10-21 Ben Konrath <ben@bagu.org>
257 Add navigation buttons to related list tables.
259 * src/main/java/org/glom/web/client/OnlineGlomService.java:
260 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
261 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
262 method getSuitableRecordToViewDetails() for getting the table name
263 and primary key value for related list navigation buttons.
264 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
265 private cell renderer class to get the navigation information for
266 related list tables from the server. Extract the navigation
267 processing code from the details cell navigation and use it for the
268 related list navigation as well.
269 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
270 cell renderer class for the details open buttons. This was needed
271 because the related list navigation buttons and the list view
272 navigation buttons need to react differently when clicked.
273 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
274 the onEnterKeyDown() method because it's now overriden in the
275 subclasses that are specific to the related list tables and the list
277 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
278 the vertical size a little because the buttons add a bit of vertical
279 space to table. This is not a perfect solution because the vertical
280 size of with table fewer than 5 rows will be a little smaller.
281 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
282 changes in how navigation buttons are handled.
283 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
284 getSuitableRecordToViewDetails() using the new RelatedListNavigation
285 database access object.
286 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
287 to find the portal for a given relationship name from
288 RelatedListDBAccess. Add method to find a primary key field for a
290 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
291 Move code to find the portal for a given relationship name to
293 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
294 New file: database access object for getting the related list
295 navigation information (the table name and the primary key value).
296 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
297 DTO for transferring a table name to navigate to and a primary key
299 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
300 boolean and getter/setter to specifies if the related list should add
303 2011-10-24 Murray Cumming <murrayc@murrayc.com>
305 Use the master branch of java-libglom
307 * pom.xml: Depend on java-libglom 1.19 instead.
309 This is the master branch. See also the libglom-1-18 branch.
311 2011-10-11 Ben Konrath <ben@bagu.org>
313 Enable the open navigation button when the data has been set.
315 This avoids having active buttons that don't do anything when the data
318 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
320 2011-10-11 Ben Konrath <ben@bagu.org>
322 Use IsWidget interface for FlowTableItem.
324 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
325 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
327 2011-10-11 Ben Konrath <ben@bagu.org>
329 Remove GWT styling from open button in details view.
331 There are still some issues with how the details cell is arranged but
332 this should be made to match Glom 1.20. I'm going to leave fixing this
333 until I have Glom 1.20 up and running.
335 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
336 style name on open button.
337 * src/main/webapp/style.css: Move and edit details-navigation class.
338 Re-arrange some classes to make them appear in the same order as the
341 2011-10-07 Ben Konrath <ben@bagu.org>
345 * .gitignore: Ignore new cache directory.
346 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
347 * pom.xml: Change GWT and maven plugin to 2.4.0.
348 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
350 * src/main/java/org/glom/web/client/ClientFactory.java:
351 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
352 * src/main/java/org/glom/web/client/OnlineGlom.java:
353 Update source for API changes.
354 * utils/build-onlineglom-war.sh: Remove cache directory before the
357 2011-10-07 Ben Konrath <ben@bagu.org>
359 Add navigation buttons in the details view.
361 This isn't finished but I thought I'd commit what I have as it's a
362 pretty good start. I still need to:
364 1. Change the style so that it fits better into the current theme
365 2. Adjust the details cell to expand as much as possible.
367 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
368 click handlers to navigation buttons in the DetailsCells. Create a
369 refreshData() method to get just the data from the server without the
371 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
372 Update the tableSelector and browser title when the table name
373 changes without using the tableSelector.
374 * src/main/java/org/glom/web/client/ui/DetailsView.java:
375 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
376 getDetailsCells() to getCells(). Update variable names.
377 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
378 method to set click handler on navigation button. Rename a few
379 variables. Add navigation buttons where needed.
380 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
381 variables and methods.
382 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
383 navigation boolean and navigation table as required in the
385 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
386 variables for navigation along with getter/setter methods.
388 2011-10-07 Ben Konrath <ben@bagu.org>
390 Rename Field to DetailsCell.
392 This is a refactor-only commit. No functionality has been added or
395 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
396 Update variable and method names.
397 * src/main/java/org/glom/web/client/ui/DetailsView.java:
398 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
399 variable and method names.
400 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
402 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
403 variable and method names.
405 2011-10-07 Ben Konrath <ben@bagu.org>
407 Create separate methods for layout and data the details view.
409 This is a refactor-only commit. No functionality has been added or
412 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
413 private methods: setData(), createLayout().
415 2011-10-07 Ben Konrath <ben@bagu.org>
417 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
419 This is part of a change to get navigation buttons in the details view
420 but it should have been done this way from the start.
422 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
423 for method name change in TableSelectionView.
424 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
425 Create TableChangeEvent and set the browser title using the
426 TableSelectionView API.
427 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
428 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
429 Change getSelectedTable() to getSelectedTableName(). Add
430 getSelectedTableTitle().
432 2011-10-07 Ben Konrath <ben@bagu.org>
434 Use primaryKeyValue naming convention in constructor of DetailsPlace.
436 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
438 2011-10-07 Ben Konrath <ben@bagu.org>
440 Update TableChangeEvent to use newTableName naming convention.
442 This makes the class more consistent with GWT naming conventions.
444 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
445 Update for method name change in TableChangeEvent.
446 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
447 for method name change in TableChangeEvent.
448 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
449 newTableName variable and getter method. Make toDebugString()
452 2011-09-30 Ben Konrath <ben@bagu.org>
454 Disable the pager in the list tables when the data row count is less than the minimum.
456 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
457 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
459 2011-09-30 Ben Konrath <ben@bagu.org>
461 Add empty rows to the end of related list and list view tables.
463 I also extracted the cell rendering classes from the ListTable because
464 the code was becoming a little crazy with all the anonymous inner
465 classes. My plan is to use these cell rendering classes in the details
466 view as well so this refactor will be needed for that change.
468 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
469 set the row count in related list tables if the data has more rows
470 than the minimum number of rows visible.
471 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
472 row count in list view tables if the data has more rows than the
473 minimum number of rows visible.
474 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
475 for rendering TYPE_BOOLEAN cells. The code was extracted from the
477 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
478 for rendering TYPE_NUMERIC cells. The code was extracted from the
480 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
481 class for rendering cells with buttons in list views. The code was
482 extracted from the ListTable class.
483 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
484 for rendering TYPE_TEXT cells. The code was extracted from the
486 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
487 Add empty rows to the end of the data if required. Implement
488 ListTable.getMinNumVisibleRows().
489 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
490 cell renderer code to public classes. Return null in
491 Column.getValue() for empty rows. Add new abstract method:
492 getMinNumVisibleRows(). Move code to set the row count of the list view
493 table to ListViewImpl.
494 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
495 empty rows to the end of the data if required. Implement
496 ListTable.getMinNumVisibleRows().
499 2011-09-27 Ben Konrath <ben@bagu.org>
501 Use GWT.log for client-side debugging statements.
503 These are optimized out when deployed so I should have used this method
504 in the first place. These statements will eventually be replaced with some sort
505 of notification in the browser.
507 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
508 * src/main/java/org/glom/web/client/activity/ListActivity.java:
509 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
510 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
511 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
513 2011-09-27 Ben Konrath <ben@bagu.org>
515 Put tableselector on the right, back to list link on right.
517 The idea is that the table selector is acting like a label for the
518 currently displayed table so it should be placed below the document title. This
519 puts the table title in a similar position to where it is in Glom.
521 * mockups/details-contacts.html:
522 * mockups/details-projects.html:
523 * mockups/listview-contacts.html:
524 * mockups/listview-projects.html:
526 Update mockups to match how the interfaces currently look.
527 * src/main/webapp/style.css: Swap positions of backlink with the table
528 selector. Add some space on the left side of the table selector to
529 line things up with the document title.
531 2011-09-27 Ben Konrath <ben@bagu.org>
533 Add field colouring to details view.
535 This change re-works how field colouring works. The colour formatting
536 information is now set to the client with the layout information instead of
537 with the data. This eliminates the need to send the same colour strings for
538 data in list view column when colour information is set.
540 In order to set an alternate colour for negative numeric values, the
541 number is now sent to client and formatted with the GWT NumberFormat class.
543 This change also fixes:
545 https://bugzilla.gnome.org/show_bug.cgi?id=659752
547 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
548 internationalization framework which is needed for client side numeric
550 * src/main/java/org/glom/web/client/Utils.java: New file for some
551 client static utility methods.
552 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
553 the DataItem object to the Field class. Use a utility method to
554 create the foreignKeyValue string.
555 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
556 alignment and text colours in the constructor. Add setData(DataItem)
557 method. Remove setText(String) method.
558 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
559 colour information to GlomTextCell. Create and use GlomNumberCell for
560 rendering numbers. Use utility method to get the string for the
561 primary key of the key provider. Re-work how the horizontal alignment
563 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
564 formatting to layout information. Methods for converting the libglom
565 formatting information were moved from DBAccess.
566 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
567 numeric formatting (it's now done on the client side). Don't set text
568 colours in DataItem. Move libglom formatting conversion methods to
570 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
571 getters/setters for text colour information.
572 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
573 for transferring the libglom NumericFormat information to the client.
574 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
575 and getters/setters for: GlomNumericFormat, background colour and
576 foreground colour strings.
578 2011-09-26 Ben Konrath <ben@bagu.org>
580 Simplify code that iterates through the LayoutGroup.
582 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
584 2011-09-26 Ben Konrath <ben@bagu.org>
586 Accept Eclipse formatting for OnlineGlomServiceAsync.
588 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
590 2011-09-26 Ben Konrath <ben@bagu.org>
592 Don't use the ListDBAccess classes to get the primary key layout information.
594 This was causing a bug where the wrong index for the hidden primary key
595 was being sent to the client.
597 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
598 primary key while creating the LayoutGroup DTO. Create a
599 LayoutItemField DTO for hidden primary keys. Don't use the
600 RelatedListDBAccess because it was only used for getting the primary
602 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
603 access modifier from public to protected for getPrimaryKeyField() and
604 getPrimaryKeyLayoutItemField().
605 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
606 abstract method getExpectedResultSize() because RelatedListDBAccess
607 doesn't have enough info to implement it.
608 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
609 Remove @Override for getExpectedResultSize().
610 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
611 Remove method getExpectedResultSize().
613 2011-09-23 Ben Konrath <ben@bagu.org>
615 Log which layout (list or details) the ignored item is from.
617 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
619 2011-09-23 Ben Konrath <ben@bagu.org>
621 Remove annotations that turn off code formatting in DataItem.
623 * src/main/java/org/glom/web/shared/DataItem.java:
625 2011-09-23 Ben Konrath <ben@bagu.org>
627 Rename GlomField to DataItem and update associated methods.
629 This is a rename-only refactor. No functionality has been added or
632 * src/main/java/org/glom/web/client/OnlineGlomService.java:
633 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
634 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
635 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
636 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
637 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
638 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
639 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
640 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
641 * src/main/java/org/glom/web/server/database/DBAccess.java:
642 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
643 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
644 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
645 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
646 * src/main/java/org/glom/web/shared/DataItem.java:
647 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
648 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
650 2011-09-23 Ben Konrath <ben@bagu.org>
652 Rename GlomDocument to DocumentInfo and update associated methods.
654 This is a rename-only refactor. No functionality has been added or
657 * src/main/java/org/glom/web/client/OnlineGlomService.java:
658 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
659 * src/main/java/org/glom/web/client/activity/ListActivity.java:
660 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
661 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
662 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
663 * src/main/java/org/glom/web/shared/DocumentInfo.java:
665 2011-09-20 Ben Konrath <ben@bagu.org>
667 Require java-libglom 1.17.3.
669 This picks up the fix for the seg fault problem with the Scenes table
670 in the Openismus Film Manager example.
674 2011-09-20 Ben Konrath <ben@bagu.org>
676 Change the way sort clause is added for primary key when no sort clause is requested.
678 The primary key is now added to the LayoutFieldVector (fieldsToGet)
679 before the sort clause is created. When a sort clause is not requested, the
680 sort clause is created by finding the primary key in the LayoutFieldVector
683 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
685 2011-09-20 Ben Konrath <ben@bagu.org>
687 Log error message if no documents are found in the configured directory.
689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
690 Extract the glom file extension string to a private static final class
691 variable (mostly as syntactic sugar). Accept a minor formatting change.
692 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
693 the example glom.document.directory configuration property to make it
694 more clear that it can any directory, not just the home directory.
696 2011-09-18 Ben Konrath <ben@bagu.org>
698 Add related lists to details view.
700 The related list table has support for paging and sorting just like the
701 table in the list view.
703 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
704 SQL queries for the related list tables.
705 * src/main/java/org/glom/web/client/OnlineGlomService.java:
706 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
707 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
708 Rename getList methods to getListView and add comments. Remove
709 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
710 it being unused. Add methods: getDetailsLayoutAndData(),
711 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
712 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
713 Create the layout and set the data for the fields in one async call
714 instead of two. Create related lists where appropriate.
715 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
716 for method name changes in OnlineGlomService.
717 * src/main/java/org/glom/web/client/ui/DetailsView.java:
718 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
719 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
721 * src/main/java/org/glom/web/client/ui/ListView.java:
722 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
723 tableName from setCellTable(). Create a ListViewTable instead of
725 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
726 represent a data field in the details view.
727 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
728 from addDetailsCell() to Field class. Keep track of the Fields and
729 Portals in the details view.
730 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
731 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
732 and add a method to get it. Add method to set the contents of the
734 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
735 New class for related list tables. This class has the data provider
736 for the related list table.
737 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
738 abstract class which is the base class for the ListViewTable and the
740 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
741 New class for list view tables. This class has the data provider for
743 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
744 methods for related list tables. Add more information to the
745 LayoutItemField and LayoutItemPortal DTOs.
746 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
747 Remove debugging print statement.
748 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
749 Remove debugging print statements. Add primary key field to SQL count
751 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
752 Remove unnecessary LayoutFieldVector parameter from
753 getResultSizeOfSQLQuery() method.
754 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
755 New class for related list table database access.
756 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
757 class that is a wrapper DTO for details view layout and data.
758 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
759 new 'fromField' string to this DTO.
760 * src/main/webapp/style.css: Remove bottom margin and override top
763 2011-09-15 Ben Konrath <ben@bagu.org>
765 Breakup the OnlineGlomServiceImpl class to make it more manageable.
767 This sets things up to make it easier to add the data retrieval for
768 related lists (portals). No user noticeable changes were made with
771 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
772 class has the code to retrieve the layouts and access the
773 database using the new database helper classes.
774 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
775 Most of the functionality has been removed from this class. This
776 class now represents the public interface for the client side
777 code. It also deals with configuring the servlet and cleaning
778 things up when the servlet is stopped.
779 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
780 of static methods into this utility class.
781 * src/main/java/org/glom/web/server/database/DBAccess.java:
782 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
783 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
784 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
785 These classes have the database retrieval code. The class hierarchy
786 has been setup to make it easy to reuse code for similar
789 2011-09-06 Ben Konrath <ben@bagu.org>
791 Create separate classes for list table code and the data provider.
793 As part of this refactor, I also split up the code a bit to make it
796 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
797 table code to two new classes (below).
798 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
799 with code from ListViewImpl.
800 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
801 New file with code from ListViewImpl.
803 2011-09-06 Ben Konrath <ben@bagu.org>
805 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
807 This fixes the LayoutItemPortal DTO to match the libglom layout object
810 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
812 2011-09-01 Ben Konrath <ben@bagu.org>
814 Set title of Portals in the Details View.
816 * pom.xml: Bump required version of java-libglom to 1.17.1.
817 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
818 widget creation to its own class. Add comments to constructor.
819 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
820 The code is mostly from the Group class with the title now set.
821 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
822 title of Portal. Update some comments. Fix some code formatting.
824 2011-09-01 Ben Konrath <ben@bagu.org>
826 Remove TODO comment for the flow table column width.
828 The flow table column width is working correctly and doesn't need to be
829 changed. See this mailing list post for more info:
831 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
833 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
835 2011-08-27 Ben Konrath <ben@bagu.org>
837 Add document title (database name) to top of the browser page.
839 I added the document title to the TableSelecitonView but that will
840 change if / when we add a view that doesn't require table selection.
842 * mockups/details-contacts.html:
843 * mockups/details-projects.html:
844 * mockups/listview-contacts.html:
845 * mockups/listview-projects.html:
846 * mockups/style.css: Add document title to mockups to keep things
848 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
849 sizes to account for the document title.
850 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
851 Set the document title when it has been retrieved from the server.
852 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
853 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
854 and implement setDocumentTitle(String) method.
855 * src/main/webapp/style.css: Add ID for document title style.
857 2011-08-25 Ben Konrath <ben@bagu.org>
859 Add NavigationType enum to LayoutItemPortal DTO.
861 This is the start of adding support for Portals to the Details View.
863 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
864 LayoutItem_Portal.navigation_type enum from libglom to
865 LayoutItemPortal.NavigationType enum.
866 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
867 NavigationType enum, field for storing the NavigationType and getter
870 2011-08-25 Ben Konrath <ben@bagu.org>
872 Implement the flow table layout in the Details View.
874 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
875 FlowTable to Group to account for the renamed class.
876 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
877 File. This is a container widget that implements the Glom details view
878 flow table behaviour.
879 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
880 org/glom/web/client/ui/FlowTable.java.
881 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
882 so that the size of the subgroups are a closer match to the size of
883 the Glom subgroups. This makes the flowtable layout match the layout
884 in Glom for the Music Collection example file.
886 2011-08-16 Ben Konrath <ben@bagu.org>
888 Create container element for LayoutItemPortal in Details View.
890 This will help me develop the layout for the FlowTable.
892 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
893 fieldPanel variable to detailsCell.
895 2011-08-15 Ben Konrath <ben@bagu.org>
897 Set the height of the data element in the Details View.
899 I changed the InlineLabels (text in a span element) to Labels (text in
900 a div element) so that I could set the height of the details-data
901 elements instead of the details-cell parent elements. This allows the
902 the details-data element to display the correct height if style is
903 applied that shows the height.
905 This change has the added benefit of allowing the order of the labels
906 and data elements to be changed for right-to-left languages.
908 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
909 InlineLabels to Labels.
910 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
911 InlineLabels to Labels. Set the height of the data element.
912 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
913 multiline text height in the Formatting DTO.
914 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
915 for multiline height along with getter and setter methods.
916 * src/main/webapp/style.css: Adjust style to account for the change
917 from span elements to div elements in the details cell.
919 2011-08-15 Ben Konrath <ben@bagu.org>
921 Make the List View appearance match the mockups.
923 It doesn't match exactly but it's much better than it was.
925 * mockups/listview-contacts.html: Remove unused css classes.
926 * mockups/listview-projects.html: Remove unused css classes.
927 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
928 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
929 for mainPanel instead of VerticalPanel (table). Set style name on
930 CellTable. Set style name on Details column. Right-align Details
932 * src/main/webapp/style.css: Adjust properties to match the mockups.
934 2011-08-12 Ben Konrath <ben@bagu.org>
936 Add better support for subgroups in the details view.
938 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
939 changed FlowTable constructor.
940 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
941 support for subgroups and subgroup-titles.
942 * src/main/webapp/style.css: Add CSS class for subgroups and
945 2011-08-12 Ben Konrath <ben@bagu.org>
947 Return the top level LayoutGroup title.
949 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
951 2011-08-11 Ben Konrath <ben@bagu.org>
953 Make the TableSelector header match the mockup.
955 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
956 the layout panel. Properly lineup the table selection header with
957 the list and details view.
958 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
959 margin around the details view.
960 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
961 Rename listBox variable to tableSelector. Set id for the style sheet.
962 Use a FlowPanel instead of a HorizontalPanel.
963 * src/main/webapp/style.css: Add properties to make the TableSelector
964 box match the mockups.
966 2011-07-13 Ben Konrath <ben@bagu.org>
968 Update install script for java-libglom version change.
970 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
973 2011-07-13 Ben Konrath <ben@bagu.org>
975 Add support sub-group in the details view.
977 I also removed the code that special-cased the default details view
980 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
982 I still have to make a proper flowtable.
984 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
985 Don't special-case default details view layout.
986 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
987 addLayoutField() as I'm going to use it.
988 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
989 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
991 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
992 extracted from DetailsViewImpl.GroupPanel. Add support for
994 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
995 column count when getting the details layout.
997 2011-07-12 Ben Konrath <ben@bagu.org>
999 Set browser title with database and table titles.
1001 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1002 Set the browser title when the table changes and when the activity
1004 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1005 title when retrieving document info (the GlomDocument object).
1006 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1007 with getter and setter methods. Remove unused convenience constructor.
1008 Use default code formatting.
1010 2011-07-12 Ben Konrath <ben@bagu.org>
1012 Ignore LayoutItemPortals in the details view.
1014 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1017 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1018 LayoutItemPortal layout objects.
1019 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1020 LayoutItemPortal objects when retrieving the details layout.
1021 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1022 file. This is an empty class and just used to get type information for
1025 2011-07-12 Ben Konrath <ben@bagu.org>
1027 Use java-libglom 1.17.0.
1031 2011-07-11 Ben Konrath <ben@bagu.org>
1033 Remove "Table:" label from table selector.
1035 This matches a recent change in the Glom UI.
1037 * mockups/details-contacts.html:
1038 * mockups/details-projects.html:
1039 * mockups/listview-contacts.html:
1040 * mockups/listview-projects.html: Remove the "Table:" label from the
1042 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1044 2011-07-11 Ben Konrath <ben@bagu.org>
1046 Add main groups to the details view.
1048 This makes things look a little nicer in the details view. The next step
1049 is to implement the flowtable.
1051 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1052 resources from the standard gwt css theme. Standard.css is now
1053 included in OnlineGlom.html so that the online glom css rules have
1054 precedence over the gwt theme.
1055 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1056 the whole LayoutGroup to the DetailsView instead of just the titles.
1057 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1058 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1059 details layout with a helper class (GroupPanel). I might extract this
1060 class when I make the full flowtable.
1061 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1062 string as default so I don't have to worry about NPEs when processing
1064 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1065 note beside OnlineGlom.gwt.xml above).
1066 * src/main/webapp/style.css: Add default font-size to body to override
1067 the font-size set by the standard theme. Don't use h2 tags for
1068 group-title. Create new details-cell class.
1070 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1072 ConfiguredDocument: Set the port number too.
1074 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1075 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1076 Glom document. Presumably this worked sometimes so far because there is a
1077 default port number.
1079 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1081 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1083 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1084 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1085 correct, though we should throw an exception too.
1087 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1089 Fix a addDocuemnt typo.
1091 * src/main/java/org/glom/web/shared/Documents.java
1092 (Documents.addDocuemnt): Rename to addDocument().
1093 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1094 (OnlineGlomServiceImpl.getDocuments): Adapt.
1096 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1098 Slightly improved log output when connection fails.
1100 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1101 (ConfiguredDocument.setUsernameAndPassword):
1102 We don't know for sure if it' the username/password that's wrong, so
1103 rephrase the message.
1104 Also ouput the exception message, though it's generic in this case.
1106 2011-07-08 Ben Konrath <ben@bagu.org>
1110 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1111 added braces to a one line if statement because the Eclipse formatter
1112 was getting confused.
1114 2011-07-07 Ben Konrath <ben@bagu.org>
1116 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1118 These should really be two separate tasks but I counldn't get things to
1119 work with GWT 2.2.0 and Eclipse 3.7.
1123 * .settings/org.eclipse.jdt.core.prefs:
1124 * .settings/org.eclipse.jdt.ui.prefs:
1125 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1126 * .settings/org.eclipse.m2e.core.prefs:
1127 Add new config files. Update current files. Remove references to the
1128 webtools plugins as we're not using any of the webtools features.
1129 * .gitignore: Add logs directory which is created when running with
1131 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1132 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1133 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1135 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1137 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1139 onlineglom.properties: Add explanatory comments.
1141 * src/main/resources/onlineglom.properties: Also change the default user
1142 from ben to someuser, to avoid the risk of people thinking we just
1143 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1145 2011-06-28 Ben Konrath <ben@bagu.org>
1147 Use filename in Log for incorrect passwords.
1149 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1150 getFileName(String) method to get the filename from the URI.
1152 2011-06-28 Ben Konrath <ben@bagu.org>
1154 Add the table name to the URL token for the ListPlace.
1156 This makes things consistent between the DetailsPlace and the
1157 ListPlace. It also allows the the ListPlace to be bookmarked.
1159 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1160 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1162 Remove getDefaultListLayout(). The default layout is now returned
1163 by the getListLayout() method when the table name is an empty string.
1164 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1165 Add table name field. Change to a new ListPlace when the table
1166 has been changed. Use getListLayout() for getting the default
1168 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1169 Add table name field. Set the correct table name in the list box
1170 when loading from bookmark. This corrects a problem for the
1172 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1173 Move table name to super-class (HasSelectableTable). Move document
1174 and table URL keys to super-class in HasSelectableTable.
1175 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1176 Add table name field. Add Tokenizer class with URL key common to
1177 the subclasses (DetailsPlace and ListPlace).
1178 * src/main/java/org/glom/web/client/place/ListPlace.java:
1179 Add table name. Add code to parse the URL token.
1180 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1181 Update ListPlace construction with empty table name string.
1182 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1183 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1184 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1185 Update ListPlace construction with table name string.
1186 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1187 Change defaultTableName field to tableName to reflect how it's now
1188 used. Update the getter and setter methods.
1190 2011-06-28 Ben Konrath <ben@bagu.org>
1192 Enable the table selector in the DetailsView.
1194 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1195 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1197 Remove getDefaultDetailsLayout(). The default layout is now returned
1198 by the getDetailsLayout() method when the table name is an empty
1200 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1201 event handler for table change event. Change to using
1202 getDetailsLayout() for the default details layout.
1203 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1205 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1206 when navigating to the details place.
1208 2011-06-27 Ben Konrath <ben@bagu.org>
1210 Use filename based unique document ID in URL and for RPC.
1212 The document ID is the glom document name with spaces (' ') replaced
1213 with pluses ('+') and without the .glom extension.
1215 This change is mostly a string substitution of 'documentTitle' for
1216 'documentID'. The only code change is the addition of a Documents DTO to get the
1217 filename to document title mappings as indicated below.
1219 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1220 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1221 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1222 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1223 Use Documents DTO to create the document links in the document
1225 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1226 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1227 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1228 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1229 * src/main/java/org/glom/web/client/place/ListPlace.java:
1230 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1231 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1232 * src/main/java/org/glom/web/client/ui/ListView.java:
1233 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1234 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1235 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1236 * src/main/java/org/glom/web/server/Log.java:
1237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1238 getDocumentTitles() to getDocuments() and return the Documents DTO.
1239 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1240 transferring the filename to document title mappings.
1242 2011-06-25 Ben Konrath <ben@bagu.org>
1244 Make the authentication popup work again.
1246 This bug was introduced when I extracted ConfiguredDocument to its own class.
1248 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1249 correct success / fail status in setUsernameAndPassword().
1251 2011-06-25 Ben Konrath <ben@bagu.org>
1253 Use filename as unique key for configuring database usernames and passwords.
1255 This replaces the use of the Glom document title which could change
1256 depending on the locale. Thanks to Murray Cumming for pointing out this
1259 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1260 * src/main/resources/onlineglom.properties:
1262 2011-06-24 Ben Konrath <ben@bagu.org>
1264 Pass primary key value to DetailsView.
1266 This enables the DetailsView to load the correct data.
1268 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1269 primary key value field and set in constructor. Pass primary key
1270 value to getDetailsData().
1271 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1272 variables for document title and primary key value.
1273 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1274 key value to the DetailsPlace.
1276 2011-06-24 Ben Konrath <ben@bagu.org>
1278 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1280 This allows the primary key to be retrieved by the Details button. This
1281 functionality has not been implemented yet but it's in the works.
1283 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1284 the LayoutGroup result to ListView.setCellTable instead of all of its
1285 fields individually.
1286 * src/main/java/org/glom/web/client/ui/ListView.java:
1287 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1288 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1289 get the primary key for the table.
1290 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1291 index of the primary key in the LayoutGroup accounting for hidden
1292 primary keys. Rename getJavaNumberFormat() to
1293 convertToJavaNumberFormat() for consistency. Cleanup / add some
1295 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1296 field for primary key index and a field to indicate whether the
1297 primary key is hidden or not.
1299 2011-06-23 Ben Konrath <ben@bagu.org>
1301 Rename getTableData methods to getListData.
1303 This is a rename refactor for consistency with other methods.
1305 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1306 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1307 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1308 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1310 2011-06-23 Ben Konrath <ben@bagu.org>
1312 Extract the ConfiguredDocument innerclass into its own class.
1314 This makes the servlet code more object oriented.
1316 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1317 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1318 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1319 new ConfiguredDocument class.
1321 2011-06-21 Ben Konrath <ben@bagu.org>
1323 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1325 This makes things more inline with how libglom works and reduces code
1326 duplication. This refactor lays the groundwork for adding the primary key to
1327 the LayoutGroup object.
1329 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1330 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1332 Change method names to getListLayout and getDefaultListLayout for
1333 consistency. Use LayoutGroup as the DTO for the list layout instead of
1334 ColumnInfo and LayoutListTable.
1335 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1336 new method names along with the LayoutGroup object for transferring the
1338 * src/main/java/org/glom/web/client/ui/ListView.java:
1339 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1340 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1341 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1343 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1344 Replaced with LayoutGroup.
1345 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1346 expectedResultSize and defaultTableName fields which are needed for
1348 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1349 type field which is needed for the list layout but will also be
1350 useful for the details layout as things progress.
1351 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1352 Make class abstract. Remove the unnecessary
1353 getFormattingHorizontalAlignment method. Add setFormatting method.
1355 2011-06-16 Ben Konrath <ben@bagu.org>
1357 Add scripts for building and installing war.
1359 These will help when updating OnlineGlom but they're also good
1360 supplemental documentation of the build and deployment proceeding.
1362 * utils/build-onlineglom-war.sh: New file.
1363 * utils/install-onlineglom-war.sh: New file.
1365 2011-06-16 Ben Konrath <ben@bagu.org>
1367 Create wrapper class to create consistent log messages.
1369 I wrapped methods in the Log class of gwt-log to add the method names
1370 from the servlet and create consistent formatting of the document title
1371 and table names in the log messages.
1373 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1374 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1375 log methods to use methods from wrapped Log class.
1377 2011-06-16 Ben Konrath <ben@bagu.org>
1379 Remove superfluous conditional return.
1381 Thanks to Murray Cumming for pointing this out!
1383 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1385 2011-06-15 Ben Konrath <ben@bagu.org>
1387 Return an ArrayList of LayoutGroups for the Details layout.
1389 This corrects a problem with the details layout as it can have more
1390 than one top level LayoutGroup.
1392 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1393 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1394 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1395 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1396 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1397 with ArrayList of LayoutGroups for the details view layout.
1398 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1399 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1400 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1401 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1402 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1403 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1405 2011-06-14 Ben Konrath <ben@bagu.org>
1407 Use cast_dynamic method to determine the libglom LayoutItem type.
1409 This is better than finding the LayoutItem type by using the string
1410 returned from the get_part_type_name() method.
1412 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1414 2011-06-14 Ben Konrath <ben@bagu.org>
1416 Add method names to log entries in the servlet.
1418 This helps when tracking down deployment problems.
1420 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1422 2011-06-14 Ben Konrath <ben@bagu.org>
1424 Add data to the DetailsView using a hard-coded primary key value.
1426 The layout and functionality of the DetailsView is not complete. This
1427 is just a checkpoint so the patch doesn't get too big.
1429 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1430 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1431 Add getDetailsData() servlet method.
1432 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1433 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1434 LayoutFields are added to the DetailsView.
1435 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1436 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1437 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1438 take the string for the title instead of the object.
1439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1440 Add implementation getDetailsData() along with some private helper
1442 * src/main/webapp/style.css: Add padding to details-data class. Add a
1443 details-label class with the same padding as the details-data class.
1445 2011-06-03 Ben Konrath <ben@bagu.org>
1447 Use presenter.goTo() to change to the DetailsPlace.
1449 This will make things easier when we need to open the DetailsView with
1450 data specific to the row that was clicked.
1452 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1454 2011-06-02 Ben Konrath <ben@bagu.org>
1456 Add CSS file from mockups.
1458 I'm adding this now because it's going to be useful to have when
1459 developing the DetailsView. The TableSelectionView and ListView aren't
1462 * src/main/webapp/OnlineGlom.html:
1463 * src/main/webapp/style.css:
1465 2011-06-02 Ben Konrath <ben@bagu.org>
1467 Use String.isEmpty() to check for empty string.
1469 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1471 2011-06-02 Ben Konrath <ben@bagu.org>
1473 Display main layout group titles in the DetailsView.
1475 This is the start of the DetailsActivity/DetailsView implementation.
1477 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1478 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1479 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1480 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1481 Get the layout information for the details view from the server and set
1482 the main layout group titles.
1483 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1484 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1485 Add addLayoutGroup() and addLayoutField() methods. This are just
1486 temporary methods for creating the the details view that will change
1488 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1489 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1491 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1492 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1493 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1494 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1495 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1496 Data Transfer Objects that mimic the libglom object structure. These are
1497 used for transferring the details layout but could also be used for
1498 transferring the list layout.
1500 2011-05-27 Ben Konrath <ben@bagu.org>
1502 Reset the AuthenticationPopup when clearing the ListView.
1504 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1506 2011-05-27 Ben Konrath <ben@bagu.org>
1508 Fix problem with onlineglom.properties file loading.
1510 The old way worked in Eclipse but not on the server. Loading the
1511 onlineglom.properties file now works in Eclipse and on the server.
1513 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1515 2011-05-24 Ben Konrath <ben@bagu.org>
1517 Update gwt-log from 3.1.0 to 3.1.2.
1519 Gwt-log 3.1.0 has been marked as depreciated.
1523 2011-05-24 Ben Konrath <ben@bagu.org>
1525 Add comment to ListActivity.goTo() method.
1527 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1529 2011-05-24 Ben Konrath <ben@bagu.org>
1531 Remove FIXME in convertGdkColorToHtmlColour()
1533 The Gdk::Color value returned by libglom is 16-bits per channel on both
1534 64 and 32-bit platforms.
1536 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1538 2011-05-19 Ben Konrath <ben@bagu.org>
1540 Improve performance of initial ListView load.
1542 I removed a round trip to the server for getting the default table name
1543 and then requesting information about that table. This also removes a potential
1544 problem with the table change handler not being setup in time to receive the
1545 table change event from the ListActivity.
1547 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1548 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1549 getDefaultLayoutListTable() method. Improve comments.
1550 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1551 getDefaultLayoutListTable() method instead of firing a table change
1552 event to get the table to load.
1553 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1554 implementation of getDefaultLayoutListTable() method.
1555 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1558 2011-05-19 Ben Konrath <ben@bagu.org>
1560 Override toDebugString() in TableChangeEvent.
1562 This is useful to have for debugging.
1564 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1566 2011-05-19 Ben Konrath <ben@bagu.org>
1568 Add a "Back to List" link when at the DetailsPlace.
1570 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1571 Populate the CellTable based on the selected table of the ListBox if
1572 it's set otherwise use the default table. This allows the "Back to
1574 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1575 Remove Place from constructors. Add a setPlace() method. Add
1576 goToPlace() method. Set class as presenter for TableSelectionView.
1577 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1578 Use the same TableSelectionActivity when switching between the List and
1580 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1581 Subclass the new HasSelectableTablePlace. This removes some duplicate
1583 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1584 New class to represent Places that display the TableSelectionView.
1585 * src/main/java/org/glom/web/client/place/ListPlace.java:
1586 Subclass the new HasSelectableTablePlace. This removes some duplicate
1588 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1589 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1590 Add Presenter interface. Add setBackLinkVisible() method. Add
1591 setBackLink() method.
1593 2011-05-18 Ben Konrath <ben@bagu.org>
1595 Enable the "Details" buttons.
1597 Right now only an empty details view is displayed.
1599 * src/main/java/org/glom/web/client/ClientFactory.java:
1600 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1601 Add DetailsView to ClientFactory.
1602 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1603 A basic activity for the details view.
1604 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1605 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1607 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1608 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1610 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1611 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1612 unnecessary super() in constructor.
1613 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1614 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1615 really shouldn't create a new TableSelectionActivity for both the ListPlace
1616 and the DetailsPlace so this should be considered a temporary solution.
1617 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1618 New file. Represents a URL for the details view.
1619 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1620 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1621 A basic details view interface and implementation.
1622 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1623 Enable the "Details" buttons.
1625 2011-05-12 Ben Konrath <ben@bagu.org>
1627 Use a LayoutPanel with multiple display areas for main layout.
1629 This is mostly a refactor in that there are no changes from the user
1630 point of view. These changes are required so that we can swap out the list view
1631 with the details view when the user clicks the "Details" button.
1633 * src/main/java/org/glom/web/client/ClientFactory.java:
1634 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1635 OnlineGlomView. Add TableSelectionView, ListView and
1636 AuthenticationPopup.
1637 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1638 for main layout. Add display regions for main activities. Add
1639 activity manager for for main activities.
1640 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1641 file from parts of the deleted OnlineGlomActivity.
1642 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1643 New file from parts of the deleted OnlineGlomActivity.
1644 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1645 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1646 New files for app wide table change event.
1647 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1648 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1649 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1650 Activity mappers for the main activities replace the deleted app-wide
1652 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1653 Fix a spelling error in he comment.
1654 * src/main/java/org/glom/web/client/ui/ListView.java:
1655 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1656 Renamed from LayoutListView and modified for MVP. This still not a
1657 proper dumb view as prescribed by the MVP pattern but it works for now.
1658 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1659 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1660 New widget stripped out of the deleted OnlineGlomView.
1661 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1662 Remove hack that is fixed by this patch.
1664 2011-05-06 Ben Konrath <ben@bagu.org>
1666 Rename OnlineGlomPlace to ListPlace.
1668 The only change besides the rename is that url will now display #list
1669 instead of #Document.
1671 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1672 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1673 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1674 * src/main/java/org/glom/web/client/place/ListPlace.java:
1675 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1677 2011-05-06 Ben Konrath <ben@bagu.org>
1679 Use Presenter for app navigation.
1681 This is the proper way to deal with Place (URL) changes with the MVP
1684 * src/main/java/org/glom/web/client/ClientFactory.java:
1685 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1686 PlaceHistoryMapper and PlaceHistoryHandler.
1687 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1688 PlaceHistoryMapper and PlaceHistoryHandler.
1689 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1690 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1691 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1692 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1693 Add Presenter interface and setPresenter methods. Rename addHyperLink
1694 to addDocumentLink taking only the document title as a parameter.
1696 2011-04-14 Ben Konrath <ben@bagu.org>
1698 Prompt for db username/password if they haven't been set.
1700 This is implemented with a popup widget that is contained within the
1701 OnlineGlomView and managed by the OnlineGlomActivity.
1703 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1704 methods for checking and setting the database username and password.
1705 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1706 new methods for checking and setting the database username and
1708 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1709 Display authentication popup if the JDBC connection to the database
1710 has not been authenticated.
1711 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1713 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1714 for dealing with the authentication popup.
1715 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1716 Implement the methods for dealing with the authentication popup.
1717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1718 try to executed queries if the database connection hasn't been
1719 authenticated. Implement methods for checking and setting the
1720 database username and password.
1722 2011-04-12 Ben Konrath <ben@bagu.org>
1724 Make log messages a little clearer.
1726 Add a dash betweeen the document title and the table name.
1728 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1730 2011-04-12 Ben Konrath <ben@bagu.org>
1732 Protect against NPEs when cleaning up database resources.
1734 While this isn't strictly necessary because the exception is caught,
1735 not protecting against the NPEs makes it harder to find the real error
1738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1740 2011-04-12 Ben Konrath <ben@bagu.org>
1742 Move configuration of the servlet to the constructor.
1744 The servlet will be initialized even if the database authentication
1745 information is not set or correct. I still need to add the UI for prompting
1746 the user for the authentication information when it's required.
1748 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1749 javadocs for getDocumentTitles() method.
1750 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1751 Set error message when RPC fails.
1752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1753 glom files directory from the configuration file. Try to set the
1754 database authentication information for the specific document if it's
1755 set and works otherwise try to use the global authentication
1756 information set for the directory.
1757 * src/main/resources/onlineglom.properties: Moved from
1758 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1759 Added detailed comments for the new keys.
1761 2011-04-11 Ben Konrath <ben@bagu.org>
1763 Remove unnecessary @Override in DocumentSelectionViewImpl.
1765 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1767 2011-04-11 Ben Konrath <ben@bagu.org>
1769 Remove center alignment in DocumentSelectionView.
1771 The title element is still centred but the document titles and bottom
1772 sentence are both left-aligned.
1774 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1776 2011-04-11 Ben Konrath <ben@bagu.org>
1778 Change 'Demo' naming convention to 'Document'.
1780 This is just a rename refactor with no functional changes to the code.
1782 * src/main/java/org/glom/web/client/ClientFactory.java:
1783 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1784 * src/main/java/org/glom/web/client/OnlineGlom.java:
1785 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1786 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1787 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1788 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1789 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1790 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1791 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1792 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1793 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1796 2011-04-08 Ben Konrath <ben@bagu.org>
1798 Remove FIXME from safeLongToInt() method.
1800 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1803 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1805 2011-04-08 Ben Konrath <ben@bagu.org>
1807 Display an error if no glom documents are found in the specified directory.
1809 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1810 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1811 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1812 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1814 2011-04-08 Ben Konrath <ben@bagu.org>
1816 Add copyright header to one more file ... oops.
1818 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1820 2011-04-08 Ben Konrath <ben@bagu.org>
1822 Add copyright header to files without it.
1824 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1825 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1826 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1827 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1828 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1829 * src/main/java/org/glom/web/shared/GlomField.java:
1831 2011-04-08 Ben Konrath <ben@bagu.org>
1833 Add support for accessing multiple glom documents in the servlet.
1835 This completes the demo selection functionality.
1837 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1838 document title to methods.
1839 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1840 document title to methods.
1841 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1842 Set browser window title when the activity starts. Correct name of
1843 document title variable.
1844 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1845 Set browser window title when the activity starts. Set the table
1846 selector change handler after table selector has been set. Clear the
1847 OnlineGlomView when the activity has been stopped.
1848 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1849 document title as the place token. Use "#Document:" instead of
1850 "#OnlineGlomPlace:" in the URL.
1851 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1852 Change heading to "Online Glom"
1853 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1854 document title in RPC methods.
1855 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1856 setDocumentTitle() method. Add clear() method.
1857 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1858 setDocumentTitle() method. Implement clear() method which removes the
1859 change handler on the ListBox, clears the ListBox and clears the
1861 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1862 Implement methods with document title. Keep track for the configured
1863 glom documents and their corresponding JDBC configurations in a hash
1864 table. This information is retrieved using the document title as the
1865 key in the hash table.
1866 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1867 document title field as it's no longer needed.
1869 2011-04-08 Ben Konrath <ben@bagu.org>
1871 Update the Eclipse JDT configuration.
1873 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1874 methods. Automatically add the copyright header to new files.
1876 2011-04-05 Ben Konrath <ben@bagu.org>
1878 Add new page for demo selection.
1880 This patch adds all the components required to view and start an
1881 OnlineGlom demo by clicking on the desired hyperlink. The user is
1882 able to return to the demo selection page with the browser's back
1883 button. I still need to modify the servlet to work with multiple
1884 documents so all demo links will load the file defined in the
1885 OnlineGlom.properties.
1887 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1888 This is only useful during development so we don't need to save it.
1889 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1890 get a reference to the DemoSelectionView.
1891 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1892 method to get a reference to the DemoSelectionView.
1893 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1894 default view to DemoSelectionView.
1895 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1896 to get glom document titles for glom files in a hard-coded directory.
1897 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1898 method to get glom document titles for glom files in a hard-coded
1900 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1901 Presenter for DemoSelectionView.
1902 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1903 for DemoSelectionView.
1904 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1905 Update for DemoSelectionView.
1906 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1907 Basic 'Place' implementation for the DemoSelectionView.
1908 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1909 The interface for the DemoSelectionView.
1910 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1911 The implementation of the DemoSelectionView.
1912 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1913 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1914 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1915 implementation of method to get glom document titles for glom files
1916 in a hard-coded directory.
1917 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1918 on longer being used.
1919 * src/main/webapp/glom.png: Glom logo.
1921 2011-04-05 Ben Konrath <ben@bagu.org>
1923 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1925 This is the forth and final commit of a refactor that will allow
1926 OnlineGlom to be used with multiple documents.
1928 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1929 Move RPC code from OnlineGlomViewImpl to this class.
1930 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1932 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1933 RPC code to the presenter class (the P in MVP).
1935 2011-04-04 Ben Konrath <ben@bagu.org>
1937 Start moving the existing OnlineGlom code to MVP.
1939 This work is based on the GWT MVP framework that is documented here:
1941 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1943 This is the third commit of a refactor that will allow OnlineGlom to
1944 be used with multiple documents.
1946 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1947 Interface for client factory which is used to get instances of various
1948 classes throughout the app.
1949 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1950 Implementation of client factory.
1951 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1952 initialize the MVP framework.
1953 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1954 New file. Activity manager for the main container widget. This is the
1956 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1957 Maps place (URL) to its corresponding activity.
1958 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1959 New file. This is just a place holder for a generated file.
1960 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1961 New file. Represents the URL for the main Online Glom app.
1962 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1963 for changes in LayoutListViewImpl.
1964 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1965 interface for View. Move code to OnlineGlomViewImpl class.
1966 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1967 file. Implementation of OnlineGlomView.
1968 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1969 Place resources. Use ClientFactoryImpl by default.
1971 2011-04-04 Ben Konrath <ben@bagu.org>
1973 Move View classes to their own package.
1975 This is the second commit of a refactor that will allow OnlineGlom to
1976 be used with multiple documents.
1978 * src/main/java/org/glom/web/client/OnlineGlom.java:
1979 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1980 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1982 2011-04-02 Ben Konrath <ben@bagu.org>
1984 Move UI code from the main module to its own class.
1986 This is the first commit of a refactor that will allow OnlineGlom to be
1987 used with multiple documents.
1989 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1990 references to OnlineGlom to OnlineGlomView.
1991 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1992 OnlineGlomView and instantiate it here.
1993 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1994 represents the main OnlineGlomView with one document.
1996 2011-04-01 Ben Konrath <ben@bagu.org>
1998 Fix formatting of gwt.xml and add DTD.
2000 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2002 2011-03-30 Ben Konrath <ben@bagu.org>
2004 Propperly convert gdkColor string to html colour string.
2006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2008 2011-03-28 Ben Konrath <ben@bagu.org>
2010 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2012 This implementation matches
2013 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2014 readable and is not tied to Swig.
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2018 2011-03-28 Ben Konrath <ben@bagu.org>
2020 Use read-only checkboxes for boolean field types.
2022 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2023 in the CellTable based on the field type. It currently only
2024 distinguishes between boolean and text columns but I'll need to add
2025 support for more types.
2026 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2027 column type in the ColumnInfo object. Add method to convert between the
2028 glom field type enum in ColumnInfo and the glom field type in libglom.
2029 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2031 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2032 getting and setting booleans.
2034 2011-03-25 Ben Konrath <ben@bagu.org>
2036 Don't get the Date twice from the ResultSet.
2038 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2040 2011-03-25 Ben Konrath <ben@bagu.org>
2042 Cleanup code in the servlet.
2044 * TODO: Remove item about row count. Add item about testing row count
2045 query with large number of rows.
2046 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2047 spelling mistakes, change method parameter to be consistent with
2050 2011-03-25 Ben Konrath <ben@bagu.org>
2052 Add server side logging with the gwt-log library.
2054 * .gitignore: Ignore the log file we're now producing.
2055 * TODO: Add a couple TODO item for logging.
2056 * pom.xml: Add gwt-log and log4j as a dependency.
2057 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2058 logging of errors, warnings and some important info.
2059 * src/main/resources/log4j.properties: New file to configure log4j.
2061 2011-03-24 Ben Konrath <ben@bagu.org>
2063 Add a disable button for the Details view.
2065 * src/main/java/org/glom/web/client/LayoutListView.java:
2067 2011-03-22 Ben Konrath <ben@bagu.org>
2069 Use a count query to get the number of rows for the list view pager.
2071 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2073 2011-03-22 Ben Konrath <ben@bagu.org>
2075 Add more TODO information about CellTable pager positioning.
2079 2011-03-19 Ben Konrath <ben@bagu.org>
2081 Add TODO item about CellTable pager positioning.
2085 2011-03-18 Ben Konrath <ben@bagu.org>
2087 Remove unneeded GlomFieldColumn class.
2089 This is just a small code cleanup.
2091 * src/main/java/org/glom/web/client/LayoutListView.java:
2093 2011-03-18 Ben Konrath <ben@bagu.org>
2095 Use cursor mode in the query that gets data for the list view.
2097 I still need to fix the potential memory problem when getting the row
2098 count for the list view.
2100 * TODO: Add note about testing memory usage with large data sets. Add
2101 item about fixing row counting with large data sets.
2102 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2103 PostgreSQL JDBC driver into cursor mode when getting data for the
2106 2011-03-15 Ben Konrath <ben@bagu.org>
2108 Remove the GWT Container from the Eclipse build classpath.
2110 The GWT dependencies are set by Maven so this isn't needed.
2114 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2116 Added some earlier mockups to git, but not to the tarball dist.
2118 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2119 Openismus. These hopefully show how we might structure the HTML so that
2120 it can be styled easily with CSS. However, we probably need to adapt them
2121 for the CSS structure that GWT dictates for common widgets.
2123 2011-03-14 Ben Konrath <ben@bagu.org>
2125 Locate OnlineGlom.properties using the ServletContext.
2127 This is required to be able to locate the file in the deployed servlet.
2129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2130 Configure the database and glom document in in a helper method so
2131 that the ServletContext can be used to locate OnlineGlom.properties.
2132 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2133 src/main/webapp. This is the proper location for .properites files.
2135 2011-03-12 Ben Konrath <ben@bagu.org>
2137 Add note to README about why we're compiling down to obfuscated JavaScript.
2141 2011-03-11 Ben Konrath <ben@bagu.org>
2143 Use properties file to configure servlet.
2145 This allows people to change the glom file path, db username and db
2146 password without recompiling the code.
2148 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2149 * src/main/webapp/OnlineGlom.properties:
2151 2011-03-11 Ben Konrath <ben@bagu.org>
2153 Use table fields in layout list view if the layout list is not defined.
2155 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2156 Manually create a LayoutFieldVector for the query builder using the
2157 table fields when a layout list is not defined in the glom file.
2159 2011-03-11 Ben Konrath <ben@bagu.org>
2161 Only show FIXME string for images when there's an image.
2163 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2164 in this change are some small code cleanups.
2166 2011-03-11 Ben Konrath <ben@bagu.org>
2168 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2170 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2172 2011-03-11 Ben Konrath <ben@bagu.org>
2174 Correctly set the index of the default table.
2176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2177 Correctly set the index of the default table. Add commented out example
2180 2011-03-10 Ben Konrath <ben@bagu.org>
2182 Add comment to pom.xml about the previous change.
2184 * pom.xml: Add comment about the deployment issue so that it's obvious
2185 why java-libglom is set to the provided scope.
2187 2011-03-10 Ben Konrath <ben@bagu.org>
2189 Change java-libglom dependency from compile to provided in pom.xml.
2191 Since java-libglom uses jni it can only be loaded once and therefore
2192 must be placed in $CATALINA_HOME/lib and not included in each war.
2193 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2194 More information about this issue can be found in the Tomcat 6 release
2195 notes in the "JNI Based Applications" section:
2197 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2199 * README: Remove note about this issue. Deployment info should really
2200 be on the wiki anyway so I'll add it right now.
2201 * pom.xml: Change java-libglom dependency from compile to provided so
2202 that it's copied in to the packaged war.
2204 2011-03-09 Ben Konrath <ben@bagu.org>
2206 Change to using a neutral locale for currency, date and time formatting.
2208 This solves the problem of currency values being represented without a
2209 space between the currency code and the number (e.g. "EUR5.89" is now
2210 represented as "EUR 5.89"). More work is required when we implement
2211 a locale preference setting.
2213 * TODO: Add note about currency formatting issues with different
2215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2216 to using the neutral ROOT locale.
2218 2011-03-09 Ben Konrath <ben@bagu.org>
2220 Add support for currency codes that are not ISO 4217 codes.
2222 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2223 the currency code defined in the glom file when it's not 3 characters
2224 long or when Java doesn't recognize the string as an ISO 4217 code.
2226 2011-03-08 Ben Konrath <ben@bagu.org>
2228 Remove test classes, launch configurations and configuration.
2230 The test stuff was getting in the way when creating the war. To make
2231 the war file you can now do 'mvn clean package'. The packaged war file
2232 will be in the target directory.
2234 * .classpath: Remove unused classpathentry for tests and i18n.
2235 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2236 property. Don't run test or i18n goals when packaging the war.
2237 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2242 * OnlineGlomTest-dev.launch:
2243 * OnlineGlomTest-prod.launch:
2244 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2245 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2247 2011-03-07 Ben Konrath <ben@bagu.org>
2249 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2251 These fixes allow me to use 'mvn deploy' to create the war file.
2253 * .classpath: This generated config has been updated by Eclipse. This
2254 change was probably triggered by me updating from Eclipse 3.6.1 to
2256 * .gitignore: Add entry to ignore the directory
2257 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2258 * .project: The generated config has been updated by Eclipse. This
2259 change was probably triggered by me updating from Eclipse 3.6.1 to
2261 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2262 so that Eclipse doesn't complain
2263 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2264 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2265 'tests' directory to 'client' directory. This is the new
2266 gwt-maven-plugin convension.
2267 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2268 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2270 2011-03-07 Ben Konrath <ben@bagu.org>
2272 Add support for horizontal alignment in the LayoutList columns.
2274 * TODO: Remove item about horizontal alignment. Add item about
2275 improvements to ColumnInfo.
2276 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2277 alignment on the columns. Use ColumnInfo RPC object get the column
2278 title and horizontal alignment.
2279 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2280 LayoutListView creation with ColumnInfo RPC object.
2281 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2282 a ColumnInfo object for every LayoutList columnn. Convert the
2283 FieldFormatting.HorizontalAlignment to the correct
2284 ColumnnInfo.HorizontatlAlignment with the new
2285 getColumnInfoHorizontalAlignment helper method.
2286 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2287 to encapsulate column information like alignment and title. This
2288 could be used to set the colour instead of on a per cell field basis.
2289 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2290 column title storage and retrieval with ColumnInfo.
2292 2011-03-04 Ben Konrath <ben@bagu.org>
2294 Add support for column sorting.
2296 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2297 AsynDataProvider to be an anonymous inner class. Use new
2298 getSortedTableData RPC method when column sort is requested. Set all
2299 columns sortable and add an AsyncHandler to activate sorting in the
2301 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2302 method getSortedTableData(). Cleanup other method signatures.
2303 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2304 new method getSortedTableData(). Cleanup other method signatures.
2305 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2306 Implement getSortedTableData() and getTableData() methods by using a
2307 private helper method with the appropriate parameters filled in. Use
2308 user supplied sort clause when supplied, otherwise fall back to
2309 sorting by the primary key. Move destroy() method to be underneath
2310 constructor for readability. Cleanup comments.
2312 2011-03-03 Ben Konrath <ben@bagu.org>
2314 Add support for colour text and colour backgrounds to the layout list cells.
2316 Only the cell backgrounds are coloured which leaves a gap between the
2317 cells that isn't coloured. I need to figure out a way to set
2318 'style=background-colour:' on the whole column rather than just the
2321 * TODO: Add a note about colouring the background of the whole column.
2322 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2323 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2324 render the coloured text and backgrounds. Use GlomField[] for the row type.
2325 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2327 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2328 GlomField[] for the row type.
2329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2330 GlomField[] for the row type. Set the text, text colour and background
2331 colour in the GlomField objects as specified in the glom document. Add
2332 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2333 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2334 the glom field text, foreground colour and background colour.
2336 2011-03-02 Ben Konrath <ben@bagu.org>
2338 Don't display hidden tables in the combo box.
2340 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2342 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2343 code to ignore hidden tables using ArrayLists for the table names and
2345 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2346 tableNames to use ArrayLists instead of String[]. Update getter and setter
2349 2011-03-01 Ben Konrath <ben@bagu.org>
2351 Add support for Date and Time number types.
2353 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2354 Implement formatting for Date and Time values. Change the default glom
2355 file to small business example.
2357 2011-03-01 Ben Konrath <ben@bagu.org>
2359 Add support for formatting glom types as specified in the glom file.
2361 Formatting isn't finished yet - I still need to add support for Date
2364 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2365 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2366 checks for null values in JDBC cleanup code and catch all exceptions
2367 instead of just SQLExceptions.
2368 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2371 2011-03-01 Ben Konrath <ben@bagu.org>
2373 Use GWT 2.2.0 instead of 2.1.1.
2375 * pom.xml: Change GWT version numbers.
2377 2011-03-01 Ben Konrath <ben@bagu.org>
2379 A few small code cleanups.
2381 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2383 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2384 unnecessary object creation in constructor.
2385 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2386 unnecessary object creation in constructor.
2388 2011-02-28 Ben Konrath <ben@bagu.org>
2390 Add file for TODO list.
2394 2011-02-18 Ben Konrath <ben@bagu.org>
2396 Enable the CellTable Pager when more than 20 rows need to be viewed.
2398 The Pager will automatically become active when the results are larger
2399 than the CellTable size which is currently set to 20 lines.
2401 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2402 name on debug statment in RPC call in LayoutListDataProvider, add
2403 numRows parameter to LayoutListView constructor, propperly set rowCount
2405 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2406 name on debug statment in RPC call, use LayoutListTable object in RPC
2407 calls, pass rowCount to LayoutListView.
2408 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2409 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2411 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2412 interface for changes in OnlineGlomService.
2413 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2414 getLayoutListHeaders() to getLayoutListTable() and return
2415 LayoutListTable. Using this object allows me to pass other information
2416 about the LayoutList like the expected number of rows in the result set.
2417 The Connection object from the connection pool is now propperly closed.
2418 Only the requested number of lines are returned to the client in
2420 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2421 GlomTable and add columnTitles and numRows.
2423 2011-02-18 Ben Konrath <ben@bagu.org>
2425 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2427 This is a small performance boost. I'll use GlomTable to get the required
2428 layoutlist information.
2430 * src/main/java/org/glom/web/client/OnlineGlom.java:
2431 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2432 * src/main/java/org/glom/web/shared/GlomDocument.java:
2434 2011-02-18 Ben Konrath <ben@bagu.org>
2436 Add option to turn off formatting in JDT formatter preferences.
2438 * .settings/org.eclipse.jdt.core.prefs:
2440 2011-02-18 Ben Konrath <ben@bagu.org>
2442 Rename LayoutList to LayoutListView.
2444 I'm working towards setting things up to easily use MVP when the time
2447 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2449 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2452 2011-02-17 Ben Konrath <ben@bagu.org>
2454 Move LayoutListDataProvider class into LayoutList.java.
2456 * src/main/java/org/glom/web/client/LayoutList.java:
2458 2011-02-17 Ben Konrath <ben@bagu.org>
2460 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2462 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2464 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2465 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2466 from LibGlomServer.java.
2467 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2468 Rename from LibGlomServiceAsync.java.
2469 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2470 Rename from LibGlomServiceImpl.java.
2471 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2473 2011-02-17 Ben Konrath <ben@bagu.org>
2475 Update JDT settings.
2477 * .settings/org.eclipse.jdt.core.prefs:
2479 2011-02-17 Ben Konrath <ben@bagu.org>
2481 Move GWT-RPC objects to shared package (where they should be).
2483 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2484 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2485 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2486 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2487 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2488 org.glom.web.shared package.
2489 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2490 org.glom.web.shared package.
2491 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2492 directory in compilation to javascript.
2494 2011-02-16 Ben Konrath <ben@bagu.org>
2496 Add sort clause to the sql query that grabs table information.
2498 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2499 if one of the columns is a primary key.
2501 2011-02-16 Ben Konrath <ben@bagu.org>
2503 Disable generateAsync feature of gwt-maven.
2505 The generated interface does not correctly match the methods in LibGlomService
2506 and the generated singleton Util inner-class doesn't respect the servlet
2509 * pom.xml: Turn off generateAsync feature.
2510 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2511 with singleton Util inner-class.
2513 2011-02-14 Ben Konrath <ben@bagu.org>
2515 Add LGPL v3 licence notices.
2517 Followed directions listed here:
2518 http://www.gnu.org/licenses/gpl-howto.html
2520 * COPYING: This file is a copy of the GPL v3.
2521 * COPYING.LESSER: This file is a copy of the LGPL v3.
2522 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2524 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2526 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2528 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2530 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2532 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2534 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2537 2011-02-14 Ben Konrath <ben@bagu.org>
2539 Use ArrayList instead of Array in GWT-RPC calls.
2541 Apparently this gives a slight performance boost to the compiled
2544 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2546 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2549 2011-02-14 Ben Konrath <ben@bagu.org>
2551 Access data from a postgres db rather than the example glom file.
2553 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2554 compile down to obfuscated javascript.
2555 * pom.xml: Add c3p0 and postgres JDBC libraries.
2556 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2557 using a postgres db accessed through the c3p0 connection pooling library.
2559 2011-02-14 Ben Konrath <ben@bagu.org>
2561 Update Java formatter settings.
2563 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2565 2011-02-02 Ben Konrath <ben@bagu.org>
2567 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2569 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2571 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2572 the compiled webapp directory that Eclipse uses as we're using Maven now.
2573 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2574 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2576 * pom.xml: Format file, change target Java version to 1.6.
2578 2011-02-02 Ben Konrath <ben@bagu.org>
2580 Add information about a deployment related issue.
2582 * README: Add Notes section with the problem outlined.
2584 2011-02-02 Ben Konrath <ben@bagu.org>
2586 Call Glom.libglom_deinit() when the servlet is shutdown.
2588 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2589 Glom.libglom_deinit() to destroy() method.
2591 2011-01-28 Ben Konrath <ben@bagu.org>
2593 Use generated Util class to get the RPC Async interface.
2595 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2597 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2598 getInstance() method to get a reference to the RPC Async interface.
2599 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2600 getInstance() method to get a reference to the RPC Async interface, remove
2601 the now unused getLibGlomServiceProxy() method.
2603 2011-01-27 Ben Konrath <ben@bagu.org>
2605 Cleanup ChangeLog entry from previous commit.
2607 * ChangeLog: Group logical changes together and add comments.
2609 2011-01-25 Ben Konrath <ben@bagu.org>
2611 Convert to gwt-maven project.
2613 * .gitignore: Update for new project structure.
2614 * README: New file with a link to the online documentation.
2615 * pom.xml: The generated maven configuration file with some tweaks.
2617 Add / update Eclipse settings. These files are a merge of the files that
2618 were generated with the gwt-maven plugin and the files we were previously
2622 * .settings/.jsdtscope:
2623 * .settings/com.google.gdt.eclipse.core.prefs:
2624 * .settings/com.google.gwt.eclipse.core.prefs:
2625 * .settings/org.eclipse.jdt.core.prefs:
2626 * .settings/org.eclipse.wst.common.component:
2627 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2628 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2629 * .settings/org.maven.ide.eclipse.prefs:
2630 * OnlineGlomTest-dev.launch:
2631 * OnlineGlomTest-prod.launch:
2633 Java source files moved from the 'src' directory to the directory structure
2635 * src/main/java/org/glom/web/client/GlomDocument.java:
2636 * src/main/java/org/glom/web/client/GlomTable.java:
2637 * src/main/java/org/glom/web/client/LayoutList.java:
2638 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2639 * src/main/java/org/glom/web/client/LibGlomService.java:
2640 * src/main/java/org/glom/web/client/OnlineGlom.java:
2641 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2643 Non-functional property file used for translations. I included this as
2644 reminder that it's something I need to sort out.
2645 * src/main/resources/org/glom/web/client/Messages.properties:
2647 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2648 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2650 The servlet configuration files moved from the 'war' directory.
2651 * src/main/webapp/OnlineGlom.css:
2652 * src/main/webapp/OnlineGlom.html:
2653 * src/main/webapp/WEB-INF/web.xml:
2655 Generated test files with most of the code commented out. I included these
2656 so that it's easy to add tests when we're ready for them.
2657 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2658 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2660 2011-01-25 Ben Konrath <ben@bagu.org>
2662 Remove unused println.
2664 * src/org/glom/web/server/LibGlomServiceImpl.java:
2666 2011-01-25 Ben Konrath <ben@bagu.org>
2668 Add project specific JDT settings.
2670 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2671 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2673 2011-01-25 Ben Konrath <ben@bagu.org>
2675 Populate celltable with example data.
2677 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2678 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2679 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2680 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2681 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2682 asynchronously gets the example data.
2683 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2684 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2685 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2686 curently selected table to be retrieved by other widgets.
2687 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2688 implement getTableData() in a hacky way. This method needs to be updated
2689 to grab information from the database when database creating is
2692 2011-01-20 Ben Konrath <ben@bagu.org>
2694 Set table headers when table dropBox changes.
2696 * src/org/glom/web/client/GlomDocument.java: Correct some method
2698 * src/org/glom/web/client/LibGlomService.java: Add method
2699 to get list layout field names.
2700 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2701 to get list layout field names.
2702 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2703 widget for list layout table.
2704 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2705 the table drop box and add new updateTable() method to asynchronously
2706 get the layout list field names for the currently selected table.
2707 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2708 implementation of getLayoutListHeaders() method.
2709 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2711 2011-01-18 Ben Konrath <ben@bagu.org>
2713 Make a listBox with table titles instead of the flexTable demo.
2715 This is the start of something more useful.
2717 * .classpath: Exclude a bunch of packages from the JVM that are
2718 getting in the way of the Eclipse content assist.
2719 * src/org/glom/web/client/GlomDocument.java:
2720 * src/org/glom/web/client/GlomTable.java:
2721 * src/org/glom/web/client/LibGlomService.java:
2722 * src/org/glom/web/client/LibGlomServiceAsync.java:
2723 * src/org/glom/web/client/OnlineGlom.java:
2724 * src/org/glom/web/server/LibGlomServiceImpl.java:
2725 * war/OnlineGlom.html:
2726 * war/WEB-INF/web.xml:
2728 211-01-13 Ben Konrath <ben@bagu.org>
2730 Update to new java-libglom API.
2732 * .gitignore: Ignore OnlineGlom.war.
2733 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2735 2010-12-20 Ben Konrath <ben@bagu.org>
2737 Add some basic style to the table listing.
2739 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2740 header, print useful error message on async callback failure.
2741 * war/OnlineGlom.css: Add style for table header, remove defaults
2742 provided by the Eclipse project wizard.
2744 2010-12-20 Ben Konrath <ben@bagu.org>
2746 Load example file from installed glom dir.
2748 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2749 provided by java-libglom to find the example file.
2751 2010-12-20 Ben Konrath <ben@bagu.org>
2753 Update Eclipse settings.
2756 * .settings/com.google.gdt.eclipse.core.prefs:
2757 * .settings/com.google.gwt.eclipse.core.prefs:
2759 2010-12-17 Ben Konrath <ben@bagu.org>
2763 * .classpath: New file.
2764 * .gitignore: New file.
2765 * .project: New file.
2766 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2767 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2768 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2769 * src/org/glom/web/client/GlomTable.java: New file.
2770 * src/org/glom/web/client/OnlineGlom.java: New file.
2771 * src/org/glom/web/client/TableNameService.java: New file.
2772 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2773 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2774 * war/OnlineGlom.css: New file.
2775 * war/OnlineGlom.html: New file.
2776 * war/WEB-INF/web.xml: New file.
2777 * war/images/glom.png: New file.