1 2011-09-15 Ben Konrath <ben@bagu.org>
3 Breakup the OnlineGlomServiceImpl class to make it more manageable.
5 This sets things up to make it easier to add the data retrieval for
6 related lists (portals). No user noticeable changes were made with
9 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
10 class has the code to retrieve the layouts and access the
11 database using the new database helper classes.
12 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
13 Most of the functionality has been removed from this class. This
14 class now represents the public interface for the client side
15 code. It also deals with configuring the servlet and cleaning
16 things up when the servlet is stopped.
17 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
18 of static methods into this utility class.
19 * src/main/java/org/glom/web/server/database/DBAccess.java:
20 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
21 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
22 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
23 These classes have the database retrieval code. The class hierarchy
24 has been setup to make it easy to reuse code for similar
27 2011-09-06 Ben Konrath <ben@bagu.org>
29 Create separate classes for list table code and the data provider.
31 As part of this refactor, I also split up the code a bit to make it
34 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
35 table code to two new classes (below).
36 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
37 with code from ListViewImpl.
38 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
39 New file with code from ListViewImpl.
41 2011-09-06 Ben Konrath <ben@bagu.org>
43 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
45 This fixes the LayoutItemPortal DTO to match the libglom layout object
48 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
50 2011-09-01 Ben Konrath <ben@bagu.org>
52 Set title of Portals in the Details View.
54 * pom.xml: Bump required version of java-libglom to 1.17.1.
55 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
56 widget creation to its own class. Add comments to constructor.
57 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
58 The code is mostly from the Group class with the title now set.
59 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
60 title of Portal. Update some comments. Fix some code formatting.
62 2011-09-01 Ben Konrath <ben@bagu.org>
64 Remove TODO comment for the flow table column width.
66 The flow table column width is working correctly and doesn't need to be
67 changed. See this mailing list post for more info:
69 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
71 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
73 2011-08-27 Ben Konrath <ben@bagu.org>
75 Add document title (database name) to top of the browser page.
77 I added the document title to the TableSelecitonView but that will
78 change if / when we add a view that doesn't require table selection.
80 * mockups/details-contacts.html:
81 * mockups/details-projects.html:
82 * mockups/listview-contacts.html:
83 * mockups/listview-projects.html:
84 * mockups/style.css: Add document title to mockups to keep things
86 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
87 sizes to account for the document title.
88 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
89 Set the document title when it has been retrieved from the server.
90 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
91 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
92 and implement setDocumentTitle(String) method.
93 * src/main/webapp/style.css: Add ID for document title style.
95 2011-08-25 Ben Konrath <ben@bagu.org>
97 Add NavigationType enum to LayoutItemPortal DTO.
99 This is the start of adding support for Portals to the Details View.
101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
102 LayoutItem_Portal.navigation_type enum from libglom to
103 LayoutItemPortal.NavigationType enum.
104 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
105 NavigationType enum, field for storing the NavigationType and getter
108 2011-08-25 Ben Konrath <ben@bagu.org>
110 Implement the flow table layout in the Details View.
112 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
113 FlowTable to Group to account for the renamed class.
114 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
115 File. This is a container widget that implements the Glom details view
116 flow table behaviour.
117 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
118 org/glom/web/client/ui/FlowTable.java.
119 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
120 so that the size of the subgroups are a closer match to the size of
121 the Glom subgroups. This makes the flowtable layout match the layout
122 in Glom for the Music Collection example file.
124 2011-08-16 Ben Konrath <ben@bagu.org>
126 Create container element for LayoutItemPortal in Details View.
128 This will help me develop the layout for the FlowTable.
130 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
131 fieldPanel variable to detailsCell.
133 2011-08-15 Ben Konrath <ben@bagu.org>
135 Set the height of the data element in the Details View.
137 I changed the InlineLabels (text in a span element) to Labels (text in
138 a div element) so that I could set the height of the details-data
139 elements instead of the details-cell parent elements. This allows the
140 the details-data element to display the correct height if style is
141 applied that shows the height.
143 This change has the added benefit of allowing the order of the labels
144 and data elements to be changed for right-to-left languages.
146 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
147 InlineLabels to Labels.
148 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
149 InlineLabels to Labels. Set the height of the data element.
150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
151 multiline text height in the Formatting DTO.
152 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
153 for multiline height along with getter and setter methods.
154 * src/main/webapp/style.css: Adjust style to account for the change
155 from span elements to div elements in the details cell.
157 2011-08-15 Ben Konrath <ben@bagu.org>
159 Make the List View appearance match the mockups.
161 It doesn't match exactly but it's much better than it was.
163 * mockups/listview-contacts.html: Remove unused css classes.
164 * mockups/listview-projects.html: Remove unused css classes.
165 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
166 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
167 for mainPanel instead of VerticalPanel (table). Set style name on
168 CellTable. Set style name on Details column. Right-align Details
170 * src/main/webapp/style.css: Adjust properties to match the mockups.
172 2011-08-12 Ben Konrath <ben@bagu.org>
174 Add better support for subgroups in the details view.
176 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
177 changed FlowTable constructor.
178 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
179 support for subgroups and subgroup-titles.
180 * src/main/webapp/style.css: Add CSS class for subgroups and
183 2011-08-12 Ben Konrath <ben@bagu.org>
185 Return the top level LayoutGroup title.
187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
189 2011-08-11 Ben Konrath <ben@bagu.org>
191 Make the TableSelector header match the mockup.
193 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
194 the layout panel. Properly lineup the table selection header with
195 the list and details view.
196 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
197 margin around the details view.
198 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
199 Rename listBox variable to tableSelector. Set id for the style sheet.
200 Use a FlowPanel instead of a HorizontalPanel.
201 * src/main/webapp/style.css: Add properties to make the TableSelector
202 box match the mockups.
204 2011-07-13 Ben Konrath <ben@bagu.org>
206 Update install script for java-libglom version change.
208 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
211 2011-07-13 Ben Konrath <ben@bagu.org>
213 Add support sub-group in the details view.
215 I also removed the code that special-cased the default details view
218 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
220 I still have to make a proper flowtable.
222 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
223 Don't special-case default details view layout.
224 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
225 addLayoutField() as I'm going to use it.
226 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
227 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
229 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
230 extracted from DetailsViewImpl.GroupPanel. Add support for
232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
233 column count when getting the details layout.
235 2011-07-12 Ben Konrath <ben@bagu.org>
237 Set browser title with database and table titles.
239 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
240 Set the browser title when the table changes and when the activity
242 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
243 title when retrieving document info (the GlomDocument object).
244 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
245 with getter and setter methods. Remove unused convenience constructor.
246 Use default code formatting.
248 2011-07-12 Ben Konrath <ben@bagu.org>
250 Ignore LayoutItemPortals in the details view.
252 I added a new DTO for the LayoutItemPortal so that I can ignore it in
255 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
256 LayoutItemPortal layout objects.
257 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
258 LayoutItemPortal objects when retrieving the details layout.
259 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
260 file. This is an empty class and just used to get type information for
263 2011-07-12 Ben Konrath <ben@bagu.org>
265 Use java-libglom 1.17.0.
269 2011-07-11 Ben Konrath <ben@bagu.org>
271 Remove "Table:" label from table selector.
273 This matches a recent change in the Glom UI.
275 * mockups/details-contacts.html:
276 * mockups/details-projects.html:
277 * mockups/listview-contacts.html:
278 * mockups/listview-projects.html: Remove the "Table:" label from the
280 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
282 2011-07-11 Ben Konrath <ben@bagu.org>
284 Add main groups to the details view.
286 This makes things look a little nicer in the details view. The next step
287 is to implement the flowtable.
289 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
290 resources from the standard gwt css theme. Standard.css is now
291 included in OnlineGlom.html so that the online glom css rules have
292 precedence over the gwt theme.
293 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
294 the whole LayoutGroup to the DetailsView instead of just the titles.
295 * src/main/java/org/glom/web/client/ui/DetailsView.java:
296 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
297 details layout with a helper class (GroupPanel). I might extract this
298 class when I make the full flowtable.
299 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
300 string as default so I don't have to worry about NPEs when processing
302 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
303 note beside OnlineGlom.gwt.xml above).
304 * src/main/webapp/style.css: Add default font-size to body to override
305 the font-size set by the standard theme. Don't use h2 tags for
306 group-title. Create new details-cell class.
308 2011-07-08 Murray Cumming <murrayc@murrayc.com>
310 ConfiguredDocument: Set the port number too.
312 * src/main/java/org/glom/web/server/ConfiguredDocument.java
313 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
314 Glom document. Presumably this worked sometimes so far because there is a
317 2011-07-08 Murray Cumming <murrayc@murrayc.com>
319 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
321 * src/main/java/org/glom/web/server/ConfiguredDocument.java
322 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
323 correct, though we should throw an exception too.
325 2011-07-08 Murray Cumming <murrayc@murrayc.com>
327 Fix a addDocuemnt typo.
329 * src/main/java/org/glom/web/shared/Documents.java
330 (Documents.addDocuemnt): Rename to addDocument().
331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
332 (OnlineGlomServiceImpl.getDocuments): Adapt.
334 2011-07-08 Murray Cumming <murrayc@murrayc.com>
336 Slightly improved log output when connection fails.
338 * src/main/java/org/glom/web/server/ConfiguredDocument.java
339 (ConfiguredDocument.setUsernameAndPassword):
340 We don't know for sure if it' the username/password that's wrong, so
341 rephrase the message.
342 Also ouput the exception message, though it's generic in this case.
344 2011-07-08 Ben Konrath <ben@bagu.org>
348 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
349 added braces to a one line if statement because the Eclipse formatter
350 was getting confused.
352 2011-07-07 Ben Konrath <ben@bagu.org>
354 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
356 These should really be two separate tasks but I counldn't get things to
357 work with GWT 2.2.0 and Eclipse 3.7.
361 * .settings/org.eclipse.jdt.core.prefs:
362 * .settings/org.eclipse.jdt.ui.prefs:
363 * .settings/org.eclipse.ltk.core.refactoring.prefs:
364 * .settings/org.eclipse.m2e.core.prefs:
365 Add new config files. Update current files. Remove references to the
366 webtools plugins as we're not using any of the webtools features.
367 * .gitignore: Add logs directory which is created when running with
369 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
370 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
371 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
373 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
375 2011-07-07 Murray Cumming <murrayc@murrayc.com>
377 onlineglom.properties: Add explanatory comments.
379 * src/main/resources/onlineglom.properties: Also change the default user
380 from ben to someuser, to avoid the risk of people thinking we just
381 stupidly hard-coded a locale path, when they see that on stderr or in a log.
383 2011-06-28 Ben Konrath <ben@bagu.org>
385 Use filename in Log for incorrect passwords.
387 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
388 getFileName(String) method to get the filename from the URI.
390 2011-06-28 Ben Konrath <ben@bagu.org>
392 Add the table name to the URL token for the ListPlace.
394 This makes things consistent between the DetailsPlace and the
395 ListPlace. It also allows the the ListPlace to be bookmarked.
397 * src/main/java/org/glom/web/client/OnlineGlomService.java:
398 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
399 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
400 Remove getDefaultListLayout(). The default layout is now returned
401 by the getListLayout() method when the table name is an empty string.
402 * src/main/java/org/glom/web/client/activity/ListActivity.java:
403 Add table name field. Change to a new ListPlace when the table
404 has been changed. Use getListLayout() for getting the default
406 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
407 Add table name field. Set the correct table name in the list box
408 when loading from bookmark. This corrects a problem for the
410 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
411 Move table name to super-class (HasSelectableTable). Move document
412 and table URL keys to super-class in HasSelectableTable.
413 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
414 Add table name field. Add Tokenizer class with URL key common to
415 the subclasses (DetailsPlace and ListPlace).
416 * src/main/java/org/glom/web/client/place/ListPlace.java:
417 Add table name. Add code to parse the URL token.
418 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
419 Update ListPlace construction with empty table name string.
420 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
421 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
422 Change setTableSelectedIndex(int) to setSelectedTableName(String).
423 Update ListPlace construction with table name string.
424 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
425 Change defaultTableName field to tableName to reflect how it's now
426 used. Update the getter and setter methods.
428 2011-06-28 Ben Konrath <ben@bagu.org>
430 Enable the table selector in the DetailsView.
432 * src/main/java/org/glom/web/client/OnlineGlomService.java:
433 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
434 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
435 Remove getDefaultDetailsLayout(). The default layout is now returned
436 by the getDetailsLayout() method when the table name is an empty
438 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
439 event handler for table change event. Change to using
440 getDetailsLayout() for the default details layout.
441 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
443 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
444 when navigating to the details place.
446 2011-06-27 Ben Konrath <ben@bagu.org>
448 Use filename based unique document ID in URL and for RPC.
450 The document ID is the glom document name with spaces (' ') replaced
451 with pluses ('+') and without the .glom extension.
453 This change is mostly a string substitution of 'documentTitle' for
454 'documentID'. The only code change is the addition of a Documents DTO to get the
455 filename to document title mappings as indicated below.
457 * src/main/java/org/glom/web/client/OnlineGlomService.java:
458 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
459 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
460 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
461 Use Documents DTO to create the document links in the document
463 * src/main/java/org/glom/web/client/activity/ListActivity.java:
464 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
465 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
466 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
467 * src/main/java/org/glom/web/client/place/ListPlace.java:
468 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
469 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
470 * src/main/java/org/glom/web/client/ui/ListView.java:
471 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
472 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
473 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
474 * src/main/java/org/glom/web/server/Log.java:
475 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
476 getDocumentTitles() to getDocuments() and return the Documents DTO.
477 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
478 transferring the filename to document title mappings.
480 2011-06-25 Ben Konrath <ben@bagu.org>
482 Make the authentication popup work again.
484 This bug was introduced when I extracted ConfiguredDocument to its own class.
486 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
487 correct success / fail status in setUsernameAndPassword().
489 2011-06-25 Ben Konrath <ben@bagu.org>
491 Use filename as unique key for configuring database usernames and passwords.
493 This replaces the use of the Glom document title which could change
494 depending on the locale. Thanks to Murray Cumming for pointing out this
497 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
498 * src/main/resources/onlineglom.properties:
500 2011-06-24 Ben Konrath <ben@bagu.org>
502 Pass primary key value to DetailsView.
504 This enables the DetailsView to load the correct data.
506 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
507 primary key value field and set in constructor. Pass primary key
508 value to getDetailsData().
509 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
510 variables for document title and primary key value.
511 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
512 key value to the DetailsPlace.
514 2011-06-24 Ben Konrath <ben@bagu.org>
516 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
518 This allows the primary key to be retrieved by the Details button. This
519 functionality has not been implemented yet but it's in the works.
521 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
522 the LayoutGroup result to ListView.setCellTable instead of all of its
524 * src/main/java/org/glom/web/client/ui/ListView.java:
525 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
526 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
527 get the primary key for the table.
528 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
529 index of the primary key in the LayoutGroup accounting for hidden
530 primary keys. Rename getJavaNumberFormat() to
531 convertToJavaNumberFormat() for consistency. Cleanup / add some
533 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
534 field for primary key index and a field to indicate whether the
535 primary key is hidden or not.
537 2011-06-23 Ben Konrath <ben@bagu.org>
539 Rename getTableData methods to getListData.
541 This is a rename refactor for consistency with other methods.
543 * src/main/java/org/glom/web/client/OnlineGlomService.java:
544 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
545 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
548 2011-06-23 Ben Konrath <ben@bagu.org>
550 Extract the ConfiguredDocument innerclass into its own class.
552 This makes the servlet code more object oriented.
554 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
555 from private ConfiguredDocument class in OnlineGlomServiceImpl.
556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
557 new ConfiguredDocument class.
559 2011-06-21 Ben Konrath <ben@bagu.org>
561 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
563 This makes things more inline with how libglom works and reduces code
564 duplication. This refactor lays the groundwork for adding the primary key to
565 the LayoutGroup object.
567 * src/main/java/org/glom/web/client/OnlineGlomService.java:
568 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
569 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
570 Change method names to getListLayout and getDefaultListLayout for
571 consistency. Use LayoutGroup as the DTO for the list layout instead of
572 ColumnInfo and LayoutListTable.
573 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
574 new method names along with the LayoutGroup object for transferring the
576 * src/main/java/org/glom/web/client/ui/ListView.java:
577 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
578 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
579 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
581 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
582 Replaced with LayoutGroup.
583 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
584 expectedResultSize and defaultTableName fields which are needed for
586 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
587 type field which is needed for the list layout but will also be
588 useful for the details layout as things progress.
589 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
590 Make class abstract. Remove the unnecessary
591 getFormattingHorizontalAlignment method. Add setFormatting method.
593 2011-06-16 Ben Konrath <ben@bagu.org>
595 Add scripts for building and installing war.
597 These will help when updating OnlineGlom but they're also good
598 supplemental documentation of the build and deployment proceeding.
600 * utils/build-onlineglom-war.sh: New file.
601 * utils/install-onlineglom-war.sh: New file.
603 2011-06-16 Ben Konrath <ben@bagu.org>
605 Create wrapper class to create consistent log messages.
607 I wrapped methods in the Log class of gwt-log to add the method names
608 from the servlet and create consistent formatting of the document title
609 and table names in the log messages.
611 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
612 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
613 log methods to use methods from wrapped Log class.
615 2011-06-16 Ben Konrath <ben@bagu.org>
617 Remove superfluous conditional return.
619 Thanks to Murray Cumming for pointing this out!
621 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
623 2011-06-15 Ben Konrath <ben@bagu.org>
625 Return an ArrayList of LayoutGroups for the Details layout.
627 This corrects a problem with the details layout as it can have more
628 than one top level LayoutGroup.
630 * src/main/java/org/glom/web/client/OnlineGlomService.java:
631 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
632 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
633 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
634 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
635 with ArrayList of LayoutGroups for the details view layout.
636 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
637 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
638 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
639 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
640 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
641 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
643 2011-06-14 Ben Konrath <ben@bagu.org>
645 Use cast_dynamic method to determine the libglom LayoutItem type.
647 This is better than finding the LayoutItem type by using the string
648 returned from the get_part_type_name() method.
650 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
652 2011-06-14 Ben Konrath <ben@bagu.org>
654 Add method names to log entries in the servlet.
656 This helps when tracking down deployment problems.
658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
660 2011-06-14 Ben Konrath <ben@bagu.org>
662 Add data to the DetailsView using a hard-coded primary key value.
664 The layout and functionality of the DetailsView is not complete. This
665 is just a checkpoint so the patch doesn't get too big.
667 * src/main/java/org/glom/web/client/OnlineGlomService.java:
668 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
669 Add getDetailsData() servlet method.
670 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
671 Add RPC to getDetailsData(). Change the way the LayoutGroups and
672 LayoutFields are added to the DetailsView.
673 * src/main/java/org/glom/web/client/ui/DetailsView.java:
674 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
675 Add setData() method. Change addLayoutGroup() and addLayoutField() to
676 take the string for the title instead of the object.
677 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
678 Add implementation getDetailsData() along with some private helper
680 * src/main/webapp/style.css: Add padding to details-data class. Add a
681 details-label class with the same padding as the details-data class.
683 2011-06-03 Ben Konrath <ben@bagu.org>
685 Use presenter.goTo() to change to the DetailsPlace.
687 This will make things easier when we need to open the DetailsView with
688 data specific to the row that was clicked.
690 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
692 2011-06-02 Ben Konrath <ben@bagu.org>
694 Add CSS file from mockups.
696 I'm adding this now because it's going to be useful to have when
697 developing the DetailsView. The TableSelectionView and ListView aren't
700 * src/main/webapp/OnlineGlom.html:
701 * src/main/webapp/style.css:
703 2011-06-02 Ben Konrath <ben@bagu.org>
705 Use String.isEmpty() to check for empty string.
707 * src/main/java/org/glom/web/client/activity/ListActivity.java:
709 2011-06-02 Ben Konrath <ben@bagu.org>
711 Display main layout group titles in the DetailsView.
713 This is the start of the DetailsActivity/DetailsView implementation.
715 * src/main/java/org/glom/web/client/OnlineGlomService.java:
716 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
717 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
718 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
719 Get the layout information for the details view from the server and set
720 the main layout group titles.
721 * src/main/java/org/glom/web/client/ui/DetailsView.java:
722 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
723 Add addLayoutGroup() and addLayoutField() methods. This are just
724 temporary methods for creating the the details view that will change
726 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
727 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
729 * src/main/java/org/glom/web/shared/layout/Formatting.java:
730 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
731 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
732 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
733 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
734 Data Transfer Objects that mimic the libglom object structure. These are
735 used for transferring the details layout but could also be used for
736 transferring the list layout.
738 2011-05-27 Ben Konrath <ben@bagu.org>
740 Reset the AuthenticationPopup when clearing the ListView.
742 * src/main/java/org/glom/web/client/activity/ListActivity.java:
744 2011-05-27 Ben Konrath <ben@bagu.org>
746 Fix problem with onlineglom.properties file loading.
748 The old way worked in Eclipse but not on the server. Loading the
749 onlineglom.properties file now works in Eclipse and on the server.
751 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
753 2011-05-24 Ben Konrath <ben@bagu.org>
755 Update gwt-log from 3.1.0 to 3.1.2.
757 Gwt-log 3.1.0 has been marked as depreciated.
761 2011-05-24 Ben Konrath <ben@bagu.org>
763 Add comment to ListActivity.goTo() method.
765 * src/main/java/org/glom/web/client/activity/ListActivity.java:
767 2011-05-24 Ben Konrath <ben@bagu.org>
769 Remove FIXME in convertGdkColorToHtmlColour()
771 The Gdk::Color value returned by libglom is 16-bits per channel on both
772 64 and 32-bit platforms.
774 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
776 2011-05-19 Ben Konrath <ben@bagu.org>
778 Improve performance of initial ListView load.
780 I removed a round trip to the server for getting the default table name
781 and then requesting information about that table. This also removes a potential
782 problem with the table change handler not being setup in time to receive the
783 table change event from the ListActivity.
785 * src/main/java/org/glom/web/client/OnlineGlomService.java:
786 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
787 getDefaultLayoutListTable() method. Improve comments.
788 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
789 getDefaultLayoutListTable() method instead of firing a table change
790 event to get the table to load.
791 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
792 implementation of getDefaultLayoutListTable() method.
793 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
796 2011-05-19 Ben Konrath <ben@bagu.org>
798 Override toDebugString() in TableChangeEvent.
800 This is useful to have for debugging.
802 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
804 2011-05-19 Ben Konrath <ben@bagu.org>
806 Add a "Back to List" link when at the DetailsPlace.
808 * src/main/java/org/glom/web/client/activity/ListActivity.java:
809 Populate the CellTable based on the selected table of the ListBox if
810 it's set otherwise use the default table. This allows the "Back to
812 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
813 Remove Place from constructors. Add a setPlace() method. Add
814 goToPlace() method. Set class as presenter for TableSelectionView.
815 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
816 Use the same TableSelectionActivity when switching between the List and
818 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
819 Subclass the new HasSelectableTablePlace. This removes some duplicate
821 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
822 New class to represent Places that display the TableSelectionView.
823 * src/main/java/org/glom/web/client/place/ListPlace.java:
824 Subclass the new HasSelectableTablePlace. This removes some duplicate
826 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
827 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
828 Add Presenter interface. Add setBackLinkVisible() method. Add
829 setBackLink() method.
831 2011-05-18 Ben Konrath <ben@bagu.org>
833 Enable the "Details" buttons.
835 Right now only an empty details view is displayed.
837 * src/main/java/org/glom/web/client/ClientFactory.java:
838 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
839 Add DetailsView to ClientFactory.
840 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
841 A basic activity for the details view.
842 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
843 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
845 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
846 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
848 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
849 Create a new DetailsActivity when a DetailsPlace is requested. Remove
850 unnecessary super() in constructor.
851 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
852 Create a new TableSelectionActivity when a DetailsPlace is requested. We
853 really shouldn't create a new TableSelectionActivity for both the ListPlace
854 and the DetailsPlace so this should be considered a temporary solution.
855 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
856 New file. Represents a URL for the details view.
857 * src/main/java/org/glom/web/client/ui/DetailsView.java:
858 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
859 A basic details view interface and implementation.
860 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
861 Enable the "Details" buttons.
863 2011-05-12 Ben Konrath <ben@bagu.org>
865 Use a LayoutPanel with multiple display areas for main layout.
867 This is mostly a refactor in that there are no changes from the user
868 point of view. These changes are required so that we can swap out the list view
869 with the details view when the user clicks the "Details" button.
871 * src/main/java/org/glom/web/client/ClientFactory.java:
872 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
873 OnlineGlomView. Add TableSelectionView, ListView and
875 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
876 for main layout. Add display regions for main activities. Add
877 activity manager for for main activities.
878 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
879 file from parts of the deleted OnlineGlomActivity.
880 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
881 New file from parts of the deleted OnlineGlomActivity.
882 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
883 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
884 New files for app wide table change event.
885 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
886 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
887 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
888 Activity mappers for the main activities replace the deleted app-wide
890 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
891 Fix a spelling error in he comment.
892 * src/main/java/org/glom/web/client/ui/ListView.java:
893 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
894 Renamed from LayoutListView and modified for MVP. This still not a
895 proper dumb view as prescribed by the MVP pattern but it works for now.
896 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
897 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
898 New widget stripped out of the deleted OnlineGlomView.
899 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
900 Remove hack that is fixed by this patch.
902 2011-05-06 Ben Konrath <ben@bagu.org>
904 Rename OnlineGlomPlace to ListPlace.
906 The only change besides the rename is that url will now display #list
907 instead of #Document.
909 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
910 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
911 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
912 * src/main/java/org/glom/web/client/place/ListPlace.java:
913 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
915 2011-05-06 Ben Konrath <ben@bagu.org>
917 Use Presenter for app navigation.
919 This is the proper way to deal with Place (URL) changes with the MVP
922 * src/main/java/org/glom/web/client/ClientFactory.java:
923 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
924 PlaceHistoryMapper and PlaceHistoryHandler.
925 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
926 PlaceHistoryMapper and PlaceHistoryHandler.
927 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
928 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
929 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
930 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
931 Add Presenter interface and setPresenter methods. Rename addHyperLink
932 to addDocumentLink taking only the document title as a parameter.
934 2011-04-14 Ben Konrath <ben@bagu.org>
936 Prompt for db username/password if they haven't been set.
938 This is implemented with a popup widget that is contained within the
939 OnlineGlomView and managed by the OnlineGlomActivity.
941 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
942 methods for checking and setting the database username and password.
943 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
944 new methods for checking and setting the database username and
946 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
947 Display authentication popup if the JDBC connection to the database
948 has not been authenticated.
949 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
951 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
952 for dealing with the authentication popup.
953 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
954 Implement the methods for dealing with the authentication popup.
955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
956 try to executed queries if the database connection hasn't been
957 authenticated. Implement methods for checking and setting the
958 database username and password.
960 2011-04-12 Ben Konrath <ben@bagu.org>
962 Make log messages a little clearer.
964 Add a dash betweeen the document title and the table name.
966 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
968 2011-04-12 Ben Konrath <ben@bagu.org>
970 Protect against NPEs when cleaning up database resources.
972 While this isn't strictly necessary because the exception is caught,
973 not protecting against the NPEs makes it harder to find the real error
976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
978 2011-04-12 Ben Konrath <ben@bagu.org>
980 Move configuration of the servlet to the constructor.
982 The servlet will be initialized even if the database authentication
983 information is not set or correct. I still need to add the UI for prompting
984 the user for the authentication information when it's required.
986 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
987 javadocs for getDocumentTitles() method.
988 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
989 Set error message when RPC fails.
990 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
991 glom files directory from the configuration file. Try to set the
992 database authentication information for the specific document if it's
993 set and works otherwise try to use the global authentication
994 information set for the directory.
995 * src/main/resources/onlineglom.properties: Moved from
996 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
997 Added detailed comments for the new keys.
999 2011-04-11 Ben Konrath <ben@bagu.org>
1001 Remove unnecessary @Override in DocumentSelectionViewImpl.
1003 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1005 2011-04-11 Ben Konrath <ben@bagu.org>
1007 Remove center alignment in DocumentSelectionView.
1009 The title element is still centred but the document titles and bottom
1010 sentence are both left-aligned.
1012 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1014 2011-04-11 Ben Konrath <ben@bagu.org>
1016 Change 'Demo' naming convention to 'Document'.
1018 This is just a rename refactor with no functional changes to the code.
1020 * src/main/java/org/glom/web/client/ClientFactory.java:
1021 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1022 * src/main/java/org/glom/web/client/OnlineGlom.java:
1023 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1024 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1025 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1026 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1027 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1028 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1029 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1030 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1031 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1032 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1034 2011-04-08 Ben Konrath <ben@bagu.org>
1036 Remove FIXME from safeLongToInt() method.
1038 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1041 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1043 2011-04-08 Ben Konrath <ben@bagu.org>
1045 Display an error if no glom documents are found in the specified directory.
1047 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1048 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1049 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1050 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1052 2011-04-08 Ben Konrath <ben@bagu.org>
1054 Add copyright header to one more file ... oops.
1056 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1058 2011-04-08 Ben Konrath <ben@bagu.org>
1060 Add copyright header to files without it.
1062 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1063 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1064 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1065 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1066 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1067 * src/main/java/org/glom/web/shared/GlomField.java:
1069 2011-04-08 Ben Konrath <ben@bagu.org>
1071 Add support for accessing multiple glom documents in the servlet.
1073 This completes the demo selection functionality.
1075 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1076 document title to methods.
1077 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1078 document title to methods.
1079 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1080 Set browser window title when the activity starts. Correct name of
1081 document title variable.
1082 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1083 Set browser window title when the activity starts. Set the table
1084 selector change handler after table selector has been set. Clear the
1085 OnlineGlomView when the activity has been stopped.
1086 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1087 document title as the place token. Use "#Document:" instead of
1088 "#OnlineGlomPlace:" in the URL.
1089 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1090 Change heading to "Online Glom"
1091 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1092 document title in RPC methods.
1093 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1094 setDocumentTitle() method. Add clear() method.
1095 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1096 setDocumentTitle() method. Implement clear() method which removes the
1097 change handler on the ListBox, clears the ListBox and clears the
1099 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1100 Implement methods with document title. Keep track for the configured
1101 glom documents and their corresponding JDBC configurations in a hash
1102 table. This information is retrieved using the document title as the
1103 key in the hash table.
1104 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1105 document title field as it's no longer needed.
1107 2011-04-08 Ben Konrath <ben@bagu.org>
1109 Update the Eclipse JDT configuration.
1111 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1112 methods. Automatically add the copyright header to new files.
1114 2011-04-05 Ben Konrath <ben@bagu.org>
1116 Add new page for demo selection.
1118 This patch adds all the components required to view and start an
1119 OnlineGlom demo by clicking on the desired hyperlink. The user is
1120 able to return to the demo selection page with the browser's back
1121 button. I still need to modify the servlet to work with multiple
1122 documents so all demo links will load the file defined in the
1123 OnlineGlom.properties.
1125 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1126 This is only useful during development so we don't need to save it.
1127 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1128 get a reference to the DemoSelectionView.
1129 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1130 method to get a reference to the DemoSelectionView.
1131 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1132 default view to DemoSelectionView.
1133 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1134 to get glom document titles for glom files in a hard-coded directory.
1135 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1136 method to get glom document titles for glom files in a hard-coded
1138 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1139 Presenter for DemoSelectionView.
1140 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1141 for DemoSelectionView.
1142 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1143 Update for DemoSelectionView.
1144 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1145 Basic 'Place' implementation for the DemoSelectionView.
1146 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1147 The interface for the DemoSelectionView.
1148 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1149 The implementation of the DemoSelectionView.
1150 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1151 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1153 implementation of method to get glom document titles for glom files
1154 in a hard-coded directory.
1155 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1156 on longer being used.
1157 * src/main/webapp/glom.png: Glom logo.
1159 2011-04-05 Ben Konrath <ben@bagu.org>
1161 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1163 This is the forth and final commit of a refactor that will allow
1164 OnlineGlom to be used with multiple documents.
1166 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1167 Move RPC code from OnlineGlomViewImpl to this class.
1168 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1170 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1171 RPC code to the presenter class (the P in MVP).
1173 2011-04-04 Ben Konrath <ben@bagu.org>
1175 Start moving the existing OnlineGlom code to MVP.
1177 This work is based on the GWT MVP framework that is documented here:
1179 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1181 This is the third commit of a refactor that will allow OnlineGlom to
1182 be used with multiple documents.
1184 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1185 Interface for client factory which is used to get instances of various
1186 classes throughout the app.
1187 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1188 Implementation of client factory.
1189 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1190 initialize the MVP framework.
1191 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1192 New file. Activity manager for the main container widget. This is the
1194 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1195 Maps place (URL) to its corresponding activity.
1196 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1197 New file. This is just a place holder for a generated file.
1198 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1199 New file. Represents the URL for the main Online Glom app.
1200 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1201 for changes in LayoutListViewImpl.
1202 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1203 interface for View. Move code to OnlineGlomViewImpl class.
1204 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1205 file. Implementation of OnlineGlomView.
1206 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1207 Place resources. Use ClientFactoryImpl by default.
1209 2011-04-04 Ben Konrath <ben@bagu.org>
1211 Move View classes to their own package.
1213 This is the second commit of a refactor that will allow OnlineGlom to
1214 be used with multiple documents.
1216 * src/main/java/org/glom/web/client/OnlineGlom.java:
1217 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1218 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1220 2011-04-02 Ben Konrath <ben@bagu.org>
1222 Move UI code from the main module to its own class.
1224 This is the first commit of a refactor that will allow OnlineGlom to be
1225 used with multiple documents.
1227 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1228 references to OnlineGlom to OnlineGlomView.
1229 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1230 OnlineGlomView and instantiate it here.
1231 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1232 represents the main OnlineGlomView with one document.
1234 2011-04-01 Ben Konrath <ben@bagu.org>
1236 Fix formatting of gwt.xml and add DTD.
1238 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1240 2011-03-30 Ben Konrath <ben@bagu.org>
1242 Propperly convert gdkColor string to html colour string.
1244 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1246 2011-03-28 Ben Konrath <ben@bagu.org>
1248 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1250 This implementation matches
1251 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1252 readable and is not tied to Swig.
1254 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1256 2011-03-28 Ben Konrath <ben@bagu.org>
1258 Use read-only checkboxes for boolean field types.
1260 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1261 in the CellTable based on the field type. It currently only
1262 distinguishes between boolean and text columns but I'll need to add
1263 support for more types.
1264 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1265 column type in the ColumnInfo object. Add method to convert between the
1266 glom field type enum in ColumnInfo and the glom field type in libglom.
1267 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1269 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1270 getting and setting booleans.
1272 2011-03-25 Ben Konrath <ben@bagu.org>
1274 Don't get the Date twice from the ResultSet.
1276 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1278 2011-03-25 Ben Konrath <ben@bagu.org>
1280 Cleanup code in the servlet.
1282 * TODO: Remove item about row count. Add item about testing row count
1283 query with large number of rows.
1284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1285 spelling mistakes, change method parameter to be consistent with
1288 2011-03-25 Ben Konrath <ben@bagu.org>
1290 Add server side logging with the gwt-log library.
1292 * .gitignore: Ignore the log file we're now producing.
1293 * TODO: Add a couple TODO item for logging.
1294 * pom.xml: Add gwt-log and log4j as a dependency.
1295 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1296 logging of errors, warnings and some important info.
1297 * src/main/resources/log4j.properties: New file to configure log4j.
1299 2011-03-24 Ben Konrath <ben@bagu.org>
1301 Add a disable button for the Details view.
1303 * src/main/java/org/glom/web/client/LayoutListView.java:
1305 2011-03-22 Ben Konrath <ben@bagu.org>
1307 Use a count query to get the number of rows for the list view pager.
1309 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1311 2011-03-22 Ben Konrath <ben@bagu.org>
1313 Add more TODO information about CellTable pager positioning.
1317 2011-03-19 Ben Konrath <ben@bagu.org>
1319 Add TODO item about CellTable pager positioning.
1323 2011-03-18 Ben Konrath <ben@bagu.org>
1325 Remove unneeded GlomFieldColumn class.
1327 This is just a small code cleanup.
1329 * src/main/java/org/glom/web/client/LayoutListView.java:
1331 2011-03-18 Ben Konrath <ben@bagu.org>
1333 Use cursor mode in the query that gets data for the list view.
1335 I still need to fix the potential memory problem when getting the row
1336 count for the list view.
1338 * TODO: Add note about testing memory usage with large data sets. Add
1339 item about fixing row counting with large data sets.
1340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1341 PostgreSQL JDBC driver into cursor mode when getting data for the
1344 2011-03-15 Ben Konrath <ben@bagu.org>
1346 Remove the GWT Container from the Eclipse build classpath.
1348 The GWT dependencies are set by Maven so this isn't needed.
1352 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1354 Added some earlier mockups to git, but not to the tarball dist.
1356 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1357 Openismus. These hopefully show how we might structure the HTML so that
1358 it can be styled easily with CSS. However, we probably need to adapt them
1359 for the CSS structure that GWT dictates for common widgets.
1361 2011-03-14 Ben Konrath <ben@bagu.org>
1363 Locate OnlineGlom.properties using the ServletContext.
1365 This is required to be able to locate the file in the deployed servlet.
1367 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1368 Configure the database and glom document in in a helper method so
1369 that the ServletContext can be used to locate OnlineGlom.properties.
1370 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1371 src/main/webapp. This is the proper location for .properites files.
1373 2011-03-12 Ben Konrath <ben@bagu.org>
1375 Add note to README about why we're compiling down to obfuscated JavaScript.
1379 2011-03-11 Ben Konrath <ben@bagu.org>
1381 Use properties file to configure servlet.
1383 This allows people to change the glom file path, db username and db
1384 password without recompiling the code.
1386 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1387 * src/main/webapp/OnlineGlom.properties:
1389 2011-03-11 Ben Konrath <ben@bagu.org>
1391 Use table fields in layout list view if the layout list is not defined.
1393 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1394 Manually create a LayoutFieldVector for the query builder using the
1395 table fields when a layout list is not defined in the glom file.
1397 2011-03-11 Ben Konrath <ben@bagu.org>
1399 Only show FIXME string for images when there's an image.
1401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1402 in this change are some small code cleanups.
1404 2011-03-11 Ben Konrath <ben@bagu.org>
1406 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1408 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1410 2011-03-11 Ben Konrath <ben@bagu.org>
1412 Correctly set the index of the default table.
1414 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1415 Correctly set the index of the default table. Add commented out example
1418 2011-03-10 Ben Konrath <ben@bagu.org>
1420 Add comment to pom.xml about the previous change.
1422 * pom.xml: Add comment about the deployment issue so that it's obvious
1423 why java-libglom is set to the provided scope.
1425 2011-03-10 Ben Konrath <ben@bagu.org>
1427 Change java-libglom dependency from compile to provided in pom.xml.
1429 Since java-libglom uses jni it can only be loaded once and therefore
1430 must be placed in $CATALINA_HOME/lib and not included in each war.
1431 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1432 More information about this issue can be found in the Tomcat 6 release
1433 notes in the "JNI Based Applications" section:
1435 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1437 * README: Remove note about this issue. Deployment info should really
1438 be on the wiki anyway so I'll add it right now.
1439 * pom.xml: Change java-libglom dependency from compile to provided so
1440 that it's copied in to the packaged war.
1442 2011-03-09 Ben Konrath <ben@bagu.org>
1444 Change to using a neutral locale for currency, date and time formatting.
1446 This solves the problem of currency values being represented without a
1447 space between the currency code and the number (e.g. "EUR5.89" is now
1448 represented as "EUR 5.89"). More work is required when we implement
1449 a locale preference setting.
1451 * TODO: Add note about currency formatting issues with different
1453 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1454 to using the neutral ROOT locale.
1456 2011-03-09 Ben Konrath <ben@bagu.org>
1458 Add support for currency codes that are not ISO 4217 codes.
1460 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1461 the currency code defined in the glom file when it's not 3 characters
1462 long or when Java doesn't recognize the string as an ISO 4217 code.
1464 2011-03-08 Ben Konrath <ben@bagu.org>
1466 Remove test classes, launch configurations and configuration.
1468 The test stuff was getting in the way when creating the war. To make
1469 the war file you can now do 'mvn clean package'. The packaged war file
1470 will be in the target directory.
1472 * .classpath: Remove unused classpathentry for tests and i18n.
1473 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1474 property. Don't run test or i18n goals when packaging the war.
1475 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1480 * OnlineGlomTest-dev.launch:
1481 * OnlineGlomTest-prod.launch:
1482 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1483 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1485 2011-03-07 Ben Konrath <ben@bagu.org>
1487 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1489 These fixes allow me to use 'mvn deploy' to create the war file.
1491 * .classpath: This generated config has been updated by Eclipse. This
1492 change was probably triggered by me updating from Eclipse 3.6.1 to
1494 * .gitignore: Add entry to ignore the directory
1495 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1496 * .project: The generated config has been updated by Eclipse. This
1497 change was probably triggered by me updating from Eclipse 3.6.1 to
1499 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1500 so that Eclipse doesn't complain
1501 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1502 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1503 'tests' directory to 'client' directory. This is the new
1504 gwt-maven-plugin convension.
1505 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1506 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1508 2011-03-07 Ben Konrath <ben@bagu.org>
1510 Add support for horizontal alignment in the LayoutList columns.
1512 * TODO: Remove item about horizontal alignment. Add item about
1513 improvements to ColumnInfo.
1514 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1515 alignment on the columns. Use ColumnInfo RPC object get the column
1516 title and horizontal alignment.
1517 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1518 LayoutListView creation with ColumnInfo RPC object.
1519 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1520 a ColumnInfo object for every LayoutList columnn. Convert the
1521 FieldFormatting.HorizontalAlignment to the correct
1522 ColumnnInfo.HorizontatlAlignment with the new
1523 getColumnInfoHorizontalAlignment helper method.
1524 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1525 to encapsulate column information like alignment and title. This
1526 could be used to set the colour instead of on a per cell field basis.
1527 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1528 column title storage and retrieval with ColumnInfo.
1530 2011-03-04 Ben Konrath <ben@bagu.org>
1532 Add support for column sorting.
1534 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1535 AsynDataProvider to be an anonymous inner class. Use new
1536 getSortedTableData RPC method when column sort is requested. Set all
1537 columns sortable and add an AsyncHandler to activate sorting in the
1539 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1540 method getSortedTableData(). Cleanup other method signatures.
1541 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1542 new method getSortedTableData(). Cleanup other method signatures.
1543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1544 Implement getSortedTableData() and getTableData() methods by using a
1545 private helper method with the appropriate parameters filled in. Use
1546 user supplied sort clause when supplied, otherwise fall back to
1547 sorting by the primary key. Move destroy() method to be underneath
1548 constructor for readability. Cleanup comments.
1550 2011-03-03 Ben Konrath <ben@bagu.org>
1552 Add support for colour text and colour backgrounds to the layout list cells.
1554 Only the cell backgrounds are coloured which leaves a gap between the
1555 cells that isn't coloured. I need to figure out a way to set
1556 'style=background-colour:' on the whole column rather than just the
1559 * TODO: Add a note about colouring the background of the whole column.
1560 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1561 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1562 render the coloured text and backgrounds. Use GlomField[] for the row type.
1563 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1565 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1566 GlomField[] for the row type.
1567 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1568 GlomField[] for the row type. Set the text, text colour and background
1569 colour in the GlomField objects as specified in the glom document. Add
1570 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1571 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1572 the glom field text, foreground colour and background colour.
1574 2011-03-02 Ben Konrath <ben@bagu.org>
1576 Don't display hidden tables in the combo box.
1578 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1581 code to ignore hidden tables using ArrayLists for the table names and
1583 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1584 tableNames to use ArrayLists instead of String[]. Update getter and setter
1587 2011-03-01 Ben Konrath <ben@bagu.org>
1589 Add support for Date and Time number types.
1591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1592 Implement formatting for Date and Time values. Change the default glom
1593 file to small business example.
1595 2011-03-01 Ben Konrath <ben@bagu.org>
1597 Add support for formatting glom types as specified in the glom file.
1599 Formatting isn't finished yet - I still need to add support for Date
1602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1603 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1604 checks for null values in JDBC cleanup code and catch all exceptions
1605 instead of just SQLExceptions.
1606 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1609 2011-03-01 Ben Konrath <ben@bagu.org>
1611 Use GWT 2.2.0 instead of 2.1.1.
1613 * pom.xml: Change GWT version numbers.
1615 2011-03-01 Ben Konrath <ben@bagu.org>
1617 A few small code cleanups.
1619 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1621 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1622 unnecessary object creation in constructor.
1623 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1624 unnecessary object creation in constructor.
1626 2011-02-28 Ben Konrath <ben@bagu.org>
1628 Add file for TODO list.
1632 2011-02-18 Ben Konrath <ben@bagu.org>
1634 Enable the CellTable Pager when more than 20 rows need to be viewed.
1636 The Pager will automatically become active when the results are larger
1637 than the CellTable size which is currently set to 20 lines.
1639 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1640 name on debug statment in RPC call in LayoutListDataProvider, add
1641 numRows parameter to LayoutListView constructor, propperly set rowCount
1643 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1644 name on debug statment in RPC call, use LayoutListTable object in RPC
1645 calls, pass rowCount to LayoutListView.
1646 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1647 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1649 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1650 interface for changes in OnlineGlomService.
1651 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1652 getLayoutListHeaders() to getLayoutListTable() and return
1653 LayoutListTable. Using this object allows me to pass other information
1654 about the LayoutList like the expected number of rows in the result set.
1655 The Connection object from the connection pool is now propperly closed.
1656 Only the requested number of lines are returned to the client in
1658 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1659 GlomTable and add columnTitles and numRows.
1661 2011-02-18 Ben Konrath <ben@bagu.org>
1663 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1665 This is a small performance boost. I'll use GlomTable to get the required
1666 layoutlist information.
1668 * src/main/java/org/glom/web/client/OnlineGlom.java:
1669 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1670 * src/main/java/org/glom/web/shared/GlomDocument.java:
1672 2011-02-18 Ben Konrath <ben@bagu.org>
1674 Add option to turn off formatting in JDT formatter preferences.
1676 * .settings/org.eclipse.jdt.core.prefs:
1678 2011-02-18 Ben Konrath <ben@bagu.org>
1680 Rename LayoutList to LayoutListView.
1682 I'm working towards setting things up to easily use MVP when the time
1685 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1687 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1690 2011-02-17 Ben Konrath <ben@bagu.org>
1692 Move LayoutListDataProvider class into LayoutList.java.
1694 * src/main/java/org/glom/web/client/LayoutList.java:
1696 2011-02-17 Ben Konrath <ben@bagu.org>
1698 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1700 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1702 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1703 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1704 from LibGlomServer.java.
1705 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1706 Rename from LibGlomServiceAsync.java.
1707 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1708 Rename from LibGlomServiceImpl.java.
1709 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1711 2011-02-17 Ben Konrath <ben@bagu.org>
1713 Update JDT settings.
1715 * .settings/org.eclipse.jdt.core.prefs:
1717 2011-02-17 Ben Konrath <ben@bagu.org>
1719 Move GWT-RPC objects to shared package (where they should be).
1721 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1722 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1723 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1724 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1725 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1726 org.glom.web.shared package.
1727 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1728 org.glom.web.shared package.
1729 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1730 directory in compilation to javascript.
1732 2011-02-16 Ben Konrath <ben@bagu.org>
1734 Add sort clause to the sql query that grabs table information.
1736 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1737 if one of the columns is a primary key.
1739 2011-02-16 Ben Konrath <ben@bagu.org>
1741 Disable generateAsync feature of gwt-maven.
1743 The generated interface does not correctly match the methods in LibGlomService
1744 and the generated singleton Util inner-class doesn't respect the servlet
1747 * pom.xml: Turn off generateAsync feature.
1748 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1749 with singleton Util inner-class.
1751 2011-02-14 Ben Konrath <ben@bagu.org>
1753 Add LGPL v3 licence notices.
1755 Followed directions listed here:
1756 http://www.gnu.org/licenses/gpl-howto.html
1758 * COPYING: This file is a copy of the GPL v3.
1759 * COPYING.LESSER: This file is a copy of the LGPL v3.
1760 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1762 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1764 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1766 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1768 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1770 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1772 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1775 2011-02-14 Ben Konrath <ben@bagu.org>
1777 Use ArrayList instead of Array in GWT-RPC calls.
1779 Apparently this gives a slight performance boost to the compiled
1782 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1784 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1787 2011-02-14 Ben Konrath <ben@bagu.org>
1789 Access data from a postgres db rather than the example glom file.
1791 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1792 compile down to obfuscated javascript.
1793 * pom.xml: Add c3p0 and postgres JDBC libraries.
1794 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1795 using a postgres db accessed through the c3p0 connection pooling library.
1797 2011-02-14 Ben Konrath <ben@bagu.org>
1799 Update Java formatter settings.
1801 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1803 2011-02-02 Ben Konrath <ben@bagu.org>
1805 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1807 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1809 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1810 the compiled webapp directory that Eclipse uses as we're using Maven now.
1811 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1812 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1814 * pom.xml: Format file, change target Java version to 1.6.
1816 2011-02-02 Ben Konrath <ben@bagu.org>
1818 Add information about a deployment related issue.
1820 * README: Add Notes section with the problem outlined.
1822 2011-02-02 Ben Konrath <ben@bagu.org>
1824 Call Glom.libglom_deinit() when the servlet is shutdown.
1826 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1827 Glom.libglom_deinit() to destroy() method.
1829 2011-01-28 Ben Konrath <ben@bagu.org>
1831 Use generated Util class to get the RPC Async interface.
1833 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1835 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1836 getInstance() method to get a reference to the RPC Async interface.
1837 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1838 getInstance() method to get a reference to the RPC Async interface, remove
1839 the now unused getLibGlomServiceProxy() method.
1841 2011-01-27 Ben Konrath <ben@bagu.org>
1843 Cleanup ChangeLog entry from previous commit.
1845 * ChangeLog: Group logical changes together and add comments.
1847 2011-01-25 Ben Konrath <ben@bagu.org>
1849 Convert to gwt-maven project.
1851 * .gitignore: Update for new project structure.
1852 * README: New file with a link to the online documentation.
1853 * pom.xml: The generated maven configuration file with some tweaks.
1855 Add / update Eclipse settings. These files are a merge of the files that
1856 were generated with the gwt-maven plugin and the files we were previously
1860 * .settings/.jsdtscope:
1861 * .settings/com.google.gdt.eclipse.core.prefs:
1862 * .settings/com.google.gwt.eclipse.core.prefs:
1863 * .settings/org.eclipse.jdt.core.prefs:
1864 * .settings/org.eclipse.wst.common.component:
1865 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1866 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1867 * .settings/org.maven.ide.eclipse.prefs:
1868 * OnlineGlomTest-dev.launch:
1869 * OnlineGlomTest-prod.launch:
1871 Java source files moved from the 'src' directory to the directory structure
1873 * src/main/java/org/glom/web/client/GlomDocument.java:
1874 * src/main/java/org/glom/web/client/GlomTable.java:
1875 * src/main/java/org/glom/web/client/LayoutList.java:
1876 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1877 * src/main/java/org/glom/web/client/LibGlomService.java:
1878 * src/main/java/org/glom/web/client/OnlineGlom.java:
1879 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1881 Non-functional property file used for translations. I included this as
1882 reminder that it's something I need to sort out.
1883 * src/main/resources/org/glom/web/client/Messages.properties:
1885 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1886 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1888 The servlet configuration files moved from the 'war' directory.
1889 * src/main/webapp/OnlineGlom.css:
1890 * src/main/webapp/OnlineGlom.html:
1891 * src/main/webapp/WEB-INF/web.xml:
1893 Generated test files with most of the code commented out. I included these
1894 so that it's easy to add tests when we're ready for them.
1895 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1896 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1898 2011-01-25 Ben Konrath <ben@bagu.org>
1900 Remove unused println.
1902 * src/org/glom/web/server/LibGlomServiceImpl.java:
1904 2011-01-25 Ben Konrath <ben@bagu.org>
1906 Add project specific JDT settings.
1908 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1909 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1911 2011-01-25 Ben Konrath <ben@bagu.org>
1913 Populate celltable with example data.
1915 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1916 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1917 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1918 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1919 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1920 asynchronously gets the example data.
1921 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1922 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1923 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1924 curently selected table to be retrieved by other widgets.
1925 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1926 implement getTableData() in a hacky way. This method needs to be updated
1927 to grab information from the database when database creating is
1930 2011-01-20 Ben Konrath <ben@bagu.org>
1932 Set table headers when table dropBox changes.
1934 * src/org/glom/web/client/GlomDocument.java: Correct some method
1936 * src/org/glom/web/client/LibGlomService.java: Add method
1937 to get list layout field names.
1938 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1939 to get list layout field names.
1940 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1941 widget for list layout table.
1942 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1943 the table drop box and add new updateTable() method to asynchronously
1944 get the layout list field names for the currently selected table.
1945 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1946 implementation of getLayoutListHeaders() method.
1947 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1949 2011-01-18 Ben Konrath <ben@bagu.org>
1951 Make a listBox with table titles instead of the flexTable demo.
1953 This is the start of something more useful.
1955 * .classpath: Exclude a bunch of packages from the JVM that are
1956 getting in the way of the Eclipse content assist.
1957 * src/org/glom/web/client/GlomDocument.java:
1958 * src/org/glom/web/client/GlomTable.java:
1959 * src/org/glom/web/client/LibGlomService.java:
1960 * src/org/glom/web/client/LibGlomServiceAsync.java:
1961 * src/org/glom/web/client/OnlineGlom.java:
1962 * src/org/glom/web/server/LibGlomServiceImpl.java:
1963 * war/OnlineGlom.html:
1964 * war/WEB-INF/web.xml:
1966 211-01-13 Ben Konrath <ben@bagu.org>
1968 Update to new java-libglom API.
1970 * .gitignore: Ignore OnlineGlom.war.
1971 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1973 2010-12-20 Ben Konrath <ben@bagu.org>
1975 Add some basic style to the table listing.
1977 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1978 header, print useful error message on async callback failure.
1979 * war/OnlineGlom.css: Add style for table header, remove defaults
1980 provided by the Eclipse project wizard.
1982 2010-12-20 Ben Konrath <ben@bagu.org>
1984 Load example file from installed glom dir.
1986 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1987 provided by java-libglom to find the example file.
1989 2010-12-20 Ben Konrath <ben@bagu.org>
1991 Update Eclipse settings.
1994 * .settings/com.google.gdt.eclipse.core.prefs:
1995 * .settings/com.google.gwt.eclipse.core.prefs:
1997 2010-12-17 Ben Konrath <ben@bagu.org>
2001 * .classpath: New file.
2002 * .gitignore: New file.
2003 * .project: New file.
2004 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2005 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2006 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2007 * src/org/glom/web/client/GlomTable.java: New file.
2008 * src/org/glom/web/client/OnlineGlom.java: New file.
2009 * src/org/glom/web/client/TableNameService.java: New file.
2010 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2011 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2012 * war/OnlineGlom.css: New file.
2013 * war/OnlineGlom.html: New file.
2014 * war/WEB-INF/web.xml: New file.
2015 * war/images/glom.png: New file.