1 2011-09-26 Ben Konrath <ben@bagu.org>
3 Don't use the ListDBAccess classes to get the primary key layout information.
5 This was causing a bug where the wrong index for the hidden primary key
6 was being sent to the client.
8 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
9 primary key while creating the LayoutGroup DTO. Create a
10 LayoutItemField DTO for hidden primary keys. Don't use the
11 RelatedListDBAccess because it was only used for getting the primary
13 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
14 access modifier from public to protected for getPrimaryKeyField() and
15 getPrimaryKeyLayoutItemField().
16 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
17 abstract method getExpectedResultSize() because RelatedListDBAccess
18 doesn't have enough info to implement it.
19 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
20 Remove @Override for getExpectedResultSize().
21 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
22 Remove method getExpectedResultSize().
24 2011-09-23 Ben Konrath <ben@bagu.org>
26 Log which layout (list or details) the ignored item is from.
28 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
30 2011-09-23 Ben Konrath <ben@bagu.org>
32 Remove annotations that turn off code formatting in DataItem.
34 * src/main/java/org/glom/web/shared/DataItem.java:
36 2011-09-23 Ben Konrath <ben@bagu.org>
38 Rename GlomField to DataItem and update associated methods.
40 This is a rename-only refactor. No functionality has been added or
43 * src/main/java/org/glom/web/client/OnlineGlomService.java:
44 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
45 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
46 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
47 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
48 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
49 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
50 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
51 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
52 * src/main/java/org/glom/web/server/database/DBAccess.java:
53 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
54 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
55 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
56 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
57 * src/main/java/org/glom/web/shared/DataItem.java:
58 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
59 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
61 2011-09-23 Ben Konrath <ben@bagu.org>
63 Rename GlomDocument to DocumentInfo and update associated methods.
65 This is a rename-only refactor. No functionality has been added or
68 * src/main/java/org/glom/web/client/OnlineGlomService.java:
69 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
70 * src/main/java/org/glom/web/client/activity/ListActivity.java:
71 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
72 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
73 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
74 * src/main/java/org/glom/web/shared/DocumentInfo.java:
76 2011-09-20 Ben Konrath <ben@bagu.org>
78 Require java-libglom 1.17.3.
80 This picks up the fix for the seg fault problem with the Scenes table
81 in the Openismus Film Manager example.
85 2011-09-20 Ben Konrath <ben@bagu.org>
87 Change the way sort clause is added for primary key when no sort clause is requested.
89 The primary key is now added to the LayoutFieldVector (fieldsToGet)
90 before the sort clause is created. When a sort clause is not requested, the
91 sort clause is created by finding the primary key in the LayoutFieldVector
94 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
96 2011-09-20 Ben Konrath <ben@bagu.org>
98 Log error message if no documents are found in the configured directory.
100 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
101 Extract the glom file extension string to a private static final class
102 variable (mostly as syntactic sugar). Accept a minor formatting change.
103 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
104 the example glom.document.directory configuration property to make it
105 more clear that it can any directory, not just the home directory.
107 2011-09-18 Ben Konrath <ben@bagu.org>
109 Add related lists to details view.
111 The related list table has support for paging and sorting just like the
112 table in the list view.
114 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
115 SQL queries for the related list tables.
116 * src/main/java/org/glom/web/client/OnlineGlomService.java:
117 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
119 Rename getList methods to getListView and add comments. Remove
120 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
121 it being unused. Add methods: getDetailsLayoutAndData(),
122 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
123 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
124 Create the layout and set the data for the fields in one async call
125 instead of two. Create related lists where appropriate.
126 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
127 for method name changes in OnlineGlomService.
128 * src/main/java/org/glom/web/client/ui/DetailsView.java:
129 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
130 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
132 * src/main/java/org/glom/web/client/ui/ListView.java:
133 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
134 tableName from setCellTable(). Create a ListViewTable instead of
136 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
137 represent a data field in the details view.
138 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
139 from addDetailsCell() to Field class. Keep track of the Fields and
140 Portals in the details view.
141 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
142 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
143 and add a method to get it. Add method to set the contents of the
145 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
146 New class for related list tables. This class has the data provider
147 for the related list table.
148 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
149 abstract class which is the base class for the ListViewTable and the
151 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
152 New class for list view tables. This class has the data provider for
154 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
155 methods for related list tables. Add more information to the
156 LayoutItemField and LayoutItemPortal DTOs.
157 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
158 Remove debugging print statement.
159 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
160 Remove debugging print statements. Add primary key field to SQL count
162 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
163 Remove unnecessary LayoutFieldVector parameter from
164 getResultSizeOfSQLQuery() method.
165 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
166 New class for related list table database access.
167 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
168 class that is a wrapper DTO for details view layout and data.
169 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
170 new 'fromField' string to this DTO.
171 * src/main/webapp/style.css: Remove bottom margin and override top
174 2011-09-15 Ben Konrath <ben@bagu.org>
176 Breakup the OnlineGlomServiceImpl class to make it more manageable.
178 This sets things up to make it easier to add the data retrieval for
179 related lists (portals). No user noticeable changes were made with
182 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
183 class has the code to retrieve the layouts and access the
184 database using the new database helper classes.
185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
186 Most of the functionality has been removed from this class. This
187 class now represents the public interface for the client side
188 code. It also deals with configuring the servlet and cleaning
189 things up when the servlet is stopped.
190 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
191 of static methods into this utility class.
192 * src/main/java/org/glom/web/server/database/DBAccess.java:
193 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
194 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
195 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
196 These classes have the database retrieval code. The class hierarchy
197 has been setup to make it easy to reuse code for similar
200 2011-09-06 Ben Konrath <ben@bagu.org>
202 Create separate classes for list table code and the data provider.
204 As part of this refactor, I also split up the code a bit to make it
207 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
208 table code to two new classes (below).
209 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
210 with code from ListViewImpl.
211 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
212 New file with code from ListViewImpl.
214 2011-09-06 Ben Konrath <ben@bagu.org>
216 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
218 This fixes the LayoutItemPortal DTO to match the libglom layout object
221 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
223 2011-09-01 Ben Konrath <ben@bagu.org>
225 Set title of Portals in the Details View.
227 * pom.xml: Bump required version of java-libglom to 1.17.1.
228 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
229 widget creation to its own class. Add comments to constructor.
230 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
231 The code is mostly from the Group class with the title now set.
232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
233 title of Portal. Update some comments. Fix some code formatting.
235 2011-09-01 Ben Konrath <ben@bagu.org>
237 Remove TODO comment for the flow table column width.
239 The flow table column width is working correctly and doesn't need to be
240 changed. See this mailing list post for more info:
242 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
244 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
246 2011-08-27 Ben Konrath <ben@bagu.org>
248 Add document title (database name) to top of the browser page.
250 I added the document title to the TableSelecitonView but that will
251 change if / when we add a view that doesn't require table selection.
253 * mockups/details-contacts.html:
254 * mockups/details-projects.html:
255 * mockups/listview-contacts.html:
256 * mockups/listview-projects.html:
257 * mockups/style.css: Add document title to mockups to keep things
259 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
260 sizes to account for the document title.
261 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
262 Set the document title when it has been retrieved from the server.
263 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
264 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
265 and implement setDocumentTitle(String) method.
266 * src/main/webapp/style.css: Add ID for document title style.
268 2011-08-25 Ben Konrath <ben@bagu.org>
270 Add NavigationType enum to LayoutItemPortal DTO.
272 This is the start of adding support for Portals to the Details View.
274 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
275 LayoutItem_Portal.navigation_type enum from libglom to
276 LayoutItemPortal.NavigationType enum.
277 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
278 NavigationType enum, field for storing the NavigationType and getter
281 2011-08-25 Ben Konrath <ben@bagu.org>
283 Implement the flow table layout in the Details View.
285 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
286 FlowTable to Group to account for the renamed class.
287 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
288 File. This is a container widget that implements the Glom details view
289 flow table behaviour.
290 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
291 org/glom/web/client/ui/FlowTable.java.
292 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
293 so that the size of the subgroups are a closer match to the size of
294 the Glom subgroups. This makes the flowtable layout match the layout
295 in Glom for the Music Collection example file.
297 2011-08-16 Ben Konrath <ben@bagu.org>
299 Create container element for LayoutItemPortal in Details View.
301 This will help me develop the layout for the FlowTable.
303 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
304 fieldPanel variable to detailsCell.
306 2011-08-15 Ben Konrath <ben@bagu.org>
308 Set the height of the data element in the Details View.
310 I changed the InlineLabels (text in a span element) to Labels (text in
311 a div element) so that I could set the height of the details-data
312 elements instead of the details-cell parent elements. This allows the
313 the details-data element to display the correct height if style is
314 applied that shows the height.
316 This change has the added benefit of allowing the order of the labels
317 and data elements to be changed for right-to-left languages.
319 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
320 InlineLabels to Labels.
321 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
322 InlineLabels to Labels. Set the height of the data element.
323 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
324 multiline text height in the Formatting DTO.
325 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
326 for multiline height along with getter and setter methods.
327 * src/main/webapp/style.css: Adjust style to account for the change
328 from span elements to div elements in the details cell.
330 2011-08-15 Ben Konrath <ben@bagu.org>
332 Make the List View appearance match the mockups.
334 It doesn't match exactly but it's much better than it was.
336 * mockups/listview-contacts.html: Remove unused css classes.
337 * mockups/listview-projects.html: Remove unused css classes.
338 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
339 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
340 for mainPanel instead of VerticalPanel (table). Set style name on
341 CellTable. Set style name on Details column. Right-align Details
343 * src/main/webapp/style.css: Adjust properties to match the mockups.
345 2011-08-12 Ben Konrath <ben@bagu.org>
347 Add better support for subgroups in the details view.
349 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
350 changed FlowTable constructor.
351 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
352 support for subgroups and subgroup-titles.
353 * src/main/webapp/style.css: Add CSS class for subgroups and
356 2011-08-12 Ben Konrath <ben@bagu.org>
358 Return the top level LayoutGroup title.
360 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
362 2011-08-11 Ben Konrath <ben@bagu.org>
364 Make the TableSelector header match the mockup.
366 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
367 the layout panel. Properly lineup the table selection header with
368 the list and details view.
369 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
370 margin around the details view.
371 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
372 Rename listBox variable to tableSelector. Set id for the style sheet.
373 Use a FlowPanel instead of a HorizontalPanel.
374 * src/main/webapp/style.css: Add properties to make the TableSelector
375 box match the mockups.
377 2011-07-13 Ben Konrath <ben@bagu.org>
379 Update install script for java-libglom version change.
381 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
384 2011-07-13 Ben Konrath <ben@bagu.org>
386 Add support sub-group in the details view.
388 I also removed the code that special-cased the default details view
391 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
393 I still have to make a proper flowtable.
395 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
396 Don't special-case default details view layout.
397 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
398 addLayoutField() as I'm going to use it.
399 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
400 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
402 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
403 extracted from DetailsViewImpl.GroupPanel. Add support for
405 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
406 column count when getting the details layout.
408 2011-07-12 Ben Konrath <ben@bagu.org>
410 Set browser title with database and table titles.
412 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
413 Set the browser title when the table changes and when the activity
415 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
416 title when retrieving document info (the GlomDocument object).
417 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
418 with getter and setter methods. Remove unused convenience constructor.
419 Use default code formatting.
421 2011-07-12 Ben Konrath <ben@bagu.org>
423 Ignore LayoutItemPortals in the details view.
425 I added a new DTO for the LayoutItemPortal so that I can ignore it in
428 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
429 LayoutItemPortal layout objects.
430 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
431 LayoutItemPortal objects when retrieving the details layout.
432 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
433 file. This is an empty class and just used to get type information for
436 2011-07-12 Ben Konrath <ben@bagu.org>
438 Use java-libglom 1.17.0.
442 2011-07-11 Ben Konrath <ben@bagu.org>
444 Remove "Table:" label from table selector.
446 This matches a recent change in the Glom UI.
448 * mockups/details-contacts.html:
449 * mockups/details-projects.html:
450 * mockups/listview-contacts.html:
451 * mockups/listview-projects.html: Remove the "Table:" label from the
453 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
455 2011-07-11 Ben Konrath <ben@bagu.org>
457 Add main groups to the details view.
459 This makes things look a little nicer in the details view. The next step
460 is to implement the flowtable.
462 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
463 resources from the standard gwt css theme. Standard.css is now
464 included in OnlineGlom.html so that the online glom css rules have
465 precedence over the gwt theme.
466 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
467 the whole LayoutGroup to the DetailsView instead of just the titles.
468 * src/main/java/org/glom/web/client/ui/DetailsView.java:
469 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
470 details layout with a helper class (GroupPanel). I might extract this
471 class when I make the full flowtable.
472 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
473 string as default so I don't have to worry about NPEs when processing
475 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
476 note beside OnlineGlom.gwt.xml above).
477 * src/main/webapp/style.css: Add default font-size to body to override
478 the font-size set by the standard theme. Don't use h2 tags for
479 group-title. Create new details-cell class.
481 2011-07-08 Murray Cumming <murrayc@murrayc.com>
483 ConfiguredDocument: Set the port number too.
485 * src/main/java/org/glom/web/server/ConfiguredDocument.java
486 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
487 Glom document. Presumably this worked sometimes so far because there is a
490 2011-07-08 Murray Cumming <murrayc@murrayc.com>
492 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
494 * src/main/java/org/glom/web/server/ConfiguredDocument.java
495 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
496 correct, though we should throw an exception too.
498 2011-07-08 Murray Cumming <murrayc@murrayc.com>
500 Fix a addDocuemnt typo.
502 * src/main/java/org/glom/web/shared/Documents.java
503 (Documents.addDocuemnt): Rename to addDocument().
504 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
505 (OnlineGlomServiceImpl.getDocuments): Adapt.
507 2011-07-08 Murray Cumming <murrayc@murrayc.com>
509 Slightly improved log output when connection fails.
511 * src/main/java/org/glom/web/server/ConfiguredDocument.java
512 (ConfiguredDocument.setUsernameAndPassword):
513 We don't know for sure if it' the username/password that's wrong, so
514 rephrase the message.
515 Also ouput the exception message, though it's generic in this case.
517 2011-07-08 Ben Konrath <ben@bagu.org>
521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
522 added braces to a one line if statement because the Eclipse formatter
523 was getting confused.
525 2011-07-07 Ben Konrath <ben@bagu.org>
527 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
529 These should really be two separate tasks but I counldn't get things to
530 work with GWT 2.2.0 and Eclipse 3.7.
534 * .settings/org.eclipse.jdt.core.prefs:
535 * .settings/org.eclipse.jdt.ui.prefs:
536 * .settings/org.eclipse.ltk.core.refactoring.prefs:
537 * .settings/org.eclipse.m2e.core.prefs:
538 Add new config files. Update current files. Remove references to the
539 webtools plugins as we're not using any of the webtools features.
540 * .gitignore: Add logs directory which is created when running with
542 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
543 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
544 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
546 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
548 2011-07-07 Murray Cumming <murrayc@murrayc.com>
550 onlineglom.properties: Add explanatory comments.
552 * src/main/resources/onlineglom.properties: Also change the default user
553 from ben to someuser, to avoid the risk of people thinking we just
554 stupidly hard-coded a locale path, when they see that on stderr or in a log.
556 2011-06-28 Ben Konrath <ben@bagu.org>
558 Use filename in Log for incorrect passwords.
560 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
561 getFileName(String) method to get the filename from the URI.
563 2011-06-28 Ben Konrath <ben@bagu.org>
565 Add the table name to the URL token for the ListPlace.
567 This makes things consistent between the DetailsPlace and the
568 ListPlace. It also allows the the ListPlace to be bookmarked.
570 * src/main/java/org/glom/web/client/OnlineGlomService.java:
571 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
573 Remove getDefaultListLayout(). The default layout is now returned
574 by the getListLayout() method when the table name is an empty string.
575 * src/main/java/org/glom/web/client/activity/ListActivity.java:
576 Add table name field. Change to a new ListPlace when the table
577 has been changed. Use getListLayout() for getting the default
579 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
580 Add table name field. Set the correct table name in the list box
581 when loading from bookmark. This corrects a problem for the
583 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
584 Move table name to super-class (HasSelectableTable). Move document
585 and table URL keys to super-class in HasSelectableTable.
586 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
587 Add table name field. Add Tokenizer class with URL key common to
588 the subclasses (DetailsPlace and ListPlace).
589 * src/main/java/org/glom/web/client/place/ListPlace.java:
590 Add table name. Add code to parse the URL token.
591 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
592 Update ListPlace construction with empty table name string.
593 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
594 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
595 Change setTableSelectedIndex(int) to setSelectedTableName(String).
596 Update ListPlace construction with table name string.
597 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
598 Change defaultTableName field to tableName to reflect how it's now
599 used. Update the getter and setter methods.
601 2011-06-28 Ben Konrath <ben@bagu.org>
603 Enable the table selector in the DetailsView.
605 * src/main/java/org/glom/web/client/OnlineGlomService.java:
606 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
607 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
608 Remove getDefaultDetailsLayout(). The default layout is now returned
609 by the getDetailsLayout() method when the table name is an empty
611 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
612 event handler for table change event. Change to using
613 getDetailsLayout() for the default details layout.
614 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
616 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
617 when navigating to the details place.
619 2011-06-27 Ben Konrath <ben@bagu.org>
621 Use filename based unique document ID in URL and for RPC.
623 The document ID is the glom document name with spaces (' ') replaced
624 with pluses ('+') and without the .glom extension.
626 This change is mostly a string substitution of 'documentTitle' for
627 'documentID'. The only code change is the addition of a Documents DTO to get the
628 filename to document title mappings as indicated below.
630 * src/main/java/org/glom/web/client/OnlineGlomService.java:
631 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
632 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
633 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
634 Use Documents DTO to create the document links in the document
636 * src/main/java/org/glom/web/client/activity/ListActivity.java:
637 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
638 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
639 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
640 * src/main/java/org/glom/web/client/place/ListPlace.java:
641 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
642 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
643 * src/main/java/org/glom/web/client/ui/ListView.java:
644 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
645 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
646 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
647 * src/main/java/org/glom/web/server/Log.java:
648 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
649 getDocumentTitles() to getDocuments() and return the Documents DTO.
650 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
651 transferring the filename to document title mappings.
653 2011-06-25 Ben Konrath <ben@bagu.org>
655 Make the authentication popup work again.
657 This bug was introduced when I extracted ConfiguredDocument to its own class.
659 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
660 correct success / fail status in setUsernameAndPassword().
662 2011-06-25 Ben Konrath <ben@bagu.org>
664 Use filename as unique key for configuring database usernames and passwords.
666 This replaces the use of the Glom document title which could change
667 depending on the locale. Thanks to Murray Cumming for pointing out this
670 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
671 * src/main/resources/onlineglom.properties:
673 2011-06-24 Ben Konrath <ben@bagu.org>
675 Pass primary key value to DetailsView.
677 This enables the DetailsView to load the correct data.
679 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
680 primary key value field and set in constructor. Pass primary key
681 value to getDetailsData().
682 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
683 variables for document title and primary key value.
684 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
685 key value to the DetailsPlace.
687 2011-06-24 Ben Konrath <ben@bagu.org>
689 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
691 This allows the primary key to be retrieved by the Details button. This
692 functionality has not been implemented yet but it's in the works.
694 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
695 the LayoutGroup result to ListView.setCellTable instead of all of its
697 * src/main/java/org/glom/web/client/ui/ListView.java:
698 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
699 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
700 get the primary key for the table.
701 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
702 index of the primary key in the LayoutGroup accounting for hidden
703 primary keys. Rename getJavaNumberFormat() to
704 convertToJavaNumberFormat() for consistency. Cleanup / add some
706 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
707 field for primary key index and a field to indicate whether the
708 primary key is hidden or not.
710 2011-06-23 Ben Konrath <ben@bagu.org>
712 Rename getTableData methods to getListData.
714 This is a rename refactor for consistency with other methods.
716 * src/main/java/org/glom/web/client/OnlineGlomService.java:
717 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
718 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
719 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
721 2011-06-23 Ben Konrath <ben@bagu.org>
723 Extract the ConfiguredDocument innerclass into its own class.
725 This makes the servlet code more object oriented.
727 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
728 from private ConfiguredDocument class in OnlineGlomServiceImpl.
729 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
730 new ConfiguredDocument class.
732 2011-06-21 Ben Konrath <ben@bagu.org>
734 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
736 This makes things more inline with how libglom works and reduces code
737 duplication. This refactor lays the groundwork for adding the primary key to
738 the LayoutGroup object.
740 * src/main/java/org/glom/web/client/OnlineGlomService.java:
741 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
742 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
743 Change method names to getListLayout and getDefaultListLayout for
744 consistency. Use LayoutGroup as the DTO for the list layout instead of
745 ColumnInfo and LayoutListTable.
746 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
747 new method names along with the LayoutGroup object for transferring the
749 * src/main/java/org/glom/web/client/ui/ListView.java:
750 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
751 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
752 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
754 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
755 Replaced with LayoutGroup.
756 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
757 expectedResultSize and defaultTableName fields which are needed for
759 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
760 type field which is needed for the list layout but will also be
761 useful for the details layout as things progress.
762 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
763 Make class abstract. Remove the unnecessary
764 getFormattingHorizontalAlignment method. Add setFormatting method.
766 2011-06-16 Ben Konrath <ben@bagu.org>
768 Add scripts for building and installing war.
770 These will help when updating OnlineGlom but they're also good
771 supplemental documentation of the build and deployment proceeding.
773 * utils/build-onlineglom-war.sh: New file.
774 * utils/install-onlineglom-war.sh: New file.
776 2011-06-16 Ben Konrath <ben@bagu.org>
778 Create wrapper class to create consistent log messages.
780 I wrapped methods in the Log class of gwt-log to add the method names
781 from the servlet and create consistent formatting of the document title
782 and table names in the log messages.
784 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
785 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
786 log methods to use methods from wrapped Log class.
788 2011-06-16 Ben Konrath <ben@bagu.org>
790 Remove superfluous conditional return.
792 Thanks to Murray Cumming for pointing this out!
794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
796 2011-06-15 Ben Konrath <ben@bagu.org>
798 Return an ArrayList of LayoutGroups for the Details layout.
800 This corrects a problem with the details layout as it can have more
801 than one top level LayoutGroup.
803 * src/main/java/org/glom/web/client/OnlineGlomService.java:
804 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
805 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
806 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
807 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
808 with ArrayList of LayoutGroups for the details view layout.
809 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
810 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
811 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
812 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
813 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
814 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
816 2011-06-14 Ben Konrath <ben@bagu.org>
818 Use cast_dynamic method to determine the libglom LayoutItem type.
820 This is better than finding the LayoutItem type by using the string
821 returned from the get_part_type_name() method.
823 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
825 2011-06-14 Ben Konrath <ben@bagu.org>
827 Add method names to log entries in the servlet.
829 This helps when tracking down deployment problems.
831 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
833 2011-06-14 Ben Konrath <ben@bagu.org>
835 Add data to the DetailsView using a hard-coded primary key value.
837 The layout and functionality of the DetailsView is not complete. This
838 is just a checkpoint so the patch doesn't get too big.
840 * src/main/java/org/glom/web/client/OnlineGlomService.java:
841 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
842 Add getDetailsData() servlet method.
843 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
844 Add RPC to getDetailsData(). Change the way the LayoutGroups and
845 LayoutFields are added to the DetailsView.
846 * src/main/java/org/glom/web/client/ui/DetailsView.java:
847 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
848 Add setData() method. Change addLayoutGroup() and addLayoutField() to
849 take the string for the title instead of the object.
850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
851 Add implementation getDetailsData() along with some private helper
853 * src/main/webapp/style.css: Add padding to details-data class. Add a
854 details-label class with the same padding as the details-data class.
856 2011-06-03 Ben Konrath <ben@bagu.org>
858 Use presenter.goTo() to change to the DetailsPlace.
860 This will make things easier when we need to open the DetailsView with
861 data specific to the row that was clicked.
863 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
865 2011-06-02 Ben Konrath <ben@bagu.org>
867 Add CSS file from mockups.
869 I'm adding this now because it's going to be useful to have when
870 developing the DetailsView. The TableSelectionView and ListView aren't
873 * src/main/webapp/OnlineGlom.html:
874 * src/main/webapp/style.css:
876 2011-06-02 Ben Konrath <ben@bagu.org>
878 Use String.isEmpty() to check for empty string.
880 * src/main/java/org/glom/web/client/activity/ListActivity.java:
882 2011-06-02 Ben Konrath <ben@bagu.org>
884 Display main layout group titles in the DetailsView.
886 This is the start of the DetailsActivity/DetailsView implementation.
888 * src/main/java/org/glom/web/client/OnlineGlomService.java:
889 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
890 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
891 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
892 Get the layout information for the details view from the server and set
893 the main layout group titles.
894 * src/main/java/org/glom/web/client/ui/DetailsView.java:
895 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
896 Add addLayoutGroup() and addLayoutField() methods. This are just
897 temporary methods for creating the the details view that will change
899 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
900 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
902 * src/main/java/org/glom/web/shared/layout/Formatting.java:
903 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
904 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
905 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
906 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
907 Data Transfer Objects that mimic the libglom object structure. These are
908 used for transferring the details layout but could also be used for
909 transferring the list layout.
911 2011-05-27 Ben Konrath <ben@bagu.org>
913 Reset the AuthenticationPopup when clearing the ListView.
915 * src/main/java/org/glom/web/client/activity/ListActivity.java:
917 2011-05-27 Ben Konrath <ben@bagu.org>
919 Fix problem with onlineglom.properties file loading.
921 The old way worked in Eclipse but not on the server. Loading the
922 onlineglom.properties file now works in Eclipse and on the server.
924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
926 2011-05-24 Ben Konrath <ben@bagu.org>
928 Update gwt-log from 3.1.0 to 3.1.2.
930 Gwt-log 3.1.0 has been marked as depreciated.
934 2011-05-24 Ben Konrath <ben@bagu.org>
936 Add comment to ListActivity.goTo() method.
938 * src/main/java/org/glom/web/client/activity/ListActivity.java:
940 2011-05-24 Ben Konrath <ben@bagu.org>
942 Remove FIXME in convertGdkColorToHtmlColour()
944 The Gdk::Color value returned by libglom is 16-bits per channel on both
945 64 and 32-bit platforms.
947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
949 2011-05-19 Ben Konrath <ben@bagu.org>
951 Improve performance of initial ListView load.
953 I removed a round trip to the server for getting the default table name
954 and then requesting information about that table. This also removes a potential
955 problem with the table change handler not being setup in time to receive the
956 table change event from the ListActivity.
958 * src/main/java/org/glom/web/client/OnlineGlomService.java:
959 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
960 getDefaultLayoutListTable() method. Improve comments.
961 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
962 getDefaultLayoutListTable() method instead of firing a table change
963 event to get the table to load.
964 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
965 implementation of getDefaultLayoutListTable() method.
966 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
969 2011-05-19 Ben Konrath <ben@bagu.org>
971 Override toDebugString() in TableChangeEvent.
973 This is useful to have for debugging.
975 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
977 2011-05-19 Ben Konrath <ben@bagu.org>
979 Add a "Back to List" link when at the DetailsPlace.
981 * src/main/java/org/glom/web/client/activity/ListActivity.java:
982 Populate the CellTable based on the selected table of the ListBox if
983 it's set otherwise use the default table. This allows the "Back to
985 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
986 Remove Place from constructors. Add a setPlace() method. Add
987 goToPlace() method. Set class as presenter for TableSelectionView.
988 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
989 Use the same TableSelectionActivity when switching between the List and
991 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
992 Subclass the new HasSelectableTablePlace. This removes some duplicate
994 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
995 New class to represent Places that display the TableSelectionView.
996 * src/main/java/org/glom/web/client/place/ListPlace.java:
997 Subclass the new HasSelectableTablePlace. This removes some duplicate
999 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1000 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1001 Add Presenter interface. Add setBackLinkVisible() method. Add
1002 setBackLink() method.
1004 2011-05-18 Ben Konrath <ben@bagu.org>
1006 Enable the "Details" buttons.
1008 Right now only an empty details view is displayed.
1010 * src/main/java/org/glom/web/client/ClientFactory.java:
1011 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1012 Add DetailsView to ClientFactory.
1013 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1014 A basic activity for the details view.
1015 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1016 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1018 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1019 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1021 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1022 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1023 unnecessary super() in constructor.
1024 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1025 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1026 really shouldn't create a new TableSelectionActivity for both the ListPlace
1027 and the DetailsPlace so this should be considered a temporary solution.
1028 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1029 New file. Represents a URL for the details view.
1030 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1031 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1032 A basic details view interface and implementation.
1033 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1034 Enable the "Details" buttons.
1036 2011-05-12 Ben Konrath <ben@bagu.org>
1038 Use a LayoutPanel with multiple display areas for main layout.
1040 This is mostly a refactor in that there are no changes from the user
1041 point of view. These changes are required so that we can swap out the list view
1042 with the details view when the user clicks the "Details" button.
1044 * src/main/java/org/glom/web/client/ClientFactory.java:
1045 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1046 OnlineGlomView. Add TableSelectionView, ListView and
1047 AuthenticationPopup.
1048 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1049 for main layout. Add display regions for main activities. Add
1050 activity manager for for main activities.
1051 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1052 file from parts of the deleted OnlineGlomActivity.
1053 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1054 New file from parts of the deleted OnlineGlomActivity.
1055 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1056 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1057 New files for app wide table change event.
1058 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1059 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1060 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1061 Activity mappers for the main activities replace the deleted app-wide
1063 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1064 Fix a spelling error in he comment.
1065 * src/main/java/org/glom/web/client/ui/ListView.java:
1066 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1067 Renamed from LayoutListView and modified for MVP. This still not a
1068 proper dumb view as prescribed by the MVP pattern but it works for now.
1069 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1070 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1071 New widget stripped out of the deleted OnlineGlomView.
1072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1073 Remove hack that is fixed by this patch.
1075 2011-05-06 Ben Konrath <ben@bagu.org>
1077 Rename OnlineGlomPlace to ListPlace.
1079 The only change besides the rename is that url will now display #list
1080 instead of #Document.
1082 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1083 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1084 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1085 * src/main/java/org/glom/web/client/place/ListPlace.java:
1086 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1088 2011-05-06 Ben Konrath <ben@bagu.org>
1090 Use Presenter for app navigation.
1092 This is the proper way to deal with Place (URL) changes with the MVP
1095 * src/main/java/org/glom/web/client/ClientFactory.java:
1096 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1097 PlaceHistoryMapper and PlaceHistoryHandler.
1098 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1099 PlaceHistoryMapper and PlaceHistoryHandler.
1100 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1101 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1102 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1103 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1104 Add Presenter interface and setPresenter methods. Rename addHyperLink
1105 to addDocumentLink taking only the document title as a parameter.
1107 2011-04-14 Ben Konrath <ben@bagu.org>
1109 Prompt for db username/password if they haven't been set.
1111 This is implemented with a popup widget that is contained within the
1112 OnlineGlomView and managed by the OnlineGlomActivity.
1114 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1115 methods for checking and setting the database username and password.
1116 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1117 new methods for checking and setting the database username and
1119 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1120 Display authentication popup if the JDBC connection to the database
1121 has not been authenticated.
1122 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1124 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1125 for dealing with the authentication popup.
1126 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1127 Implement the methods for dealing with the authentication popup.
1128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1129 try to executed queries if the database connection hasn't been
1130 authenticated. Implement methods for checking and setting the
1131 database username and password.
1133 2011-04-12 Ben Konrath <ben@bagu.org>
1135 Make log messages a little clearer.
1137 Add a dash betweeen the document title and the table name.
1139 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1141 2011-04-12 Ben Konrath <ben@bagu.org>
1143 Protect against NPEs when cleaning up database resources.
1145 While this isn't strictly necessary because the exception is caught,
1146 not protecting against the NPEs makes it harder to find the real error
1149 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1151 2011-04-12 Ben Konrath <ben@bagu.org>
1153 Move configuration of the servlet to the constructor.
1155 The servlet will be initialized even if the database authentication
1156 information is not set or correct. I still need to add the UI for prompting
1157 the user for the authentication information when it's required.
1159 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1160 javadocs for getDocumentTitles() method.
1161 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1162 Set error message when RPC fails.
1163 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1164 glom files directory from the configuration file. Try to set the
1165 database authentication information for the specific document if it's
1166 set and works otherwise try to use the global authentication
1167 information set for the directory.
1168 * src/main/resources/onlineglom.properties: Moved from
1169 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1170 Added detailed comments for the new keys.
1172 2011-04-11 Ben Konrath <ben@bagu.org>
1174 Remove unnecessary @Override in DocumentSelectionViewImpl.
1176 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1178 2011-04-11 Ben Konrath <ben@bagu.org>
1180 Remove center alignment in DocumentSelectionView.
1182 The title element is still centred but the document titles and bottom
1183 sentence are both left-aligned.
1185 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1187 2011-04-11 Ben Konrath <ben@bagu.org>
1189 Change 'Demo' naming convention to 'Document'.
1191 This is just a rename refactor with no functional changes to the code.
1193 * src/main/java/org/glom/web/client/ClientFactory.java:
1194 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1195 * src/main/java/org/glom/web/client/OnlineGlom.java:
1196 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1197 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1198 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1199 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1200 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1201 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1202 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1203 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1204 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1207 2011-04-08 Ben Konrath <ben@bagu.org>
1209 Remove FIXME from safeLongToInt() method.
1211 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1214 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1216 2011-04-08 Ben Konrath <ben@bagu.org>
1218 Display an error if no glom documents are found in the specified directory.
1220 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1221 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1222 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1225 2011-04-08 Ben Konrath <ben@bagu.org>
1227 Add copyright header to one more file ... oops.
1229 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1231 2011-04-08 Ben Konrath <ben@bagu.org>
1233 Add copyright header to files without it.
1235 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1236 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1237 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1238 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1239 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1240 * src/main/java/org/glom/web/shared/GlomField.java:
1242 2011-04-08 Ben Konrath <ben@bagu.org>
1244 Add support for accessing multiple glom documents in the servlet.
1246 This completes the demo selection functionality.
1248 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1249 document title to methods.
1250 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1251 document title to methods.
1252 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1253 Set browser window title when the activity starts. Correct name of
1254 document title variable.
1255 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1256 Set browser window title when the activity starts. Set the table
1257 selector change handler after table selector has been set. Clear the
1258 OnlineGlomView when the activity has been stopped.
1259 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1260 document title as the place token. Use "#Document:" instead of
1261 "#OnlineGlomPlace:" in the URL.
1262 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1263 Change heading to "Online Glom"
1264 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1265 document title in RPC methods.
1266 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1267 setDocumentTitle() method. Add clear() method.
1268 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1269 setDocumentTitle() method. Implement clear() method which removes the
1270 change handler on the ListBox, clears the ListBox and clears the
1272 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1273 Implement methods with document title. Keep track for the configured
1274 glom documents and their corresponding JDBC configurations in a hash
1275 table. This information is retrieved using the document title as the
1276 key in the hash table.
1277 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1278 document title field as it's no longer needed.
1280 2011-04-08 Ben Konrath <ben@bagu.org>
1282 Update the Eclipse JDT configuration.
1284 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1285 methods. Automatically add the copyright header to new files.
1287 2011-04-05 Ben Konrath <ben@bagu.org>
1289 Add new page for demo selection.
1291 This patch adds all the components required to view and start an
1292 OnlineGlom demo by clicking on the desired hyperlink. The user is
1293 able to return to the demo selection page with the browser's back
1294 button. I still need to modify the servlet to work with multiple
1295 documents so all demo links will load the file defined in the
1296 OnlineGlom.properties.
1298 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1299 This is only useful during development so we don't need to save it.
1300 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1301 get a reference to the DemoSelectionView.
1302 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1303 method to get a reference to the DemoSelectionView.
1304 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1305 default view to DemoSelectionView.
1306 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1307 to get glom document titles for glom files in a hard-coded directory.
1308 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1309 method to get glom document titles for glom files in a hard-coded
1311 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1312 Presenter for DemoSelectionView.
1313 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1314 for DemoSelectionView.
1315 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1316 Update for DemoSelectionView.
1317 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1318 Basic 'Place' implementation for the DemoSelectionView.
1319 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1320 The interface for the DemoSelectionView.
1321 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1322 The implementation of the DemoSelectionView.
1323 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1324 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1325 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1326 implementation of method to get glom document titles for glom files
1327 in a hard-coded directory.
1328 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1329 on longer being used.
1330 * src/main/webapp/glom.png: Glom logo.
1332 2011-04-05 Ben Konrath <ben@bagu.org>
1334 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1336 This is the forth and final commit of a refactor that will allow
1337 OnlineGlom to be used with multiple documents.
1339 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1340 Move RPC code from OnlineGlomViewImpl to this class.
1341 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1343 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1344 RPC code to the presenter class (the P in MVP).
1346 2011-04-04 Ben Konrath <ben@bagu.org>
1348 Start moving the existing OnlineGlom code to MVP.
1350 This work is based on the GWT MVP framework that is documented here:
1352 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1354 This is the third commit of a refactor that will allow OnlineGlom to
1355 be used with multiple documents.
1357 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1358 Interface for client factory which is used to get instances of various
1359 classes throughout the app.
1360 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1361 Implementation of client factory.
1362 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1363 initialize the MVP framework.
1364 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1365 New file. Activity manager for the main container widget. This is the
1367 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1368 Maps place (URL) to its corresponding activity.
1369 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1370 New file. This is just a place holder for a generated file.
1371 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1372 New file. Represents the URL for the main Online Glom app.
1373 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1374 for changes in LayoutListViewImpl.
1375 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1376 interface for View. Move code to OnlineGlomViewImpl class.
1377 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1378 file. Implementation of OnlineGlomView.
1379 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1380 Place resources. Use ClientFactoryImpl by default.
1382 2011-04-04 Ben Konrath <ben@bagu.org>
1384 Move View classes to their own package.
1386 This is the second commit of a refactor that will allow OnlineGlom to
1387 be used with multiple documents.
1389 * src/main/java/org/glom/web/client/OnlineGlom.java:
1390 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1391 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1393 2011-04-02 Ben Konrath <ben@bagu.org>
1395 Move UI code from the main module to its own class.
1397 This is the first commit of a refactor that will allow OnlineGlom to be
1398 used with multiple documents.
1400 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1401 references to OnlineGlom to OnlineGlomView.
1402 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1403 OnlineGlomView and instantiate it here.
1404 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1405 represents the main OnlineGlomView with one document.
1407 2011-04-01 Ben Konrath <ben@bagu.org>
1409 Fix formatting of gwt.xml and add DTD.
1411 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1413 2011-03-30 Ben Konrath <ben@bagu.org>
1415 Propperly convert gdkColor string to html colour string.
1417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1419 2011-03-28 Ben Konrath <ben@bagu.org>
1421 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1423 This implementation matches
1424 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1425 readable and is not tied to Swig.
1427 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1429 2011-03-28 Ben Konrath <ben@bagu.org>
1431 Use read-only checkboxes for boolean field types.
1433 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1434 in the CellTable based on the field type. It currently only
1435 distinguishes between boolean and text columns but I'll need to add
1436 support for more types.
1437 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1438 column type in the ColumnInfo object. Add method to convert between the
1439 glom field type enum in ColumnInfo and the glom field type in libglom.
1440 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1442 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1443 getting and setting booleans.
1445 2011-03-25 Ben Konrath <ben@bagu.org>
1447 Don't get the Date twice from the ResultSet.
1449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1451 2011-03-25 Ben Konrath <ben@bagu.org>
1453 Cleanup code in the servlet.
1455 * TODO: Remove item about row count. Add item about testing row count
1456 query with large number of rows.
1457 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1458 spelling mistakes, change method parameter to be consistent with
1461 2011-03-25 Ben Konrath <ben@bagu.org>
1463 Add server side logging with the gwt-log library.
1465 * .gitignore: Ignore the log file we're now producing.
1466 * TODO: Add a couple TODO item for logging.
1467 * pom.xml: Add gwt-log and log4j as a dependency.
1468 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1469 logging of errors, warnings and some important info.
1470 * src/main/resources/log4j.properties: New file to configure log4j.
1472 2011-03-24 Ben Konrath <ben@bagu.org>
1474 Add a disable button for the Details view.
1476 * src/main/java/org/glom/web/client/LayoutListView.java:
1478 2011-03-22 Ben Konrath <ben@bagu.org>
1480 Use a count query to get the number of rows for the list view pager.
1482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1484 2011-03-22 Ben Konrath <ben@bagu.org>
1486 Add more TODO information about CellTable pager positioning.
1490 2011-03-19 Ben Konrath <ben@bagu.org>
1492 Add TODO item about CellTable pager positioning.
1496 2011-03-18 Ben Konrath <ben@bagu.org>
1498 Remove unneeded GlomFieldColumn class.
1500 This is just a small code cleanup.
1502 * src/main/java/org/glom/web/client/LayoutListView.java:
1504 2011-03-18 Ben Konrath <ben@bagu.org>
1506 Use cursor mode in the query that gets data for the list view.
1508 I still need to fix the potential memory problem when getting the row
1509 count for the list view.
1511 * TODO: Add note about testing memory usage with large data sets. Add
1512 item about fixing row counting with large data sets.
1513 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1514 PostgreSQL JDBC driver into cursor mode when getting data for the
1517 2011-03-15 Ben Konrath <ben@bagu.org>
1519 Remove the GWT Container from the Eclipse build classpath.
1521 The GWT dependencies are set by Maven so this isn't needed.
1525 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1527 Added some earlier mockups to git, but not to the tarball dist.
1529 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1530 Openismus. These hopefully show how we might structure the HTML so that
1531 it can be styled easily with CSS. However, we probably need to adapt them
1532 for the CSS structure that GWT dictates for common widgets.
1534 2011-03-14 Ben Konrath <ben@bagu.org>
1536 Locate OnlineGlom.properties using the ServletContext.
1538 This is required to be able to locate the file in the deployed servlet.
1540 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1541 Configure the database and glom document in in a helper method so
1542 that the ServletContext can be used to locate OnlineGlom.properties.
1543 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1544 src/main/webapp. This is the proper location for .properites files.
1546 2011-03-12 Ben Konrath <ben@bagu.org>
1548 Add note to README about why we're compiling down to obfuscated JavaScript.
1552 2011-03-11 Ben Konrath <ben@bagu.org>
1554 Use properties file to configure servlet.
1556 This allows people to change the glom file path, db username and db
1557 password without recompiling the code.
1559 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1560 * src/main/webapp/OnlineGlom.properties:
1562 2011-03-11 Ben Konrath <ben@bagu.org>
1564 Use table fields in layout list view if the layout list is not defined.
1566 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1567 Manually create a LayoutFieldVector for the query builder using the
1568 table fields when a layout list is not defined in the glom file.
1570 2011-03-11 Ben Konrath <ben@bagu.org>
1572 Only show FIXME string for images when there's an image.
1574 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1575 in this change are some small code cleanups.
1577 2011-03-11 Ben Konrath <ben@bagu.org>
1579 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1583 2011-03-11 Ben Konrath <ben@bagu.org>
1585 Correctly set the index of the default table.
1587 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1588 Correctly set the index of the default table. Add commented out example
1591 2011-03-10 Ben Konrath <ben@bagu.org>
1593 Add comment to pom.xml about the previous change.
1595 * pom.xml: Add comment about the deployment issue so that it's obvious
1596 why java-libglom is set to the provided scope.
1598 2011-03-10 Ben Konrath <ben@bagu.org>
1600 Change java-libglom dependency from compile to provided in pom.xml.
1602 Since java-libglom uses jni it can only be loaded once and therefore
1603 must be placed in $CATALINA_HOME/lib and not included in each war.
1604 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1605 More information about this issue can be found in the Tomcat 6 release
1606 notes in the "JNI Based Applications" section:
1608 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1610 * README: Remove note about this issue. Deployment info should really
1611 be on the wiki anyway so I'll add it right now.
1612 * pom.xml: Change java-libglom dependency from compile to provided so
1613 that it's copied in to the packaged war.
1615 2011-03-09 Ben Konrath <ben@bagu.org>
1617 Change to using a neutral locale for currency, date and time formatting.
1619 This solves the problem of currency values being represented without a
1620 space between the currency code and the number (e.g. "EUR5.89" is now
1621 represented as "EUR 5.89"). More work is required when we implement
1622 a locale preference setting.
1624 * TODO: Add note about currency formatting issues with different
1626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1627 to using the neutral ROOT locale.
1629 2011-03-09 Ben Konrath <ben@bagu.org>
1631 Add support for currency codes that are not ISO 4217 codes.
1633 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1634 the currency code defined in the glom file when it's not 3 characters
1635 long or when Java doesn't recognize the string as an ISO 4217 code.
1637 2011-03-08 Ben Konrath <ben@bagu.org>
1639 Remove test classes, launch configurations and configuration.
1641 The test stuff was getting in the way when creating the war. To make
1642 the war file you can now do 'mvn clean package'. The packaged war file
1643 will be in the target directory.
1645 * .classpath: Remove unused classpathentry for tests and i18n.
1646 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1647 property. Don't run test or i18n goals when packaging the war.
1648 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1653 * OnlineGlomTest-dev.launch:
1654 * OnlineGlomTest-prod.launch:
1655 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1656 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1658 2011-03-07 Ben Konrath <ben@bagu.org>
1660 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1662 These fixes allow me to use 'mvn deploy' to create the war file.
1664 * .classpath: This generated config has been updated by Eclipse. This
1665 change was probably triggered by me updating from Eclipse 3.6.1 to
1667 * .gitignore: Add entry to ignore the directory
1668 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1669 * .project: The generated config has been updated by Eclipse. This
1670 change was probably triggered by me updating from Eclipse 3.6.1 to
1672 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1673 so that Eclipse doesn't complain
1674 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1675 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1676 'tests' directory to 'client' directory. This is the new
1677 gwt-maven-plugin convension.
1678 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1679 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1681 2011-03-07 Ben Konrath <ben@bagu.org>
1683 Add support for horizontal alignment in the LayoutList columns.
1685 * TODO: Remove item about horizontal alignment. Add item about
1686 improvements to ColumnInfo.
1687 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1688 alignment on the columns. Use ColumnInfo RPC object get the column
1689 title and horizontal alignment.
1690 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1691 LayoutListView creation with ColumnInfo RPC object.
1692 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1693 a ColumnInfo object for every LayoutList columnn. Convert the
1694 FieldFormatting.HorizontalAlignment to the correct
1695 ColumnnInfo.HorizontatlAlignment with the new
1696 getColumnInfoHorizontalAlignment helper method.
1697 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1698 to encapsulate column information like alignment and title. This
1699 could be used to set the colour instead of on a per cell field basis.
1700 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1701 column title storage and retrieval with ColumnInfo.
1703 2011-03-04 Ben Konrath <ben@bagu.org>
1705 Add support for column sorting.
1707 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1708 AsynDataProvider to be an anonymous inner class. Use new
1709 getSortedTableData RPC method when column sort is requested. Set all
1710 columns sortable and add an AsyncHandler to activate sorting in the
1712 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1713 method getSortedTableData(). Cleanup other method signatures.
1714 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1715 new method getSortedTableData(). Cleanup other method signatures.
1716 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1717 Implement getSortedTableData() and getTableData() methods by using a
1718 private helper method with the appropriate parameters filled in. Use
1719 user supplied sort clause when supplied, otherwise fall back to
1720 sorting by the primary key. Move destroy() method to be underneath
1721 constructor for readability. Cleanup comments.
1723 2011-03-03 Ben Konrath <ben@bagu.org>
1725 Add support for colour text and colour backgrounds to the layout list cells.
1727 Only the cell backgrounds are coloured which leaves a gap between the
1728 cells that isn't coloured. I need to figure out a way to set
1729 'style=background-colour:' on the whole column rather than just the
1732 * TODO: Add a note about colouring the background of the whole column.
1733 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1734 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1735 render the coloured text and backgrounds. Use GlomField[] for the row type.
1736 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1738 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1739 GlomField[] for the row type.
1740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1741 GlomField[] for the row type. Set the text, text colour and background
1742 colour in the GlomField objects as specified in the glom document. Add
1743 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1744 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1745 the glom field text, foreground colour and background colour.
1747 2011-03-02 Ben Konrath <ben@bagu.org>
1749 Don't display hidden tables in the combo box.
1751 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1754 code to ignore hidden tables using ArrayLists for the table names and
1756 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1757 tableNames to use ArrayLists instead of String[]. Update getter and setter
1760 2011-03-01 Ben Konrath <ben@bagu.org>
1762 Add support for Date and Time number types.
1764 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1765 Implement formatting for Date and Time values. Change the default glom
1766 file to small business example.
1768 2011-03-01 Ben Konrath <ben@bagu.org>
1770 Add support for formatting glom types as specified in the glom file.
1772 Formatting isn't finished yet - I still need to add support for Date
1775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1776 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1777 checks for null values in JDBC cleanup code and catch all exceptions
1778 instead of just SQLExceptions.
1779 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1782 2011-03-01 Ben Konrath <ben@bagu.org>
1784 Use GWT 2.2.0 instead of 2.1.1.
1786 * pom.xml: Change GWT version numbers.
1788 2011-03-01 Ben Konrath <ben@bagu.org>
1790 A few small code cleanups.
1792 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1794 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1795 unnecessary object creation in constructor.
1796 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1797 unnecessary object creation in constructor.
1799 2011-02-28 Ben Konrath <ben@bagu.org>
1801 Add file for TODO list.
1805 2011-02-18 Ben Konrath <ben@bagu.org>
1807 Enable the CellTable Pager when more than 20 rows need to be viewed.
1809 The Pager will automatically become active when the results are larger
1810 than the CellTable size which is currently set to 20 lines.
1812 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1813 name on debug statment in RPC call in LayoutListDataProvider, add
1814 numRows parameter to LayoutListView constructor, propperly set rowCount
1816 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1817 name on debug statment in RPC call, use LayoutListTable object in RPC
1818 calls, pass rowCount to LayoutListView.
1819 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1820 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1822 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1823 interface for changes in OnlineGlomService.
1824 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1825 getLayoutListHeaders() to getLayoutListTable() and return
1826 LayoutListTable. Using this object allows me to pass other information
1827 about the LayoutList like the expected number of rows in the result set.
1828 The Connection object from the connection pool is now propperly closed.
1829 Only the requested number of lines are returned to the client in
1831 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1832 GlomTable and add columnTitles and numRows.
1834 2011-02-18 Ben Konrath <ben@bagu.org>
1836 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1838 This is a small performance boost. I'll use GlomTable to get the required
1839 layoutlist information.
1841 * src/main/java/org/glom/web/client/OnlineGlom.java:
1842 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1843 * src/main/java/org/glom/web/shared/GlomDocument.java:
1845 2011-02-18 Ben Konrath <ben@bagu.org>
1847 Add option to turn off formatting in JDT formatter preferences.
1849 * .settings/org.eclipse.jdt.core.prefs:
1851 2011-02-18 Ben Konrath <ben@bagu.org>
1853 Rename LayoutList to LayoutListView.
1855 I'm working towards setting things up to easily use MVP when the time
1858 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1860 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1863 2011-02-17 Ben Konrath <ben@bagu.org>
1865 Move LayoutListDataProvider class into LayoutList.java.
1867 * src/main/java/org/glom/web/client/LayoutList.java:
1869 2011-02-17 Ben Konrath <ben@bagu.org>
1871 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1873 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1875 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1876 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1877 from LibGlomServer.java.
1878 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1879 Rename from LibGlomServiceAsync.java.
1880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1881 Rename from LibGlomServiceImpl.java.
1882 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1884 2011-02-17 Ben Konrath <ben@bagu.org>
1886 Update JDT settings.
1888 * .settings/org.eclipse.jdt.core.prefs:
1890 2011-02-17 Ben Konrath <ben@bagu.org>
1892 Move GWT-RPC objects to shared package (where they should be).
1894 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1895 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1896 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1897 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1898 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1899 org.glom.web.shared package.
1900 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1901 org.glom.web.shared package.
1902 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1903 directory in compilation to javascript.
1905 2011-02-16 Ben Konrath <ben@bagu.org>
1907 Add sort clause to the sql query that grabs table information.
1909 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1910 if one of the columns is a primary key.
1912 2011-02-16 Ben Konrath <ben@bagu.org>
1914 Disable generateAsync feature of gwt-maven.
1916 The generated interface does not correctly match the methods in LibGlomService
1917 and the generated singleton Util inner-class doesn't respect the servlet
1920 * pom.xml: Turn off generateAsync feature.
1921 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1922 with singleton Util inner-class.
1924 2011-02-14 Ben Konrath <ben@bagu.org>
1926 Add LGPL v3 licence notices.
1928 Followed directions listed here:
1929 http://www.gnu.org/licenses/gpl-howto.html
1931 * COPYING: This file is a copy of the GPL v3.
1932 * COPYING.LESSER: This file is a copy of the LGPL v3.
1933 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1935 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1937 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1939 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1941 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1943 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1945 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1948 2011-02-14 Ben Konrath <ben@bagu.org>
1950 Use ArrayList instead of Array in GWT-RPC calls.
1952 Apparently this gives a slight performance boost to the compiled
1955 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1957 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1960 2011-02-14 Ben Konrath <ben@bagu.org>
1962 Access data from a postgres db rather than the example glom file.
1964 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1965 compile down to obfuscated javascript.
1966 * pom.xml: Add c3p0 and postgres JDBC libraries.
1967 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1968 using a postgres db accessed through the c3p0 connection pooling library.
1970 2011-02-14 Ben Konrath <ben@bagu.org>
1972 Update Java formatter settings.
1974 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1976 2011-02-02 Ben Konrath <ben@bagu.org>
1978 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1980 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1982 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1983 the compiled webapp directory that Eclipse uses as we're using Maven now.
1984 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1985 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1987 * pom.xml: Format file, change target Java version to 1.6.
1989 2011-02-02 Ben Konrath <ben@bagu.org>
1991 Add information about a deployment related issue.
1993 * README: Add Notes section with the problem outlined.
1995 2011-02-02 Ben Konrath <ben@bagu.org>
1997 Call Glom.libglom_deinit() when the servlet is shutdown.
1999 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2000 Glom.libglom_deinit() to destroy() method.
2002 2011-01-28 Ben Konrath <ben@bagu.org>
2004 Use generated Util class to get the RPC Async interface.
2006 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2008 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2009 getInstance() method to get a reference to the RPC Async interface.
2010 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2011 getInstance() method to get a reference to the RPC Async interface, remove
2012 the now unused getLibGlomServiceProxy() method.
2014 2011-01-27 Ben Konrath <ben@bagu.org>
2016 Cleanup ChangeLog entry from previous commit.
2018 * ChangeLog: Group logical changes together and add comments.
2020 2011-01-25 Ben Konrath <ben@bagu.org>
2022 Convert to gwt-maven project.
2024 * .gitignore: Update for new project structure.
2025 * README: New file with a link to the online documentation.
2026 * pom.xml: The generated maven configuration file with some tweaks.
2028 Add / update Eclipse settings. These files are a merge of the files that
2029 were generated with the gwt-maven plugin and the files we were previously
2033 * .settings/.jsdtscope:
2034 * .settings/com.google.gdt.eclipse.core.prefs:
2035 * .settings/com.google.gwt.eclipse.core.prefs:
2036 * .settings/org.eclipse.jdt.core.prefs:
2037 * .settings/org.eclipse.wst.common.component:
2038 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2039 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2040 * .settings/org.maven.ide.eclipse.prefs:
2041 * OnlineGlomTest-dev.launch:
2042 * OnlineGlomTest-prod.launch:
2044 Java source files moved from the 'src' directory to the directory structure
2046 * src/main/java/org/glom/web/client/GlomDocument.java:
2047 * src/main/java/org/glom/web/client/GlomTable.java:
2048 * src/main/java/org/glom/web/client/LayoutList.java:
2049 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2050 * src/main/java/org/glom/web/client/LibGlomService.java:
2051 * src/main/java/org/glom/web/client/OnlineGlom.java:
2052 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2054 Non-functional property file used for translations. I included this as
2055 reminder that it's something I need to sort out.
2056 * src/main/resources/org/glom/web/client/Messages.properties:
2058 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2059 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2061 The servlet configuration files moved from the 'war' directory.
2062 * src/main/webapp/OnlineGlom.css:
2063 * src/main/webapp/OnlineGlom.html:
2064 * src/main/webapp/WEB-INF/web.xml:
2066 Generated test files with most of the code commented out. I included these
2067 so that it's easy to add tests when we're ready for them.
2068 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2069 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2071 2011-01-25 Ben Konrath <ben@bagu.org>
2073 Remove unused println.
2075 * src/org/glom/web/server/LibGlomServiceImpl.java:
2077 2011-01-25 Ben Konrath <ben@bagu.org>
2079 Add project specific JDT settings.
2081 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2082 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2084 2011-01-25 Ben Konrath <ben@bagu.org>
2086 Populate celltable with example data.
2088 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2089 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2090 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2091 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2092 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2093 asynchronously gets the example data.
2094 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2095 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2096 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2097 curently selected table to be retrieved by other widgets.
2098 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2099 implement getTableData() in a hacky way. This method needs to be updated
2100 to grab information from the database when database creating is
2103 2011-01-20 Ben Konrath <ben@bagu.org>
2105 Set table headers when table dropBox changes.
2107 * src/org/glom/web/client/GlomDocument.java: Correct some method
2109 * src/org/glom/web/client/LibGlomService.java: Add method
2110 to get list layout field names.
2111 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2112 to get list layout field names.
2113 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2114 widget for list layout table.
2115 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2116 the table drop box and add new updateTable() method to asynchronously
2117 get the layout list field names for the currently selected table.
2118 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2119 implementation of getLayoutListHeaders() method.
2120 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2122 2011-01-18 Ben Konrath <ben@bagu.org>
2124 Make a listBox with table titles instead of the flexTable demo.
2126 This is the start of something more useful.
2128 * .classpath: Exclude a bunch of packages from the JVM that are
2129 getting in the way of the Eclipse content assist.
2130 * src/org/glom/web/client/GlomDocument.java:
2131 * src/org/glom/web/client/GlomTable.java:
2132 * src/org/glom/web/client/LibGlomService.java:
2133 * src/org/glom/web/client/LibGlomServiceAsync.java:
2134 * src/org/glom/web/client/OnlineGlom.java:
2135 * src/org/glom/web/server/LibGlomServiceImpl.java:
2136 * war/OnlineGlom.html:
2137 * war/WEB-INF/web.xml:
2139 211-01-13 Ben Konrath <ben@bagu.org>
2141 Update to new java-libglom API.
2143 * .gitignore: Ignore OnlineGlom.war.
2144 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2146 2010-12-20 Ben Konrath <ben@bagu.org>
2148 Add some basic style to the table listing.
2150 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2151 header, print useful error message on async callback failure.
2152 * war/OnlineGlom.css: Add style for table header, remove defaults
2153 provided by the Eclipse project wizard.
2155 2010-12-20 Ben Konrath <ben@bagu.org>
2157 Load example file from installed glom dir.
2159 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2160 provided by java-libglom to find the example file.
2162 2010-12-20 Ben Konrath <ben@bagu.org>
2164 Update Eclipse settings.
2167 * .settings/com.google.gdt.eclipse.core.prefs:
2168 * .settings/com.google.gwt.eclipse.core.prefs:
2170 2010-12-17 Ben Konrath <ben@bagu.org>
2174 * .classpath: New file.
2175 * .gitignore: New file.
2176 * .project: New file.
2177 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2178 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2179 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2180 * src/org/glom/web/client/GlomTable.java: New file.
2181 * src/org/glom/web/client/OnlineGlom.java: New file.
2182 * src/org/glom/web/client/TableNameService.java: New file.
2183 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2184 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2185 * war/OnlineGlom.css: New file.
2186 * war/OnlineGlom.html: New file.
2187 * war/WEB-INF/web.xml: New file.
2188 * war/images/glom.png: New file.