1 2011-09-23 Ben Konrath <ben@bagu.org>
3 Log which layout (list or details) the ignored item is from.
5 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
7 2011-09-23 Ben Konrath <ben@bagu.org>
9 Remove annotations that turn off code formatting in DataItem.
11 * src/main/java/org/glom/web/shared/DataItem.java:
13 2011-09-23 Ben Konrath <ben@bagu.org>
15 Rename GlomField to DataItem and update associated methods.
17 This is a rename-only refactor. No functionality has been added or
20 * src/main/java/org/glom/web/client/OnlineGlomService.java:
21 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
22 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
23 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
24 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
25 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
26 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
27 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
28 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
29 * src/main/java/org/glom/web/server/database/DBAccess.java:
30 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
31 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
32 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
33 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
34 * src/main/java/org/glom/web/shared/DataItem.java:
35 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
36 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
38 2011-09-23 Ben Konrath <ben@bagu.org>
40 Rename GlomDocument to DocumentInfo and update associated methods.
42 This is a rename-only refactor. No functionality has been added or
45 * src/main/java/org/glom/web/client/OnlineGlomService.java:
46 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
47 * src/main/java/org/glom/web/client/activity/ListActivity.java:
48 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
49 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
50 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
51 * src/main/java/org/glom/web/shared/DocumentInfo.java:
53 2011-09-20 Ben Konrath <ben@bagu.org>
55 Require java-libglom 1.17.3.
57 This picks up the fix for the seg fault problem with the Scenes table
58 in the Openismus Film Manager example.
62 2011-09-20 Ben Konrath <ben@bagu.org>
64 Change the way sort clause is added for primary key when no sort clause is requested.
66 The primary key is now added to the LayoutFieldVector (fieldsToGet)
67 before the sort clause is created. When a sort clause is not requested, the
68 sort clause is created by finding the primary key in the LayoutFieldVector
71 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
73 2011-09-20 Ben Konrath <ben@bagu.org>
75 Log error message if no documents are found in the configured directory.
77 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
78 Extract the glom file extension string to a private static final class
79 variable (mostly as syntactic sugar). Accept a minor formatting change.
80 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
81 the example glom.document.directory configuration property to make it
82 more clear that it can any directory, not just the home directory.
84 2011-09-18 Ben Konrath <ben@bagu.org>
86 Add related lists to details view.
88 The related list table has support for paging and sorting just like the
89 table in the list view.
91 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
92 SQL queries for the related list tables.
93 * src/main/java/org/glom/web/client/OnlineGlomService.java:
94 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
95 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
96 Rename getList methods to getListView and add comments. Remove
97 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
98 it being unused. Add methods: getDetailsLayoutAndData(),
99 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
100 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
101 Create the layout and set the data for the fields in one async call
102 instead of two. Create related lists where appropriate.
103 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
104 for method name changes in OnlineGlomService.
105 * src/main/java/org/glom/web/client/ui/DetailsView.java:
106 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
107 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
109 * src/main/java/org/glom/web/client/ui/ListView.java:
110 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
111 tableName from setCellTable(). Create a ListViewTable instead of
113 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
114 represent a data field in the details view.
115 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
116 from addDetailsCell() to Field class. Keep track of the Fields and
117 Portals in the details view.
118 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
119 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
120 and add a method to get it. Add method to set the contents of the
122 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
123 New class for related list tables. This class has the data provider
124 for the related list table.
125 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
126 abstract class which is the base class for the ListViewTable and the
128 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
129 New class for list view tables. This class has the data provider for
131 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
132 methods for related list tables. Add more information to the
133 LayoutItemField and LayoutItemPortal DTOs.
134 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
135 Remove debugging print statement.
136 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
137 Remove debugging print statements. Add primary key field to SQL count
139 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
140 Remove unnecessary LayoutFieldVector parameter from
141 getResultSizeOfSQLQuery() method.
142 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
143 New class for related list table database access.
144 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
145 class that is a wrapper DTO for details view layout and data.
146 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
147 new 'fromField' string to this DTO.
148 * src/main/webapp/style.css: Remove bottom margin and override top
151 2011-09-15 Ben Konrath <ben@bagu.org>
153 Breakup the OnlineGlomServiceImpl class to make it more manageable.
155 This sets things up to make it easier to add the data retrieval for
156 related lists (portals). No user noticeable changes were made with
159 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
160 class has the code to retrieve the layouts and access the
161 database using the new database helper classes.
162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
163 Most of the functionality has been removed from this class. This
164 class now represents the public interface for the client side
165 code. It also deals with configuring the servlet and cleaning
166 things up when the servlet is stopped.
167 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
168 of static methods into this utility class.
169 * src/main/java/org/glom/web/server/database/DBAccess.java:
170 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
171 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
172 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
173 These classes have the database retrieval code. The class hierarchy
174 has been setup to make it easy to reuse code for similar
177 2011-09-06 Ben Konrath <ben@bagu.org>
179 Create separate classes for list table code and the data provider.
181 As part of this refactor, I also split up the code a bit to make it
184 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
185 table code to two new classes (below).
186 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
187 with code from ListViewImpl.
188 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
189 New file with code from ListViewImpl.
191 2011-09-06 Ben Konrath <ben@bagu.org>
193 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
195 This fixes the LayoutItemPortal DTO to match the libglom layout object
198 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
200 2011-09-01 Ben Konrath <ben@bagu.org>
202 Set title of Portals in the Details View.
204 * pom.xml: Bump required version of java-libglom to 1.17.1.
205 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
206 widget creation to its own class. Add comments to constructor.
207 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
208 The code is mostly from the Group class with the title now set.
209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
210 title of Portal. Update some comments. Fix some code formatting.
212 2011-09-01 Ben Konrath <ben@bagu.org>
214 Remove TODO comment for the flow table column width.
216 The flow table column width is working correctly and doesn't need to be
217 changed. See this mailing list post for more info:
219 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
221 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
223 2011-08-27 Ben Konrath <ben@bagu.org>
225 Add document title (database name) to top of the browser page.
227 I added the document title to the TableSelecitonView but that will
228 change if / when we add a view that doesn't require table selection.
230 * mockups/details-contacts.html:
231 * mockups/details-projects.html:
232 * mockups/listview-contacts.html:
233 * mockups/listview-projects.html:
234 * mockups/style.css: Add document title to mockups to keep things
236 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
237 sizes to account for the document title.
238 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
239 Set the document title when it has been retrieved from the server.
240 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
241 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
242 and implement setDocumentTitle(String) method.
243 * src/main/webapp/style.css: Add ID for document title style.
245 2011-08-25 Ben Konrath <ben@bagu.org>
247 Add NavigationType enum to LayoutItemPortal DTO.
249 This is the start of adding support for Portals to the Details View.
251 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
252 LayoutItem_Portal.navigation_type enum from libglom to
253 LayoutItemPortal.NavigationType enum.
254 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
255 NavigationType enum, field for storing the NavigationType and getter
258 2011-08-25 Ben Konrath <ben@bagu.org>
260 Implement the flow table layout in the Details View.
262 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
263 FlowTable to Group to account for the renamed class.
264 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
265 File. This is a container widget that implements the Glom details view
266 flow table behaviour.
267 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
268 org/glom/web/client/ui/FlowTable.java.
269 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
270 so that the size of the subgroups are a closer match to the size of
271 the Glom subgroups. This makes the flowtable layout match the layout
272 in Glom for the Music Collection example file.
274 2011-08-16 Ben Konrath <ben@bagu.org>
276 Create container element for LayoutItemPortal in Details View.
278 This will help me develop the layout for the FlowTable.
280 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
281 fieldPanel variable to detailsCell.
283 2011-08-15 Ben Konrath <ben@bagu.org>
285 Set the height of the data element in the Details View.
287 I changed the InlineLabels (text in a span element) to Labels (text in
288 a div element) so that I could set the height of the details-data
289 elements instead of the details-cell parent elements. This allows the
290 the details-data element to display the correct height if style is
291 applied that shows the height.
293 This change has the added benefit of allowing the order of the labels
294 and data elements to be changed for right-to-left languages.
296 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
297 InlineLabels to Labels.
298 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
299 InlineLabels to Labels. Set the height of the data element.
300 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
301 multiline text height in the Formatting DTO.
302 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
303 for multiline height along with getter and setter methods.
304 * src/main/webapp/style.css: Adjust style to account for the change
305 from span elements to div elements in the details cell.
307 2011-08-15 Ben Konrath <ben@bagu.org>
309 Make the List View appearance match the mockups.
311 It doesn't match exactly but it's much better than it was.
313 * mockups/listview-contacts.html: Remove unused css classes.
314 * mockups/listview-projects.html: Remove unused css classes.
315 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
316 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
317 for mainPanel instead of VerticalPanel (table). Set style name on
318 CellTable. Set style name on Details column. Right-align Details
320 * src/main/webapp/style.css: Adjust properties to match the mockups.
322 2011-08-12 Ben Konrath <ben@bagu.org>
324 Add better support for subgroups in the details view.
326 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
327 changed FlowTable constructor.
328 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
329 support for subgroups and subgroup-titles.
330 * src/main/webapp/style.css: Add CSS class for subgroups and
333 2011-08-12 Ben Konrath <ben@bagu.org>
335 Return the top level LayoutGroup title.
337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
339 2011-08-11 Ben Konrath <ben@bagu.org>
341 Make the TableSelector header match the mockup.
343 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
344 the layout panel. Properly lineup the table selection header with
345 the list and details view.
346 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
347 margin around the details view.
348 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
349 Rename listBox variable to tableSelector. Set id for the style sheet.
350 Use a FlowPanel instead of a HorizontalPanel.
351 * src/main/webapp/style.css: Add properties to make the TableSelector
352 box match the mockups.
354 2011-07-13 Ben Konrath <ben@bagu.org>
356 Update install script for java-libglom version change.
358 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
361 2011-07-13 Ben Konrath <ben@bagu.org>
363 Add support sub-group in the details view.
365 I also removed the code that special-cased the default details view
368 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
370 I still have to make a proper flowtable.
372 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
373 Don't special-case default details view layout.
374 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
375 addLayoutField() as I'm going to use it.
376 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
377 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
379 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
380 extracted from DetailsViewImpl.GroupPanel. Add support for
382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
383 column count when getting the details layout.
385 2011-07-12 Ben Konrath <ben@bagu.org>
387 Set browser title with database and table titles.
389 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
390 Set the browser title when the table changes and when the activity
392 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
393 title when retrieving document info (the GlomDocument object).
394 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
395 with getter and setter methods. Remove unused convenience constructor.
396 Use default code formatting.
398 2011-07-12 Ben Konrath <ben@bagu.org>
400 Ignore LayoutItemPortals in the details view.
402 I added a new DTO for the LayoutItemPortal so that I can ignore it in
405 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
406 LayoutItemPortal layout objects.
407 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
408 LayoutItemPortal objects when retrieving the details layout.
409 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
410 file. This is an empty class and just used to get type information for
413 2011-07-12 Ben Konrath <ben@bagu.org>
415 Use java-libglom 1.17.0.
419 2011-07-11 Ben Konrath <ben@bagu.org>
421 Remove "Table:" label from table selector.
423 This matches a recent change in the Glom UI.
425 * mockups/details-contacts.html:
426 * mockups/details-projects.html:
427 * mockups/listview-contacts.html:
428 * mockups/listview-projects.html: Remove the "Table:" label from the
430 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
432 2011-07-11 Ben Konrath <ben@bagu.org>
434 Add main groups to the details view.
436 This makes things look a little nicer in the details view. The next step
437 is to implement the flowtable.
439 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
440 resources from the standard gwt css theme. Standard.css is now
441 included in OnlineGlom.html so that the online glom css rules have
442 precedence over the gwt theme.
443 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
444 the whole LayoutGroup to the DetailsView instead of just the titles.
445 * src/main/java/org/glom/web/client/ui/DetailsView.java:
446 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
447 details layout with a helper class (GroupPanel). I might extract this
448 class when I make the full flowtable.
449 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
450 string as default so I don't have to worry about NPEs when processing
452 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
453 note beside OnlineGlom.gwt.xml above).
454 * src/main/webapp/style.css: Add default font-size to body to override
455 the font-size set by the standard theme. Don't use h2 tags for
456 group-title. Create new details-cell class.
458 2011-07-08 Murray Cumming <murrayc@murrayc.com>
460 ConfiguredDocument: Set the port number too.
462 * src/main/java/org/glom/web/server/ConfiguredDocument.java
463 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
464 Glom document. Presumably this worked sometimes so far because there is a
467 2011-07-08 Murray Cumming <murrayc@murrayc.com>
469 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
471 * src/main/java/org/glom/web/server/ConfiguredDocument.java
472 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
473 correct, though we should throw an exception too.
475 2011-07-08 Murray Cumming <murrayc@murrayc.com>
477 Fix a addDocuemnt typo.
479 * src/main/java/org/glom/web/shared/Documents.java
480 (Documents.addDocuemnt): Rename to addDocument().
481 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
482 (OnlineGlomServiceImpl.getDocuments): Adapt.
484 2011-07-08 Murray Cumming <murrayc@murrayc.com>
486 Slightly improved log output when connection fails.
488 * src/main/java/org/glom/web/server/ConfiguredDocument.java
489 (ConfiguredDocument.setUsernameAndPassword):
490 We don't know for sure if it' the username/password that's wrong, so
491 rephrase the message.
492 Also ouput the exception message, though it's generic in this case.
494 2011-07-08 Ben Konrath <ben@bagu.org>
498 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
499 added braces to a one line if statement because the Eclipse formatter
500 was getting confused.
502 2011-07-07 Ben Konrath <ben@bagu.org>
504 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
506 These should really be two separate tasks but I counldn't get things to
507 work with GWT 2.2.0 and Eclipse 3.7.
511 * .settings/org.eclipse.jdt.core.prefs:
512 * .settings/org.eclipse.jdt.ui.prefs:
513 * .settings/org.eclipse.ltk.core.refactoring.prefs:
514 * .settings/org.eclipse.m2e.core.prefs:
515 Add new config files. Update current files. Remove references to the
516 webtools plugins as we're not using any of the webtools features.
517 * .gitignore: Add logs directory which is created when running with
519 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
520 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
521 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
523 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
525 2011-07-07 Murray Cumming <murrayc@murrayc.com>
527 onlineglom.properties: Add explanatory comments.
529 * src/main/resources/onlineglom.properties: Also change the default user
530 from ben to someuser, to avoid the risk of people thinking we just
531 stupidly hard-coded a locale path, when they see that on stderr or in a log.
533 2011-06-28 Ben Konrath <ben@bagu.org>
535 Use filename in Log for incorrect passwords.
537 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
538 getFileName(String) method to get the filename from the URI.
540 2011-06-28 Ben Konrath <ben@bagu.org>
542 Add the table name to the URL token for the ListPlace.
544 This makes things consistent between the DetailsPlace and the
545 ListPlace. It also allows the the ListPlace to be bookmarked.
547 * src/main/java/org/glom/web/client/OnlineGlomService.java:
548 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
549 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
550 Remove getDefaultListLayout(). The default layout is now returned
551 by the getListLayout() method when the table name is an empty string.
552 * src/main/java/org/glom/web/client/activity/ListActivity.java:
553 Add table name field. Change to a new ListPlace when the table
554 has been changed. Use getListLayout() for getting the default
556 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
557 Add table name field. Set the correct table name in the list box
558 when loading from bookmark. This corrects a problem for the
560 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
561 Move table name to super-class (HasSelectableTable). Move document
562 and table URL keys to super-class in HasSelectableTable.
563 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
564 Add table name field. Add Tokenizer class with URL key common to
565 the subclasses (DetailsPlace and ListPlace).
566 * src/main/java/org/glom/web/client/place/ListPlace.java:
567 Add table name. Add code to parse the URL token.
568 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
569 Update ListPlace construction with empty table name string.
570 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
571 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
572 Change setTableSelectedIndex(int) to setSelectedTableName(String).
573 Update ListPlace construction with table name string.
574 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
575 Change defaultTableName field to tableName to reflect how it's now
576 used. Update the getter and setter methods.
578 2011-06-28 Ben Konrath <ben@bagu.org>
580 Enable the table selector in the DetailsView.
582 * src/main/java/org/glom/web/client/OnlineGlomService.java:
583 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
585 Remove getDefaultDetailsLayout(). The default layout is now returned
586 by the getDetailsLayout() method when the table name is an empty
588 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
589 event handler for table change event. Change to using
590 getDetailsLayout() for the default details layout.
591 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
593 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
594 when navigating to the details place.
596 2011-06-27 Ben Konrath <ben@bagu.org>
598 Use filename based unique document ID in URL and for RPC.
600 The document ID is the glom document name with spaces (' ') replaced
601 with pluses ('+') and without the .glom extension.
603 This change is mostly a string substitution of 'documentTitle' for
604 'documentID'. The only code change is the addition of a Documents DTO to get the
605 filename to document title mappings as indicated below.
607 * src/main/java/org/glom/web/client/OnlineGlomService.java:
608 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
609 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
610 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
611 Use Documents DTO to create the document links in the document
613 * src/main/java/org/glom/web/client/activity/ListActivity.java:
614 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
615 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
616 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
617 * src/main/java/org/glom/web/client/place/ListPlace.java:
618 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
619 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
620 * src/main/java/org/glom/web/client/ui/ListView.java:
621 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
622 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
623 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
624 * src/main/java/org/glom/web/server/Log.java:
625 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
626 getDocumentTitles() to getDocuments() and return the Documents DTO.
627 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
628 transferring the filename to document title mappings.
630 2011-06-25 Ben Konrath <ben@bagu.org>
632 Make the authentication popup work again.
634 This bug was introduced when I extracted ConfiguredDocument to its own class.
636 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
637 correct success / fail status in setUsernameAndPassword().
639 2011-06-25 Ben Konrath <ben@bagu.org>
641 Use filename as unique key for configuring database usernames and passwords.
643 This replaces the use of the Glom document title which could change
644 depending on the locale. Thanks to Murray Cumming for pointing out this
647 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
648 * src/main/resources/onlineglom.properties:
650 2011-06-24 Ben Konrath <ben@bagu.org>
652 Pass primary key value to DetailsView.
654 This enables the DetailsView to load the correct data.
656 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
657 primary key value field and set in constructor. Pass primary key
658 value to getDetailsData().
659 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
660 variables for document title and primary key value.
661 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
662 key value to the DetailsPlace.
664 2011-06-24 Ben Konrath <ben@bagu.org>
666 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
668 This allows the primary key to be retrieved by the Details button. This
669 functionality has not been implemented yet but it's in the works.
671 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
672 the LayoutGroup result to ListView.setCellTable instead of all of its
674 * src/main/java/org/glom/web/client/ui/ListView.java:
675 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
676 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
677 get the primary key for the table.
678 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
679 index of the primary key in the LayoutGroup accounting for hidden
680 primary keys. Rename getJavaNumberFormat() to
681 convertToJavaNumberFormat() for consistency. Cleanup / add some
683 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
684 field for primary key index and a field to indicate whether the
685 primary key is hidden or not.
687 2011-06-23 Ben Konrath <ben@bagu.org>
689 Rename getTableData methods to getListData.
691 This is a rename refactor for consistency with other methods.
693 * src/main/java/org/glom/web/client/OnlineGlomService.java:
694 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
695 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
698 2011-06-23 Ben Konrath <ben@bagu.org>
700 Extract the ConfiguredDocument innerclass into its own class.
702 This makes the servlet code more object oriented.
704 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
705 from private ConfiguredDocument class in OnlineGlomServiceImpl.
706 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
707 new ConfiguredDocument class.
709 2011-06-21 Ben Konrath <ben@bagu.org>
711 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
713 This makes things more inline with how libglom works and reduces code
714 duplication. This refactor lays the groundwork for adding the primary key to
715 the LayoutGroup object.
717 * src/main/java/org/glom/web/client/OnlineGlomService.java:
718 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
719 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
720 Change method names to getListLayout and getDefaultListLayout for
721 consistency. Use LayoutGroup as the DTO for the list layout instead of
722 ColumnInfo and LayoutListTable.
723 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
724 new method names along with the LayoutGroup object for transferring the
726 * src/main/java/org/glom/web/client/ui/ListView.java:
727 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
728 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
729 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
731 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
732 Replaced with LayoutGroup.
733 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
734 expectedResultSize and defaultTableName fields which are needed for
736 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
737 type field which is needed for the list layout but will also be
738 useful for the details layout as things progress.
739 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
740 Make class abstract. Remove the unnecessary
741 getFormattingHorizontalAlignment method. Add setFormatting method.
743 2011-06-16 Ben Konrath <ben@bagu.org>
745 Add scripts for building and installing war.
747 These will help when updating OnlineGlom but they're also good
748 supplemental documentation of the build and deployment proceeding.
750 * utils/build-onlineglom-war.sh: New file.
751 * utils/install-onlineglom-war.sh: New file.
753 2011-06-16 Ben Konrath <ben@bagu.org>
755 Create wrapper class to create consistent log messages.
757 I wrapped methods in the Log class of gwt-log to add the method names
758 from the servlet and create consistent formatting of the document title
759 and table names in the log messages.
761 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
762 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
763 log methods to use methods from wrapped Log class.
765 2011-06-16 Ben Konrath <ben@bagu.org>
767 Remove superfluous conditional return.
769 Thanks to Murray Cumming for pointing this out!
771 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
773 2011-06-15 Ben Konrath <ben@bagu.org>
775 Return an ArrayList of LayoutGroups for the Details layout.
777 This corrects a problem with the details layout as it can have more
778 than one top level LayoutGroup.
780 * src/main/java/org/glom/web/client/OnlineGlomService.java:
781 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
782 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
783 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
784 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
785 with ArrayList of LayoutGroups for the details view layout.
786 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
787 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
788 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
789 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
790 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
791 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
793 2011-06-14 Ben Konrath <ben@bagu.org>
795 Use cast_dynamic method to determine the libglom LayoutItem type.
797 This is better than finding the LayoutItem type by using the string
798 returned from the get_part_type_name() method.
800 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
802 2011-06-14 Ben Konrath <ben@bagu.org>
804 Add method names to log entries in the servlet.
806 This helps when tracking down deployment problems.
808 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
810 2011-06-14 Ben Konrath <ben@bagu.org>
812 Add data to the DetailsView using a hard-coded primary key value.
814 The layout and functionality of the DetailsView is not complete. This
815 is just a checkpoint so the patch doesn't get too big.
817 * src/main/java/org/glom/web/client/OnlineGlomService.java:
818 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
819 Add getDetailsData() servlet method.
820 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
821 Add RPC to getDetailsData(). Change the way the LayoutGroups and
822 LayoutFields are added to the DetailsView.
823 * src/main/java/org/glom/web/client/ui/DetailsView.java:
824 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
825 Add setData() method. Change addLayoutGroup() and addLayoutField() to
826 take the string for the title instead of the object.
827 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
828 Add implementation getDetailsData() along with some private helper
830 * src/main/webapp/style.css: Add padding to details-data class. Add a
831 details-label class with the same padding as the details-data class.
833 2011-06-03 Ben Konrath <ben@bagu.org>
835 Use presenter.goTo() to change to the DetailsPlace.
837 This will make things easier when we need to open the DetailsView with
838 data specific to the row that was clicked.
840 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
842 2011-06-02 Ben Konrath <ben@bagu.org>
844 Add CSS file from mockups.
846 I'm adding this now because it's going to be useful to have when
847 developing the DetailsView. The TableSelectionView and ListView aren't
850 * src/main/webapp/OnlineGlom.html:
851 * src/main/webapp/style.css:
853 2011-06-02 Ben Konrath <ben@bagu.org>
855 Use String.isEmpty() to check for empty string.
857 * src/main/java/org/glom/web/client/activity/ListActivity.java:
859 2011-06-02 Ben Konrath <ben@bagu.org>
861 Display main layout group titles in the DetailsView.
863 This is the start of the DetailsActivity/DetailsView implementation.
865 * src/main/java/org/glom/web/client/OnlineGlomService.java:
866 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
867 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
868 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
869 Get the layout information for the details view from the server and set
870 the main layout group titles.
871 * src/main/java/org/glom/web/client/ui/DetailsView.java:
872 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
873 Add addLayoutGroup() and addLayoutField() methods. This are just
874 temporary methods for creating the the details view that will change
876 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
877 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
879 * src/main/java/org/glom/web/shared/layout/Formatting.java:
880 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
881 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
882 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
883 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
884 Data Transfer Objects that mimic the libglom object structure. These are
885 used for transferring the details layout but could also be used for
886 transferring the list layout.
888 2011-05-27 Ben Konrath <ben@bagu.org>
890 Reset the AuthenticationPopup when clearing the ListView.
892 * src/main/java/org/glom/web/client/activity/ListActivity.java:
894 2011-05-27 Ben Konrath <ben@bagu.org>
896 Fix problem with onlineglom.properties file loading.
898 The old way worked in Eclipse but not on the server. Loading the
899 onlineglom.properties file now works in Eclipse and on the server.
901 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
903 2011-05-24 Ben Konrath <ben@bagu.org>
905 Update gwt-log from 3.1.0 to 3.1.2.
907 Gwt-log 3.1.0 has been marked as depreciated.
911 2011-05-24 Ben Konrath <ben@bagu.org>
913 Add comment to ListActivity.goTo() method.
915 * src/main/java/org/glom/web/client/activity/ListActivity.java:
917 2011-05-24 Ben Konrath <ben@bagu.org>
919 Remove FIXME in convertGdkColorToHtmlColour()
921 The Gdk::Color value returned by libglom is 16-bits per channel on both
922 64 and 32-bit platforms.
924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
926 2011-05-19 Ben Konrath <ben@bagu.org>
928 Improve performance of initial ListView load.
930 I removed a round trip to the server for getting the default table name
931 and then requesting information about that table. This also removes a potential
932 problem with the table change handler not being setup in time to receive the
933 table change event from the ListActivity.
935 * src/main/java/org/glom/web/client/OnlineGlomService.java:
936 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
937 getDefaultLayoutListTable() method. Improve comments.
938 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
939 getDefaultLayoutListTable() method instead of firing a table change
940 event to get the table to load.
941 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
942 implementation of getDefaultLayoutListTable() method.
943 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
946 2011-05-19 Ben Konrath <ben@bagu.org>
948 Override toDebugString() in TableChangeEvent.
950 This is useful to have for debugging.
952 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
954 2011-05-19 Ben Konrath <ben@bagu.org>
956 Add a "Back to List" link when at the DetailsPlace.
958 * src/main/java/org/glom/web/client/activity/ListActivity.java:
959 Populate the CellTable based on the selected table of the ListBox if
960 it's set otherwise use the default table. This allows the "Back to
962 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
963 Remove Place from constructors. Add a setPlace() method. Add
964 goToPlace() method. Set class as presenter for TableSelectionView.
965 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
966 Use the same TableSelectionActivity when switching between the List and
968 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
969 Subclass the new HasSelectableTablePlace. This removes some duplicate
971 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
972 New class to represent Places that display the TableSelectionView.
973 * src/main/java/org/glom/web/client/place/ListPlace.java:
974 Subclass the new HasSelectableTablePlace. This removes some duplicate
976 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
977 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
978 Add Presenter interface. Add setBackLinkVisible() method. Add
979 setBackLink() method.
981 2011-05-18 Ben Konrath <ben@bagu.org>
983 Enable the "Details" buttons.
985 Right now only an empty details view is displayed.
987 * src/main/java/org/glom/web/client/ClientFactory.java:
988 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
989 Add DetailsView to ClientFactory.
990 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
991 A basic activity for the details view.
992 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
993 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
995 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
996 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
998 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
999 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1000 unnecessary super() in constructor.
1001 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1002 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1003 really shouldn't create a new TableSelectionActivity for both the ListPlace
1004 and the DetailsPlace so this should be considered a temporary solution.
1005 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1006 New file. Represents a URL for the details view.
1007 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1008 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1009 A basic details view interface and implementation.
1010 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1011 Enable the "Details" buttons.
1013 2011-05-12 Ben Konrath <ben@bagu.org>
1015 Use a LayoutPanel with multiple display areas for main layout.
1017 This is mostly a refactor in that there are no changes from the user
1018 point of view. These changes are required so that we can swap out the list view
1019 with the details view when the user clicks the "Details" button.
1021 * src/main/java/org/glom/web/client/ClientFactory.java:
1022 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1023 OnlineGlomView. Add TableSelectionView, ListView and
1024 AuthenticationPopup.
1025 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1026 for main layout. Add display regions for main activities. Add
1027 activity manager for for main activities.
1028 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1029 file from parts of the deleted OnlineGlomActivity.
1030 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1031 New file from parts of the deleted OnlineGlomActivity.
1032 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1033 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1034 New files for app wide table change event.
1035 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1036 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1037 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1038 Activity mappers for the main activities replace the deleted app-wide
1040 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1041 Fix a spelling error in he comment.
1042 * src/main/java/org/glom/web/client/ui/ListView.java:
1043 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1044 Renamed from LayoutListView and modified for MVP. This still not a
1045 proper dumb view as prescribed by the MVP pattern but it works for now.
1046 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1047 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1048 New widget stripped out of the deleted OnlineGlomView.
1049 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1050 Remove hack that is fixed by this patch.
1052 2011-05-06 Ben Konrath <ben@bagu.org>
1054 Rename OnlineGlomPlace to ListPlace.
1056 The only change besides the rename is that url will now display #list
1057 instead of #Document.
1059 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1060 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1061 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1062 * src/main/java/org/glom/web/client/place/ListPlace.java:
1063 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1065 2011-05-06 Ben Konrath <ben@bagu.org>
1067 Use Presenter for app navigation.
1069 This is the proper way to deal with Place (URL) changes with the MVP
1072 * src/main/java/org/glom/web/client/ClientFactory.java:
1073 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1074 PlaceHistoryMapper and PlaceHistoryHandler.
1075 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1076 PlaceHistoryMapper and PlaceHistoryHandler.
1077 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1078 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1079 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1080 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1081 Add Presenter interface and setPresenter methods. Rename addHyperLink
1082 to addDocumentLink taking only the document title as a parameter.
1084 2011-04-14 Ben Konrath <ben@bagu.org>
1086 Prompt for db username/password if they haven't been set.
1088 This is implemented with a popup widget that is contained within the
1089 OnlineGlomView and managed by the OnlineGlomActivity.
1091 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1092 methods for checking and setting the database username and password.
1093 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1094 new methods for checking and setting the database username and
1096 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1097 Display authentication popup if the JDBC connection to the database
1098 has not been authenticated.
1099 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1101 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1102 for dealing with the authentication popup.
1103 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1104 Implement the methods for dealing with the authentication popup.
1105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1106 try to executed queries if the database connection hasn't been
1107 authenticated. Implement methods for checking and setting the
1108 database username and password.
1110 2011-04-12 Ben Konrath <ben@bagu.org>
1112 Make log messages a little clearer.
1114 Add a dash betweeen the document title and the table name.
1116 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1118 2011-04-12 Ben Konrath <ben@bagu.org>
1120 Protect against NPEs when cleaning up database resources.
1122 While this isn't strictly necessary because the exception is caught,
1123 not protecting against the NPEs makes it harder to find the real error
1126 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1128 2011-04-12 Ben Konrath <ben@bagu.org>
1130 Move configuration of the servlet to the constructor.
1132 The servlet will be initialized even if the database authentication
1133 information is not set or correct. I still need to add the UI for prompting
1134 the user for the authentication information when it's required.
1136 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1137 javadocs for getDocumentTitles() method.
1138 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1139 Set error message when RPC fails.
1140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1141 glom files directory from the configuration file. Try to set the
1142 database authentication information for the specific document if it's
1143 set and works otherwise try to use the global authentication
1144 information set for the directory.
1145 * src/main/resources/onlineglom.properties: Moved from
1146 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1147 Added detailed comments for the new keys.
1149 2011-04-11 Ben Konrath <ben@bagu.org>
1151 Remove unnecessary @Override in DocumentSelectionViewImpl.
1153 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1155 2011-04-11 Ben Konrath <ben@bagu.org>
1157 Remove center alignment in DocumentSelectionView.
1159 The title element is still centred but the document titles and bottom
1160 sentence are both left-aligned.
1162 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1164 2011-04-11 Ben Konrath <ben@bagu.org>
1166 Change 'Demo' naming convention to 'Document'.
1168 This is just a rename refactor with no functional changes to the code.
1170 * src/main/java/org/glom/web/client/ClientFactory.java:
1171 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1172 * src/main/java/org/glom/web/client/OnlineGlom.java:
1173 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1174 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1175 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1176 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1177 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1178 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1179 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1180 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1181 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1184 2011-04-08 Ben Konrath <ben@bagu.org>
1186 Remove FIXME from safeLongToInt() method.
1188 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1191 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1193 2011-04-08 Ben Konrath <ben@bagu.org>
1195 Display an error if no glom documents are found in the specified directory.
1197 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1198 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1199 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1200 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1202 2011-04-08 Ben Konrath <ben@bagu.org>
1204 Add copyright header to one more file ... oops.
1206 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1208 2011-04-08 Ben Konrath <ben@bagu.org>
1210 Add copyright header to files without it.
1212 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1213 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1214 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1215 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1216 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1217 * src/main/java/org/glom/web/shared/GlomField.java:
1219 2011-04-08 Ben Konrath <ben@bagu.org>
1221 Add support for accessing multiple glom documents in the servlet.
1223 This completes the demo selection functionality.
1225 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1226 document title to methods.
1227 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1228 document title to methods.
1229 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1230 Set browser window title when the activity starts. Correct name of
1231 document title variable.
1232 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1233 Set browser window title when the activity starts. Set the table
1234 selector change handler after table selector has been set. Clear the
1235 OnlineGlomView when the activity has been stopped.
1236 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1237 document title as the place token. Use "#Document:" instead of
1238 "#OnlineGlomPlace:" in the URL.
1239 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1240 Change heading to "Online Glom"
1241 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1242 document title in RPC methods.
1243 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1244 setDocumentTitle() method. Add clear() method.
1245 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1246 setDocumentTitle() method. Implement clear() method which removes the
1247 change handler on the ListBox, clears the ListBox and clears the
1249 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1250 Implement methods with document title. Keep track for the configured
1251 glom documents and their corresponding JDBC configurations in a hash
1252 table. This information is retrieved using the document title as the
1253 key in the hash table.
1254 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1255 document title field as it's no longer needed.
1257 2011-04-08 Ben Konrath <ben@bagu.org>
1259 Update the Eclipse JDT configuration.
1261 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1262 methods. Automatically add the copyright header to new files.
1264 2011-04-05 Ben Konrath <ben@bagu.org>
1266 Add new page for demo selection.
1268 This patch adds all the components required to view and start an
1269 OnlineGlom demo by clicking on the desired hyperlink. The user is
1270 able to return to the demo selection page with the browser's back
1271 button. I still need to modify the servlet to work with multiple
1272 documents so all demo links will load the file defined in the
1273 OnlineGlom.properties.
1275 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1276 This is only useful during development so we don't need to save it.
1277 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1278 get a reference to the DemoSelectionView.
1279 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1280 method to get a reference to the DemoSelectionView.
1281 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1282 default view to DemoSelectionView.
1283 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1284 to get glom document titles for glom files in a hard-coded directory.
1285 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1286 method to get glom document titles for glom files in a hard-coded
1288 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1289 Presenter for DemoSelectionView.
1290 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1291 for DemoSelectionView.
1292 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1293 Update for DemoSelectionView.
1294 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1295 Basic 'Place' implementation for the DemoSelectionView.
1296 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1297 The interface for the DemoSelectionView.
1298 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1299 The implementation of the DemoSelectionView.
1300 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1301 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1302 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1303 implementation of method to get glom document titles for glom files
1304 in a hard-coded directory.
1305 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1306 on longer being used.
1307 * src/main/webapp/glom.png: Glom logo.
1309 2011-04-05 Ben Konrath <ben@bagu.org>
1311 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1313 This is the forth and final commit of a refactor that will allow
1314 OnlineGlom to be used with multiple documents.
1316 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1317 Move RPC code from OnlineGlomViewImpl to this class.
1318 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1320 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1321 RPC code to the presenter class (the P in MVP).
1323 2011-04-04 Ben Konrath <ben@bagu.org>
1325 Start moving the existing OnlineGlom code to MVP.
1327 This work is based on the GWT MVP framework that is documented here:
1329 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1331 This is the third commit of a refactor that will allow OnlineGlom to
1332 be used with multiple documents.
1334 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1335 Interface for client factory which is used to get instances of various
1336 classes throughout the app.
1337 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1338 Implementation of client factory.
1339 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1340 initialize the MVP framework.
1341 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1342 New file. Activity manager for the main container widget. This is the
1344 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1345 Maps place (URL) to its corresponding activity.
1346 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1347 New file. This is just a place holder for a generated file.
1348 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1349 New file. Represents the URL for the main Online Glom app.
1350 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1351 for changes in LayoutListViewImpl.
1352 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1353 interface for View. Move code to OnlineGlomViewImpl class.
1354 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1355 file. Implementation of OnlineGlomView.
1356 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1357 Place resources. Use ClientFactoryImpl by default.
1359 2011-04-04 Ben Konrath <ben@bagu.org>
1361 Move View classes to their own package.
1363 This is the second commit of a refactor that will allow OnlineGlom to
1364 be used with multiple documents.
1366 * src/main/java/org/glom/web/client/OnlineGlom.java:
1367 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1368 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1370 2011-04-02 Ben Konrath <ben@bagu.org>
1372 Move UI code from the main module to its own class.
1374 This is the first commit of a refactor that will allow OnlineGlom to be
1375 used with multiple documents.
1377 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1378 references to OnlineGlom to OnlineGlomView.
1379 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1380 OnlineGlomView and instantiate it here.
1381 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1382 represents the main OnlineGlomView with one document.
1384 2011-04-01 Ben Konrath <ben@bagu.org>
1386 Fix formatting of gwt.xml and add DTD.
1388 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1390 2011-03-30 Ben Konrath <ben@bagu.org>
1392 Propperly convert gdkColor string to html colour string.
1394 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1396 2011-03-28 Ben Konrath <ben@bagu.org>
1398 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1400 This implementation matches
1401 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1402 readable and is not tied to Swig.
1404 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1406 2011-03-28 Ben Konrath <ben@bagu.org>
1408 Use read-only checkboxes for boolean field types.
1410 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1411 in the CellTable based on the field type. It currently only
1412 distinguishes between boolean and text columns but I'll need to add
1413 support for more types.
1414 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1415 column type in the ColumnInfo object. Add method to convert between the
1416 glom field type enum in ColumnInfo and the glom field type in libglom.
1417 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1419 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1420 getting and setting booleans.
1422 2011-03-25 Ben Konrath <ben@bagu.org>
1424 Don't get the Date twice from the ResultSet.
1426 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1428 2011-03-25 Ben Konrath <ben@bagu.org>
1430 Cleanup code in the servlet.
1432 * TODO: Remove item about row count. Add item about testing row count
1433 query with large number of rows.
1434 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1435 spelling mistakes, change method parameter to be consistent with
1438 2011-03-25 Ben Konrath <ben@bagu.org>
1440 Add server side logging with the gwt-log library.
1442 * .gitignore: Ignore the log file we're now producing.
1443 * TODO: Add a couple TODO item for logging.
1444 * pom.xml: Add gwt-log and log4j as a dependency.
1445 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1446 logging of errors, warnings and some important info.
1447 * src/main/resources/log4j.properties: New file to configure log4j.
1449 2011-03-24 Ben Konrath <ben@bagu.org>
1451 Add a disable button for the Details view.
1453 * src/main/java/org/glom/web/client/LayoutListView.java:
1455 2011-03-22 Ben Konrath <ben@bagu.org>
1457 Use a count query to get the number of rows for the list view pager.
1459 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1461 2011-03-22 Ben Konrath <ben@bagu.org>
1463 Add more TODO information about CellTable pager positioning.
1467 2011-03-19 Ben Konrath <ben@bagu.org>
1469 Add TODO item about CellTable pager positioning.
1473 2011-03-18 Ben Konrath <ben@bagu.org>
1475 Remove unneeded GlomFieldColumn class.
1477 This is just a small code cleanup.
1479 * src/main/java/org/glom/web/client/LayoutListView.java:
1481 2011-03-18 Ben Konrath <ben@bagu.org>
1483 Use cursor mode in the query that gets data for the list view.
1485 I still need to fix the potential memory problem when getting the row
1486 count for the list view.
1488 * TODO: Add note about testing memory usage with large data sets. Add
1489 item about fixing row counting with large data sets.
1490 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1491 PostgreSQL JDBC driver into cursor mode when getting data for the
1494 2011-03-15 Ben Konrath <ben@bagu.org>
1496 Remove the GWT Container from the Eclipse build classpath.
1498 The GWT dependencies are set by Maven so this isn't needed.
1502 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1504 Added some earlier mockups to git, but not to the tarball dist.
1506 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1507 Openismus. These hopefully show how we might structure the HTML so that
1508 it can be styled easily with CSS. However, we probably need to adapt them
1509 for the CSS structure that GWT dictates for common widgets.
1511 2011-03-14 Ben Konrath <ben@bagu.org>
1513 Locate OnlineGlom.properties using the ServletContext.
1515 This is required to be able to locate the file in the deployed servlet.
1517 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1518 Configure the database and glom document in in a helper method so
1519 that the ServletContext can be used to locate OnlineGlom.properties.
1520 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1521 src/main/webapp. This is the proper location for .properites files.
1523 2011-03-12 Ben Konrath <ben@bagu.org>
1525 Add note to README about why we're compiling down to obfuscated JavaScript.
1529 2011-03-11 Ben Konrath <ben@bagu.org>
1531 Use properties file to configure servlet.
1533 This allows people to change the glom file path, db username and db
1534 password without recompiling the code.
1536 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1537 * src/main/webapp/OnlineGlom.properties:
1539 2011-03-11 Ben Konrath <ben@bagu.org>
1541 Use table fields in layout list view if the layout list is not defined.
1543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1544 Manually create a LayoutFieldVector for the query builder using the
1545 table fields when a layout list is not defined in the glom file.
1547 2011-03-11 Ben Konrath <ben@bagu.org>
1549 Only show FIXME string for images when there's an image.
1551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1552 in this change are some small code cleanups.
1554 2011-03-11 Ben Konrath <ben@bagu.org>
1556 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1558 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1560 2011-03-11 Ben Konrath <ben@bagu.org>
1562 Correctly set the index of the default table.
1564 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1565 Correctly set the index of the default table. Add commented out example
1568 2011-03-10 Ben Konrath <ben@bagu.org>
1570 Add comment to pom.xml about the previous change.
1572 * pom.xml: Add comment about the deployment issue so that it's obvious
1573 why java-libglom is set to the provided scope.
1575 2011-03-10 Ben Konrath <ben@bagu.org>
1577 Change java-libglom dependency from compile to provided in pom.xml.
1579 Since java-libglom uses jni it can only be loaded once and therefore
1580 must be placed in $CATALINA_HOME/lib and not included in each war.
1581 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1582 More information about this issue can be found in the Tomcat 6 release
1583 notes in the "JNI Based Applications" section:
1585 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1587 * README: Remove note about this issue. Deployment info should really
1588 be on the wiki anyway so I'll add it right now.
1589 * pom.xml: Change java-libglom dependency from compile to provided so
1590 that it's copied in to the packaged war.
1592 2011-03-09 Ben Konrath <ben@bagu.org>
1594 Change to using a neutral locale for currency, date and time formatting.
1596 This solves the problem of currency values being represented without a
1597 space between the currency code and the number (e.g. "EUR5.89" is now
1598 represented as "EUR 5.89"). More work is required when we implement
1599 a locale preference setting.
1601 * TODO: Add note about currency formatting issues with different
1603 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1604 to using the neutral ROOT locale.
1606 2011-03-09 Ben Konrath <ben@bagu.org>
1608 Add support for currency codes that are not ISO 4217 codes.
1610 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1611 the currency code defined in the glom file when it's not 3 characters
1612 long or when Java doesn't recognize the string as an ISO 4217 code.
1614 2011-03-08 Ben Konrath <ben@bagu.org>
1616 Remove test classes, launch configurations and configuration.
1618 The test stuff was getting in the way when creating the war. To make
1619 the war file you can now do 'mvn clean package'. The packaged war file
1620 will be in the target directory.
1622 * .classpath: Remove unused classpathentry for tests and i18n.
1623 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1624 property. Don't run test or i18n goals when packaging the war.
1625 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1630 * OnlineGlomTest-dev.launch:
1631 * OnlineGlomTest-prod.launch:
1632 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1633 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1635 2011-03-07 Ben Konrath <ben@bagu.org>
1637 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1639 These fixes allow me to use 'mvn deploy' to create the war file.
1641 * .classpath: This generated config has been updated by Eclipse. This
1642 change was probably triggered by me updating from Eclipse 3.6.1 to
1644 * .gitignore: Add entry to ignore the directory
1645 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1646 * .project: The generated config has been updated by Eclipse. This
1647 change was probably triggered by me updating from Eclipse 3.6.1 to
1649 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1650 so that Eclipse doesn't complain
1651 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1652 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1653 'tests' directory to 'client' directory. This is the new
1654 gwt-maven-plugin convension.
1655 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1656 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1658 2011-03-07 Ben Konrath <ben@bagu.org>
1660 Add support for horizontal alignment in the LayoutList columns.
1662 * TODO: Remove item about horizontal alignment. Add item about
1663 improvements to ColumnInfo.
1664 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1665 alignment on the columns. Use ColumnInfo RPC object get the column
1666 title and horizontal alignment.
1667 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1668 LayoutListView creation with ColumnInfo RPC object.
1669 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1670 a ColumnInfo object for every LayoutList columnn. Convert the
1671 FieldFormatting.HorizontalAlignment to the correct
1672 ColumnnInfo.HorizontatlAlignment with the new
1673 getColumnInfoHorizontalAlignment helper method.
1674 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1675 to encapsulate column information like alignment and title. This
1676 could be used to set the colour instead of on a per cell field basis.
1677 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1678 column title storage and retrieval with ColumnInfo.
1680 2011-03-04 Ben Konrath <ben@bagu.org>
1682 Add support for column sorting.
1684 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1685 AsynDataProvider to be an anonymous inner class. Use new
1686 getSortedTableData RPC method when column sort is requested. Set all
1687 columns sortable and add an AsyncHandler to activate sorting in the
1689 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1690 method getSortedTableData(). Cleanup other method signatures.
1691 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1692 new method getSortedTableData(). Cleanup other method signatures.
1693 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1694 Implement getSortedTableData() and getTableData() methods by using a
1695 private helper method with the appropriate parameters filled in. Use
1696 user supplied sort clause when supplied, otherwise fall back to
1697 sorting by the primary key. Move destroy() method to be underneath
1698 constructor for readability. Cleanup comments.
1700 2011-03-03 Ben Konrath <ben@bagu.org>
1702 Add support for colour text and colour backgrounds to the layout list cells.
1704 Only the cell backgrounds are coloured which leaves a gap between the
1705 cells that isn't coloured. I need to figure out a way to set
1706 'style=background-colour:' on the whole column rather than just the
1709 * TODO: Add a note about colouring the background of the whole column.
1710 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1711 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1712 render the coloured text and backgrounds. Use GlomField[] for the row type.
1713 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1715 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1716 GlomField[] for the row type.
1717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1718 GlomField[] for the row type. Set the text, text colour and background
1719 colour in the GlomField objects as specified in the glom document. Add
1720 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1721 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1722 the glom field text, foreground colour and background colour.
1724 2011-03-02 Ben Konrath <ben@bagu.org>
1726 Don't display hidden tables in the combo box.
1728 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1730 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1731 code to ignore hidden tables using ArrayLists for the table names and
1733 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1734 tableNames to use ArrayLists instead of String[]. Update getter and setter
1737 2011-03-01 Ben Konrath <ben@bagu.org>
1739 Add support for Date and Time number types.
1741 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1742 Implement formatting for Date and Time values. Change the default glom
1743 file to small business example.
1745 2011-03-01 Ben Konrath <ben@bagu.org>
1747 Add support for formatting glom types as specified in the glom file.
1749 Formatting isn't finished yet - I still need to add support for Date
1752 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1753 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1754 checks for null values in JDBC cleanup code and catch all exceptions
1755 instead of just SQLExceptions.
1756 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1759 2011-03-01 Ben Konrath <ben@bagu.org>
1761 Use GWT 2.2.0 instead of 2.1.1.
1763 * pom.xml: Change GWT version numbers.
1765 2011-03-01 Ben Konrath <ben@bagu.org>
1767 A few small code cleanups.
1769 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1771 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1772 unnecessary object creation in constructor.
1773 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1774 unnecessary object creation in constructor.
1776 2011-02-28 Ben Konrath <ben@bagu.org>
1778 Add file for TODO list.
1782 2011-02-18 Ben Konrath <ben@bagu.org>
1784 Enable the CellTable Pager when more than 20 rows need to be viewed.
1786 The Pager will automatically become active when the results are larger
1787 than the CellTable size which is currently set to 20 lines.
1789 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1790 name on debug statment in RPC call in LayoutListDataProvider, add
1791 numRows parameter to LayoutListView constructor, propperly set rowCount
1793 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1794 name on debug statment in RPC call, use LayoutListTable object in RPC
1795 calls, pass rowCount to LayoutListView.
1796 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1797 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1799 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1800 interface for changes in OnlineGlomService.
1801 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1802 getLayoutListHeaders() to getLayoutListTable() and return
1803 LayoutListTable. Using this object allows me to pass other information
1804 about the LayoutList like the expected number of rows in the result set.
1805 The Connection object from the connection pool is now propperly closed.
1806 Only the requested number of lines are returned to the client in
1808 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1809 GlomTable and add columnTitles and numRows.
1811 2011-02-18 Ben Konrath <ben@bagu.org>
1813 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1815 This is a small performance boost. I'll use GlomTable to get the required
1816 layoutlist information.
1818 * src/main/java/org/glom/web/client/OnlineGlom.java:
1819 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1820 * src/main/java/org/glom/web/shared/GlomDocument.java:
1822 2011-02-18 Ben Konrath <ben@bagu.org>
1824 Add option to turn off formatting in JDT formatter preferences.
1826 * .settings/org.eclipse.jdt.core.prefs:
1828 2011-02-18 Ben Konrath <ben@bagu.org>
1830 Rename LayoutList to LayoutListView.
1832 I'm working towards setting things up to easily use MVP when the time
1835 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1837 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1840 2011-02-17 Ben Konrath <ben@bagu.org>
1842 Move LayoutListDataProvider class into LayoutList.java.
1844 * src/main/java/org/glom/web/client/LayoutList.java:
1846 2011-02-17 Ben Konrath <ben@bagu.org>
1848 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1850 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1852 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1853 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1854 from LibGlomServer.java.
1855 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1856 Rename from LibGlomServiceAsync.java.
1857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1858 Rename from LibGlomServiceImpl.java.
1859 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1861 2011-02-17 Ben Konrath <ben@bagu.org>
1863 Update JDT settings.
1865 * .settings/org.eclipse.jdt.core.prefs:
1867 2011-02-17 Ben Konrath <ben@bagu.org>
1869 Move GWT-RPC objects to shared package (where they should be).
1871 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1872 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1873 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1874 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1875 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1876 org.glom.web.shared package.
1877 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1878 org.glom.web.shared package.
1879 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1880 directory in compilation to javascript.
1882 2011-02-16 Ben Konrath <ben@bagu.org>
1884 Add sort clause to the sql query that grabs table information.
1886 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1887 if one of the columns is a primary key.
1889 2011-02-16 Ben Konrath <ben@bagu.org>
1891 Disable generateAsync feature of gwt-maven.
1893 The generated interface does not correctly match the methods in LibGlomService
1894 and the generated singleton Util inner-class doesn't respect the servlet
1897 * pom.xml: Turn off generateAsync feature.
1898 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1899 with singleton Util inner-class.
1901 2011-02-14 Ben Konrath <ben@bagu.org>
1903 Add LGPL v3 licence notices.
1905 Followed directions listed here:
1906 http://www.gnu.org/licenses/gpl-howto.html
1908 * COPYING: This file is a copy of the GPL v3.
1909 * COPYING.LESSER: This file is a copy of the LGPL v3.
1910 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1912 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1914 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1916 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1918 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1920 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1922 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1925 2011-02-14 Ben Konrath <ben@bagu.org>
1927 Use ArrayList instead of Array in GWT-RPC calls.
1929 Apparently this gives a slight performance boost to the compiled
1932 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1934 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1937 2011-02-14 Ben Konrath <ben@bagu.org>
1939 Access data from a postgres db rather than the example glom file.
1941 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1942 compile down to obfuscated javascript.
1943 * pom.xml: Add c3p0 and postgres JDBC libraries.
1944 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1945 using a postgres db accessed through the c3p0 connection pooling library.
1947 2011-02-14 Ben Konrath <ben@bagu.org>
1949 Update Java formatter settings.
1951 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1953 2011-02-02 Ben Konrath <ben@bagu.org>
1955 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1957 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1959 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1960 the compiled webapp directory that Eclipse uses as we're using Maven now.
1961 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1962 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1964 * pom.xml: Format file, change target Java version to 1.6.
1966 2011-02-02 Ben Konrath <ben@bagu.org>
1968 Add information about a deployment related issue.
1970 * README: Add Notes section with the problem outlined.
1972 2011-02-02 Ben Konrath <ben@bagu.org>
1974 Call Glom.libglom_deinit() when the servlet is shutdown.
1976 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1977 Glom.libglom_deinit() to destroy() method.
1979 2011-01-28 Ben Konrath <ben@bagu.org>
1981 Use generated Util class to get the RPC Async interface.
1983 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1985 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1986 getInstance() method to get a reference to the RPC Async interface.
1987 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1988 getInstance() method to get a reference to the RPC Async interface, remove
1989 the now unused getLibGlomServiceProxy() method.
1991 2011-01-27 Ben Konrath <ben@bagu.org>
1993 Cleanup ChangeLog entry from previous commit.
1995 * ChangeLog: Group logical changes together and add comments.
1997 2011-01-25 Ben Konrath <ben@bagu.org>
1999 Convert to gwt-maven project.
2001 * .gitignore: Update for new project structure.
2002 * README: New file with a link to the online documentation.
2003 * pom.xml: The generated maven configuration file with some tweaks.
2005 Add / update Eclipse settings. These files are a merge of the files that
2006 were generated with the gwt-maven plugin and the files we were previously
2010 * .settings/.jsdtscope:
2011 * .settings/com.google.gdt.eclipse.core.prefs:
2012 * .settings/com.google.gwt.eclipse.core.prefs:
2013 * .settings/org.eclipse.jdt.core.prefs:
2014 * .settings/org.eclipse.wst.common.component:
2015 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2016 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2017 * .settings/org.maven.ide.eclipse.prefs:
2018 * OnlineGlomTest-dev.launch:
2019 * OnlineGlomTest-prod.launch:
2021 Java source files moved from the 'src' directory to the directory structure
2023 * src/main/java/org/glom/web/client/GlomDocument.java:
2024 * src/main/java/org/glom/web/client/GlomTable.java:
2025 * src/main/java/org/glom/web/client/LayoutList.java:
2026 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2027 * src/main/java/org/glom/web/client/LibGlomService.java:
2028 * src/main/java/org/glom/web/client/OnlineGlom.java:
2029 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2031 Non-functional property file used for translations. I included this as
2032 reminder that it's something I need to sort out.
2033 * src/main/resources/org/glom/web/client/Messages.properties:
2035 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2036 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2038 The servlet configuration files moved from the 'war' directory.
2039 * src/main/webapp/OnlineGlom.css:
2040 * src/main/webapp/OnlineGlom.html:
2041 * src/main/webapp/WEB-INF/web.xml:
2043 Generated test files with most of the code commented out. I included these
2044 so that it's easy to add tests when we're ready for them.
2045 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2046 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2048 2011-01-25 Ben Konrath <ben@bagu.org>
2050 Remove unused println.
2052 * src/org/glom/web/server/LibGlomServiceImpl.java:
2054 2011-01-25 Ben Konrath <ben@bagu.org>
2056 Add project specific JDT settings.
2058 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2059 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2061 2011-01-25 Ben Konrath <ben@bagu.org>
2063 Populate celltable with example data.
2065 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2066 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2067 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2068 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2069 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2070 asynchronously gets the example data.
2071 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2072 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2073 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2074 curently selected table to be retrieved by other widgets.
2075 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2076 implement getTableData() in a hacky way. This method needs to be updated
2077 to grab information from the database when database creating is
2080 2011-01-20 Ben Konrath <ben@bagu.org>
2082 Set table headers when table dropBox changes.
2084 * src/org/glom/web/client/GlomDocument.java: Correct some method
2086 * src/org/glom/web/client/LibGlomService.java: Add method
2087 to get list layout field names.
2088 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2089 to get list layout field names.
2090 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2091 widget for list layout table.
2092 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2093 the table drop box and add new updateTable() method to asynchronously
2094 get the layout list field names for the currently selected table.
2095 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2096 implementation of getLayoutListHeaders() method.
2097 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2099 2011-01-18 Ben Konrath <ben@bagu.org>
2101 Make a listBox with table titles instead of the flexTable demo.
2103 This is the start of something more useful.
2105 * .classpath: Exclude a bunch of packages from the JVM that are
2106 getting in the way of the Eclipse content assist.
2107 * src/org/glom/web/client/GlomDocument.java:
2108 * src/org/glom/web/client/GlomTable.java:
2109 * src/org/glom/web/client/LibGlomService.java:
2110 * src/org/glom/web/client/LibGlomServiceAsync.java:
2111 * src/org/glom/web/client/OnlineGlom.java:
2112 * src/org/glom/web/server/LibGlomServiceImpl.java:
2113 * war/OnlineGlom.html:
2114 * war/WEB-INF/web.xml:
2116 211-01-13 Ben Konrath <ben@bagu.org>
2118 Update to new java-libglom API.
2120 * .gitignore: Ignore OnlineGlom.war.
2121 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2123 2010-12-20 Ben Konrath <ben@bagu.org>
2125 Add some basic style to the table listing.
2127 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2128 header, print useful error message on async callback failure.
2129 * war/OnlineGlom.css: Add style for table header, remove defaults
2130 provided by the Eclipse project wizard.
2132 2010-12-20 Ben Konrath <ben@bagu.org>
2134 Load example file from installed glom dir.
2136 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2137 provided by java-libglom to find the example file.
2139 2010-12-20 Ben Konrath <ben@bagu.org>
2141 Update Eclipse settings.
2144 * .settings/com.google.gdt.eclipse.core.prefs:
2145 * .settings/com.google.gwt.eclipse.core.prefs:
2147 2010-12-17 Ben Konrath <ben@bagu.org>
2151 * .classpath: New file.
2152 * .gitignore: New file.
2153 * .project: New file.
2154 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2155 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2156 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2157 * src/org/glom/web/client/GlomTable.java: New file.
2158 * src/org/glom/web/client/OnlineGlom.java: New file.
2159 * src/org/glom/web/client/TableNameService.java: New file.
2160 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2161 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2162 * war/OnlineGlom.css: New file.
2163 * war/OnlineGlom.html: New file.
2164 * war/WEB-INF/web.xml: New file.
2165 * war/images/glom.png: New file.