1 2011-09-20 Ben Konrath <ben@bagu.org>
3 Require java-libglom 1.17.3.
5 This picks up the fix for the seg fault problem with the Scenes table
6 in the Openismus Film Manager example.
10 2011-09-20 Ben Konrath <ben@bagu.org>
12 Change the way sort clause is added for primary key when no sort clause is requested.
14 The primary key is now added to the LayoutFieldVector (fieldsToGet)
15 before the sort clause is created. When a sort clause is not requested, the
16 sort clause is created by finding the primary key in the LayoutFieldVector
19 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
21 2011-09-20 Ben Konrath <ben@bagu.org>
23 Log error message if no documents are found in the configured directory.
25 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
26 Extract the glom file extension string to a private static final class
27 variable (mostly as syntactic sugar). Accept a minor formatting change.
28 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
29 the example glom.document.directory configuration property to make it
30 more clear that it can any directory, not just the home directory.
32 2011-09-18 Ben Konrath <ben@bagu.org>
34 Add related lists to details view.
36 The related list table has support for paging and sorting just like the
37 table in the list view.
39 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
40 SQL queries for the related list tables.
41 * src/main/java/org/glom/web/client/OnlineGlomService.java:
42 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
43 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
44 Rename getList methods to getListView and add comments. Remove
45 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
46 it being unused. Add methods: getDetailsLayoutAndData(),
47 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
48 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
49 Create the layout and set the data for the fields in one async call
50 instead of two. Create related lists where appropriate.
51 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
52 for method name changes in OnlineGlomService.
53 * src/main/java/org/glom/web/client/ui/DetailsView.java:
54 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
55 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
57 * src/main/java/org/glom/web/client/ui/ListView.java:
58 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
59 tableName from setCellTable(). Create a ListViewTable instead of
61 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
62 represent a data field in the details view.
63 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
64 from addDetailsCell() to Field class. Keep track of the Fields and
65 Portals in the details view.
66 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
67 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
68 and add a method to get it. Add method to set the contents of the
70 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
71 New class for related list tables. This class has the data provider
72 for the related list table.
73 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
74 abstract class which is the base class for the ListViewTable and the
76 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
77 New class for list view tables. This class has the data provider for
79 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
80 methods for related list tables. Add more information to the
81 LayoutItemField and LayoutItemPortal DTOs.
82 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
83 Remove debugging print statement.
84 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
85 Remove debugging print statements. Add primary key field to SQL count
87 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
88 Remove unnecessary LayoutFieldVector parameter from
89 getResultSizeOfSQLQuery() method.
90 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
91 New class for related list table database access.
92 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
93 class that is a wrapper DTO for details view layout and data.
94 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
95 new 'fromField' string to this DTO.
96 * src/main/webapp/style.css: Remove bottom margin and override top
99 2011-09-15 Ben Konrath <ben@bagu.org>
101 Breakup the OnlineGlomServiceImpl class to make it more manageable.
103 This sets things up to make it easier to add the data retrieval for
104 related lists (portals). No user noticeable changes were made with
107 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
108 class has the code to retrieve the layouts and access the
109 database using the new database helper classes.
110 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
111 Most of the functionality has been removed from this class. This
112 class now represents the public interface for the client side
113 code. It also deals with configuring the servlet and cleaning
114 things up when the servlet is stopped.
115 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
116 of static methods into this utility class.
117 * src/main/java/org/glom/web/server/database/DBAccess.java:
118 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
119 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
120 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
121 These classes have the database retrieval code. The class hierarchy
122 has been setup to make it easy to reuse code for similar
125 2011-09-06 Ben Konrath <ben@bagu.org>
127 Create separate classes for list table code and the data provider.
129 As part of this refactor, I also split up the code a bit to make it
132 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
133 table code to two new classes (below).
134 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
135 with code from ListViewImpl.
136 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
137 New file with code from ListViewImpl.
139 2011-09-06 Ben Konrath <ben@bagu.org>
141 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
143 This fixes the LayoutItemPortal DTO to match the libglom layout object
146 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
148 2011-09-01 Ben Konrath <ben@bagu.org>
150 Set title of Portals in the Details View.
152 * pom.xml: Bump required version of java-libglom to 1.17.1.
153 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
154 widget creation to its own class. Add comments to constructor.
155 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
156 The code is mostly from the Group class with the title now set.
157 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
158 title of Portal. Update some comments. Fix some code formatting.
160 2011-09-01 Ben Konrath <ben@bagu.org>
162 Remove TODO comment for the flow table column width.
164 The flow table column width is working correctly and doesn't need to be
165 changed. See this mailing list post for more info:
167 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
169 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
171 2011-08-27 Ben Konrath <ben@bagu.org>
173 Add document title (database name) to top of the browser page.
175 I added the document title to the TableSelecitonView but that will
176 change if / when we add a view that doesn't require table selection.
178 * mockups/details-contacts.html:
179 * mockups/details-projects.html:
180 * mockups/listview-contacts.html:
181 * mockups/listview-projects.html:
182 * mockups/style.css: Add document title to mockups to keep things
184 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
185 sizes to account for the document title.
186 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
187 Set the document title when it has been retrieved from the server.
188 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
189 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
190 and implement setDocumentTitle(String) method.
191 * src/main/webapp/style.css: Add ID for document title style.
193 2011-08-25 Ben Konrath <ben@bagu.org>
195 Add NavigationType enum to LayoutItemPortal DTO.
197 This is the start of adding support for Portals to the Details View.
199 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
200 LayoutItem_Portal.navigation_type enum from libglom to
201 LayoutItemPortal.NavigationType enum.
202 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
203 NavigationType enum, field for storing the NavigationType and getter
206 2011-08-25 Ben Konrath <ben@bagu.org>
208 Implement the flow table layout in the Details View.
210 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
211 FlowTable to Group to account for the renamed class.
212 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
213 File. This is a container widget that implements the Glom details view
214 flow table behaviour.
215 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
216 org/glom/web/client/ui/FlowTable.java.
217 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
218 so that the size of the subgroups are a closer match to the size of
219 the Glom subgroups. This makes the flowtable layout match the layout
220 in Glom for the Music Collection example file.
222 2011-08-16 Ben Konrath <ben@bagu.org>
224 Create container element for LayoutItemPortal in Details View.
226 This will help me develop the layout for the FlowTable.
228 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
229 fieldPanel variable to detailsCell.
231 2011-08-15 Ben Konrath <ben@bagu.org>
233 Set the height of the data element in the Details View.
235 I changed the InlineLabels (text in a span element) to Labels (text in
236 a div element) so that I could set the height of the details-data
237 elements instead of the details-cell parent elements. This allows the
238 the details-data element to display the correct height if style is
239 applied that shows the height.
241 This change has the added benefit of allowing the order of the labels
242 and data elements to be changed for right-to-left languages.
244 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
245 InlineLabels to Labels.
246 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
247 InlineLabels to Labels. Set the height of the data element.
248 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
249 multiline text height in the Formatting DTO.
250 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
251 for multiline height along with getter and setter methods.
252 * src/main/webapp/style.css: Adjust style to account for the change
253 from span elements to div elements in the details cell.
255 2011-08-15 Ben Konrath <ben@bagu.org>
257 Make the List View appearance match the mockups.
259 It doesn't match exactly but it's much better than it was.
261 * mockups/listview-contacts.html: Remove unused css classes.
262 * mockups/listview-projects.html: Remove unused css classes.
263 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
264 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
265 for mainPanel instead of VerticalPanel (table). Set style name on
266 CellTable. Set style name on Details column. Right-align Details
268 * src/main/webapp/style.css: Adjust properties to match the mockups.
270 2011-08-12 Ben Konrath <ben@bagu.org>
272 Add better support for subgroups in the details view.
274 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
275 changed FlowTable constructor.
276 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
277 support for subgroups and subgroup-titles.
278 * src/main/webapp/style.css: Add CSS class for subgroups and
281 2011-08-12 Ben Konrath <ben@bagu.org>
283 Return the top level LayoutGroup title.
285 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
287 2011-08-11 Ben Konrath <ben@bagu.org>
289 Make the TableSelector header match the mockup.
291 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
292 the layout panel. Properly lineup the table selection header with
293 the list and details view.
294 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
295 margin around the details view.
296 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
297 Rename listBox variable to tableSelector. Set id for the style sheet.
298 Use a FlowPanel instead of a HorizontalPanel.
299 * src/main/webapp/style.css: Add properties to make the TableSelector
300 box match the mockups.
302 2011-07-13 Ben Konrath <ben@bagu.org>
304 Update install script for java-libglom version change.
306 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
309 2011-07-13 Ben Konrath <ben@bagu.org>
311 Add support sub-group in the details view.
313 I also removed the code that special-cased the default details view
316 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
318 I still have to make a proper flowtable.
320 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
321 Don't special-case default details view layout.
322 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
323 addLayoutField() as I'm going to use it.
324 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
325 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
327 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
328 extracted from DetailsViewImpl.GroupPanel. Add support for
330 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
331 column count when getting the details layout.
333 2011-07-12 Ben Konrath <ben@bagu.org>
335 Set browser title with database and table titles.
337 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
338 Set the browser title when the table changes and when the activity
340 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
341 title when retrieving document info (the GlomDocument object).
342 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
343 with getter and setter methods. Remove unused convenience constructor.
344 Use default code formatting.
346 2011-07-12 Ben Konrath <ben@bagu.org>
348 Ignore LayoutItemPortals in the details view.
350 I added a new DTO for the LayoutItemPortal so that I can ignore it in
353 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
354 LayoutItemPortal layout objects.
355 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
356 LayoutItemPortal objects when retrieving the details layout.
357 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
358 file. This is an empty class and just used to get type information for
361 2011-07-12 Ben Konrath <ben@bagu.org>
363 Use java-libglom 1.17.0.
367 2011-07-11 Ben Konrath <ben@bagu.org>
369 Remove "Table:" label from table selector.
371 This matches a recent change in the Glom UI.
373 * mockups/details-contacts.html:
374 * mockups/details-projects.html:
375 * mockups/listview-contacts.html:
376 * mockups/listview-projects.html: Remove the "Table:" label from the
378 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
380 2011-07-11 Ben Konrath <ben@bagu.org>
382 Add main groups to the details view.
384 This makes things look a little nicer in the details view. The next step
385 is to implement the flowtable.
387 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
388 resources from the standard gwt css theme. Standard.css is now
389 included in OnlineGlom.html so that the online glom css rules have
390 precedence over the gwt theme.
391 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
392 the whole LayoutGroup to the DetailsView instead of just the titles.
393 * src/main/java/org/glom/web/client/ui/DetailsView.java:
394 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
395 details layout with a helper class (GroupPanel). I might extract this
396 class when I make the full flowtable.
397 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
398 string as default so I don't have to worry about NPEs when processing
400 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
401 note beside OnlineGlom.gwt.xml above).
402 * src/main/webapp/style.css: Add default font-size to body to override
403 the font-size set by the standard theme. Don't use h2 tags for
404 group-title. Create new details-cell class.
406 2011-07-08 Murray Cumming <murrayc@murrayc.com>
408 ConfiguredDocument: Set the port number too.
410 * src/main/java/org/glom/web/server/ConfiguredDocument.java
411 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
412 Glom document. Presumably this worked sometimes so far because there is a
415 2011-07-08 Murray Cumming <murrayc@murrayc.com>
417 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
419 * src/main/java/org/glom/web/server/ConfiguredDocument.java
420 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
421 correct, though we should throw an exception too.
423 2011-07-08 Murray Cumming <murrayc@murrayc.com>
425 Fix a addDocuemnt typo.
427 * src/main/java/org/glom/web/shared/Documents.java
428 (Documents.addDocuemnt): Rename to addDocument().
429 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
430 (OnlineGlomServiceImpl.getDocuments): Adapt.
432 2011-07-08 Murray Cumming <murrayc@murrayc.com>
434 Slightly improved log output when connection fails.
436 * src/main/java/org/glom/web/server/ConfiguredDocument.java
437 (ConfiguredDocument.setUsernameAndPassword):
438 We don't know for sure if it' the username/password that's wrong, so
439 rephrase the message.
440 Also ouput the exception message, though it's generic in this case.
442 2011-07-08 Ben Konrath <ben@bagu.org>
446 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
447 added braces to a one line if statement because the Eclipse formatter
448 was getting confused.
450 2011-07-07 Ben Konrath <ben@bagu.org>
452 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
454 These should really be two separate tasks but I counldn't get things to
455 work with GWT 2.2.0 and Eclipse 3.7.
459 * .settings/org.eclipse.jdt.core.prefs:
460 * .settings/org.eclipse.jdt.ui.prefs:
461 * .settings/org.eclipse.ltk.core.refactoring.prefs:
462 * .settings/org.eclipse.m2e.core.prefs:
463 Add new config files. Update current files. Remove references to the
464 webtools plugins as we're not using any of the webtools features.
465 * .gitignore: Add logs directory which is created when running with
467 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
468 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
469 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
471 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
473 2011-07-07 Murray Cumming <murrayc@murrayc.com>
475 onlineglom.properties: Add explanatory comments.
477 * src/main/resources/onlineglom.properties: Also change the default user
478 from ben to someuser, to avoid the risk of people thinking we just
479 stupidly hard-coded a locale path, when they see that on stderr or in a log.
481 2011-06-28 Ben Konrath <ben@bagu.org>
483 Use filename in Log for incorrect passwords.
485 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
486 getFileName(String) method to get the filename from the URI.
488 2011-06-28 Ben Konrath <ben@bagu.org>
490 Add the table name to the URL token for the ListPlace.
492 This makes things consistent between the DetailsPlace and the
493 ListPlace. It also allows the the ListPlace to be bookmarked.
495 * src/main/java/org/glom/web/client/OnlineGlomService.java:
496 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
497 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
498 Remove getDefaultListLayout(). The default layout is now returned
499 by the getListLayout() method when the table name is an empty string.
500 * src/main/java/org/glom/web/client/activity/ListActivity.java:
501 Add table name field. Change to a new ListPlace when the table
502 has been changed. Use getListLayout() for getting the default
504 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
505 Add table name field. Set the correct table name in the list box
506 when loading from bookmark. This corrects a problem for the
508 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
509 Move table name to super-class (HasSelectableTable). Move document
510 and table URL keys to super-class in HasSelectableTable.
511 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
512 Add table name field. Add Tokenizer class with URL key common to
513 the subclasses (DetailsPlace and ListPlace).
514 * src/main/java/org/glom/web/client/place/ListPlace.java:
515 Add table name. Add code to parse the URL token.
516 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
517 Update ListPlace construction with empty table name string.
518 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
519 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
520 Change setTableSelectedIndex(int) to setSelectedTableName(String).
521 Update ListPlace construction with table name string.
522 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
523 Change defaultTableName field to tableName to reflect how it's now
524 used. Update the getter and setter methods.
526 2011-06-28 Ben Konrath <ben@bagu.org>
528 Enable the table selector in the DetailsView.
530 * src/main/java/org/glom/web/client/OnlineGlomService.java:
531 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
533 Remove getDefaultDetailsLayout(). The default layout is now returned
534 by the getDetailsLayout() method when the table name is an empty
536 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
537 event handler for table change event. Change to using
538 getDetailsLayout() for the default details layout.
539 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
541 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
542 when navigating to the details place.
544 2011-06-27 Ben Konrath <ben@bagu.org>
546 Use filename based unique document ID in URL and for RPC.
548 The document ID is the glom document name with spaces (' ') replaced
549 with pluses ('+') and without the .glom extension.
551 This change is mostly a string substitution of 'documentTitle' for
552 'documentID'. The only code change is the addition of a Documents DTO to get the
553 filename to document title mappings as indicated below.
555 * src/main/java/org/glom/web/client/OnlineGlomService.java:
556 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
557 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
558 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
559 Use Documents DTO to create the document links in the document
561 * src/main/java/org/glom/web/client/activity/ListActivity.java:
562 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
563 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
564 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
565 * src/main/java/org/glom/web/client/place/ListPlace.java:
566 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
567 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
568 * src/main/java/org/glom/web/client/ui/ListView.java:
569 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
570 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
571 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
572 * src/main/java/org/glom/web/server/Log.java:
573 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
574 getDocumentTitles() to getDocuments() and return the Documents DTO.
575 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
576 transferring the filename to document title mappings.
578 2011-06-25 Ben Konrath <ben@bagu.org>
580 Make the authentication popup work again.
582 This bug was introduced when I extracted ConfiguredDocument to its own class.
584 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
585 correct success / fail status in setUsernameAndPassword().
587 2011-06-25 Ben Konrath <ben@bagu.org>
589 Use filename as unique key for configuring database usernames and passwords.
591 This replaces the use of the Glom document title which could change
592 depending on the locale. Thanks to Murray Cumming for pointing out this
595 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
596 * src/main/resources/onlineglom.properties:
598 2011-06-24 Ben Konrath <ben@bagu.org>
600 Pass primary key value to DetailsView.
602 This enables the DetailsView to load the correct data.
604 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
605 primary key value field and set in constructor. Pass primary key
606 value to getDetailsData().
607 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
608 variables for document title and primary key value.
609 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
610 key value to the DetailsPlace.
612 2011-06-24 Ben Konrath <ben@bagu.org>
614 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
616 This allows the primary key to be retrieved by the Details button. This
617 functionality has not been implemented yet but it's in the works.
619 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
620 the LayoutGroup result to ListView.setCellTable instead of all of its
622 * src/main/java/org/glom/web/client/ui/ListView.java:
623 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
624 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
625 get the primary key for the table.
626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
627 index of the primary key in the LayoutGroup accounting for hidden
628 primary keys. Rename getJavaNumberFormat() to
629 convertToJavaNumberFormat() for consistency. Cleanup / add some
631 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
632 field for primary key index and a field to indicate whether the
633 primary key is hidden or not.
635 2011-06-23 Ben Konrath <ben@bagu.org>
637 Rename getTableData methods to getListData.
639 This is a rename refactor for consistency with other methods.
641 * src/main/java/org/glom/web/client/OnlineGlomService.java:
642 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
643 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
644 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
646 2011-06-23 Ben Konrath <ben@bagu.org>
648 Extract the ConfiguredDocument innerclass into its own class.
650 This makes the servlet code more object oriented.
652 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
653 from private ConfiguredDocument class in OnlineGlomServiceImpl.
654 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
655 new ConfiguredDocument class.
657 2011-06-21 Ben Konrath <ben@bagu.org>
659 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
661 This makes things more inline with how libglom works and reduces code
662 duplication. This refactor lays the groundwork for adding the primary key to
663 the LayoutGroup object.
665 * src/main/java/org/glom/web/client/OnlineGlomService.java:
666 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
667 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
668 Change method names to getListLayout and getDefaultListLayout for
669 consistency. Use LayoutGroup as the DTO for the list layout instead of
670 ColumnInfo and LayoutListTable.
671 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
672 new method names along with the LayoutGroup object for transferring the
674 * src/main/java/org/glom/web/client/ui/ListView.java:
675 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
676 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
677 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
679 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
680 Replaced with LayoutGroup.
681 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
682 expectedResultSize and defaultTableName fields which are needed for
684 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
685 type field which is needed for the list layout but will also be
686 useful for the details layout as things progress.
687 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
688 Make class abstract. Remove the unnecessary
689 getFormattingHorizontalAlignment method. Add setFormatting method.
691 2011-06-16 Ben Konrath <ben@bagu.org>
693 Add scripts for building and installing war.
695 These will help when updating OnlineGlom but they're also good
696 supplemental documentation of the build and deployment proceeding.
698 * utils/build-onlineglom-war.sh: New file.
699 * utils/install-onlineglom-war.sh: New file.
701 2011-06-16 Ben Konrath <ben@bagu.org>
703 Create wrapper class to create consistent log messages.
705 I wrapped methods in the Log class of gwt-log to add the method names
706 from the servlet and create consistent formatting of the document title
707 and table names in the log messages.
709 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
711 log methods to use methods from wrapped Log class.
713 2011-06-16 Ben Konrath <ben@bagu.org>
715 Remove superfluous conditional return.
717 Thanks to Murray Cumming for pointing this out!
719 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
721 2011-06-15 Ben Konrath <ben@bagu.org>
723 Return an ArrayList of LayoutGroups for the Details layout.
725 This corrects a problem with the details layout as it can have more
726 than one top level LayoutGroup.
728 * src/main/java/org/glom/web/client/OnlineGlomService.java:
729 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
730 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
731 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
732 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
733 with ArrayList of LayoutGroups for the details view layout.
734 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
735 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
736 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
737 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
738 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
739 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
741 2011-06-14 Ben Konrath <ben@bagu.org>
743 Use cast_dynamic method to determine the libglom LayoutItem type.
745 This is better than finding the LayoutItem type by using the string
746 returned from the get_part_type_name() method.
748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
750 2011-06-14 Ben Konrath <ben@bagu.org>
752 Add method names to log entries in the servlet.
754 This helps when tracking down deployment problems.
756 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
758 2011-06-14 Ben Konrath <ben@bagu.org>
760 Add data to the DetailsView using a hard-coded primary key value.
762 The layout and functionality of the DetailsView is not complete. This
763 is just a checkpoint so the patch doesn't get too big.
765 * src/main/java/org/glom/web/client/OnlineGlomService.java:
766 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
767 Add getDetailsData() servlet method.
768 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
769 Add RPC to getDetailsData(). Change the way the LayoutGroups and
770 LayoutFields are added to the DetailsView.
771 * src/main/java/org/glom/web/client/ui/DetailsView.java:
772 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
773 Add setData() method. Change addLayoutGroup() and addLayoutField() to
774 take the string for the title instead of the object.
775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
776 Add implementation getDetailsData() along with some private helper
778 * src/main/webapp/style.css: Add padding to details-data class. Add a
779 details-label class with the same padding as the details-data class.
781 2011-06-03 Ben Konrath <ben@bagu.org>
783 Use presenter.goTo() to change to the DetailsPlace.
785 This will make things easier when we need to open the DetailsView with
786 data specific to the row that was clicked.
788 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
790 2011-06-02 Ben Konrath <ben@bagu.org>
792 Add CSS file from mockups.
794 I'm adding this now because it's going to be useful to have when
795 developing the DetailsView. The TableSelectionView and ListView aren't
798 * src/main/webapp/OnlineGlom.html:
799 * src/main/webapp/style.css:
801 2011-06-02 Ben Konrath <ben@bagu.org>
803 Use String.isEmpty() to check for empty string.
805 * src/main/java/org/glom/web/client/activity/ListActivity.java:
807 2011-06-02 Ben Konrath <ben@bagu.org>
809 Display main layout group titles in the DetailsView.
811 This is the start of the DetailsActivity/DetailsView implementation.
813 * src/main/java/org/glom/web/client/OnlineGlomService.java:
814 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
815 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
816 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
817 Get the layout information for the details view from the server and set
818 the main layout group titles.
819 * src/main/java/org/glom/web/client/ui/DetailsView.java:
820 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
821 Add addLayoutGroup() and addLayoutField() methods. This are just
822 temporary methods for creating the the details view that will change
824 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
825 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
827 * src/main/java/org/glom/web/shared/layout/Formatting.java:
828 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
829 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
830 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
831 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
832 Data Transfer Objects that mimic the libglom object structure. These are
833 used for transferring the details layout but could also be used for
834 transferring the list layout.
836 2011-05-27 Ben Konrath <ben@bagu.org>
838 Reset the AuthenticationPopup when clearing the ListView.
840 * src/main/java/org/glom/web/client/activity/ListActivity.java:
842 2011-05-27 Ben Konrath <ben@bagu.org>
844 Fix problem with onlineglom.properties file loading.
846 The old way worked in Eclipse but not on the server. Loading the
847 onlineglom.properties file now works in Eclipse and on the server.
849 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
851 2011-05-24 Ben Konrath <ben@bagu.org>
853 Update gwt-log from 3.1.0 to 3.1.2.
855 Gwt-log 3.1.0 has been marked as depreciated.
859 2011-05-24 Ben Konrath <ben@bagu.org>
861 Add comment to ListActivity.goTo() method.
863 * src/main/java/org/glom/web/client/activity/ListActivity.java:
865 2011-05-24 Ben Konrath <ben@bagu.org>
867 Remove FIXME in convertGdkColorToHtmlColour()
869 The Gdk::Color value returned by libglom is 16-bits per channel on both
870 64 and 32-bit platforms.
872 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 2011-05-19 Ben Konrath <ben@bagu.org>
876 Improve performance of initial ListView load.
878 I removed a round trip to the server for getting the default table name
879 and then requesting information about that table. This also removes a potential
880 problem with the table change handler not being setup in time to receive the
881 table change event from the ListActivity.
883 * src/main/java/org/glom/web/client/OnlineGlomService.java:
884 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
885 getDefaultLayoutListTable() method. Improve comments.
886 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
887 getDefaultLayoutListTable() method instead of firing a table change
888 event to get the table to load.
889 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
890 implementation of getDefaultLayoutListTable() method.
891 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
894 2011-05-19 Ben Konrath <ben@bagu.org>
896 Override toDebugString() in TableChangeEvent.
898 This is useful to have for debugging.
900 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
902 2011-05-19 Ben Konrath <ben@bagu.org>
904 Add a "Back to List" link when at the DetailsPlace.
906 * src/main/java/org/glom/web/client/activity/ListActivity.java:
907 Populate the CellTable based on the selected table of the ListBox if
908 it's set otherwise use the default table. This allows the "Back to
910 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
911 Remove Place from constructors. Add a setPlace() method. Add
912 goToPlace() method. Set class as presenter for TableSelectionView.
913 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
914 Use the same TableSelectionActivity when switching between the List and
916 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
917 Subclass the new HasSelectableTablePlace. This removes some duplicate
919 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
920 New class to represent Places that display the TableSelectionView.
921 * src/main/java/org/glom/web/client/place/ListPlace.java:
922 Subclass the new HasSelectableTablePlace. This removes some duplicate
924 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
925 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
926 Add Presenter interface. Add setBackLinkVisible() method. Add
927 setBackLink() method.
929 2011-05-18 Ben Konrath <ben@bagu.org>
931 Enable the "Details" buttons.
933 Right now only an empty details view is displayed.
935 * src/main/java/org/glom/web/client/ClientFactory.java:
936 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
937 Add DetailsView to ClientFactory.
938 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
939 A basic activity for the details view.
940 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
941 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
943 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
944 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
946 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
947 Create a new DetailsActivity when a DetailsPlace is requested. Remove
948 unnecessary super() in constructor.
949 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
950 Create a new TableSelectionActivity when a DetailsPlace is requested. We
951 really shouldn't create a new TableSelectionActivity for both the ListPlace
952 and the DetailsPlace so this should be considered a temporary solution.
953 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
954 New file. Represents a URL for the details view.
955 * src/main/java/org/glom/web/client/ui/DetailsView.java:
956 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
957 A basic details view interface and implementation.
958 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
959 Enable the "Details" buttons.
961 2011-05-12 Ben Konrath <ben@bagu.org>
963 Use a LayoutPanel with multiple display areas for main layout.
965 This is mostly a refactor in that there are no changes from the user
966 point of view. These changes are required so that we can swap out the list view
967 with the details view when the user clicks the "Details" button.
969 * src/main/java/org/glom/web/client/ClientFactory.java:
970 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
971 OnlineGlomView. Add TableSelectionView, ListView and
973 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
974 for main layout. Add display regions for main activities. Add
975 activity manager for for main activities.
976 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
977 file from parts of the deleted OnlineGlomActivity.
978 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
979 New file from parts of the deleted OnlineGlomActivity.
980 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
981 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
982 New files for app wide table change event.
983 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
984 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
985 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
986 Activity mappers for the main activities replace the deleted app-wide
988 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
989 Fix a spelling error in he comment.
990 * src/main/java/org/glom/web/client/ui/ListView.java:
991 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
992 Renamed from LayoutListView and modified for MVP. This still not a
993 proper dumb view as prescribed by the MVP pattern but it works for now.
994 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
995 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
996 New widget stripped out of the deleted OnlineGlomView.
997 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
998 Remove hack that is fixed by this patch.
1000 2011-05-06 Ben Konrath <ben@bagu.org>
1002 Rename OnlineGlomPlace to ListPlace.
1004 The only change besides the rename is that url will now display #list
1005 instead of #Document.
1007 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1008 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1009 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1010 * src/main/java/org/glom/web/client/place/ListPlace.java:
1011 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1013 2011-05-06 Ben Konrath <ben@bagu.org>
1015 Use Presenter for app navigation.
1017 This is the proper way to deal with Place (URL) changes with the MVP
1020 * src/main/java/org/glom/web/client/ClientFactory.java:
1021 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1022 PlaceHistoryMapper and PlaceHistoryHandler.
1023 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1024 PlaceHistoryMapper and PlaceHistoryHandler.
1025 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1026 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1027 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1028 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1029 Add Presenter interface and setPresenter methods. Rename addHyperLink
1030 to addDocumentLink taking only the document title as a parameter.
1032 2011-04-14 Ben Konrath <ben@bagu.org>
1034 Prompt for db username/password if they haven't been set.
1036 This is implemented with a popup widget that is contained within the
1037 OnlineGlomView and managed by the OnlineGlomActivity.
1039 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1040 methods for checking and setting the database username and password.
1041 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1042 new methods for checking and setting the database username and
1044 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1045 Display authentication popup if the JDBC connection to the database
1046 has not been authenticated.
1047 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1049 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1050 for dealing with the authentication popup.
1051 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1052 Implement the methods for dealing with the authentication popup.
1053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1054 try to executed queries if the database connection hasn't been
1055 authenticated. Implement methods for checking and setting the
1056 database username and password.
1058 2011-04-12 Ben Konrath <ben@bagu.org>
1060 Make log messages a little clearer.
1062 Add a dash betweeen the document title and the table name.
1064 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1066 2011-04-12 Ben Konrath <ben@bagu.org>
1068 Protect against NPEs when cleaning up database resources.
1070 While this isn't strictly necessary because the exception is caught,
1071 not protecting against the NPEs makes it harder to find the real error
1074 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1076 2011-04-12 Ben Konrath <ben@bagu.org>
1078 Move configuration of the servlet to the constructor.
1080 The servlet will be initialized even if the database authentication
1081 information is not set or correct. I still need to add the UI for prompting
1082 the user for the authentication information when it's required.
1084 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1085 javadocs for getDocumentTitles() method.
1086 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1087 Set error message when RPC fails.
1088 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1089 glom files directory from the configuration file. Try to set the
1090 database authentication information for the specific document if it's
1091 set and works otherwise try to use the global authentication
1092 information set for the directory.
1093 * src/main/resources/onlineglom.properties: Moved from
1094 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1095 Added detailed comments for the new keys.
1097 2011-04-11 Ben Konrath <ben@bagu.org>
1099 Remove unnecessary @Override in DocumentSelectionViewImpl.
1101 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1103 2011-04-11 Ben Konrath <ben@bagu.org>
1105 Remove center alignment in DocumentSelectionView.
1107 The title element is still centred but the document titles and bottom
1108 sentence are both left-aligned.
1110 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1112 2011-04-11 Ben Konrath <ben@bagu.org>
1114 Change 'Demo' naming convention to 'Document'.
1116 This is just a rename refactor with no functional changes to the code.
1118 * src/main/java/org/glom/web/client/ClientFactory.java:
1119 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1120 * src/main/java/org/glom/web/client/OnlineGlom.java:
1121 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1122 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1123 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1124 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1125 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1126 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1127 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1128 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1129 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1132 2011-04-08 Ben Konrath <ben@bagu.org>
1134 Remove FIXME from safeLongToInt() method.
1136 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1139 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1141 2011-04-08 Ben Konrath <ben@bagu.org>
1143 Display an error if no glom documents are found in the specified directory.
1145 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1146 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1147 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1148 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1150 2011-04-08 Ben Konrath <ben@bagu.org>
1152 Add copyright header to one more file ... oops.
1154 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1156 2011-04-08 Ben Konrath <ben@bagu.org>
1158 Add copyright header to files without it.
1160 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1161 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1162 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1163 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1164 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1165 * src/main/java/org/glom/web/shared/GlomField.java:
1167 2011-04-08 Ben Konrath <ben@bagu.org>
1169 Add support for accessing multiple glom documents in the servlet.
1171 This completes the demo selection functionality.
1173 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1174 document title to methods.
1175 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1176 document title to methods.
1177 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1178 Set browser window title when the activity starts. Correct name of
1179 document title variable.
1180 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1181 Set browser window title when the activity starts. Set the table
1182 selector change handler after table selector has been set. Clear the
1183 OnlineGlomView when the activity has been stopped.
1184 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1185 document title as the place token. Use "#Document:" instead of
1186 "#OnlineGlomPlace:" in the URL.
1187 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1188 Change heading to "Online Glom"
1189 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1190 document title in RPC methods.
1191 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1192 setDocumentTitle() method. Add clear() method.
1193 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1194 setDocumentTitle() method. Implement clear() method which removes the
1195 change handler on the ListBox, clears the ListBox and clears the
1197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1198 Implement methods with document title. Keep track for the configured
1199 glom documents and their corresponding JDBC configurations in a hash
1200 table. This information is retrieved using the document title as the
1201 key in the hash table.
1202 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1203 document title field as it's no longer needed.
1205 2011-04-08 Ben Konrath <ben@bagu.org>
1207 Update the Eclipse JDT configuration.
1209 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1210 methods. Automatically add the copyright header to new files.
1212 2011-04-05 Ben Konrath <ben@bagu.org>
1214 Add new page for demo selection.
1216 This patch adds all the components required to view and start an
1217 OnlineGlom demo by clicking on the desired hyperlink. The user is
1218 able to return to the demo selection page with the browser's back
1219 button. I still need to modify the servlet to work with multiple
1220 documents so all demo links will load the file defined in the
1221 OnlineGlom.properties.
1223 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1224 This is only useful during development so we don't need to save it.
1225 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1226 get a reference to the DemoSelectionView.
1227 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1228 method to get a reference to the DemoSelectionView.
1229 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1230 default view to DemoSelectionView.
1231 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1232 to get glom document titles for glom files in a hard-coded directory.
1233 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1234 method to get glom document titles for glom files in a hard-coded
1236 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1237 Presenter for DemoSelectionView.
1238 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1239 for DemoSelectionView.
1240 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1241 Update for DemoSelectionView.
1242 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1243 Basic 'Place' implementation for the DemoSelectionView.
1244 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1245 The interface for the DemoSelectionView.
1246 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1247 The implementation of the DemoSelectionView.
1248 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1249 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1250 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1251 implementation of method to get glom document titles for glom files
1252 in a hard-coded directory.
1253 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1254 on longer being used.
1255 * src/main/webapp/glom.png: Glom logo.
1257 2011-04-05 Ben Konrath <ben@bagu.org>
1259 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1261 This is the forth and final commit of a refactor that will allow
1262 OnlineGlom to be used with multiple documents.
1264 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1265 Move RPC code from OnlineGlomViewImpl to this class.
1266 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1268 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1269 RPC code to the presenter class (the P in MVP).
1271 2011-04-04 Ben Konrath <ben@bagu.org>
1273 Start moving the existing OnlineGlom code to MVP.
1275 This work is based on the GWT MVP framework that is documented here:
1277 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1279 This is the third commit of a refactor that will allow OnlineGlom to
1280 be used with multiple documents.
1282 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1283 Interface for client factory which is used to get instances of various
1284 classes throughout the app.
1285 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1286 Implementation of client factory.
1287 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1288 initialize the MVP framework.
1289 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1290 New file. Activity manager for the main container widget. This is the
1292 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1293 Maps place (URL) to its corresponding activity.
1294 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1295 New file. This is just a place holder for a generated file.
1296 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1297 New file. Represents the URL for the main Online Glom app.
1298 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1299 for changes in LayoutListViewImpl.
1300 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1301 interface for View. Move code to OnlineGlomViewImpl class.
1302 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1303 file. Implementation of OnlineGlomView.
1304 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1305 Place resources. Use ClientFactoryImpl by default.
1307 2011-04-04 Ben Konrath <ben@bagu.org>
1309 Move View classes to their own package.
1311 This is the second commit of a refactor that will allow OnlineGlom to
1312 be used with multiple documents.
1314 * src/main/java/org/glom/web/client/OnlineGlom.java:
1315 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1316 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1318 2011-04-02 Ben Konrath <ben@bagu.org>
1320 Move UI code from the main module to its own class.
1322 This is the first commit of a refactor that will allow OnlineGlom to be
1323 used with multiple documents.
1325 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1326 references to OnlineGlom to OnlineGlomView.
1327 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1328 OnlineGlomView and instantiate it here.
1329 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1330 represents the main OnlineGlomView with one document.
1332 2011-04-01 Ben Konrath <ben@bagu.org>
1334 Fix formatting of gwt.xml and add DTD.
1336 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1338 2011-03-30 Ben Konrath <ben@bagu.org>
1340 Propperly convert gdkColor string to html colour string.
1342 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1344 2011-03-28 Ben Konrath <ben@bagu.org>
1346 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1348 This implementation matches
1349 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1350 readable and is not tied to Swig.
1352 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1354 2011-03-28 Ben Konrath <ben@bagu.org>
1356 Use read-only checkboxes for boolean field types.
1358 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1359 in the CellTable based on the field type. It currently only
1360 distinguishes between boolean and text columns but I'll need to add
1361 support for more types.
1362 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1363 column type in the ColumnInfo object. Add method to convert between the
1364 glom field type enum in ColumnInfo and the glom field type in libglom.
1365 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1367 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1368 getting and setting booleans.
1370 2011-03-25 Ben Konrath <ben@bagu.org>
1372 Don't get the Date twice from the ResultSet.
1374 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1376 2011-03-25 Ben Konrath <ben@bagu.org>
1378 Cleanup code in the servlet.
1380 * TODO: Remove item about row count. Add item about testing row count
1381 query with large number of rows.
1382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1383 spelling mistakes, change method parameter to be consistent with
1386 2011-03-25 Ben Konrath <ben@bagu.org>
1388 Add server side logging with the gwt-log library.
1390 * .gitignore: Ignore the log file we're now producing.
1391 * TODO: Add a couple TODO item for logging.
1392 * pom.xml: Add gwt-log and log4j as a dependency.
1393 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1394 logging of errors, warnings and some important info.
1395 * src/main/resources/log4j.properties: New file to configure log4j.
1397 2011-03-24 Ben Konrath <ben@bagu.org>
1399 Add a disable button for the Details view.
1401 * src/main/java/org/glom/web/client/LayoutListView.java:
1403 2011-03-22 Ben Konrath <ben@bagu.org>
1405 Use a count query to get the number of rows for the list view pager.
1407 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1409 2011-03-22 Ben Konrath <ben@bagu.org>
1411 Add more TODO information about CellTable pager positioning.
1415 2011-03-19 Ben Konrath <ben@bagu.org>
1417 Add TODO item about CellTable pager positioning.
1421 2011-03-18 Ben Konrath <ben@bagu.org>
1423 Remove unneeded GlomFieldColumn class.
1425 This is just a small code cleanup.
1427 * src/main/java/org/glom/web/client/LayoutListView.java:
1429 2011-03-18 Ben Konrath <ben@bagu.org>
1431 Use cursor mode in the query that gets data for the list view.
1433 I still need to fix the potential memory problem when getting the row
1434 count for the list view.
1436 * TODO: Add note about testing memory usage with large data sets. Add
1437 item about fixing row counting with large data sets.
1438 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1439 PostgreSQL JDBC driver into cursor mode when getting data for the
1442 2011-03-15 Ben Konrath <ben@bagu.org>
1444 Remove the GWT Container from the Eclipse build classpath.
1446 The GWT dependencies are set by Maven so this isn't needed.
1450 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1452 Added some earlier mockups to git, but not to the tarball dist.
1454 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1455 Openismus. These hopefully show how we might structure the HTML so that
1456 it can be styled easily with CSS. However, we probably need to adapt them
1457 for the CSS structure that GWT dictates for common widgets.
1459 2011-03-14 Ben Konrath <ben@bagu.org>
1461 Locate OnlineGlom.properties using the ServletContext.
1463 This is required to be able to locate the file in the deployed servlet.
1465 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1466 Configure the database and glom document in in a helper method so
1467 that the ServletContext can be used to locate OnlineGlom.properties.
1468 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1469 src/main/webapp. This is the proper location for .properites files.
1471 2011-03-12 Ben Konrath <ben@bagu.org>
1473 Add note to README about why we're compiling down to obfuscated JavaScript.
1477 2011-03-11 Ben Konrath <ben@bagu.org>
1479 Use properties file to configure servlet.
1481 This allows people to change the glom file path, db username and db
1482 password without recompiling the code.
1484 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1485 * src/main/webapp/OnlineGlom.properties:
1487 2011-03-11 Ben Konrath <ben@bagu.org>
1489 Use table fields in layout list view if the layout list is not defined.
1491 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1492 Manually create a LayoutFieldVector for the query builder using the
1493 table fields when a layout list is not defined in the glom file.
1495 2011-03-11 Ben Konrath <ben@bagu.org>
1497 Only show FIXME string for images when there's an image.
1499 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1500 in this change are some small code cleanups.
1502 2011-03-11 Ben Konrath <ben@bagu.org>
1504 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1506 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1508 2011-03-11 Ben Konrath <ben@bagu.org>
1510 Correctly set the index of the default table.
1512 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1513 Correctly set the index of the default table. Add commented out example
1516 2011-03-10 Ben Konrath <ben@bagu.org>
1518 Add comment to pom.xml about the previous change.
1520 * pom.xml: Add comment about the deployment issue so that it's obvious
1521 why java-libglom is set to the provided scope.
1523 2011-03-10 Ben Konrath <ben@bagu.org>
1525 Change java-libglom dependency from compile to provided in pom.xml.
1527 Since java-libglom uses jni it can only be loaded once and therefore
1528 must be placed in $CATALINA_HOME/lib and not included in each war.
1529 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1530 More information about this issue can be found in the Tomcat 6 release
1531 notes in the "JNI Based Applications" section:
1533 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1535 * README: Remove note about this issue. Deployment info should really
1536 be on the wiki anyway so I'll add it right now.
1537 * pom.xml: Change java-libglom dependency from compile to provided so
1538 that it's copied in to the packaged war.
1540 2011-03-09 Ben Konrath <ben@bagu.org>
1542 Change to using a neutral locale for currency, date and time formatting.
1544 This solves the problem of currency values being represented without a
1545 space between the currency code and the number (e.g. "EUR5.89" is now
1546 represented as "EUR 5.89"). More work is required when we implement
1547 a locale preference setting.
1549 * TODO: Add note about currency formatting issues with different
1551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1552 to using the neutral ROOT locale.
1554 2011-03-09 Ben Konrath <ben@bagu.org>
1556 Add support for currency codes that are not ISO 4217 codes.
1558 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1559 the currency code defined in the glom file when it's not 3 characters
1560 long or when Java doesn't recognize the string as an ISO 4217 code.
1562 2011-03-08 Ben Konrath <ben@bagu.org>
1564 Remove test classes, launch configurations and configuration.
1566 The test stuff was getting in the way when creating the war. To make
1567 the war file you can now do 'mvn clean package'. The packaged war file
1568 will be in the target directory.
1570 * .classpath: Remove unused classpathentry for tests and i18n.
1571 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1572 property. Don't run test or i18n goals when packaging the war.
1573 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1578 * OnlineGlomTest-dev.launch:
1579 * OnlineGlomTest-prod.launch:
1580 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1581 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1583 2011-03-07 Ben Konrath <ben@bagu.org>
1585 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1587 These fixes allow me to use 'mvn deploy' to create the war file.
1589 * .classpath: This generated config has been updated by Eclipse. This
1590 change was probably triggered by me updating from Eclipse 3.6.1 to
1592 * .gitignore: Add entry to ignore the directory
1593 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1594 * .project: The generated config has been updated by Eclipse. This
1595 change was probably triggered by me updating from Eclipse 3.6.1 to
1597 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1598 so that Eclipse doesn't complain
1599 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1600 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1601 'tests' directory to 'client' directory. This is the new
1602 gwt-maven-plugin convension.
1603 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1604 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1606 2011-03-07 Ben Konrath <ben@bagu.org>
1608 Add support for horizontal alignment in the LayoutList columns.
1610 * TODO: Remove item about horizontal alignment. Add item about
1611 improvements to ColumnInfo.
1612 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1613 alignment on the columns. Use ColumnInfo RPC object get the column
1614 title and horizontal alignment.
1615 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1616 LayoutListView creation with ColumnInfo RPC object.
1617 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1618 a ColumnInfo object for every LayoutList columnn. Convert the
1619 FieldFormatting.HorizontalAlignment to the correct
1620 ColumnnInfo.HorizontatlAlignment with the new
1621 getColumnInfoHorizontalAlignment helper method.
1622 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1623 to encapsulate column information like alignment and title. This
1624 could be used to set the colour instead of on a per cell field basis.
1625 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1626 column title storage and retrieval with ColumnInfo.
1628 2011-03-04 Ben Konrath <ben@bagu.org>
1630 Add support for column sorting.
1632 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1633 AsynDataProvider to be an anonymous inner class. Use new
1634 getSortedTableData RPC method when column sort is requested. Set all
1635 columns sortable and add an AsyncHandler to activate sorting in the
1637 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1638 method getSortedTableData(). Cleanup other method signatures.
1639 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1640 new method getSortedTableData(). Cleanup other method signatures.
1641 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1642 Implement getSortedTableData() and getTableData() methods by using a
1643 private helper method with the appropriate parameters filled in. Use
1644 user supplied sort clause when supplied, otherwise fall back to
1645 sorting by the primary key. Move destroy() method to be underneath
1646 constructor for readability. Cleanup comments.
1648 2011-03-03 Ben Konrath <ben@bagu.org>
1650 Add support for colour text and colour backgrounds to the layout list cells.
1652 Only the cell backgrounds are coloured which leaves a gap between the
1653 cells that isn't coloured. I need to figure out a way to set
1654 'style=background-colour:' on the whole column rather than just the
1657 * TODO: Add a note about colouring the background of the whole column.
1658 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1659 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1660 render the coloured text and backgrounds. Use GlomField[] for the row type.
1661 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1663 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1664 GlomField[] for the row type.
1665 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1666 GlomField[] for the row type. Set the text, text colour and background
1667 colour in the GlomField objects as specified in the glom document. Add
1668 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1669 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1670 the glom field text, foreground colour and background colour.
1672 2011-03-02 Ben Konrath <ben@bagu.org>
1674 Don't display hidden tables in the combo box.
1676 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1678 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1679 code to ignore hidden tables using ArrayLists for the table names and
1681 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1682 tableNames to use ArrayLists instead of String[]. Update getter and setter
1685 2011-03-01 Ben Konrath <ben@bagu.org>
1687 Add support for Date and Time number types.
1689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1690 Implement formatting for Date and Time values. Change the default glom
1691 file to small business example.
1693 2011-03-01 Ben Konrath <ben@bagu.org>
1695 Add support for formatting glom types as specified in the glom file.
1697 Formatting isn't finished yet - I still need to add support for Date
1700 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1701 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1702 checks for null values in JDBC cleanup code and catch all exceptions
1703 instead of just SQLExceptions.
1704 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1707 2011-03-01 Ben Konrath <ben@bagu.org>
1709 Use GWT 2.2.0 instead of 2.1.1.
1711 * pom.xml: Change GWT version numbers.
1713 2011-03-01 Ben Konrath <ben@bagu.org>
1715 A few small code cleanups.
1717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1719 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1720 unnecessary object creation in constructor.
1721 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1722 unnecessary object creation in constructor.
1724 2011-02-28 Ben Konrath <ben@bagu.org>
1726 Add file for TODO list.
1730 2011-02-18 Ben Konrath <ben@bagu.org>
1732 Enable the CellTable Pager when more than 20 rows need to be viewed.
1734 The Pager will automatically become active when the results are larger
1735 than the CellTable size which is currently set to 20 lines.
1737 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1738 name on debug statment in RPC call in LayoutListDataProvider, add
1739 numRows parameter to LayoutListView constructor, propperly set rowCount
1741 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1742 name on debug statment in RPC call, use LayoutListTable object in RPC
1743 calls, pass rowCount to LayoutListView.
1744 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1745 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1747 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1748 interface for changes in OnlineGlomService.
1749 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1750 getLayoutListHeaders() to getLayoutListTable() and return
1751 LayoutListTable. Using this object allows me to pass other information
1752 about the LayoutList like the expected number of rows in the result set.
1753 The Connection object from the connection pool is now propperly closed.
1754 Only the requested number of lines are returned to the client in
1756 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1757 GlomTable and add columnTitles and numRows.
1759 2011-02-18 Ben Konrath <ben@bagu.org>
1761 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1763 This is a small performance boost. I'll use GlomTable to get the required
1764 layoutlist information.
1766 * src/main/java/org/glom/web/client/OnlineGlom.java:
1767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1768 * src/main/java/org/glom/web/shared/GlomDocument.java:
1770 2011-02-18 Ben Konrath <ben@bagu.org>
1772 Add option to turn off formatting in JDT formatter preferences.
1774 * .settings/org.eclipse.jdt.core.prefs:
1776 2011-02-18 Ben Konrath <ben@bagu.org>
1778 Rename LayoutList to LayoutListView.
1780 I'm working towards setting things up to easily use MVP when the time
1783 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1785 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1788 2011-02-17 Ben Konrath <ben@bagu.org>
1790 Move LayoutListDataProvider class into LayoutList.java.
1792 * src/main/java/org/glom/web/client/LayoutList.java:
1794 2011-02-17 Ben Konrath <ben@bagu.org>
1796 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1798 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1800 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1801 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1802 from LibGlomServer.java.
1803 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1804 Rename from LibGlomServiceAsync.java.
1805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1806 Rename from LibGlomServiceImpl.java.
1807 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1809 2011-02-17 Ben Konrath <ben@bagu.org>
1811 Update JDT settings.
1813 * .settings/org.eclipse.jdt.core.prefs:
1815 2011-02-17 Ben Konrath <ben@bagu.org>
1817 Move GWT-RPC objects to shared package (where they should be).
1819 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1820 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1821 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1822 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1823 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1824 org.glom.web.shared package.
1825 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1826 org.glom.web.shared package.
1827 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1828 directory in compilation to javascript.
1830 2011-02-16 Ben Konrath <ben@bagu.org>
1832 Add sort clause to the sql query that grabs table information.
1834 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1835 if one of the columns is a primary key.
1837 2011-02-16 Ben Konrath <ben@bagu.org>
1839 Disable generateAsync feature of gwt-maven.
1841 The generated interface does not correctly match the methods in LibGlomService
1842 and the generated singleton Util inner-class doesn't respect the servlet
1845 * pom.xml: Turn off generateAsync feature.
1846 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1847 with singleton Util inner-class.
1849 2011-02-14 Ben Konrath <ben@bagu.org>
1851 Add LGPL v3 licence notices.
1853 Followed directions listed here:
1854 http://www.gnu.org/licenses/gpl-howto.html
1856 * COPYING: This file is a copy of the GPL v3.
1857 * COPYING.LESSER: This file is a copy of the LGPL v3.
1858 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1860 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1862 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1864 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1866 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1868 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1870 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1873 2011-02-14 Ben Konrath <ben@bagu.org>
1875 Use ArrayList instead of Array in GWT-RPC calls.
1877 Apparently this gives a slight performance boost to the compiled
1880 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1882 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1885 2011-02-14 Ben Konrath <ben@bagu.org>
1887 Access data from a postgres db rather than the example glom file.
1889 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1890 compile down to obfuscated javascript.
1891 * pom.xml: Add c3p0 and postgres JDBC libraries.
1892 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1893 using a postgres db accessed through the c3p0 connection pooling library.
1895 2011-02-14 Ben Konrath <ben@bagu.org>
1897 Update Java formatter settings.
1899 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1901 2011-02-02 Ben Konrath <ben@bagu.org>
1903 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1905 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1907 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1908 the compiled webapp directory that Eclipse uses as we're using Maven now.
1909 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1910 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1912 * pom.xml: Format file, change target Java version to 1.6.
1914 2011-02-02 Ben Konrath <ben@bagu.org>
1916 Add information about a deployment related issue.
1918 * README: Add Notes section with the problem outlined.
1920 2011-02-02 Ben Konrath <ben@bagu.org>
1922 Call Glom.libglom_deinit() when the servlet is shutdown.
1924 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1925 Glom.libglom_deinit() to destroy() method.
1927 2011-01-28 Ben Konrath <ben@bagu.org>
1929 Use generated Util class to get the RPC Async interface.
1931 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1933 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1934 getInstance() method to get a reference to the RPC Async interface.
1935 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1936 getInstance() method to get a reference to the RPC Async interface, remove
1937 the now unused getLibGlomServiceProxy() method.
1939 2011-01-27 Ben Konrath <ben@bagu.org>
1941 Cleanup ChangeLog entry from previous commit.
1943 * ChangeLog: Group logical changes together and add comments.
1945 2011-01-25 Ben Konrath <ben@bagu.org>
1947 Convert to gwt-maven project.
1949 * .gitignore: Update for new project structure.
1950 * README: New file with a link to the online documentation.
1951 * pom.xml: The generated maven configuration file with some tweaks.
1953 Add / update Eclipse settings. These files are a merge of the files that
1954 were generated with the gwt-maven plugin and the files we were previously
1958 * .settings/.jsdtscope:
1959 * .settings/com.google.gdt.eclipse.core.prefs:
1960 * .settings/com.google.gwt.eclipse.core.prefs:
1961 * .settings/org.eclipse.jdt.core.prefs:
1962 * .settings/org.eclipse.wst.common.component:
1963 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1964 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1965 * .settings/org.maven.ide.eclipse.prefs:
1966 * OnlineGlomTest-dev.launch:
1967 * OnlineGlomTest-prod.launch:
1969 Java source files moved from the 'src' directory to the directory structure
1971 * src/main/java/org/glom/web/client/GlomDocument.java:
1972 * src/main/java/org/glom/web/client/GlomTable.java:
1973 * src/main/java/org/glom/web/client/LayoutList.java:
1974 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1975 * src/main/java/org/glom/web/client/LibGlomService.java:
1976 * src/main/java/org/glom/web/client/OnlineGlom.java:
1977 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1979 Non-functional property file used for translations. I included this as
1980 reminder that it's something I need to sort out.
1981 * src/main/resources/org/glom/web/client/Messages.properties:
1983 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1984 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1986 The servlet configuration files moved from the 'war' directory.
1987 * src/main/webapp/OnlineGlom.css:
1988 * src/main/webapp/OnlineGlom.html:
1989 * src/main/webapp/WEB-INF/web.xml:
1991 Generated test files with most of the code commented out. I included these
1992 so that it's easy to add tests when we're ready for them.
1993 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1994 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1996 2011-01-25 Ben Konrath <ben@bagu.org>
1998 Remove unused println.
2000 * src/org/glom/web/server/LibGlomServiceImpl.java:
2002 2011-01-25 Ben Konrath <ben@bagu.org>
2004 Add project specific JDT settings.
2006 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2007 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2009 2011-01-25 Ben Konrath <ben@bagu.org>
2011 Populate celltable with example data.
2013 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2014 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2015 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2016 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2017 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2018 asynchronously gets the example data.
2019 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2020 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2021 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2022 curently selected table to be retrieved by other widgets.
2023 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2024 implement getTableData() in a hacky way. This method needs to be updated
2025 to grab information from the database when database creating is
2028 2011-01-20 Ben Konrath <ben@bagu.org>
2030 Set table headers when table dropBox changes.
2032 * src/org/glom/web/client/GlomDocument.java: Correct some method
2034 * src/org/glom/web/client/LibGlomService.java: Add method
2035 to get list layout field names.
2036 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2037 to get list layout field names.
2038 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2039 widget for list layout table.
2040 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2041 the table drop box and add new updateTable() method to asynchronously
2042 get the layout list field names for the currently selected table.
2043 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2044 implementation of getLayoutListHeaders() method.
2045 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2047 2011-01-18 Ben Konrath <ben@bagu.org>
2049 Make a listBox with table titles instead of the flexTable demo.
2051 This is the start of something more useful.
2053 * .classpath: Exclude a bunch of packages from the JVM that are
2054 getting in the way of the Eclipse content assist.
2055 * src/org/glom/web/client/GlomDocument.java:
2056 * src/org/glom/web/client/GlomTable.java:
2057 * src/org/glom/web/client/LibGlomService.java:
2058 * src/org/glom/web/client/LibGlomServiceAsync.java:
2059 * src/org/glom/web/client/OnlineGlom.java:
2060 * src/org/glom/web/server/LibGlomServiceImpl.java:
2061 * war/OnlineGlom.html:
2062 * war/WEB-INF/web.xml:
2064 211-01-13 Ben Konrath <ben@bagu.org>
2066 Update to new java-libglom API.
2068 * .gitignore: Ignore OnlineGlom.war.
2069 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2071 2010-12-20 Ben Konrath <ben@bagu.org>
2073 Add some basic style to the table listing.
2075 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2076 header, print useful error message on async callback failure.
2077 * war/OnlineGlom.css: Add style for table header, remove defaults
2078 provided by the Eclipse project wizard.
2080 2010-12-20 Ben Konrath <ben@bagu.org>
2082 Load example file from installed glom dir.
2084 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2085 provided by java-libglom to find the example file.
2087 2010-12-20 Ben Konrath <ben@bagu.org>
2089 Update Eclipse settings.
2092 * .settings/com.google.gdt.eclipse.core.prefs:
2093 * .settings/com.google.gwt.eclipse.core.prefs:
2095 2010-12-17 Ben Konrath <ben@bagu.org>
2099 * .classpath: New file.
2100 * .gitignore: New file.
2101 * .project: New file.
2102 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2103 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2104 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2105 * src/org/glom/web/client/GlomTable.java: New file.
2106 * src/org/glom/web/client/OnlineGlom.java: New file.
2107 * src/org/glom/web/client/TableNameService.java: New file.
2108 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2109 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2110 * war/OnlineGlom.css: New file.
2111 * war/OnlineGlom.html: New file.
2112 * war/WEB-INF/web.xml: New file.
2113 * war/images/glom.png: New file.