1 2012-01-17 Murray Cumming <murrayc@murrayc.com>
3 Add a language/locale selector drop-down.
5 * src/main/java/org/glom/web/shared/DocumentInfo.java:
6 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
7 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
8 getDocumentInfo(): Store the available Locales in the DocumentInfo.
9 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
10 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
11 Add a ListBox to show the available locales. Add getLocaleSelector(),
12 setLocaleList(), getSelectedLocale(), setSelectedLocale().
13 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
14 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
15 java: Add these classes.
16 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
17 start(): Fill the locales ListBox. Handle its change event, firing a
19 setPlace(): Show the selected locale as specified by the URL token.
20 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
21 * src/main/java/org/glom/web/client/activity/ListActivity.java:
22 Handle LocaleChangeEvent, going to a new *Place with that locale.
24 The placement of the ListBox is not pretty, and it currently uses the ID
25 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
29 2012-01-17 Murray Cumming <murrayc@murrayc.com>
31 Search box: Show the search text from the URL token.
33 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
34 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
35 Add setQuickFindText().
36 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
37 .java: setPlace(): Store the queryText if the place is a ListPlace,
38 and call TableSelectionView.setQuickFindText().
40 2012-01-17 Murray Cumming <murrayc@murrayc.com>
42 Allow use of translations via, for instance, &lang=de in the URL.
44 * pom.xml: Use the unstable java-libglom 1.21 version.
46 * src/main/java/org/glom/web/client/OnlineGlomService.java:
47 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
48 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
49 init(): Instead of calling TranslatableItem.set_current_locale()
50 (now removed), call ConfiguredDocument.setDefaultLocaleID().
51 However, this is only for default locales, which are not needed to
52 change the locale in the URL.
53 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
54 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
55 getSortedRelatedListData(): Add a localeID parameter, so we can get the
56 layout for a particular locale.
57 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
58 Add get/setDefaultLocaleID().
59 getDocumentInfo(), getListViewData(), getRelatedListData(),
60 getDetailsLayoutGroup(), getListViewLayoutGroup(),
61 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
62 localeID parameter, so we can get the layout for a particular locale.
64 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
65 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
66 * src/main/java/org/glom/web/client/place/ListPlace.java:
67 Parse and construct a lang parameter too.
69 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
70 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
71 passed to subsequent methods and constructors.
72 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
73 * src/main/java/org/glom/web/client/activity/ListActivity.java:
74 Store the localeID from the *Place and pass it to other constructors
75 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
77 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
78 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
79 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
80 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
81 * src/main/java/org/glom/web/client/ui/ListView.java:
82 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
83 Take localeID parameters and pass them to subsequent constructors and
84 methods, so that the layout is always retrieved for that locale.
86 This is rather repetitive.
88 Note that "" means the original (default) locale of the Glom document,
89 which is usually English.
91 2012-01-17 Murray Cumming <murrayc@murrayc.com>
93 Documents: Remove final keyword to fix startup configuration.
95 * src/main/java/org/glom/web/shared/Documents.java: Remove the
96 final keywords on the private member variables because that breaks
97 the startup, apparently (there are warnings) because it stops them
98 from being serialized. I added these in the previous commit.
100 2012-01-13 Murray Cumming <murrayc@murrayc.com>
102 Documents: Add some final keywords.
104 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
107 2012-01-13 Murray Cumming <murrayc@murrayc.com>
109 OnlineGlomServiceImpl: Add to overview comments.
111 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
112 Note that this is where all the document are loaded. They are not
113 loaded freshly for each page.
115 2012-01-12 Murray Cumming <murrayc@murrayc.com>
119 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
120 Add a TextBox for the text of a quick find.
121 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
123 setBackLink(): Add a String quickFind parameter.
124 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
125 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
126 to the base interface, because that is how TableSelectionViewImpl is used.
127 * src/main/webapp/style.css: Add style for the search box and its label.
129 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
130 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
131 Add these files, based on the existing TableChangeEvent and
132 TableChangeEventHandlers.
133 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
134 start(): Handle QuickFindChangeEvent, passing its quickFind text to
135 a ListPlace() that the user should be taken to.
136 * src/main/java/org/glom/web/client/activity/ListActivity.java
137 start(): Handle it here too and adapt the TableChangeEvent handler to
138 pass the extra "" quickFind parameter to ListPlace.
139 * src/main/java/org/glom/web/client/place/ListPlace.java:
140 Constructor: Take an extra String quickFind parameter and store it,
141 returning it from a new getQuickFind() method.
142 getToken(): Put the quickFind text in the URL token.
143 getPlace(): Parse the quickFind text from the URL token.
144 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
145 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
146 ListPlace constructor.
147 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
148 .java: start(): Add a Change handler for the TableSelectionView's
149 TextBox (via its base HasChangeHandlers interface), firing the new
150 QuickFindChangeEvent.
151 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
152 pass the extra "" quickFind parameter.
154 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
155 setCellTable(): Add a String quickFind parameter and pass it to
156 the ListViewTable() constructor.
157 * src/main/java/org/glom/web/client/ui/ListView.java: Change
158 setCellTable() in the base interface, because that is how ListViewImpl
161 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
162 Add a String quickFind member variable.
163 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
164 Constructor: Add a String quickFind parameter, storing it in the
165 base ListTable's member variable.
166 onRangeChanged(): Pass quickFind to the
167 OnlineGlomServiceAsync.getSortedListViewData() and
168 OnlineGlomServiceAsync.getListViewData() methods.
170 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
171 getListViewData(), getSortedListViewData(): Add a String quickFind
172 parameter, passing it to ConfiguredDocument.getListViewData().
173 * src/main/java/org/glom/web/client/OnlineGlomService.java:
174 Change getListViewData(), getSortedListViewData() in the base interface,
175 because that is how OnlineGlomServiceImpl is used, via this:
176 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
177 Change getListViewData(), getSortedListViewData() here too.
178 This class can apparently be used to asynchronously call methods on
179 OnlineGlomService, and GWT seems to implement that after recognizing
180 just the *Async name convention and the extra AsyncCallback parameters.
182 * src/main/java/org/glom/web/server/ConfiguredDocument.java
183 getListViewData(): Add a String quickFind parameter, and pass it to
184 ListViewDBAccess.getData().
185 * src/main/java/org/glom/web/server/database/ListDBAccess.java
186 getListData(): Add a String quickFind parameter and pass it to
188 getSelectQuery(): Add a String quickFind parameter.
189 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
190 getSelectQuery(): Add a String quickFind parameter and use it with
191 Glom.get_find_where_clause_quick() to pass a where_clause to
192 Glom.build_sql_select_with_where_clause(), to actually filter the
194 getData(): Add a String quickFind parameter, passing it to getListData().
195 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
196 va: getData(): Pass an empty string to getListData() for the
199 2012-01-12 Murray Cumming <murrayc@murrayc.com>
201 ListTable: Minor change.
203 * src/main/java/org/glom/web/client/ui/list/ListTable.java
204 createCellTable(): Make this protected instead of public.
206 2012-01-12 Murray Cumming <murrayc@murrayc.com>
208 Many files: Use final for the parameters and use the @override attribute.
210 2012-01-22 Ben Konrath <ben@bagu.org>
212 Add anchor links for single line text that starts with http, ftp and www.
216 2012-01-22 Ben Konrath <ben@bagu.org>
218 Add ellipsis to single line text in details view.
222 2012-01-04 Murray Cumming <murrayc@murrayc.com>
224 Remove all javadoc author tags.
226 Because they are awkward and meaningless when many people touch
228 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
230 2012-01-04 Murray Cumming <murrayc@murrayc.com>
232 Revert the COPYING.LESSER to COPYING rename.
234 Apparently both should be there if it is LGPL.
236 2012-01-03 Murray Cumming <murrayc@murrayc.com>
238 *View: Remove unused imports.
240 * src/main/java/org/glom/web/client/ui/DetailsView.java:
241 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
242 * src/main/java/org/glom/web/client/ui/ListView.java:
243 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
244 Remove unused imports, as suggested by Eclipse.
246 2012-01-02 Murray Cumming <murrayc@murrayc.com>
248 Move the *View::Presenter types, and some API into one base View.
250 * src/main/java/org/glom/web/client/ui/DetailsView.java:
251 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
252 * src/main/java/org/glom/web/client/ui/ListView.java:
253 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
254 Presenter, setPresenter() and clear() into a shared base interface,
255 to avoid the unnecessary duplicate Presenter types and to more clearly
256 show how the *Views share the same structure, even if they are not
257 used polymorphically.
259 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
260 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
262 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
263 * src/main/java/org/glom/web/client/activity/ListActivity.java:
264 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
266 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
269 Feel free to revert this if there is a good reason for the duplicate
272 2012-01-02 Murray Cumming <murrayc@murrayc.com>
274 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
276 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
277 a class member instead of a local variable in the method.
278 This lets us use it to get the view instances, for use in tests.
279 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
280 beforeOnlineGlom(): Test some more details of the initial view.
281 Again, this is not very useful.
283 To really test gwt-glom we will need to start a local postgresql
284 instance with local data, like the Glom tests in C++.
286 2012-01-02 Murray Cumming <murrayc@murrayc.com>
288 pom.xml: Mention the LGPL license.
290 * pom.xml: Add a licenses section.
291 * COPYING.LESSER: Move this to COPYING, which
292 previously contained the GPL. But gwt-glom is all LGPL.
294 2012-01-02 Murray Cumming <murrayc@murrayc.com>
296 Add project information to README and pom.xml.
298 * README: Add a brief description and mention some mvn
300 * pom.xml: This extra information shows up in mvn site
303 2011-01-02 Murray Cumming <murrayc@murrayc.com>
305 Use the latest java-libglom version.
307 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
309 2012-01-01 Murray Cumming <murrayc@murrayc.com>
311 GwtTestOnlineGlom: Test a little more.
313 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
314 protected rather than private, as suggested by the gwt-test-utils
316 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
317 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
318 Test the initial visibility of the panels.
320 However, this is not a very useful test.
321 And I wonder how we should generally test using this idea for an
322 activity/places app like ours where the real changes happen implicitly
323 based on the history token/URL.
325 2012-01-01 Murray Cumming <murrayc@murrayc.com>
327 Slight modification to *Mapper comments.
329 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
331 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
333 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
335 Remove comments mentioning GIN because they are just copied from
336 the example code and are apparently not helpful:
337 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
338 Also change the mention of a class that is only in the example code.
340 2012-01-01 Murray Cumming <murrayc@murrayc.com>
342 GwtTestOnlineGlom test: Minor changes.
344 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
345 Avoid the long qualified class name and modify the comment
346 because it is now obvious to me that the mocked class is the only
347 custom one created via GWT.create().
349 2012-01-01 Murray Cumming <murrayc@murrayc.com>
351 Tests: Added the beginnings of a test using gwt-test-utils.
353 * pom.xml: Add dependencies on gwt-test-utils and easymock.
354 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
355 which tells gwt-test-utils what class will be tested.
356 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
357 Add a simple (but empty) test case. One class, used by the OnlineGlom
358 class, is mocked so that it can be created. However, I am not sure
359 why only this class needs to be mocked.
361 Note that mockito seems more popular, and clearer, than easymock,
362 but I have not got that working yet. It might be a matter of the
365 This test is run during mvn integration-test.
367 2011-12-31 Murray Cumming <murrayc@murrayc.com>
369 Tests: Use junit4-style syntax instead of junit3-style.
371 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
372 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
373 * src/test/java/org/glom/web/shared/DataItemTest.java:
374 Use the @Test annotation rather than relying on the test*() prefix.
375 Also no longer implement TestCase, to avoid triggering support for
376 the junit3-way, which stops the annotations from working.
377 Change the imports from import junit.framework.* to
378 import org.junit.*, which is apparently the new way.
380 2011-12-31 Murray Cumming <murrayc@murrayc.com>
382 Added a test for ListPlace token parsing and creation.
384 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
385 This is much the same as DetailsPlaceTest.
387 I wonder how we could test the other parts of the *Place API.
389 2011-12-30 Murray Cumming <murrayc@murrayc.com>
391 DetailsPlace test: Also test getToken() and recreation via getPlace().
393 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
394 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
395 recreate it, testing the recreated DetailsPlace for the same parameter
398 2011-12-30 Murray Cumming <murrayc@murrayc.com>
400 Use the surefire-report plugin.
402 * pom.xml: This generates a HTML report about the tests in
403 target/site/surefire-report.html
404 when you do mvn surefire-report:report. It seems to be popular/normal.
406 2011-12-30 Murray Cumming <murrayc@murrayc.com>
408 Added a test for DetailsPlace.
410 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
411 Test the getPlace() token parsing.
413 2011-12-30 Murray Cumming <murrayc@murrayc.com>
415 Added a first unit test.
417 * pom.xml: Add a test goal, and a dependency on junit in that scope.
418 * src/test/java/org/glom/web/shared/DataItemTest.java:
419 This is a silly test but it is just to get things started. Note that
420 maven/junit finds the test because it looks in src/test by default.
422 2011-12-22 Ben Konrath <ben@bagu.org>
424 Change charsetName to "UTF-8" when replacing line breaks.
426 JavaScript requires the charsetName to be "UTF-8". CharsetName values
427 that work in Java (such as "UTF8") will not work when compiled to
430 This fixes a problem with multi-line details view fields that have hard
431 line breaks. The "License Text" field on this page demonstrates the
434 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
436 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
438 2011-12-22 Ben Konrath <ben@bagu.org>
440 Fix another bug with related list navigation.
442 I've tested all the navigation buttons in all of the related lists
443 so things should be good now.
445 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
447 2011-12-22 Ben Konrath <ben@bagu.org>
449 Fix a crasher when refreshing the list view with the default table.
451 This crash will also happen when loading the list view with the default
452 table from a link or bookmark.
454 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
455 to the main document selection page when the document id hasn't been
457 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
458 the main document selection page when the document id hasn't been
460 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
461 values for the details place when the document id hasn't been set.
462 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
463 values for the list place when the document id hasn't been set.
465 2011-12-21 Ben Konrath <ben@bagu.org>
467 Protect against NPE when glom.document.locale is not in config.
469 This patch protects against an NPE when glom.document.locale is not in
470 the config file. This NPE will also happen if glom.document.locale is
473 The patch also updates the error message to display the class name when
474 the getMessage() returns null. This was happening when the NPE was
475 thrown and I had "Configuration Error: null". If an NPE is encountered
476 with this patch, "Configuration Error: NullPointerException " will be
479 This commit closes this bug:
481 https://bugzilla.gnome.org/show_bug.cgi?id=666669
483 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
485 2011-12-20 Murray Cumming <murrayc@murrayc.com>
487 Rename onlineglom.properties to onlineglom.properties.sample.
489 * src/main/resources/onlineglom.properties: Rename to:
490 * src/main/resources/onlineglom.properties.sample:
491 * src/main/resources/README: And add this file explaining that people
492 should rename it back when deploying.
494 2011-12-20 Murray Cumming <murrayc@murrayc.com>
496 Allow choosing the translation in the .properties file.
498 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
499 init(): Read a glom.document.locale value from the configuration file
500 and call Glom's TransatableItem::set_current_locale() method.
501 * src/main/resources/onlineglom.properties: Add a commented-out
502 example of this new setting.
504 It would be better to add &lang=de_DE to the URL, but the current
505 libglom API does not allow us to do this easily. I am working on that.
507 2011-12-19 Murray Cumming <murrayc@murrayc.com>
509 Avoid a crash in parsing of token parameters.
511 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
512 ava: getTokenParams(): Do not crash if a parameter has a key but no
513 value, and ignore parameters with neither.
515 2011-12-17 Murray Cumming <murrayc@murayc.com>
517 History token building/handling: Improve use of token parameters.
519 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
520 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
521 and buildParamsToken(HashMap), for use by derived classes.
522 Make the separator private because it is no longer be needed.
523 * src/main/java/org/glom/web/client/place/DetailsPlace.java
524 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
525 instead of manual string concatenation.
526 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
527 of hardcoded indices and awkward splitting code.
528 * src/main/java/org/glom/web/client/place/ListPlace.java
529 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
530 instead of manual string concatenation.
531 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
532 of hardcoded indices and awkward splitting code.
533 This should fix bug #666420
535 2011-12-16 Murray Cumming <murrayc@murrayc.com>
537 Fix a Navgiation->Navigation typo in the code.
539 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
540 Rename processNavgiation() to processNavigation().
542 2011-12-16 Murray Cumming <murrayc@murrayc.com>
544 Fix a seperator->separator typo in the code.
546 * src/main/java/org/glom/web/client/place/DetailsPlace.java
547 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
548 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
551 2011-12-15 Ben Konrath <ben@bagu.org>
553 Cleanup some comments.
555 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
557 2011-12-14 Ben Konrath <ben@bagu.org>
559 Replace \n with <br/> for multiline text in the details view.
561 Vertical scrollbars are added when needed as well.
563 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
565 2011-12-14 Ben Konrath <ben@bagu.org>
567 Specify the font for document selection links.
569 * src/main/webapp/style.css:
571 2011-12-14 Ben Konrath <ben@bagu.org>
573 Fix bouncy CellTable while paging.
575 This doesn't currently work with related list tables in unselected
578 * src/main/java/org/glom/web/client/ui/list/ListTable.java
580 2011-12-14 Ben Konrath <ben@bagu.org>
582 Revamp the appearance of the document selection page.
584 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
585 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
586 * src/main/webapp/style.css:
588 2011-12-13 Ben Konrath <ben@bagu.org>
590 Set navigation button column to the smallest size possible.
592 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
594 2011-12-13 Ben Konrath <ben@bagu.org>
596 Change OpenButton nomenclature to NavigationButton.
598 Using NavigtionButton makes things more generic. Classes, methods and
599 variables have been changed.
601 This is a rename-only refactor.
603 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
604 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
605 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
606 Renamed from OpenButtonCell.
607 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
608 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
609 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
611 2011-12-12 Ben Konrath <ben@bagu.org>
613 Remove unnecessary String argument in RelatedListTable and ListViewTable.
615 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
616 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
617 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
618 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
620 2011-12-12 Ben Konrath <ben@bagu.org>
622 Update variable names and comments.
624 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
625 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
627 2011-12-12 Ben Konrath <ben@bagu.org>
629 Properly initialize numNonEmptyRows variable to zero.
631 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
632 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
634 2011-12-05 Ben Konrath <ben@bagu.org>
636 Add latest mockup with HTML tables.
638 Features of this mockup:
640 -> HTML table for flowtable
641 -> HTML table for flowtable column
642 -> Example of how related lists would look
643 -> Not using text entries for data items
645 The current version of Online Glom doesn't use HTML tables for the
648 This mockup has been sent to the glom-devel mailing list but it's good
649 to have it here as well.
651 * mockups/details-view-html-tables.html:
653 2011-12-05 Ben Konrath <ben@bagu.org>
655 Remove unnecessary getPrimaryKeyField() method.
657 getPrimaryKeyFieldForTable(String) has been renamed to
658 getPrimaryKeyField(String).
660 * src/main/java/org/glom/web/server/database/DBAccess.java:
661 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
662 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
664 2011-12-05 Ben Konrath <ben@bagu.org>
666 Add string representation of TypedDataItem value to conversion error message.
668 * src/main/java/org/glom/web/server/Utils.java: Logging the error
669 message was extracted into its own method to avoid duplication.
671 2011-12-05 Ben Konrath <ben@bagu.org>
673 Add type checking to navigation primary key value creation.
675 Create navigation primary key only if the expected type from the Glom
676 document matches the type returned by the SQL query.
678 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
680 2011-12-05 Ben Konrath <ben@bagu.org>
682 Rename a couple of variables in RelatedListNavigation.
684 This is a rename-only refactor.
686 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
688 2011-12-05 Ben Konrath <ben@bagu.org>
690 Move getListLayoutGroup() into getListViewLayoutGroup().
692 This removes getListLayoutGroup(). It was only being called by
693 getListViewLayoutGroup().
695 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
697 2011-12-05 Ben Konrath <ben@bagu.org>
699 Remove check for LayoutItem_Portal in list table method.
701 This check is no longer necessary because the method isn't being used
702 to create the LayoutItemPortal DTO.
704 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
706 2011-12-05 Ben Konrath <ben@bagu.org>
708 Properly support related list navigation.
710 Navigation from the "Repository Analyzer -> Package Scans ->
711 Dependencies" related table wasn't working because the primary key for
712 related tables wasn't being set properly. This commit fixes the
715 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
716 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
717 doesn't set the primary key properly for related list tables.
718 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
719 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
720 useful for getting the primary key for list view tables and for related
722 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
723 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
724 Move code to set the primary key for the table from the abstract
725 ListDBAccess class to ListViewDBAccess as it's only correct for list
727 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
728 Properly add primary key to related list tables.
730 2011-12-02 Ben Konrath <ben@bagu.org>
732 Properly set the horizontal alignment of fields.
734 This fix is for both the list tables and the details view.
736 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
737 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
738 to set the horizontal alignment of fields.
740 2011-12-02 Ben Konrath <ben@bagu.org>
742 Display currency codes in the details view.
744 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
746 2011-12-02 Ben Konrath <ben@bagu.org>
748 Avoid duplicate JNI call.
750 JNI is not as efficient as pure Java and this is an easy (and small)
753 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
754 Use previously retrieved value for whereClauseToTableName instead of
757 2011-12-02 Ben Konrath <ben@bagu.org>
759 Rename a couple of variables in RelatedListNavigation.
761 This is a rename-only refactor.
763 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
765 2011-12-02 Ben Konrath <ben@bagu.org>
767 Indicate clearly that a mismatched primary key type is a bug.
769 * src/main/java/org/glom/web/server/Utils.java: Change log level from
770 warning to error. Add 'This is a bug.' to message.
772 2011-12-02 Ben Konrath <ben@bagu.org>
774 Update / fix some comments.
776 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
778 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
780 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
781 Fix comments. Add some TODOs.
783 2011-12-02 Ben Konrath <ben@bagu.org>
785 Enable navigation to details view with string primary key from related list.
787 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
788 Create a text primary key value when return type of result is
789 java.sql.Types.VARCHAR.
791 2011-12-02 Ben Konrath <ben@bagu.org>
793 Use checkboxes for booleans in the details view.
795 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
797 2011-12-01 Ben Konrath <ben@bagu.org>
799 Improve performance of related list height calculation.
801 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
802 Put code to calculate the expected height in a static initializer so
803 that that it's only called once.
805 2011-12-01 Ben Konrath <ben@bagu.org>
807 Show related list tables in notebooks (again).
809 Calculate the height of the related list tables so the Notebook can be
810 set the correct height. The height of the related list table is also needed by
811 FlowTable to be able decide how to create the layout.
813 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
814 and set the Portal height based on the height of the related list
815 table and the Portal container.
816 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
817 Add method to calculate the height of the related list tables.
818 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
819 * src/main/webapp/style.css: Add css class for Pager. This is needed to
820 calculate the height of the Pager widget.
822 2011-12-01 Ben Konrath <ben@bagu.org>
824 Use CellTable API for table property instead of setting style on Element.
826 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
828 2011-12-01 Ben Konrath <ben@bagu.org>
830 Make ListViewTable and RelatedListTable a consistent height.
832 The tables are now a consistent height regardless of the contents of
833 the table. A hidden button is added to empty rows to ensure that the
834 height of these rows will match the height of rows with data.
836 A navigation button column is now added to every table. The width of
837 the navigation column is set to 0px when a RelatedListTable shouldn't
838 have navigation buttons. This maintains the a consistent row height in
839 tables that don't show the navigation buttons.
841 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
842 navigation column when not needed.
843 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
844 arguments for navigation button to constructor of ListViewTable.
845 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
846 hidden button for empty data rows.
847 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
848 arguments for navigation button to constructor.
849 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
850 create navigation buttons. Add hideNavigationButtons() method.
851 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
852 arguments for navigation button to constructor.
854 2011-12-01 Ben Konrath <ben@bagu.org>
856 Use 'visibility: hidden' in Utils.getWidgetHeight().
858 This is better choice because hidden elements are invisible, don't
859 respond to events and are not part of the tab order. They will,
860 however, take up space which is required to be able to calculate the
861 height of the widget.
863 * src/main/java/org/glom/web/client/Utils.java:
865 2011-12-01 Ben Konrath <ben@bagu.org>
867 Use Utils.getWidgetHeight() in FlowTable.
869 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
871 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
873 2011-12-01 Ben Konrath <ben@bagu.org>
875 Put the details css class name on the correct table column.
877 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
879 2011-11-30 Ben Konrath <ben@bagu.org>
881 Update for java-libglom API change.
883 The getters and setters on FieldFormatting and NumericFormat were
884 changed to remove the 'M'.
886 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
888 2011-11-29 Ben Konrath <ben@bagu.org>
890 Only allow RelatedListTables in Portals.
892 * src/main/java/org/glom/web/client/ui/details/Portal.java:
894 2011-11-29 Ben Konrath <ben@bagu.org>
896 Only create a contents panel for Portals when title is being set.
898 * src/main/java/org/glom/web/client/ui/details/Portal.java:
900 2011-11-29 Ben Konrath <ben@bagu.org>
902 Set TabLayoutPanel height based on calculated height its widgets.
904 This is a potential fix for this bug:
906 https://bugzilla.gnome.org/show_bug.cgi?id=665133
908 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
910 2011-11-29 Ben Konrath <ben@bagu.org>
912 Align details field labels and data with the Open buttons.
914 * src/main/webapp/style.css:
916 2011-11-29 Ben Konrath <ben@bagu.org>
918 Remove unnecessary <div> in the Notebook widget.
920 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
921 method to get container FlowPanel (<div>).
922 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
923 initWidget() method directly on the TabLayoutPanel widget instead of
924 Group's container widget.
926 2011-11-29 Ben Konrath <ben@bagu.org>
928 Don't add group titles for Portals in Notebooks.
930 This reverts the previous patch and fixes a bug I introduced with
931 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
933 * src/main/java/org/glom/web/client/ui/details/Group.java:
934 * src/main/java/org/glom/web/client/ui/details/Portal.java:
936 2011-11-28 Ben Konrath <ben@bagu.org>
938 Remove unused boolean argument in Portal constructor.
942 * src/main/java/org/glom/web/client/ui/details/Group.java:
943 * src/main/java/org/glom/web/client/ui/details/Portal.java:
945 2011-11-28 Ben Konrath <ben@bagu.org>
947 Remove hack for glom 1.18 style glom files.
949 * src/main/java/org/glom/web/client/ui/details/Group.java:
950 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
951 * src/main/java/org/glom/web/client/ui/details/Portal.java:
953 2011-11-28 Ben Konrath <ben@bagu.org>
955 Use Gda Value version of primary key to log result too large error.
957 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
959 2011-11-28 Ben Konrath <ben@bagu.org>
961 Don't use TypedDataItem.getText() for Unknown types from the URL.
963 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
964 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
965 instead of getText().
966 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
967 String field and getUnknown() method.
969 2011-11-28 Ben Konrath <ben@bagu.org>
971 Log an error message when the java-libglom .so is not present.
973 The error message was being set in the exception but not logged.
975 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
977 2011-11-28 Ben Konrath <ben@bagu.org>
979 Ignore LayoutItem_CalendarPortals.
981 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
982 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
984 2011-11-28 Ben Konrath <ben@bagu.org>
986 Extract method for creating the LayoutItemPortal DTO.
988 Just breaking the code up into smaller chunks.
990 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
992 2011-11-28 Ben Konrath <ben@bagu.org>
996 This should have been added with the refactor. Oops!
998 * src/main/java/org/glom/web/shared/TypedDataItem.java:
1000 2011-11-28 Ben Konrath <ben@bagu.org>
1002 Create primary key value from URL string using type from Glom document.
1004 See this bug, comments 19 - 25:
1006 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
1008 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
1009 create a TypeDataItem for the primary key here when loading from a
1010 URL. Show the same string for the primary key value as was received
1011 from the URL string (when loading from a URL).
1012 * src/main/java/org/glom/web/server/Utils.java: Update method for
1013 creating the Gda Value from the TypeDataItem to properly deal with
1014 creating a Gda Value based on the Glom document type for the primary
1015 key value string when loading from a URL.
1016 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1017 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1018 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1019 Update for changed method name.
1021 2011-11-27 Ben Konrath <ben@bagu.org>
1023 Rename PrimaryKeyItem to TypedDataItem.
1025 The name PrimaryKeyItem suggests what the class should be used for.
1026 TypedDataItem is a neutral name that describes the class better.
1028 This is a rename-only refactor.
1030 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1031 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1032 * src/main/java/org/glom/web/client/Utils.java:
1033 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1034 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1035 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1036 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1037 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1038 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1039 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1040 * src/main/java/org/glom/web/server/Utils.java:
1041 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1042 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1043 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1044 * src/main/java/org/glom/web/shared/NavigationRecord.java:
1046 2011-11-25 Ben Konrath <ben@bagu.org>
1048 Improve Gda Value conversion from PrimaryKeyItem.
1050 The value from the PrimaryKeyItem is only used if its type match the
1051 type from the glom document.
1053 * src/main/java/org/glom/web/server/Utils.java:
1055 2011-11-25 Ben Konrath <ben@bagu.org>
1057 Manually check if the java-liblgom .so is visible to the JVM.
1059 It seems that Tomcat has problems when a static initializer throws an
1060 exception. This check is done before the first method call into
1061 java-libglom so that execution doesn't continue if the .so is not
1064 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1066 2011-11-25 Ben Konrath <ben@bagu.org>
1068 Improve browser configuration error messages.
1072 https://bugzilla.gnome.org/show_bug.cgi?id=662792
1074 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1075 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1076 getConfigurationErrorMessage() method.
1077 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1078 Get and display a specific configuration error message when no Glom
1079 documents are found.
1080 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1081 Implement getConfigurationErrorMessage() method. Surround configuration
1082 code in the init() method with a try/catch block. This allows the
1083 errors to be caught while keeping the servlet available to retrieve the
1084 configuration error message.
1086 2011-11-25 Ben Konrath <ben@bagu.org>
1088 Don't use Strings to hold primary key values.
1090 The primary key values are now held in a new data object
1091 (PrimaryKeyItem) that holds type information and the primary key value
1092 using the correct type.
1094 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1095 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1096 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1097 PrimaryKeyItem instead of String to hold the primary key value.
1098 * src/main/java/org/glom/web/client/Utils.java: Remove
1099 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
1100 PrimaryKeyItem based on the GlomFieldType and the DataItem.
1101 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
1102 PrimaryKeyItem instead of String to hold the primary key value. Load
1103 document selection page when the documentID has not been set correctly.
1104 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
1105 DetailsPlace -> URL and URL -> DetailsPlace conversion with
1107 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1108 Return empty string for URL instead of "null".
1109 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1110 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1111 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1112 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1113 PrimaryKeyItem instead of String to hold primary key values.
1114 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
1115 PrimaryKeyValue to a Gda Value.
1116 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1117 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1118 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1119 Replace temporary database access code that uses the PrimaryKeyValue to
1120 Gda Value conversion.
1121 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
1122 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
1123 PrimaryKeyItem instead of String.
1124 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
1125 hold primary key values.
1127 2011-11-24 Ben Konrath <ben@bagu.org>
1129 Use newly added java-libglom API to create queries.
1131 This isn't finished. I still need to stop using Strings for primary key
1132 values in the client code.
1134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
1135 libglom to use fake connections so that retrieving the query string will
1137 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1138 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1139 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1140 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1141 Use the newly added libglom sql methods and classes to create the
1142 query. Add temporary hack to convert primary value strings to Gda
1145 2011-11-23 Ben Konrath <ben@bagu.org>
1147 Don't explicitly set the height of Portals.
1149 See comments 6 - 10 of this bug for details:
1151 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
1153 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1155 2011-11-23 Ben Konrath <ben@bagu.org>
1157 Use an HTML table instead of CSS for the FlowTable layout.
1159 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
1160 GWT's FlexTable to implement the FlowTable.
1161 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
1163 2011-11-18 Ben Konrath <ben@bagu.org>
1165 Add boolean example to HTML table mockup.
1167 * mockups/details-view-html-tables-text-entries.html:
1169 2011-11-17 Ben Konrath <ben@bagu.org>
1171 Ensure the pager buttons are always visible for related lists.
1173 To accomplish this, I've turned off text wrapping in the list view and
1174 related list tables for both the header and data text. The related list
1175 table now has a fixed layout so the it doesn't overflow its container.
1176 This is required to ensure that the cell text is clipped when it
1177 overflows the cell and an ellipsis is added to the right side of the
1178 cell when text is clipped.
1180 A fixed table layout for the related list table in the details view
1181 seems what we want for the details view anyway, so the side-effect is
1184 The ellipsis will only be displayed in Firefox >= 7.
1188 https://bugzilla.gnome.org/show_bug.cgi?id=662930
1190 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
1191 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
1192 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
1194 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1195 Set the 'table-layout: fixed' CSS property to the related list table.
1196 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
1197 'white-space: nowrap;' CSS property on both the list view and the
1198 related list tables.
1200 2011-11-16 Ben Konrath <ben@bagu.org>
1202 Rework the fix for empty notebook tab labels.
1204 Setting the empty group titles with its name caused problems for the
1205 details layout. Instead of using libglom's
1206 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
1207 to the client when the title is empty. This allows the Notebook to use
1208 the name when the title is empty without affecting anything else.
1210 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1211 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1213 2011-11-16 Ben Konrath <ben@bagu.org>
1215 Set group titles with name when title is empty.
1217 This fixes a problem with an empty notebook tab label in the Lesson
1218 Planner document. The forth tab in the notebook should be "Internet":
1220 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
1222 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1223 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
1226 2011-11-16 Ben Konrath <ben@bagu.org>
1228 Remove whitespace from the configured username properties.
1230 This assumes that usernames won't have whitespace at the beginning
1231 or end. But I think this is a reasonable assumption.
1233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1234 String.trim() to remove the whitespace from the username properties.
1236 2011-11-15 Ben Konrath <ben@bagu.org>
1238 Add details view mockup with HTML tables and text entries.
1240 This is from the attachment on this bug:
1242 https://bugzilla.gnome.org/show_bug.cgi?id=663109
1244 * mockups/details-view-html-tables-text-entries.html:
1246 2011-11-15 Ben Konrath <ben@bagu.org>
1248 Add space between the columns of the flow table.
1252 https://bugzilla.gnome.org/show_bug.cgi?id=662918
1254 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
1255 space between columns in the flow table.
1257 2011-11-15 Ben Konrath <ben@bagu.org>
1259 Add backup files to the .gitignore.
1261 * .gitignore: Ignore files that end with ~.
1263 2011-11-09 Ben Konrath <ben@bagu.org>
1265 Use latest release of gwt-log.
1267 Gwt-log releases are now being submitted to the maven central
1268 repository so manual installation of the jar is no longer required.
1270 * pom.xml: Update version and groupId of gwt-log dependency.
1272 2011-10-31 Ben Konrath <ben@bagu.org>
1274 Don't use GWT numeric formatting to override the glom currency formatting.
1276 Currencies are now displayed like they are in Glom. See this bug:
1278 https://bugzilla.gnome.org/show_bug.cgi?id=646216
1280 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
1282 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
1283 currency code to constructor and set it when the cell is rendered.
1284 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1285 currency code to the constructor of the NumericCell.
1287 2011-10-27 Ben Konrath <ben@bagu.org>
1289 Require the latest release of java-libglom (1.17.4).
1293 2011-10-26 Ben Konrath <ben@bagu.org>
1295 Add style to Notebook that matches current theme.
1297 It's not the best style in the world but it's better than the default.
1299 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
1300 padding at the bottom of the child widgets.
1301 * src/main/webapp/style.css: Add style for the Notebook.
1303 2011-10-26 Ben Konrath <ben@bagu.org>
1305 Move servlet initialization code to overridden init method.
1307 This is half of the solution to getting proper error messages
1308 displayed when configuration errors occur. Here's the relevant bug:
1310 https://bugzilla.gnome.org/show_bug.cgi?id=662792
1312 The rest of the solution involves surrounding the init method with a
1313 try/catch block and setting a global variable with the error /
1314 exception. A new async method should be created to retrieve and display
1315 the error message / exception.
1317 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
1318 code from constructor to init method adding exceptions as needed.
1320 2011-10-26 Ben Konrath <ben@bagu.org>
1322 Add script to monitor and restart tomcat if required.
1324 * utils/check-and-recover-tomcat.py: New file.
1326 2011-10-26 Ben Konrath <ben@bagu.org>
1328 Display the correct number of data items in the pager.
1332 https://bugzilla.gnome.org/show_bug.cgi?id=661441
1334 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1335 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1336 The implementation is the same for both tables: Keep track of the
1337 number of non-empty rows and fire and RowCountChangeEvent after the data has
1339 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
1340 custom Pager class that subclasses SimplePager to handle displaying
1341 the correct number when empty rows have been added.
1343 2011-10-26 Ben Konrath <ben@bagu.org>
1345 Correct error in previous commit.
1347 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
1348 eventBus parameter from listView.setCellTable().
1350 2011-10-26 Ben Konrath <ben@bagu.org>
1352 Fix error in TODO comment.
1354 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1356 2011-10-24 Ben Konrath <ben@bagu.org>
1358 Create Notebook widgets to the details view.
1360 This isn't finished just yet - I still need to create a reasonable
1361 style to match the current theme.
1363 * src/main/java/org/glom/web/client/Utils.java: Add method for
1364 calculating the height of a widget. This is used in the Notebook class.
1365 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1366 new constructor method in Group.
1367 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
1368 method for creating child widget that can be used by subclasses
1369 like Notebook. New constructor that allows disabling the group
1370 titles - Notebooks don't set a group title for their child groups.
1371 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
1372 to make Notebooks using GWT's TabLayoutPanel.
1373 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
1374 constructor that allows disabling the group titles.
1375 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
1376 LayoutItemNotebook DTO.
1377 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
1378 DTO for Notebooks. It's just an empty class for now but we might need
1379 it to transfer some specific information in the future.
1381 2011-10-21 Ben Konrath <ben@bagu.org>
1383 Add navigation buttons to related list tables.
1385 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1386 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1387 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
1388 method getSuitableRecordToViewDetails() for getting the table name
1389 and primary key value for related list navigation buttons.
1390 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1391 private cell renderer class to get the navigation information for
1392 related list tables from the server. Extract the navigation
1393 processing code from the details cell navigation and use it for the
1394 related list navigation as well.
1395 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
1396 cell renderer class for the details open buttons. This was needed
1397 because the related list navigation buttons and the list view
1398 navigation buttons need to react differently when clicked.
1399 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
1400 the onEnterKeyDown() method because it's now overriden in the
1401 subclasses that are specific to the related list tables and the list
1403 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
1404 the vertical size a little because the buttons add a bit of vertical
1405 space to table. This is not a perfect solution because the vertical
1406 size of with table fewer than 5 rows will be a little smaller.
1407 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
1408 changes in how navigation buttons are handled.
1409 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
1410 getSuitableRecordToViewDetails() using the new RelatedListNavigation
1411 database access object.
1412 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
1413 to find the portal for a given relationship name from
1414 RelatedListDBAccess. Add method to find a primary key field for a
1416 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1417 Move code to find the portal for a given relationship name to
1419 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1420 New file: database access object for getting the related list
1421 navigation information (the table name and the primary key value).
1422 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
1423 DTO for transferring a table name to navigate to and a primary key
1425 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1426 boolean and getter/setter to specifies if the related list should add
1429 2011-10-24 Murray Cumming <murrayc@murrayc.com>
1431 Use the master branch of java-libglom
1433 * pom.xml: Depend on java-libglom 1.19 instead.
1435 This is the master branch. See also the libglom-1-18 branch.
1437 2011-10-11 Ben Konrath <ben@bagu.org>
1439 Enable the open navigation button when the data has been set.
1441 This avoids having active buttons that don't do anything when the data
1444 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1446 2011-10-11 Ben Konrath <ben@bagu.org>
1448 Use IsWidget interface for FlowTableItem.
1450 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
1451 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
1453 2011-10-11 Ben Konrath <ben@bagu.org>
1455 Remove GWT styling from open button in details view.
1457 There are still some issues with how the details cell is arranged but
1458 this should be made to match Glom 1.20. I'm going to leave fixing this
1459 until I have Glom 1.20 up and running.
1461 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
1462 style name on open button.
1463 * src/main/webapp/style.css: Move and edit details-navigation class.
1464 Re-arrange some classes to make them appear in the same order as the
1467 2011-10-07 Ben Konrath <ben@bagu.org>
1469 Update to GWT 2.4.0.
1471 * .gitignore: Ignore new cache directory.
1472 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
1473 * pom.xml: Change GWT and maven plugin to 2.4.0.
1474 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
1476 * src/main/java/org/glom/web/client/ClientFactory.java:
1477 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1478 * src/main/java/org/glom/web/client/OnlineGlom.java:
1479 Update source for API changes.
1480 * utils/build-onlineglom-war.sh: Remove cache directory before the
1483 2011-10-07 Ben Konrath <ben@bagu.org>
1485 Add navigation buttons in the details view.
1487 This isn't finished but I thought I'd commit what I have as it's a
1488 pretty good start. I still need to:
1490 1. Change the style so that it fits better into the current theme
1491 2. Adjust the details cell to expand as much as possible.
1493 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1494 click handlers to navigation buttons in the DetailsCells. Create a
1495 refreshData() method to get just the data from the server without the
1497 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1498 Update the tableSelector and browser title when the table name
1499 changes without using the tableSelector.
1500 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1501 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1502 getDetailsCells() to getCells(). Update variable names.
1503 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
1504 method to set click handler on navigation button. Rename a few
1505 variables. Add navigation buttons where needed.
1506 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
1507 variables and methods.
1508 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
1509 navigation boolean and navigation table as required in the
1510 LayoutItemField DTO.
1511 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1512 variables for navigation along with getter/setter methods.
1514 2011-10-07 Ben Konrath <ben@bagu.org>
1516 Rename Field to DetailsCell.
1518 This is a refactor-only commit. No functionality has been added or
1521 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1522 Update variable and method names.
1523 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1524 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
1525 variable and method names.
1526 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1528 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
1529 variable and method names.
1531 2011-10-07 Ben Konrath <ben@bagu.org>
1533 Create separate methods for layout and data the details view.
1535 This is a refactor-only commit. No functionality has been added or
1538 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1539 private methods: setData(), createLayout().
1541 2011-10-07 Ben Konrath <ben@bagu.org>
1543 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1545 This is part of a change to get navigation buttons in the details view
1546 but it should have been done this way from the start.
1548 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1549 for method name change in TableSelectionView.
1550 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1551 Create TableChangeEvent and set the browser title using the
1552 TableSelectionView API.
1553 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1554 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1555 Change getSelectedTable() to getSelectedTableName(). Add
1556 getSelectedTableTitle().
1558 2011-10-07 Ben Konrath <ben@bagu.org>
1560 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1562 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1564 2011-10-07 Ben Konrath <ben@bagu.org>
1566 Update TableChangeEvent to use newTableName naming convention.
1568 This makes the class more consistent with GWT naming conventions.
1570 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1571 Update for method name change in TableChangeEvent.
1572 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1573 for method name change in TableChangeEvent.
1574 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1575 newTableName variable and getter method. Make toDebugString()
1578 2011-09-30 Ben Konrath <ben@bagu.org>
1580 Disable the pager in the list tables when the data row count is less than the minimum.
1582 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1583 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1585 2011-09-30 Ben Konrath <ben@bagu.org>
1587 Add empty rows to the end of related list and list view tables.
1589 I also extracted the cell rendering classes from the ListTable because
1590 the code was becoming a little crazy with all the anonymous inner
1591 classes. My plan is to use these cell rendering classes in the details
1592 view as well so this refactor will be needed for that change.
1594 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1595 set the row count in related list tables if the data has more rows
1596 than the minimum number of rows visible.
1597 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1598 row count in list view tables if the data has more rows than the
1599 minimum number of rows visible.
1600 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1601 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1603 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1604 for rendering TYPE_NUMERIC cells. The code was extracted from the
1606 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1607 class for rendering cells with buttons in list views. The code was
1608 extracted from the ListTable class.
1609 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1610 for rendering TYPE_TEXT cells. The code was extracted from the
1612 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1613 Add empty rows to the end of the data if required. Implement
1614 ListTable.getMinNumVisibleRows().
1615 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1616 cell renderer code to public classes. Return null in
1617 Column.getValue() for empty rows. Add new abstract method:
1618 getMinNumVisibleRows(). Move code to set the row count of the list view
1619 table to ListViewImpl.
1620 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1621 empty rows to the end of the data if required. Implement
1622 ListTable.getMinNumVisibleRows().
1625 2011-09-27 Ben Konrath <ben@bagu.org>
1627 Use GWT.log for client-side debugging statements.
1629 These are optimized out when deployed so I should have used this method
1630 in the first place. These statements will eventually be replaced with some sort
1631 of notification in the browser.
1633 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1634 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1635 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1636 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1637 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1639 2011-09-27 Ben Konrath <ben@bagu.org>
1641 Put tableselector on the right, back to list link on right.
1643 The idea is that the table selector is acting like a label for the
1644 currently displayed table so it should be placed below the document title. This
1645 puts the table title in a similar position to where it is in Glom.
1647 * mockups/details-contacts.html:
1648 * mockups/details-projects.html:
1649 * mockups/listview-contacts.html:
1650 * mockups/listview-projects.html:
1651 * mockups/style.css:
1652 Update mockups to match how the interfaces currently look.
1653 * src/main/webapp/style.css: Swap positions of backlink with the table
1654 selector. Add some space on the left side of the table selector to
1655 line things up with the document title.
1657 2011-09-27 Ben Konrath <ben@bagu.org>
1659 Add field colouring to details view.
1661 This change re-works how field colouring works. The colour formatting
1662 information is now set to the client with the layout information instead of
1663 with the data. This eliminates the need to send the same colour strings for
1664 data in list view column when colour information is set.
1666 In order to set an alternate colour for negative numeric values, the
1667 number is now sent to client and formatted with the GWT NumberFormat class.
1669 This change also fixes:
1671 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1673 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1674 internationalization framework which is needed for client side numeric
1676 * src/main/java/org/glom/web/client/Utils.java: New file for some
1677 client static utility methods.
1678 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1679 the DataItem object to the Field class. Use a utility method to
1680 create the foreignKeyValue string.
1681 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1682 alignment and text colours in the constructor. Add setData(DataItem)
1683 method. Remove setText(String) method.
1684 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1685 colour information to GlomTextCell. Create and use GlomNumberCell for
1686 rendering numbers. Use utility method to get the string for the
1687 primary key of the key provider. Re-work how the horizontal alignment
1689 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1690 formatting to layout information. Methods for converting the libglom
1691 formatting information were moved from DBAccess.
1692 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1693 numeric formatting (it's now done on the client side). Don't set text
1694 colours in DataItem. Move libglom formatting conversion methods to
1696 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1697 getters/setters for text colour information.
1698 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1699 for transferring the libglom NumericFormat information to the client.
1700 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1701 and getters/setters for: GlomNumericFormat, background colour and
1702 foreground colour strings.
1704 2011-09-26 Ben Konrath <ben@bagu.org>
1706 Simplify code that iterates through the LayoutGroup.
1708 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1710 2011-09-26 Ben Konrath <ben@bagu.org>
1712 Accept Eclipse formatting for OnlineGlomServiceAsync.
1714 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1716 2011-09-26 Ben Konrath <ben@bagu.org>
1718 Don't use the ListDBAccess classes to get the primary key layout information.
1720 This was causing a bug where the wrong index for the hidden primary key
1721 was being sent to the client.
1723 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1724 primary key while creating the LayoutGroup DTO. Create a
1725 LayoutItemField DTO for hidden primary keys. Don't use the
1726 RelatedListDBAccess because it was only used for getting the primary
1728 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1729 access modifier from public to protected for getPrimaryKeyField() and
1730 getPrimaryKeyLayoutItemField().
1731 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1732 abstract method getExpectedResultSize() because RelatedListDBAccess
1733 doesn't have enough info to implement it.
1734 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1735 Remove @Override for getExpectedResultSize().
1736 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1737 Remove method getExpectedResultSize().
1739 2011-09-23 Ben Konrath <ben@bagu.org>
1741 Log which layout (list or details) the ignored item is from.
1743 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1745 2011-09-23 Ben Konrath <ben@bagu.org>
1747 Remove annotations that turn off code formatting in DataItem.
1749 * src/main/java/org/glom/web/shared/DataItem.java:
1751 2011-09-23 Ben Konrath <ben@bagu.org>
1753 Rename GlomField to DataItem and update associated methods.
1755 This is a rename-only refactor. No functionality has been added or
1758 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1759 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1760 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1761 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1762 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1763 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1764 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1765 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1766 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1767 * src/main/java/org/glom/web/server/database/DBAccess.java:
1768 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1769 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1770 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1771 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1772 * src/main/java/org/glom/web/shared/DataItem.java:
1773 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1774 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1776 2011-09-23 Ben Konrath <ben@bagu.org>
1778 Rename GlomDocument to DocumentInfo and update associated methods.
1780 This is a rename-only refactor. No functionality has been added or
1783 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1784 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1785 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1786 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1787 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1789 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1791 2011-09-20 Ben Konrath <ben@bagu.org>
1793 Require java-libglom 1.17.3.
1795 This picks up the fix for the seg fault problem with the Scenes table
1796 in the Openismus Film Manager example.
1800 2011-09-20 Ben Konrath <ben@bagu.org>
1802 Change the way sort clause is added for primary key when no sort clause is requested.
1804 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1805 before the sort clause is created. When a sort clause is not requested, the
1806 sort clause is created by finding the primary key in the LayoutFieldVector
1809 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1811 2011-09-20 Ben Konrath <ben@bagu.org>
1813 Log error message if no documents are found in the configured directory.
1815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1816 Extract the glom file extension string to a private static final class
1817 variable (mostly as syntactic sugar). Accept a minor formatting change.
1818 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1819 the example glom.document.directory configuration property to make it
1820 more clear that it can any directory, not just the home directory.
1822 2011-09-18 Ben Konrath <ben@bagu.org>
1824 Add related lists to details view.
1826 The related list table has support for paging and sorting just like the
1827 table in the list view.
1829 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1830 SQL queries for the related list tables.
1831 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1832 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1833 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1834 Rename getList methods to getListView and add comments. Remove
1835 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1836 it being unused. Add methods: getDetailsLayoutAndData(),
1837 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1838 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1839 Create the layout and set the data for the fields in one async call
1840 instead of two. Create related lists where appropriate.
1841 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1842 for method name changes in OnlineGlomService.
1843 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1844 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1845 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1847 * src/main/java/org/glom/web/client/ui/ListView.java:
1848 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1849 tableName from setCellTable(). Create a ListViewTable instead of
1851 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1852 represent a data field in the details view.
1853 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1854 from addDetailsCell() to Field class. Keep track of the Fields and
1855 Portals in the details view.
1856 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1857 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1858 and add a method to get it. Add method to set the contents of the
1860 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1861 New class for related list tables. This class has the data provider
1862 for the related list table.
1863 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1864 abstract class which is the base class for the ListViewTable and the
1866 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1867 New class for list view tables. This class has the data provider for
1868 the list view table.
1869 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1870 methods for related list tables. Add more information to the
1871 LayoutItemField and LayoutItemPortal DTOs.
1872 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1873 Remove debugging print statement.
1874 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1875 Remove debugging print statements. Add primary key field to SQL count
1877 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1878 Remove unnecessary LayoutFieldVector parameter from
1879 getResultSizeOfSQLQuery() method.
1880 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1881 New class for related list table database access.
1882 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1883 class that is a wrapper DTO for details view layout and data.
1884 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1885 new 'fromField' string to this DTO.
1886 * src/main/webapp/style.css: Remove bottom margin and override top
1889 2011-09-15 Ben Konrath <ben@bagu.org>
1891 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1893 This sets things up to make it easier to add the data retrieval for
1894 related lists (portals). No user noticeable changes were made with
1897 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1898 class has the code to retrieve the layouts and access the
1899 database using the new database helper classes.
1900 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1901 Most of the functionality has been removed from this class. This
1902 class now represents the public interface for the client side
1903 code. It also deals with configuring the servlet and cleaning
1904 things up when the servlet is stopped.
1905 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1906 of static methods into this utility class.
1907 * src/main/java/org/glom/web/server/database/DBAccess.java:
1908 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1909 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1910 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1911 These classes have the database retrieval code. The class hierarchy
1912 has been setup to make it easy to reuse code for similar
1915 2011-09-06 Ben Konrath <ben@bagu.org>
1917 Create separate classes for list table code and the data provider.
1919 As part of this refactor, I also split up the code a bit to make it
1922 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1923 table code to two new classes (below).
1924 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1925 with code from ListViewImpl.
1926 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1927 New file with code from ListViewImpl.
1929 2011-09-06 Ben Konrath <ben@bagu.org>
1931 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1933 This fixes the LayoutItemPortal DTO to match the libglom layout object
1936 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1938 2011-09-01 Ben Konrath <ben@bagu.org>
1940 Set title of Portals in the Details View.
1942 * pom.xml: Bump required version of java-libglom to 1.17.1.
1943 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1944 widget creation to its own class. Add comments to constructor.
1945 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1946 The code is mostly from the Group class with the title now set.
1947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1948 title of Portal. Update some comments. Fix some code formatting.
1950 2011-09-01 Ben Konrath <ben@bagu.org>
1952 Remove TODO comment for the flow table column width.
1954 The flow table column width is working correctly and doesn't need to be
1955 changed. See this mailing list post for more info:
1957 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1959 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1961 2011-08-27 Ben Konrath <ben@bagu.org>
1963 Add document title (database name) to top of the browser page.
1965 I added the document title to the TableSelecitonView but that will
1966 change if / when we add a view that doesn't require table selection.
1968 * mockups/details-contacts.html:
1969 * mockups/details-projects.html:
1970 * mockups/listview-contacts.html:
1971 * mockups/listview-projects.html:
1972 * mockups/style.css: Add document title to mockups to keep things
1974 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1975 sizes to account for the document title.
1976 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1977 Set the document title when it has been retrieved from the server.
1978 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1979 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1980 and implement setDocumentTitle(String) method.
1981 * src/main/webapp/style.css: Add ID for document title style.
1983 2011-08-25 Ben Konrath <ben@bagu.org>
1985 Add NavigationType enum to LayoutItemPortal DTO.
1987 This is the start of adding support for Portals to the Details View.
1989 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1990 LayoutItem_Portal.navigation_type enum from libglom to
1991 LayoutItemPortal.NavigationType enum.
1992 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1993 NavigationType enum, field for storing the NavigationType and getter
1996 2011-08-25 Ben Konrath <ben@bagu.org>
1998 Implement the flow table layout in the Details View.
2000 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2001 FlowTable to Group to account for the renamed class.
2002 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
2003 File. This is a container widget that implements the Glom details view
2004 flow table behaviour.
2005 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
2006 org/glom/web/client/ui/FlowTable.java.
2007 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
2008 so that the size of the subgroups are a closer match to the size of
2009 the Glom subgroups. This makes the flowtable layout match the layout
2010 in Glom for the Music Collection example file.
2012 2011-08-16 Ben Konrath <ben@bagu.org>
2014 Create container element for LayoutItemPortal in Details View.
2016 This will help me develop the layout for the FlowTable.
2018 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
2019 fieldPanel variable to detailsCell.
2021 2011-08-15 Ben Konrath <ben@bagu.org>
2023 Set the height of the data element in the Details View.
2025 I changed the InlineLabels (text in a span element) to Labels (text in
2026 a div element) so that I could set the height of the details-data
2027 elements instead of the details-cell parent elements. This allows the
2028 the details-data element to display the correct height if style is
2029 applied that shows the height.
2031 This change has the added benefit of allowing the order of the labels
2032 and data elements to be changed for right-to-left languages.
2034 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2035 InlineLabels to Labels.
2036 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
2037 InlineLabels to Labels. Set the height of the data element.
2038 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2039 multiline text height in the Formatting DTO.
2040 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
2041 for multiline height along with getter and setter methods.
2042 * src/main/webapp/style.css: Adjust style to account for the change
2043 from span elements to div elements in the details cell.
2045 2011-08-15 Ben Konrath <ben@bagu.org>
2047 Make the List View appearance match the mockups.
2049 It doesn't match exactly but it's much better than it was.
2051 * mockups/listview-contacts.html: Remove unused css classes.
2052 * mockups/listview-projects.html: Remove unused css classes.
2053 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
2054 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
2055 for mainPanel instead of VerticalPanel (table). Set style name on
2056 CellTable. Set style name on Details column. Right-align Details
2058 * src/main/webapp/style.css: Adjust properties to match the mockups.
2060 2011-08-12 Ben Konrath <ben@bagu.org>
2062 Add better support for subgroups in the details view.
2064 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2065 changed FlowTable constructor.
2066 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
2067 support for subgroups and subgroup-titles.
2068 * src/main/webapp/style.css: Add CSS class for subgroups and
2071 2011-08-12 Ben Konrath <ben@bagu.org>
2073 Return the top level LayoutGroup title.
2075 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2077 2011-08-11 Ben Konrath <ben@bagu.org>
2079 Make the TableSelector header match the mockup.
2081 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
2082 the layout panel. Properly lineup the table selection header with
2083 the list and details view.
2084 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
2085 margin around the details view.
2086 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2087 Rename listBox variable to tableSelector. Set id for the style sheet.
2088 Use a FlowPanel instead of a HorizontalPanel.
2089 * src/main/webapp/style.css: Add properties to make the TableSelector
2090 box match the mockups.
2092 2011-07-13 Ben Konrath <ben@bagu.org>
2094 Update install script for java-libglom version change.
2096 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
2099 2011-07-13 Ben Konrath <ben@bagu.org>
2101 Add support sub-group in the details view.
2103 I also removed the code that special-cased the default details view
2106 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
2108 I still have to make a proper flowtable.
2110 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2111 Don't special-case default details view layout.
2112 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
2113 addLayoutField() as I'm going to use it.
2114 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
2115 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
2117 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
2118 extracted from DetailsViewImpl.GroupPanel. Add support for
2120 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2121 column count when getting the details layout.
2123 2011-07-12 Ben Konrath <ben@bagu.org>
2125 Set browser title with database and table titles.
2127 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2128 Set the browser title when the table changes and when the activity
2130 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2131 title when retrieving document info (the GlomDocument object).
2132 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
2133 with getter and setter methods. Remove unused convenience constructor.
2134 Use default code formatting.
2136 2011-07-12 Ben Konrath <ben@bagu.org>
2138 Ignore LayoutItemPortals in the details view.
2140 I added a new DTO for the LayoutItemPortal so that I can ignore it in
2143 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
2144 LayoutItemPortal layout objects.
2145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2146 LayoutItemPortal objects when retrieving the details layout.
2147 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
2148 file. This is an empty class and just used to get type information for
2151 2011-07-12 Ben Konrath <ben@bagu.org>
2153 Use java-libglom 1.17.0.
2157 2011-07-11 Ben Konrath <ben@bagu.org>
2159 Remove "Table:" label from table selector.
2161 This matches a recent change in the Glom UI.
2163 * mockups/details-contacts.html:
2164 * mockups/details-projects.html:
2165 * mockups/listview-contacts.html:
2166 * mockups/listview-projects.html: Remove the "Table:" label from the
2168 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2170 2011-07-11 Ben Konrath <ben@bagu.org>
2172 Add main groups to the details view.
2174 This makes things look a little nicer in the details view. The next step
2175 is to implement the flowtable.
2177 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
2178 resources from the standard gwt css theme. Standard.css is now
2179 included in OnlineGlom.html so that the online glom css rules have
2180 precedence over the gwt theme.
2181 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2182 the whole LayoutGroup to the DetailsView instead of just the titles.
2183 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2184 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
2185 details layout with a helper class (GroupPanel). I might extract this
2186 class when I make the full flowtable.
2187 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
2188 string as default so I don't have to worry about NPEs when processing
2190 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
2191 note beside OnlineGlom.gwt.xml above).
2192 * src/main/webapp/style.css: Add default font-size to body to override
2193 the font-size set by the standard theme. Don't use h2 tags for
2194 group-title. Create new details-cell class.
2196 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2198 ConfiguredDocument: Set the port number too.
2200 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2201 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
2202 Glom document. Presumably this worked sometimes so far because there is a
2203 default port number.
2205 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2207 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
2209 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2210 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
2211 correct, though we should throw an exception too.
2213 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2215 Fix a addDocuemnt typo.
2217 * src/main/java/org/glom/web/shared/Documents.java
2218 (Documents.addDocuemnt): Rename to addDocument().
2219 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2220 (OnlineGlomServiceImpl.getDocuments): Adapt.
2222 2011-07-08 Murray Cumming <murrayc@murrayc.com>
2224 Slightly improved log output when connection fails.
2226 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2227 (ConfiguredDocument.setUsernameAndPassword):
2228 We don't know for sure if it' the username/password that's wrong, so
2229 rephrase the message.
2230 Also ouput the exception message, though it's generic in this case.
2232 2011-07-08 Ben Konrath <ben@bagu.org>
2236 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
2237 added braces to a one line if statement because the Eclipse formatter
2238 was getting confused.
2240 2011-07-07 Ben Konrath <ben@bagu.org>
2242 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
2244 These should really be two separate tasks but I counldn't get things to
2245 work with GWT 2.2.0 and Eclipse 3.7.
2249 * .settings/org.eclipse.jdt.core.prefs:
2250 * .settings/org.eclipse.jdt.ui.prefs:
2251 * .settings/org.eclipse.ltk.core.refactoring.prefs:
2252 * .settings/org.eclipse.m2e.core.prefs:
2253 Add new config files. Update current files. Remove references to the
2254 webtools plugins as we're not using any of the webtools features.
2255 * .gitignore: Add logs directory which is created when running with
2257 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
2258 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
2259 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
2261 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
2263 2011-07-07 Murray Cumming <murrayc@murrayc.com>
2265 onlineglom.properties: Add explanatory comments.
2267 * src/main/resources/onlineglom.properties: Also change the default user
2268 from ben to someuser, to avoid the risk of people thinking we just
2269 stupidly hard-coded a locale path, when they see that on stderr or in a log.
2271 2011-06-28 Ben Konrath <ben@bagu.org>
2273 Use filename in Log for incorrect passwords.
2275 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2276 getFileName(String) method to get the filename from the URI.
2278 2011-06-28 Ben Konrath <ben@bagu.org>
2280 Add the table name to the URL token for the ListPlace.
2282 This makes things consistent between the DetailsPlace and the
2283 ListPlace. It also allows the the ListPlace to be bookmarked.
2285 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2286 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2287 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2288 Remove getDefaultListLayout(). The default layout is now returned
2289 by the getListLayout() method when the table name is an empty string.
2290 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2291 Add table name field. Change to a new ListPlace when the table
2292 has been changed. Use getListLayout() for getting the default
2294 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2295 Add table name field. Set the correct table name in the list box
2296 when loading from bookmark. This corrects a problem for the
2298 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2299 Move table name to super-class (HasSelectableTable). Move document
2300 and table URL keys to super-class in HasSelectableTable.
2301 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2302 Add table name field. Add Tokenizer class with URL key common to
2303 the subclasses (DetailsPlace and ListPlace).
2304 * src/main/java/org/glom/web/client/place/ListPlace.java:
2305 Add table name. Add code to parse the URL token.
2306 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2307 Update ListPlace construction with empty table name string.
2308 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2309 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2310 Change setTableSelectedIndex(int) to setSelectedTableName(String).
2311 Update ListPlace construction with table name string.
2312 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2313 Change defaultTableName field to tableName to reflect how it's now
2314 used. Update the getter and setter methods.
2316 2011-06-28 Ben Konrath <ben@bagu.org>
2318 Enable the table selector in the DetailsView.
2320 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2321 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2322 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2323 Remove getDefaultDetailsLayout(). The default layout is now returned
2324 by the getDetailsLayout() method when the table name is an empty
2326 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2327 event handler for table change event. Change to using
2328 getDetailsLayout() for the default details layout.
2329 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
2331 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
2332 when navigating to the details place.
2334 2011-06-27 Ben Konrath <ben@bagu.org>
2336 Use filename based unique document ID in URL and for RPC.
2338 The document ID is the glom document name with spaces (' ') replaced
2339 with pluses ('+') and without the .glom extension.
2341 This change is mostly a string substitution of 'documentTitle' for
2342 'documentID'. The only code change is the addition of a Documents DTO to get the
2343 filename to document title mappings as indicated below.
2345 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2346 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2347 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2348 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2349 Use Documents DTO to create the document links in the document
2351 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2352 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2353 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2354 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2355 * src/main/java/org/glom/web/client/place/ListPlace.java:
2356 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2357 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2358 * src/main/java/org/glom/web/client/ui/ListView.java:
2359 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2360 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2361 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2362 * src/main/java/org/glom/web/server/Log.java:
2363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2364 getDocumentTitles() to getDocuments() and return the Documents DTO.
2365 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
2366 transferring the filename to document title mappings.
2368 2011-06-25 Ben Konrath <ben@bagu.org>
2370 Make the authentication popup work again.
2372 This bug was introduced when I extracted ConfiguredDocument to its own class.
2374 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
2375 correct success / fail status in setUsernameAndPassword().
2377 2011-06-25 Ben Konrath <ben@bagu.org>
2379 Use filename as unique key for configuring database usernames and passwords.
2381 This replaces the use of the Glom document title which could change
2382 depending on the locale. Thanks to Murray Cumming for pointing out this
2385 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2386 * src/main/resources/onlineglom.properties:
2388 2011-06-24 Ben Konrath <ben@bagu.org>
2390 Pass primary key value to DetailsView.
2392 This enables the DetailsView to load the correct data.
2394 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2395 primary key value field and set in constructor. Pass primary key
2396 value to getDetailsData().
2397 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
2398 variables for document title and primary key value.
2399 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
2400 key value to the DetailsPlace.
2402 2011-06-24 Ben Konrath <ben@bagu.org>
2404 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
2406 This allows the primary key to be retrieved by the Details button. This
2407 functionality has not been implemented yet but it's in the works.
2409 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
2410 the LayoutGroup result to ListView.setCellTable instead of all of its
2411 fields individually.
2412 * src/main/java/org/glom/web/client/ui/ListView.java:
2413 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
2414 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
2415 get the primary key for the table.
2416 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2417 index of the primary key in the LayoutGroup accounting for hidden
2418 primary keys. Rename getJavaNumberFormat() to
2419 convertToJavaNumberFormat() for consistency. Cleanup / add some
2421 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
2422 field for primary key index and a field to indicate whether the
2423 primary key is hidden or not.
2425 2011-06-23 Ben Konrath <ben@bagu.org>
2427 Rename getTableData methods to getListData.
2429 This is a rename refactor for consistency with other methods.
2431 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2432 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2433 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2434 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2436 2011-06-23 Ben Konrath <ben@bagu.org>
2438 Extract the ConfiguredDocument innerclass into its own class.
2440 This makes the servlet code more object oriented.
2442 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
2443 from private ConfiguredDocument class in OnlineGlomServiceImpl.
2444 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
2445 new ConfiguredDocument class.
2447 2011-06-21 Ben Konrath <ben@bagu.org>
2449 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
2451 This makes things more inline with how libglom works and reduces code
2452 duplication. This refactor lays the groundwork for adding the primary key to
2453 the LayoutGroup object.
2455 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2456 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2457 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2458 Change method names to getListLayout and getDefaultListLayout for
2459 consistency. Use LayoutGroup as the DTO for the list layout instead of
2460 ColumnInfo and LayoutListTable.
2461 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
2462 new method names along with the LayoutGroup object for transferring the
2464 * src/main/java/org/glom/web/client/ui/ListView.java:
2465 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2466 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
2467 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
2469 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
2470 Replaced with LayoutGroup.
2471 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
2472 expectedResultSize and defaultTableName fields which are needed for
2474 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2475 type field which is needed for the list layout but will also be
2476 useful for the details layout as things progress.
2477 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2478 Make class abstract. Remove the unnecessary
2479 getFormattingHorizontalAlignment method. Add setFormatting method.
2481 2011-06-16 Ben Konrath <ben@bagu.org>
2483 Add scripts for building and installing war.
2485 These will help when updating OnlineGlom but they're also good
2486 supplemental documentation of the build and deployment proceeding.
2488 * utils/build-onlineglom-war.sh: New file.
2489 * utils/install-onlineglom-war.sh: New file.
2491 2011-06-16 Ben Konrath <ben@bagu.org>
2493 Create wrapper class to create consistent log messages.
2495 I wrapped methods in the Log class of gwt-log to add the method names
2496 from the servlet and create consistent formatting of the document title
2497 and table names in the log messages.
2499 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
2500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
2501 log methods to use methods from wrapped Log class.
2503 2011-06-16 Ben Konrath <ben@bagu.org>
2505 Remove superfluous conditional return.
2507 Thanks to Murray Cumming for pointing this out!
2509 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2511 2011-06-15 Ben Konrath <ben@bagu.org>
2513 Return an ArrayList of LayoutGroups for the Details layout.
2515 This corrects a problem with the details layout as it can have more
2516 than one top level LayoutGroup.
2518 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2519 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
2520 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
2521 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
2522 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
2523 with ArrayList of LayoutGroups for the details view layout.
2524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2525 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
2526 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
2527 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
2528 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
2529 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
2531 2011-06-14 Ben Konrath <ben@bagu.org>
2533 Use cast_dynamic method to determine the libglom LayoutItem type.
2535 This is better than finding the LayoutItem type by using the string
2536 returned from the get_part_type_name() method.
2538 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2540 2011-06-14 Ben Konrath <ben@bagu.org>
2542 Add method names to log entries in the servlet.
2544 This helps when tracking down deployment problems.
2546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2548 2011-06-14 Ben Konrath <ben@bagu.org>
2550 Add data to the DetailsView using a hard-coded primary key value.
2552 The layout and functionality of the DetailsView is not complete. This
2553 is just a checkpoint so the patch doesn't get too big.
2555 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2556 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2557 Add getDetailsData() servlet method.
2558 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2559 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2560 LayoutFields are added to the DetailsView.
2561 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2562 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2563 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2564 take the string for the title instead of the object.
2565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2566 Add implementation getDetailsData() along with some private helper
2568 * src/main/webapp/style.css: Add padding to details-data class. Add a
2569 details-label class with the same padding as the details-data class.
2571 2011-06-03 Ben Konrath <ben@bagu.org>
2573 Use presenter.goTo() to change to the DetailsPlace.
2575 This will make things easier when we need to open the DetailsView with
2576 data specific to the row that was clicked.
2578 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2580 2011-06-02 Ben Konrath <ben@bagu.org>
2582 Add CSS file from mockups.
2584 I'm adding this now because it's going to be useful to have when
2585 developing the DetailsView. The TableSelectionView and ListView aren't
2588 * src/main/webapp/OnlineGlom.html:
2589 * src/main/webapp/style.css:
2591 2011-06-02 Ben Konrath <ben@bagu.org>
2593 Use String.isEmpty() to check for empty string.
2595 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2597 2011-06-02 Ben Konrath <ben@bagu.org>
2599 Display main layout group titles in the DetailsView.
2601 This is the start of the DetailsActivity/DetailsView implementation.
2603 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2604 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2605 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2606 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2607 Get the layout information for the details view from the server and set
2608 the main layout group titles.
2609 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2610 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2611 Add addLayoutGroup() and addLayoutField() methods. This are just
2612 temporary methods for creating the the details view that will change
2614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2615 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2617 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2618 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2619 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2620 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2621 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2622 Data Transfer Objects that mimic the libglom object structure. These are
2623 used for transferring the details layout but could also be used for
2624 transferring the list layout.
2626 2011-05-27 Ben Konrath <ben@bagu.org>
2628 Reset the AuthenticationPopup when clearing the ListView.
2630 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2632 2011-05-27 Ben Konrath <ben@bagu.org>
2634 Fix problem with onlineglom.properties file loading.
2636 The old way worked in Eclipse but not on the server. Loading the
2637 onlineglom.properties file now works in Eclipse and on the server.
2639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2641 2011-05-24 Ben Konrath <ben@bagu.org>
2643 Update gwt-log from 3.1.0 to 3.1.2.
2645 Gwt-log 3.1.0 has been marked as depreciated.
2649 2011-05-24 Ben Konrath <ben@bagu.org>
2651 Add comment to ListActivity.goTo() method.
2653 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2655 2011-05-24 Ben Konrath <ben@bagu.org>
2657 Remove FIXME in convertGdkColorToHtmlColour()
2659 The Gdk::Color value returned by libglom is 16-bits per channel on both
2660 64 and 32-bit platforms.
2662 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2664 2011-05-19 Ben Konrath <ben@bagu.org>
2666 Improve performance of initial ListView load.
2668 I removed a round trip to the server for getting the default table name
2669 and then requesting information about that table. This also removes a potential
2670 problem with the table change handler not being setup in time to receive the
2671 table change event from the ListActivity.
2673 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2674 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2675 getDefaultLayoutListTable() method. Improve comments.
2676 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2677 getDefaultLayoutListTable() method instead of firing a table change
2678 event to get the table to load.
2679 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2680 implementation of getDefaultLayoutListTable() method.
2681 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2684 2011-05-19 Ben Konrath <ben@bagu.org>
2686 Override toDebugString() in TableChangeEvent.
2688 This is useful to have for debugging.
2690 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2692 2011-05-19 Ben Konrath <ben@bagu.org>
2694 Add a "Back to List" link when at the DetailsPlace.
2696 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2697 Populate the CellTable based on the selected table of the ListBox if
2698 it's set otherwise use the default table. This allows the "Back to
2700 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2701 Remove Place from constructors. Add a setPlace() method. Add
2702 goToPlace() method. Set class as presenter for TableSelectionView.
2703 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2704 Use the same TableSelectionActivity when switching between the List and
2706 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2707 Subclass the new HasSelectableTablePlace. This removes some duplicate
2709 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2710 New class to represent Places that display the TableSelectionView.
2711 * src/main/java/org/glom/web/client/place/ListPlace.java:
2712 Subclass the new HasSelectableTablePlace. This removes some duplicate
2714 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2715 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2716 Add Presenter interface. Add setBackLinkVisible() method. Add
2717 setBackLink() method.
2719 2011-05-18 Ben Konrath <ben@bagu.org>
2721 Enable the "Details" buttons.
2723 Right now only an empty details view is displayed.
2725 * src/main/java/org/glom/web/client/ClientFactory.java:
2726 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2727 Add DetailsView to ClientFactory.
2728 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2729 A basic activity for the details view.
2730 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2731 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2733 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2734 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2736 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2737 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2738 unnecessary super() in constructor.
2739 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2740 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2741 really shouldn't create a new TableSelectionActivity for both the ListPlace
2742 and the DetailsPlace so this should be considered a temporary solution.
2743 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2744 New file. Represents a URL for the details view.
2745 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2746 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2747 A basic details view interface and implementation.
2748 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2749 Enable the "Details" buttons.
2751 2011-05-12 Ben Konrath <ben@bagu.org>
2753 Use a LayoutPanel with multiple display areas for main layout.
2755 This is mostly a refactor in that there are no changes from the user
2756 point of view. These changes are required so that we can swap out the list view
2757 with the details view when the user clicks the "Details" button.
2759 * src/main/java/org/glom/web/client/ClientFactory.java:
2760 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2761 OnlineGlomView. Add TableSelectionView, ListView and
2762 AuthenticationPopup.
2763 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2764 for main layout. Add display regions for main activities. Add
2765 activity manager for for main activities.
2766 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2767 file from parts of the deleted OnlineGlomActivity.
2768 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2769 New file from parts of the deleted OnlineGlomActivity.
2770 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2771 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2772 New files for app wide table change event.
2773 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2774 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2775 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2776 Activity mappers for the main activities replace the deleted app-wide
2778 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2779 Fix a spelling error in he comment.
2780 * src/main/java/org/glom/web/client/ui/ListView.java:
2781 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2782 Renamed from LayoutListView and modified for MVP. This still not a
2783 proper dumb view as prescribed by the MVP pattern but it works for now.
2784 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2785 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2786 New widget stripped out of the deleted OnlineGlomView.
2787 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2788 Remove hack that is fixed by this patch.
2790 2011-05-06 Ben Konrath <ben@bagu.org>
2792 Rename OnlineGlomPlace to ListPlace.
2794 The only change besides the rename is that url will now display #list
2795 instead of #Document.
2797 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2798 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2799 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2800 * src/main/java/org/glom/web/client/place/ListPlace.java:
2801 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2803 2011-05-06 Ben Konrath <ben@bagu.org>
2805 Use Presenter for app navigation.
2807 This is the proper way to deal with Place (URL) changes with the MVP
2810 * src/main/java/org/glom/web/client/ClientFactory.java:
2811 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2812 PlaceHistoryMapper and PlaceHistoryHandler.
2813 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2814 PlaceHistoryMapper and PlaceHistoryHandler.
2815 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2816 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2817 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2818 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2819 Add Presenter interface and setPresenter methods. Rename addHyperLink
2820 to addDocumentLink taking only the document title as a parameter.
2822 2011-04-14 Ben Konrath <ben@bagu.org>
2824 Prompt for db username/password if they haven't been set.
2826 This is implemented with a popup widget that is contained within the
2827 OnlineGlomView and managed by the OnlineGlomActivity.
2829 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2830 methods for checking and setting the database username and password.
2831 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2832 new methods for checking and setting the database username and
2834 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2835 Display authentication popup if the JDBC connection to the database
2836 has not been authenticated.
2837 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2839 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2840 for dealing with the authentication popup.
2841 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2842 Implement the methods for dealing with the authentication popup.
2843 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2844 try to executed queries if the database connection hasn't been
2845 authenticated. Implement methods for checking and setting the
2846 database username and password.
2848 2011-04-12 Ben Konrath <ben@bagu.org>
2850 Make log messages a little clearer.
2852 Add a dash betweeen the document title and the table name.
2854 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2856 2011-04-12 Ben Konrath <ben@bagu.org>
2858 Protect against NPEs when cleaning up database resources.
2860 While this isn't strictly necessary because the exception is caught,
2861 not protecting against the NPEs makes it harder to find the real error
2864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2866 2011-04-12 Ben Konrath <ben@bagu.org>
2868 Move configuration of the servlet to the constructor.
2870 The servlet will be initialized even if the database authentication
2871 information is not set or correct. I still need to add the UI for prompting
2872 the user for the authentication information when it's required.
2874 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2875 javadocs for getDocumentTitles() method.
2876 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2877 Set error message when RPC fails.
2878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2879 glom files directory from the configuration file. Try to set the
2880 database authentication information for the specific document if it's
2881 set and works otherwise try to use the global authentication
2882 information set for the directory.
2883 * src/main/resources/onlineglom.properties: Moved from
2884 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2885 Added detailed comments for the new keys.
2887 2011-04-11 Ben Konrath <ben@bagu.org>
2889 Remove unnecessary @Override in DocumentSelectionViewImpl.
2891 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2893 2011-04-11 Ben Konrath <ben@bagu.org>
2895 Remove center alignment in DocumentSelectionView.
2897 The title element is still centred but the document titles and bottom
2898 sentence are both left-aligned.
2900 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2902 2011-04-11 Ben Konrath <ben@bagu.org>
2904 Change 'Demo' naming convention to 'Document'.
2906 This is just a rename refactor with no functional changes to the code.
2908 * src/main/java/org/glom/web/client/ClientFactory.java:
2909 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2910 * src/main/java/org/glom/web/client/OnlineGlom.java:
2911 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2912 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2913 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2914 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2915 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2916 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2917 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2918 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2919 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2922 2011-04-08 Ben Konrath <ben@bagu.org>
2924 Remove FIXME from safeLongToInt() method.
2926 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2931 2011-04-08 Ben Konrath <ben@bagu.org>
2933 Display an error if no glom documents are found in the specified directory.
2935 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2936 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2937 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2938 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2940 2011-04-08 Ben Konrath <ben@bagu.org>
2942 Add copyright header to one more file ... oops.
2944 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2946 2011-04-08 Ben Konrath <ben@bagu.org>
2948 Add copyright header to files without it.
2950 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2951 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2952 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2953 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2954 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2955 * src/main/java/org/glom/web/shared/GlomField.java:
2957 2011-04-08 Ben Konrath <ben@bagu.org>
2959 Add support for accessing multiple glom documents in the servlet.
2961 This completes the demo selection functionality.
2963 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2964 document title to methods.
2965 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2966 document title to methods.
2967 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2968 Set browser window title when the activity starts. Correct name of
2969 document title variable.
2970 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2971 Set browser window title when the activity starts. Set the table
2972 selector change handler after table selector has been set. Clear the
2973 OnlineGlomView when the activity has been stopped.
2974 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2975 document title as the place token. Use "#Document:" instead of
2976 "#OnlineGlomPlace:" in the URL.
2977 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2978 Change heading to "Online Glom"
2979 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2980 document title in RPC methods.
2981 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2982 setDocumentTitle() method. Add clear() method.
2983 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2984 setDocumentTitle() method. Implement clear() method which removes the
2985 change handler on the ListBox, clears the ListBox and clears the
2987 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2988 Implement methods with document title. Keep track for the configured
2989 glom documents and their corresponding JDBC configurations in a hash
2990 table. This information is retrieved using the document title as the
2991 key in the hash table.
2992 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2993 document title field as it's no longer needed.
2995 2011-04-08 Ben Konrath <ben@bagu.org>
2997 Update the Eclipse JDT configuration.
2999 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
3000 methods. Automatically add the copyright header to new files.
3002 2011-04-05 Ben Konrath <ben@bagu.org>
3004 Add new page for demo selection.
3006 This patch adds all the components required to view and start an
3007 OnlineGlom demo by clicking on the desired hyperlink. The user is
3008 able to return to the demo selection page with the browser's back
3009 button. I still need to modify the servlet to work with multiple
3010 documents so all demo links will load the file defined in the
3011 OnlineGlom.properties.
3013 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
3014 This is only useful during development so we don't need to save it.
3015 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
3016 get a reference to the DemoSelectionView.
3017 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
3018 method to get a reference to the DemoSelectionView.
3019 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
3020 default view to DemoSelectionView.
3021 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
3022 to get glom document titles for glom files in a hard-coded directory.
3023 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
3024 method to get glom document titles for glom files in a hard-coded
3026 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
3027 Presenter for DemoSelectionView.
3028 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
3029 for DemoSelectionView.
3030 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
3031 Update for DemoSelectionView.
3032 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
3033 Basic 'Place' implementation for the DemoSelectionView.
3034 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
3035 The interface for the DemoSelectionView.
3036 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
3037 The implementation of the DemoSelectionView.
3038 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
3039 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
3040 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3041 implementation of method to get glom document titles for glom files
3042 in a hard-coded directory.
3043 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
3044 on longer being used.
3045 * src/main/webapp/glom.png: Glom logo.
3047 2011-04-05 Ben Konrath <ben@bagu.org>
3049 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
3051 This is the forth and final commit of a refactor that will allow
3052 OnlineGlom to be used with multiple documents.
3054 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
3055 Move RPC code from OnlineGlomViewImpl to this class.
3056 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
3058 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
3059 RPC code to the presenter class (the P in MVP).
3061 2011-04-04 Ben Konrath <ben@bagu.org>
3063 Start moving the existing OnlineGlom code to MVP.
3065 This work is based on the GWT MVP framework that is documented here:
3067 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
3069 This is the third commit of a refactor that will allow OnlineGlom to
3070 be used with multiple documents.
3072 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
3073 Interface for client factory which is used to get instances of various
3074 classes throughout the app.
3075 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
3076 Implementation of client factory.
3077 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
3078 initialize the MVP framework.
3079 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
3080 New file. Activity manager for the main container widget. This is the
3082 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
3083 Maps place (URL) to its corresponding activity.
3084 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
3085 New file. This is just a place holder for a generated file.
3086 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
3087 New file. Represents the URL for the main Online Glom app.
3088 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
3089 for changes in LayoutListViewImpl.
3090 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
3091 interface for View. Move code to OnlineGlomViewImpl class.
3092 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
3093 file. Implementation of OnlineGlomView.
3094 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
3095 Place resources. Use ClientFactoryImpl by default.
3097 2011-04-04 Ben Konrath <ben@bagu.org>
3099 Move View classes to their own package.
3101 This is the second commit of a refactor that will allow OnlineGlom to
3102 be used with multiple documents.
3104 * src/main/java/org/glom/web/client/OnlineGlom.java:
3105 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
3106 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
3108 2011-04-02 Ben Konrath <ben@bagu.org>
3110 Move UI code from the main module to its own class.
3112 This is the first commit of a refactor that will allow OnlineGlom to be
3113 used with multiple documents.
3115 * src/main/java/org/glom/web/client/LayoutListView.java: Update
3116 references to OnlineGlom to OnlineGlomView.
3117 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
3118 OnlineGlomView and instantiate it here.
3119 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
3120 represents the main OnlineGlomView with one document.
3122 2011-04-01 Ben Konrath <ben@bagu.org>
3124 Fix formatting of gwt.xml and add DTD.
3126 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3128 2011-03-30 Ben Konrath <ben@bagu.org>
3130 Propperly convert gdkColor string to html colour string.
3132 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3134 2011-03-28 Ben Konrath <ben@bagu.org>
3136 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
3138 This implementation matches
3139 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
3140 readable and is not tied to Swig.
3142 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3144 2011-03-28 Ben Konrath <ben@bagu.org>
3146 Use read-only checkboxes for boolean field types.
3148 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
3149 in the CellTable based on the field type. It currently only
3150 distinguishes between boolean and text columns but I'll need to add
3151 support for more types.
3152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
3153 column type in the ColumnInfo object. Add method to convert between the
3154 glom field type enum in ColumnInfo and the glom field type in libglom.
3155 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
3157 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
3158 getting and setting booleans.
3160 2011-03-25 Ben Konrath <ben@bagu.org>
3162 Don't get the Date twice from the ResultSet.
3164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3166 2011-03-25 Ben Konrath <ben@bagu.org>
3168 Cleanup code in the servlet.
3170 * TODO: Remove item about row count. Add item about testing row count
3171 query with large number of rows.
3172 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
3173 spelling mistakes, change method parameter to be consistent with
3176 2011-03-25 Ben Konrath <ben@bagu.org>
3178 Add server side logging with the gwt-log library.
3180 * .gitignore: Ignore the log file we're now producing.
3181 * TODO: Add a couple TODO item for logging.
3182 * pom.xml: Add gwt-log and log4j as a dependency.
3183 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
3184 logging of errors, warnings and some important info.
3185 * src/main/resources/log4j.properties: New file to configure log4j.
3187 2011-03-24 Ben Konrath <ben@bagu.org>
3189 Add a disable button for the Details view.
3191 * src/main/java/org/glom/web/client/LayoutListView.java:
3193 2011-03-22 Ben Konrath <ben@bagu.org>
3195 Use a count query to get the number of rows for the list view pager.
3197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3199 2011-03-22 Ben Konrath <ben@bagu.org>
3201 Add more TODO information about CellTable pager positioning.
3205 2011-03-19 Ben Konrath <ben@bagu.org>
3207 Add TODO item about CellTable pager positioning.
3211 2011-03-18 Ben Konrath <ben@bagu.org>
3213 Remove unneeded GlomFieldColumn class.
3215 This is just a small code cleanup.
3217 * src/main/java/org/glom/web/client/LayoutListView.java:
3219 2011-03-18 Ben Konrath <ben@bagu.org>
3221 Use cursor mode in the query that gets data for the list view.
3223 I still need to fix the potential memory problem when getting the row
3224 count for the list view.
3226 * TODO: Add note about testing memory usage with large data sets. Add
3227 item about fixing row counting with large data sets.
3228 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
3229 PostgreSQL JDBC driver into cursor mode when getting data for the
3232 2011-03-15 Ben Konrath&nbs