1 2012-05-06 Murray Cumming <murrayc@murrayc.com>
3 Document: Correct the port number parsing.
5 * src/main/java/org/glom/web/server/libglom/Document.java:
6 This lets us actually connect to the database and show the document.
8 2012-05-05 Murray Cumming <murrayc@murrayc.com>
12 * pom.xml: Use htmlunit mode for gwt:test, because the default demands
13 user-interaction, asking us to load a temporary URL in a browser.s
14 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
15 which is apparently necessary for testing the service. See the comment.
16 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
17 Show the exception, if any. This is how I saw the 404 in the HTML in
20 2012-05-05 Murray Cumming <murrayc@murrayc.com>
22 DocumentTest: Move the .glom files into the resources directory.
24 * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
25 URI via getResource().
27 2012-05-05 Murray Cumming <murrayc@murrayc.com>
29 Document: Remove the FieldIdentifies inner class.
31 * src/main/java/org/glom/web/server/libglom/Document.java: We only
32 use the Relationship (though the same function in libglom is maybe
33 used in other ways) and so this removes a compiler warning.
35 2012-05-05 Murray Cumming <murrayc@murrayc.com>
37 Document.load() Remove the error code parameter.
39 * src/main/java/org/glom/web/server/libglom/Document.java: load():
40 Remove the parameter. We do not set it yet and it could never have
41 worked as an output parameter (though maybe it did in java-libglom).
42 We could use an exception if we really want the failure reason.
43 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
45 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
46 setUp(), testGetSuitableTableToViewDetails(): Adapt.
48 2012-05-05 Murray Cumming <murrayc@murrayc.com>
50 Make some inner classes static.
52 * src/main/java/org/glom/web/server/ConfiguredDocument.java
53 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
54 * src/main/java/org/glom/web/server/ReportGenerator.java
55 * src/main/java/org/glom/web/server/libglom/Document.java
56 Make all inner classes static that can be static.
58 2012-05-05 Murray Cumming <murrayc@murrayc.com>
60 OnlineGlomServiceImpl: Do not load and check for java-libglom.
62 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
63 init(): We do not use java-libglom any more.
65 2012-05-05 Murray Cumming <murrayc@murrayc.com>
67 Remove mentions of java-libglom.
69 * README: Remove mention of java-libglom, because it no longer needed.
70 * utils/build-onlineglom-war.sh:
71 * utils/check-and-recover-tomcat.py:
72 * utils/install-onlineglom-war.sh: Remove these as they are no longer
73 useful. Building is now far easier, with no need for jhbuild.
75 2012-05-05 Murray Cumming <murrayc@murrayc.com>
77 Fix the build (mvn package)
79 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
80 (LayoutGroup): Make the LayoutItemList inner class static and protected.
81 Otherwise the GWT Java->Javascript compilation fails with just this
82 error, during mvn package or when attempting to view in a browser,
83 in the GWT developer mode in Eclipse.
85 [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
86 [INFO] auto discovered modules [org.glom.web.OnlineGlom]
87 [INFO] Compiling module org.glom.web.OnlineGlom
88 [INFO] [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
89 [INFO] [ERROR] Line 46: Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
90 [INFO] Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
91 [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
92 [INFO] [WARN] org.glom.web.client.OnlineGlomService_Proxy
93 [INFO] [ERROR] Cannot proceed due to previous errors
95 It has taken me 2 days to find out what was causing that. After reducing
96 the code, the compiler eventually showed me the full error message.
98 2012-05-04 Murray Cumming <murrayc@murrayc.com>
100 ConfiguredDocument: Cache the cloned and stripped layouts.
102 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
103 getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
104 layout in a map, so we can retrieve it again without rebuilding it.
106 2012-05-04 Murray Cumming <murrayc@murrayc.com>
108 UsesRelationshipImpl: Complete the relationshipEquals() implementation.
110 2012-05-04 Murray Cumming <murrayc@murrayc.com>
112 libglom classes: Implement some auto-generated emthods.
114 2012-05-04 Murray Cumming <murrayc@murrayc.com>
116 Add GwtTestOnlineGlomService.
118 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
119 However, this (and the other GwtTest*) does not seem to run during
122 2012-05-04 Murray Cumming <murrayc@murrayc.com>
124 Remove use of unsupported features from client code.
126 * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
127 * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
128 * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
129 Use our client version of StringUtils instead of the apache commons one.
131 However, the GWT Javascript compliation still fails.
133 2012-04-25 Murray Cumming <murrayc@murrayc.com>
135 Add a Field class and implement some loading of it in Document.
137 2012-04-25 Murray Cumming <murrayc@murrayc.com>
139 Initial Document loading implementation, instead of libglom.
141 * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
142 and Translatable classes, and adapt the rest of the code to use them.
143 However, this is still missing Layout and Field classes and loading.
145 2012-04-24 Murray Cumming <murrayc@murrayc.com>
147 Use of jOOQ: Move Field creation into a utility method.
149 * src/main/java/org/glom/web/server/SqlUtils.java:
150 This lets us improve it more easily.
152 2012-04-24 Murray Cumming <murrayc@murrayc.com>
154 Use of jOOQ: Improve the code to COUNT a sub-select.
156 * src/main/java/org/glom/web/server/SqlUtils.java:
157 Move initial query creation into
158 build_sql_select_step_with_where_clause().
159 build_sql_select_count_rows(): Use the jOOQ API instead of
160 concatentating text, because a jOOQ Select*Step is a TableLike,
161 which is what from() takes.
163 2012-04-23 Murray Cumming <murrayc@murrayc.com>
165 Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
167 * pom.xml: Depend on jooq.
168 * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
169 methods with jOOQ, based on the C++ implementations in libglom,
170 with some changes to the logic required by jooQ.
171 Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
173 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
174 * src/main/java/org/glom/web/server/ReportGenerator.java:
175 * src/main/java/org/glom/web/server/SqlUtils.java:
176 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
177 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
178 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
179 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
180 * src/main/java/org/glom/web/server/database/RelatedListNavigation:
181 Adapt. In particular, the SqlUtils methods now need to take a Connection,
182 because jOOQ needs that, though it seems unnecessary.
184 This is not quite finished. Ideally jOOQ would help us to build
185 table_name.field_name names, quoting and escaping them properly.
186 See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
188 2012-04-21 Murray Cumming <murrayc@murrayc.com>
190 Move use of Glom.build_sql*() into a new SqlUtils class.
192 * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
193 to wrap Glom.build_sql*(). The parameter types are still Glom one,
194 but this will make it easier to start using something other than
195 libglom or SqlBuilder.
197 2012-04-21 Murray Cumming <murrayc@murrayc.com>
199 Update the project URL.
201 * pom.xml: Use an OnlineGlom-specific URL for the project URL.
203 2012-04-21 Murray Cumming <murrayc@murrayc.com>
205 Main layout: Use a FlowTable instead of absolute positioning.
207 * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
208 The RootLayoutPanel is a (extends) AbsolutePanel, so each of its
209 child panels/widgets must have an absolute position. But that is annoying, so
210 this adds a FlowTable and puts the child panels in there.
212 2012-04-21 Murray Cumming <murrayc@murrayc.com>
214 GwtTestOnlineGlom: Comment out unused code.
216 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
217 Eclipse has started to say that some code is unused.
219 2012-04-21 Murray Cumming <murrayc@murrayc.com>
221 Update to the latest versions of dependencies.
223 * pom.xml: Update version numbers of dependencies to the latest
225 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
226 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
227 * src/main/java/org/glom/web/server/ReportGenerator.java:
228 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
229 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
230 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
232 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
233 Modify the imports where necessary.
235 2012-04-17 Murray Cumming <murrayc@murrayc.com>
237 Style: Remove overflow:hidden from searchbox
239 * src/main/webapp/style.css: Because this pushes the Back To Link
240 label/link on to the next row, which is then hidden due to the
241 hard-coded (in ems) height.
243 2012-04-20 Murray Cumming <murrayc@murrayc.com>
245 Remove some duplicate code.
247 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
248 getDocumentInfo(): This must have been duplicated during the merge from the
253 2012-04-19 Murray Cumming <murrayc@murrayc.com>
255 Reports: Localize the waiting for report message.
257 * src/main/java/org/glom/web/client/activity/ReportActivity.java
258 start(): Get the message from the contants.
259 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
261 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
262 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
263 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
264 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
265 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
266 Update these files with the English text for newer strings for now.
268 2012-04-19 Murray Cumming <murrayc@murrayc.com>
270 Reports: Show a message while waiting for the report.
272 * src/main/java/org/glom/web/client/ui/ReportView.java
273 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
274 Add setWaitingText(), to show a message saying that we are
275 waiting for the report to be ready.
276 * src/main/java/org/glom/web/client/activity/ReportActivity.java
277 start(): Call setWaitingText() before calling the async
280 2012-04-19 Murray Cumming <murrayc@murrayc.com>
282 ReportGenerator: Specify date and time formats.
284 * src/main/java/org/glom/web/server/ReportGenerator.java:
285 createFieldValueElement(): Use the default (and localized)
286 short formats, though we still need a way to show 4-digit
287 years without providing the format for every locale.
288 * src/main/java/org/glom/web/server/database/DBAccess.java:
289 convertResultSetToDTO(): Use the short formats here too.
291 2012-04-18 Murray Cumming <murrayc@murrayc.com>
293 ReportGenerator: Use the correct numeric formatting.
295 * src/main/java/org/glom/web/server/ReportGenerator.java
296 createFieldExpression(), createFieldValueElement(): Take the
297 whole LayoutItem_Field instead of just the field name, so
298 we have access to the formatting.
299 createFieldValueElement(): Use JRTextField.setPattern() to
300 specify the numeric formatting, with the help of a
301 regular DecimalFormat.
303 2012-04-18 Murray Cumming <murrayc@murrayc.com>
305 ReportGenerator: Avoid showing null for group by titles.
307 * src/main/java/org/glom/web/server/ReportGenerator.java
308 generateReport(): Use setBlankWhenNull() on the field title
309 style too, because this is used for values in group by
312 2012-04-18 Murray Cumming <murrayc@murrayc.com>
314 ReportGenerator: Add a colon to titles in vertical groups.
316 * src/main/java/org/glom/web/server/ReportGenerator.java
317 addFieldToDetailBandVertical(): Pass true for the withColon
320 2012-04-18 Murray Cumming <murrayc@murrayc.com>
322 ReportGenerator: Simplify the code by using Position more.
324 2012-04-18 Murray Cumming <murrayc@murrayc.com>
326 Reports: Support vertical groups, roughly.
328 * src/main/java/org/glom/web/server/ReportGenerator.java:
329 addToReport(): Rename to addGroupToReport() and, if necessary,
330 call the new addVerticalGroupToReport() method.
331 createFieldValueElement(): Let the caller specify the Y position
334 2012-04-17 Murray Cumming <murrayc@murrayc.com>
336 Reports: Allow a second report to be shown.
338 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
339 clear(): Do not remove the HTML widget, which broke the whole layout.
341 2012-04-17 Murray Cumming <murrayc@murrayc.com>
343 Locales drop-down: Show that we use English by default.
345 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
346 fillView(): When we use English, just because that is the default, when
347 no locale is specified, show that in the Locales drop-down instead of
348 just showing the first item.
350 2012-04-17 Murray Cumming <murrayc@murrayc.com>
352 Unselect the Report/Locale/Table combo item when appropriate.
354 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
355 setPlace(): clear reportName if this is not a ReportPlace.
356 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
357 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
358 When the provided name is empty, unselect all items, so that none are
359 indicated. This uses a for loop because I cannot find a single method
362 2012-04-17 Murray Cumming <murrayc@murrayc.com>
364 Report: Give the user a way to get back to the list.
366 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
367 start(), setPlace(): Show the Back To List link on reports, and also
368 interpret selecting the empty report item as back to list.
370 2012-04-13 Murray Cumming <murrayc@murrayc.com>
372 Really show the selected Report name.
374 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
375 setPlace(): Store the reportName here, if it is that kind of Place.
376 fillView(): Set the selected Report after filling the list of reports.
377 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
378 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
379 null Strings, though we need some way to unselect all ListBox items
382 2012-04-13 Murray Cumming <murrayc@murrayc.com>
384 ReportGenerator: Try to avoid some problems.
386 * src/main/java/org/glom/web/server/ReportGenerator.java
387 addField(): Try to avoid duplicates, and avoid using a null
390 2012-04-13 Murray Cumming <murrayc@murrayc.com>
392 Reports: Use quickFind.
394 * src/main/java/org/glom/web/client/OnlineGlomService.java;
395 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
396 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
397 getReportHTML(): Add a quickFind parameter.
398 * src/main/java/org/glom/web/client/activity/ReportActivity.java
399 start(): Pass the quickFind parameter.
400 * src/main/java/org/glom/web/server/ReportGenerator.java
401 generateReport(): Take a quickFind parameter.
403 2012-04-13 Murray Cumming <murrayc@murrayc.com>
405 ReportPlace: Actually use the report name.
407 * src/main/java/org/glom/web/client/place/ReportPlace.java
408 getPlace(): Do not assign the report name to the quickfind.
410 2012-04-13 Murray Cumming <murrayc@murrayc.com>
412 Show java.library.path when complaining.
414 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
415 init(): When telling us to check java.library.path, show the
418 2012-03-06 Murray Cumming <murrayc@murrayc.com>
420 ReportGenerator: Do not show nulls.
422 2012-03-06 Murray Cumming <murrayc@murrayc.com>
424 ReportGenerator: Make the title font larger.
426 2012-03-06 Murray Cumming <murrayc@murrayc.com>
428 ReportGenerator: Put field titles inside groups, if there are groups.
430 2012-03-06 Murray Cumming <murrayc@murrayc.com>
432 ReportGenerator: Take the Report itself instead of the name and group.
434 * src/main/java/org/glom/web/server/ConfiguredDocument.java
435 Remove getReportLayoutGroup().
436 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
437 getReportHTML(): Pass the report instead
438 of its name and layout group.
439 * src/main/java/org/glom/web/server/ReportGenerator.java
440 generateReport(): Use the report object to use the title
443 2012-03-06 Murray Cumming <murrayc@murrayc.com>
445 ReportGenerator: Remove designBand parameters.
447 * src/main/java/org/glom/web/server/ReportGenerator.java:
448 Make designBand a class member instead of passing it to all
451 2012-03-06 Murray Cumming <murrayc@murrayc.com>
453 ReportGenerator: Add lines, a bit like in the desktop version.
455 * src/main/java/org/glom/web/server/ReportGenerator.java
456 addToReport(): Use JRDesignLine.
458 2012-03-06 Murray Cumming <murrayc@murrayc.com>
460 ReportGenerator: Correct the title positions and use some bold style.
462 * src/main/java/org/glom/web/server/ReportGenerator.java:
463 Break the code up into reusable functions, correct the placement of
464 titles, and use normal/bold styles as in the reports in the desktop
467 2012-03-06 Murray Cumming <murrayc@murrayc.com>
469 ReportGenerator: Add a header band to show the field titles.
471 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
472 getReportHTML(): Pass the localeId to the ReportGenerator
474 * src/main/java/org/glom/web/server/ReportGenerator.java
475 constructor: Take the localeID so we can get translated field
477 generateReport(), addToReport(), addFieldToBand(): Add field
478 titles in a column header band.
480 2012-03-05 Murray Cumming <murrayc@murrayc.com>
482 Reports drop-down list: Some improvement.
484 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
485 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
486 Adedd setSelectedReport(),
487 setReportList(): Add a blank line so that the user can select the
489 * src/main/java/org/glom/web/client/activity/ReportActivity.java
490 start(): Show the current report by calling setSelectedReport().
491 This does not seem to work yet.
493 2012-03-05 Murray Cumming <murrayc@murrayc.com>
495 DetailsActivity, ListActivity: Move some variables into a base class.
497 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
498 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
499 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
500 the clientFactory, documentID, tableName and authenticationPopup into
501 a base class, to avoid duplication.
503 2012-03-05 Murray Cumming <murrayc@murrayc.com>
505 Translate the Reports label.
507 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
508 Get the "Reports" label string from the constants.
509 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
510 perties: Add Reports to the constants.
512 2012-03-05 Murray Cumming <murrayc@murrayc.com>
514 Reports: Implement grouping.
516 * src/main/java/org/glom/web/server/ReportGenerator.java:
517 Handle LayoutItem_GroupBy items and try to do the right thing
518 with JRDesignGroup. It seems to work.
520 2012-03-04 Murray Cumming <murrayc@murrayc.com>
522 Actually show some data with JasperReports.
524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
525 getReportHTML(): Move most code into a ReportGenerator class.
526 * src/main/java/org/glom/web/server/ReportGenerator.java:
527 Recurse into sub-groups, adding fields to the JasperDesign's details
528 band. Note that we must set an arbitrary width and height, or it just
529 will not show any data.
531 2012-03-04 Murray Cumming <murrayc@murrayc.com>
533 Reports Chooser: Show the titles, not the names.
535 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
536 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
537 and the names as the values.
538 * src/main/java/org/glom/web/server/ConfiguredDocument.java
539 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
540 group now that we provide the report name, so it should always
543 2012-02-15 Murray Cumming <murrayc@murrayc.com>
545 Depend on jasperreports.
547 * pom.xml: Add the dependency. My plan is to use this on the
550 2012-01-31 Murray Cumming <murrayc@murrayc.com>
552 Implement navigation to report places.
554 * src/main/java/org/glom/web/client/activity/ReportActivity.java
555 start(): Do not bother to handle all events here.
556 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
557 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
558 Added getSelectedReport().
559 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
560 .java: start(): When handling a change to the reports chooser,
561 call getSelectedReport() and goTo() its ReportPlace.
562 * src/main/java/org/glom/web/client/ui/ReportView.java
563 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
564 Added setReportHTML() which puts the html in a gwt HTML widget.
565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
566 getReportHTML(): Return "TODO" just to show that this works.
568 2012-01-31 Murray Cumming <murrayc@murrayc.com>
570 Make ReportPlace usable.
572 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
574 * src/main/java/org/glom/web/client/place/ReportPlace.java:
575 Correct the @prefix annotation.
577 2012-01-31 Murray Cumming <murrayc@murrayc.com>
579 OnlineGlomService: Return report HTML rather than the LayoutGroup.
581 * src/main/java/org/glom/web/client/OnlineGlomService.java:
582 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
583 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
584 Change getReportLayout() to getReportHMTL() because we will not need to
585 parse or render the report layout on the client side.
586 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
587 getReportLayout(): Return the libglom LayoutGroup type because we will
588 not need to convert to a shared type, because this will not be used on
590 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
593 Note that there is still no implementation for this.
596 2012-01-27 Murray Cumming <murrayc@murrayc.com>
598 Add a (empty) Report Place, View, and Activity.
600 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
602 * src/main/java/org/glom/web/client/place/HasTablePlace.java
603 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
604 this into a superclass:
605 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
606 and also use it as the base of this new ReportPlace:
607 * src/main/java/org/glom/web/client/place/ReportPlace.java
609 * src/main/java/org/glom/web/client/ui/ReportView.java
610 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
611 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
612 Add these, containing mostly boiler-plate for now.
614 * src/main/java/org/glom/web/client/OnlineGlomService.java
615 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
616 * src/main/java/org/glom/web/server/ConfiguredDocument.java
617 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
618 Add API to get the LayoutGroup for the report.
620 2012-01-23 Murray Cumming <murrayc@murrayc.com>
622 Add and fill a Reports drop-down list box.
624 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
626 * src/main/java/org/glom/web/client/OnlineGlomService.java:
627 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
628 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
629 Added getReports(document, table, localeID), calling
630 ConfiguredDocument.getReports().
631 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
632 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
633 Added setReportsList() and a list widget.
634 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
635 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
640 2012-04-12 Murray Cumming <murrayc@murrayc.com>
642 Translations: Add Esperanto.
644 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
645 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
646 properties: Add this translation because someone took the time to make it.
648 2012-03-15 Murray Cumming <murrayc@murrayc.com>
650 Adapt to the java-libglom 1.21.7 API.
652 * src/main/java/org/glom/web/server/ReportGenerator.java:
653 addToReport(): get_group_secondary_fields() is now
654 get_secondary_fields().
657 2012-03-15 Murray Cumming <murrayc@murrayc.com>
659 Use the latest java-libglom version.
661 * pom.xml: Use java-libglom 1.21.7.
663 2012-03-03 Ben Konrath <ben@bagu.org>
665 Display date and time in details view.
667 https://bugzilla.gnome.org/show_bug.cgi?id=671257
669 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
671 2012-03-05 Murray Cumming <murrayc@murrayc.com>
673 Require the latest java-libglom.
675 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
677 2012-03-04 Murray Cumming <murrayc@murrayc.com>
679 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
681 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
682 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
683 an empty quickfind string. I also corrected libglom to create only
684 empty where clauses for empty quickfind strings, but this avoids the
687 2012-02-24 Ben Konrath <ben@bagu.org>
689 Improve the tabs in the Notebook widget.
693 2012-01-30 Murray Cumming <murrayc@murrayc.com>
695 Translations: Try to translate the strings.
697 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
698 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
699 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
700 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
701 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
702 Take the Open translation from GTK+'s .po files.
703 Take the Details translation from Glom's po files.
704 I have added the other strings to Glom so we can get translations that way:
705 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
707 2012-01-27 Murray Cumming <murrayc@murrayc.com>
709 TableSelectionViewImpl: Put the search label and entry in a div.
711 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
712 Put the search widgets in a FlowTable so that the CSS can be used to
713 style them while keeping them together.
714 * src/main/webapp/style.css: Mention the new div.
716 2012-01-27 Murray Cumming <murrayc@murrayc.com>
718 Translate more strings in more locales.
720 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
721 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
722 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
723 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
724 Translate the "Details" and "Open" string too.
726 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
727 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
728 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
729 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
730 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
731 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
732 Add these new locales as placeholders though they currently contain English.
734 2012-01-27 Murray Cumming <murrayc@murrayc.com>
736 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
739 Check the ConfiguredDocument* for null before using it.
741 2012-01-26 Murray Cumming <murrayc@murrayc.com>
743 Tell Eclipse about the generated java files.
745 * .classpath: This lets it find OnlineGlomConstants.java.
746 It would be nice if Eclipse just used the maven build files.
748 2012-01-26 Murray Cumming <murrayc@murrayc.com>
750 Prevent a crash when no locale is specified in the URL.
752 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
753 Avoid returning a null string, obtained from
754 Window.Location.getParameter(). This caused a crash when it was
755 later passed to libglom's API.
756 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
757 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
758 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
759 guard against future null strings.
761 2012-01-26 Murray Cumming <murrayc@murrayc.com>
763 Use the ?locale= query param instead of the &lang= token param.
765 * src/main/java/org/glom/web/client/place/ListPlace.java
766 * src/main/java/org/glom/web/client/place/DetailsPlace.java
767 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
768 Remove the lang token key and value.
770 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
771 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
772 When the user selects a different locale from the chooser, use
773 Window.Location.assign() to change the URL, which then causes a reload.
775 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
776 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
777 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
778 * src/main/java/org/glom/web/client/activity/ListActivity.java
779 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
780 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
781 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
782 * src/main/java/org/glom/web/client/ui/ListView.java:
783 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
785 Remove localeID member variables and method/constructor parameters, instead
786 using Utils.getCurrentLocaleID() when we need a localID to pass to
789 2012-01-26 Murray Cumming <murrayc@murrayc.com>
791 Internationalize the UI strings.
793 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
794 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
795 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
796 because it is unused. Messages are apparently strings that can have
797 parameters, but we do not need that yet, so Contants will be enough for now.
798 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
799 to say that we support the en and de locales.
800 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
801 The original English strings.
802 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
803 Some German translations of the English strings.
804 The i18n goal then uses the .properties file to generate an
805 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
806 returns an implementation that returns the translated strings.
807 The documentation suggests putting these in src/java/*/client/, but it seems
808 best to put it in src/resources/*/client/.
809 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
810 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
811 instead of hard-coding them.
812 Note that we cannot import OnlineGlomConstants because it does not exist yet,
813 but that does not seem to stop the build, though it confuses Eclipse.
815 You can see the translated string by adding ?locale=de to the URL, like so:
816 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
818 2012-01-24 Murray Cumming <murrayc@murrayc.com>
820 Improve null/empty String checks.
822 * pom.xml: Add a dependency on commons-lang, to use
823 org.apache.commons.lang.StringUtils.
824 * src/main/java/org/glom/web/server/ConfiguredDocument.java
825 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
826 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
827 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
828 Use StringUtils.isEmpty().
830 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
831 StringUtils class with a static isEmpty() function because we
832 cannot use org.apache.commons.lang.StringUtils in client-side
833 GWT code because it (apparently) cannot be compiled to javascript.
834 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
835 * src/main/java/org/glom/web/client/activity/ListActivity.java
836 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
837 * src/main/java/org/glom/web/client/place/DetailsPlace.java
838 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
839 * src/main/java/org/glom/web/client/place/ListPlace.java
840 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
841 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
842 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
843 * src/main/java/org/glom/web/client/ui/details/Group.java
844 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
845 our StringUtils.isEmpty() function.
847 2012-01-24 Murray Cumming <murrayc@murrayc.com>
849 Update to the latest java-libglom API.
851 * pom.xml: Require java-libglom 1.21.4.
852 * src/main/java/org/glom/web/server/ConfiguredDocument.java
853 getDocumentInfo(), getListViewLayoutGroup():
854 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
856 * src/main/java/org/glom/web/server/database/DBAccess.java
857 getFieldsToShowForSQLQueryAddGroup(),
858 getPrimaryKeyLayoutItemField(): Replace get_database_title()
859 with either get_database_title_original() or
860 get_database_title(localeID).
862 2012-01-24 Murray Cumming <murrayc@murrayc.com>
864 ConfiguredDocument: Avoid a null pointer exception.
866 * src/main/java/org/glom/web/server/ConfiguredDocument.java
867 Initialize localeID to "" to avoid returning a null String which
868 causes a crash in java-libglom's swing-generated code.
870 2012-01-23 Murray Cumming <murrayc@murrayc.com>
872 Some simple renaming.
874 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
875 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
876 for localeChooser. This seems more appropriate and is less ambiguous
877 particularly in the .css file.
879 2012-01-23 Murray Cumming <murrayc@murrayc.com>
881 ConfiguredDocument: Rename the localedID private member variable.
883 2012-01-23 Murray Cumming <murrayc@murrayc.com>
885 Adapt to the latest java-libglom API from git master.
887 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
888 libglom now uses only Vector instead of List, which uses add() instead of
891 2012-01-22 Murray Cumming <murrayc@murrayc.com>
893 ConfiguredDocument: Rename the localedID private member variable.
895 2012-01-20 Murray Cumming <murrayc@murrayc.com>
897 Build a source tarball with mvn assembly:single
899 * assembly.xml: Add this file.
900 * pom.xml: Use the maven-assembly-plugin and tell it to use
901 our assembly.xml file.
903 2012-01-19 Murray Cumming <murrayc@murrayc.com>
905 OnlineGlomServiceImpl: Get .glom files recursively.
907 * pom.xml: Depend on commons-io from org.apache.commons.
908 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
909 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
910 files recursively, and with the easier filter for the extension.
911 Use org.apache.commons.io.FilenameUtils.removeExtension() to
912 simplify that code too.
914 2012-01-19 Murray Cumming <murrayc@murrayc.com>
916 README: Mention that you must install java-libglom packages separately.
918 But then it works, because java-libglom is now in the central maven
921 2012-01-18 Murray Cumming <murrayc@murrayc.com>
923 locales drop-down: Show the correct selected locale when the URL changes.
925 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
926 .java: setPlace(): Move some code into fillView().
928 2012-01-18 Murray Cumming <murrayc@murrayc.com>
930 locales drop-down: Do not lose the primary key.
932 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
933 start(): onLocaleChange(): Pass the current primary key value,
934 instead of an empty value.
936 2012-01-18 Murray Cumming <murrayc@murrayc.com>
938 locales drop-down: Do not lose the drop-down selection.
940 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
941 .java (TableSelectionActivity.fillView): Set the selected locale
942 after changing the drop-down items (though we do not really need
943 to change them just because the locale changes.)
945 2012-01-18 Murray Cumming <murrayc@murrayc.com>
947 locales drop-down: Change the tables list when this changes.
949 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
950 .java: TableSelectionActivity.start(): Move the async table titles
951 retrieval into a private fillView() method and also call this when
952 the chosen locale changes.
953 Note that the document title is not actually translatable yet, but
954 that is a problem that I should fix soon in libglom.
956 2012-01-18 Murray Cumming <murrayc@murrayc.com>
958 Improve the placement of the locales drop-down.
960 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
961 Put the title and locales drop-down in a div (gwt.FlowTable).
962 * src/main/webapp/style.css: Add magic css properties to make this work.
963 Also remove the left margin from the title so that it lines up with the
966 2012-01-18 Murray Cumming <murrayc@murrayc.com>
968 locales selector: Show human-readable locale titles.
970 * src/main/java/org/glom/web/server/ConfiguredDocument.java
971 getDocumentInfo(): Use java.util.Locale to show a real title of
972 each locale, in the locale's own language.
974 2012-01-17 Murray Cumming <murrayc@murrayc.com>
976 Add a language/locale selector drop-down.
978 * src/main/java/org/glom/web/shared/DocumentInfo.java:
979 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
980 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
981 getDocumentInfo(): Store the available Locales in the DocumentInfo.
982 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
983 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
984 Add a ListBox to show the available locales. Add getLocaleSelector(),
985 setLocaleList(), getSelectedLocale(), setSelectedLocale().
986 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
987 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
988 java: Add these classes.
989 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
990 start(): Fill the locales ListBox. Handle its change event, firing a
992 setPlace(): Show the selected locale as specified by the URL token.
993 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
994 * src/main/java/org/glom/web/client/activity/ListActivity.java:
995 Handle LocaleChangeEvent, going to a new *Place with that locale.
997 The placement of the ListBox is not pretty, and it currently uses the ID
998 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
1002 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1004 Search box: Show the search text from the URL token.
1006 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1007 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1008 Add setQuickFindText().
1009 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1010 .java: setPlace(): Store the queryText if the place is a ListPlace,
1011 and call TableSelectionView.setQuickFindText().
1013 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1015 Allow use of translations via, for instance, &lang=de in the URL.
1017 * pom.xml: Use the unstable java-libglom 1.21 version.
1019 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1020 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1021 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1022 init(): Instead of calling TranslatableItem.set_current_locale()
1023 (now removed), call ConfiguredDocument.setDefaultLocaleID().
1024 However, this is only for default locales, which are not needed to
1025 change the locale in the URL.
1026 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
1027 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
1028 getSortedRelatedListData(): Add a localeID parameter, so we can get the
1029 layout for a particular locale.
1030 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1031 Add get/setDefaultLocaleID().
1032 getDocumentInfo(), getListViewData(), getRelatedListData(),
1033 getDetailsLayoutGroup(), getListViewLayoutGroup(),
1034 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
1035 localeID parameter, so we can get the layout for a particular locale.
1037 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1038 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1039 * src/main/java/org/glom/web/client/place/ListPlace.java:
1040 Parse and construct a lang parameter too.
1042 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1043 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
1044 passed to subsequent methods and constructors.
1045 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1046 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1047 Store the localeID from the *Place and pass it to other constructors
1048 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
1050 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1051 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1052 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1053 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1054 * src/main/java/org/glom/web/client/ui/ListView.java:
1055 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1056 Take localeID parameters and pass them to subsequent constructors and
1057 methods, so that the layout is always retrieved for that locale.
1059 This is rather repetitive.
1061 Note that "" means the original (default) locale of the Glom document,
1062 which is usually English.
1064 2012-01-17 Murray Cumming <murrayc@murrayc.com>
1066 Documents: Remove final keyword to fix startup configuration.
1068 * src/main/java/org/glom/web/shared/Documents.java: Remove the
1069 final keywords on the private member variables because that breaks
1070 the startup, apparently (there are warnings) because it stops them
1071 from being serialized. I added these in the previous commit.
1073 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1075 Documents: Add some final keywords.
1077 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
1080 2012-01-13 Murray Cumming <murrayc@murrayc.com>
1082 OnlineGlomServiceImpl: Add to overview comments.
1084 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1085 Note that this is where all the document are loaded. They are not
1086 loaded freshly for each page.
1088 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1092 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1093 Add a TextBox for the text of a quick find.
1094 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
1096 setBackLink(): Add a String quickFind parameter.
1097 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1098 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
1099 to the base interface, because that is how TableSelectionViewImpl is used.
1100 * src/main/webapp/style.css: Add style for the search box and its label.
1102 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
1103 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
1104 Add these files, based on the existing TableChangeEvent and
1105 TableChangeEventHandlers.
1106 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1107 start(): Handle QuickFindChangeEvent, passing its quickFind text to
1108 a ListPlace() that the user should be taken to.
1109 * src/main/java/org/glom/web/client/activity/ListActivity.java
1110 start(): Handle it here too and adapt the TableChangeEvent handler to
1111 pass the extra "" quickFind parameter to ListPlace.
1112 * src/main/java/org/glom/web/client/place/ListPlace.java:
1113 Constructor: Take an extra String quickFind parameter and store it,
1114 returning it from a new getQuickFind() method.
1115 getToken(): Put the quickFind text in the URL token.
1116 getPlace(): Parse the quickFind text from the URL token.
1117 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1118 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
1119 ListPlace constructor.
1120 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1121 .java: start(): Add a Change handler for the TableSelectionView's
1122 TextBox (via its base HasChangeHandlers interface), firing the new
1123 QuickFindChangeEvent.
1124 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
1125 pass the extra "" quickFind parameter.
1127 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1128 setCellTable(): Add a String quickFind parameter and pass it to
1129 the ListViewTable() constructor.
1130 * src/main/java/org/glom/web/client/ui/ListView.java: Change
1131 setCellTable() in the base interface, because that is how ListViewImpl
1134 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1135 Add a String quickFind member variable.
1136 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1137 Constructor: Add a String quickFind parameter, storing it in the
1138 base ListTable's member variable.
1139 onRangeChanged(): Pass quickFind to the
1140 OnlineGlomServiceAsync.getSortedListViewData() and
1141 OnlineGlomServiceAsync.getListViewData() methods.
1143 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1144 getListViewData(), getSortedListViewData(): Add a String quickFind
1145 parameter, passing it to ConfiguredDocument.getListViewData().
1146 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1147 Change getListViewData(), getSortedListViewData() in the base interface,
1148 because that is how OnlineGlomServiceImpl is used, via this:
1149 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1150 Change getListViewData(), getSortedListViewData() here too.
1151 This class can apparently be used to asynchronously call methods on
1152 OnlineGlomService, and GWT seems to implement that after recognizing
1153 just the *Async name convention and the extra AsyncCallback parameters.
1155 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1156 getListViewData(): Add a String quickFind parameter, and pass it to
1157 ListViewDBAccess.getData().
1158 * src/main/java/org/glom/web/server/database/ListDBAccess.java
1159 getListData(): Add a String quickFind parameter and pass it to
1161 getSelectQuery(): Add a String quickFind parameter.
1162 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1163 getSelectQuery(): Add a String quickFind parameter and use it with
1164 Glom.get_find_where_clause_quick() to pass a where_clause to
1165 Glom.build_sql_select_with_where_clause(), to actually filter the
1167 getData(): Add a String quickFind parameter, passing it to getListData().
1168 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
1169 va: getData(): Pass an empty string to getListData() for the
1170 quickFind parameter.
1172 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1174 ListTable: Minor change.
1176 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1177 createCellTable(): Make this protected instead of public.
1179 2012-01-12 Murray Cumming <murrayc@murrayc.com>
1181 Many files: Use final for the parameters and use the @override attribute.
1183 2012-01-22 Ben Konrath <ben@bagu.org>
1185 Add anchor links for single line text that starts with http, ftp and www.
1189 2012-01-22 Ben Konrath <ben@bagu.org>
1191 Add ellipsis to single line text in details view.
1195 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1197 Remove all javadoc author tags.
1199 Because they are awkward and meaningless when many people touch
1201 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
1203 2012-01-04 Murray Cumming <murrayc@murrayc.com>
1205 Revert the COPYING.LESSER to COPYING rename.
1207 Apparently both should be there if it is LGPL.
1209 2012-01-03 Murray Cumming <murrayc@murrayc.com>
1211 *View: Remove unused imports.
1213 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1214 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1215 * src/main/java/org/glom/web/client/ui/ListView.java:
1216 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1217 Remove unused imports, as suggested by Eclipse.
1219 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1221 Move the *View::Presenter types, and some API into one base View.
1223 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1224 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1225 * src/main/java/org/glom/web/client/ui/ListView.java:
1226 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
1227 Presenter, setPresenter() and clear() into a shared base interface,
1228 to avoid the unnecessary duplicate Presenter types and to more clearly
1229 show how the *Views share the same structure, even if they are not
1230 used polymorphically.
1232 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1233 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1235 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1236 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1237 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
1239 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1242 Feel free to revert this if there is a good reason for the duplicate
1245 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1247 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
1249 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
1250 a class member instead of a local variable in the method.
1251 This lets us use it to get the view instances, for use in tests.
1252 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1253 beforeOnlineGlom(): Test some more details of the initial view.
1254 Again, this is not very useful.
1256 To really test gwt-glom we will need to start a local postgresql
1257 instance with local data, like the Glom tests in C++.
1259 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1261 pom.xml: Mention the LGPL license.
1263 * pom.xml: Add a licenses section.
1264 * COPYING.LESSER: Move this to COPYING, which
1265 previously contained the GPL. But gwt-glom is all LGPL.
1267 2012-01-02 Murray Cumming <murrayc@murrayc.com>
1269 Add project information to README and pom.xml.
1271 * README: Add a brief description and mention some mvn
1273 * pom.xml: This extra information shows up in mvn site
1276 2011-01-02 Murray Cumming <murrayc@murrayc.com>
1278 Use the latest java-libglom version.
1280 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
1282 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1284 GwtTestOnlineGlom: Test a little more.
1286 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
1287 protected rather than private, as suggested by the gwt-test-utils
1289 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
1290 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
1291 Test the initial visibility of the panels.
1293 However, this is not a very useful test.
1294 And I wonder how we should generally test using this idea for an
1295 activity/places app like ours where the real changes happen implicitly
1296 based on the history token/URL.
1298 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1300 Slight modification to *Mapper comments.
1302 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
1303 (DataActivityMapper)
1304 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
1306 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
1308 Remove comments mentioning GIN because they are just copied from
1309 the example code and are apparently not helpful:
1310 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
1311 Also change the mention of a class that is only in the example code.
1313 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1315 GwtTestOnlineGlom test: Minor changes.
1317 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1318 Avoid the long qualified class name and modify the comment
1319 because it is now obvious to me that the mocked class is the only
1320 custom one created via GWT.create().
1322 2012-01-01 Murray Cumming <murrayc@murrayc.com>
1324 Tests: Added the beginnings of a test using gwt-test-utils.
1326 * pom.xml: Add dependencies on gwt-test-utils and easymock.
1327 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
1328 which tells gwt-test-utils what class will be tested.
1329 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1330 Add a simple (but empty) test case. One class, used by the OnlineGlom
1331 class, is mocked so that it can be created. However, I am not sure
1332 why only this class needs to be mocked.
1334 Note that mockito seems more popular, and clearer, than easymock,
1335 but I have not got that working yet. It might be a matter of the
1338 This test is run during mvn integration-test.
1340 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1342 Tests: Use junit4-style syntax instead of junit3-style.
1344 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1345 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1346 * src/test/java/org/glom/web/shared/DataItemTest.java:
1347 Use the @Test annotation rather than relying on the test*() prefix.
1348 Also no longer implement TestCase, to avoid triggering support for
1349 the junit3-way, which stops the annotations from working.
1350 Change the imports from import junit.framework.* to
1351 import org.junit.*, which is apparently the new way.
1353 2011-12-31 Murray Cumming <murrayc@murrayc.com>
1355 Added a test for ListPlace token parsing and creation.
1357 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1358 This is much the same as DetailsPlaceTest.
1360 I wonder how we could test the other parts of the *Place API.
1362 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1364 DetailsPlace test: Also test getToken() and recreation via getPlace().
1366 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1367 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
1368 recreate it, testing the recreated DetailsPlace for the same parameter
1371 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1373 Use the surefire-report plugin.
1375 * pom.xml: This generates a HTML report about the tests in
1376 target/site/surefire-report.html
1377 when you do mvn surefire-report:report. It seems to be popular/normal.
1379 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1381 Added a test for DetailsPlace.
1383 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1384 Test the getPlace() token parsing.
1386 2011-12-30 Murray Cumming <murrayc@murrayc.com>
1388 Added a first unit test.
1390 * pom.xml: Add a test goal, and a dependency on junit in that scope.
1391 * src/test/java/org/glom/web/shared/DataItemTest.java:
1392 This is a silly test but it is just to get things started. Note that
1393 maven/junit finds the test because it looks in src/test by default.
1395 2011-12-22 Ben Konrath <ben@bagu.org>
1397 Change charsetName to "UTF-8" when replacing line breaks.
1399 JavaScript requires the charsetName to be "UTF-8". CharsetName values
1400 that work in Java (such as "UTF8") will not work when compiled to
1403 This fixes a problem with multi-line details view fields that have hard
1404 line breaks. The "License Text" field on this page demonstrates the
1407 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
1409 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1411 2011-12-22 Ben Konrath <ben@bagu.org>
1413 Fix another bug with related list navigation.
1415 I've tested all the navigation buttons in all of the related lists
1416 so things should be good now.
1418 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1420 2011-12-22 Ben Konrath <ben@bagu.org>
1422 Fix a crasher when refreshing the list view with the default table.
1424 This crash will also happen when loading the list view with the default
1425 table from a link or bookmark.
1427 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
1428 to the main document selection page when the document id hasn't been
1430 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
1431 the main document selection page when the document id hasn't been
1433 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
1434 values for the details place when the document id hasn't been set.
1435 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
1436 values for the list place when the document id hasn't been set.
1438 2011-12-21 Ben Konrath <ben@bagu.org>
1440 Protect against NPE when glom.document.locale is not in config.
1442 This patch protects against an NPE when glom.document.locale is not in
1443 the config file. This NPE will also happen if glom.document.locale is
1446 The patch also updates the error message to display the class name when
1447 the getMessage() returns null. This was happening when the NPE was
1448 thrown and I had "Configuration Error: null". If an NPE is encountered
1449 with this patch, "Configuration Error: NullPointerException " will be
1452 This commit closes this bug:
1454 https://bugzilla.gnome.org/show_bug.cgi?id=666669
1456 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1458 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1460 Rename onlineglom.properties to onlineglom.properties.sample.
1462 * src/main/resources/onlineglom.properties: Rename to:
1463 * src/main/resources/onlineglom.properties.sample:
1464 * src/main/resources/README: And add this file explaining that people
1465 should rename it back when deploying.
1467 2011-12-20 Murray Cumming <murrayc@murrayc.com>
1469 Allow choosing the translation in the .properties file.
1471 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1472 init(): Read a glom.document.locale value from the configuration file
1473 and call Glom's TransatableItem::set_current_locale() method.
1474 * src/main/resources/onlineglom.properties: Add a commented-out
1475 example of this new setting.
1477 It would be better to add &lang=de_DE to the URL, but the current
1478 libglom API does not allow us to do this easily. I am working on that.
1480 2011-12-19 Murray Cumming <murrayc@murrayc.com>
1482 Avoid a crash in parsing of token parameters.
1484 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
1485 ava: getTokenParams(): Do not crash if a parameter has a key but no
1486 value, and ignore parameters with neither.
1488 2011-12-17 Murray Cumming <murrayc@murayc.com>
1490 History token building/handling: Improve use of token parameters.
1492 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1493 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
1494 and buildParamsToken(HashMap), for use by derived classes.
1495 Make the separator private because it is no longer be needed.
1496 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1497 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
1498 instead of manual string concatenation.
1499 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
1500 of hardcoded indices and awkward splitting code.
1501 * src/main/java/org/glom/web/client/place/ListPlace.java
1502 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
1503 instead of manual string concatenation.
1504 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
1505 of hardcoded indices and awkward splitting code.
1506 This should fix bug #666420
1508 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1510 Fix a Navgiation->Navigation typo in the code.
1512 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1513 Rename processNavgiation() to processNavigation().
1515 2011-12-16 Murray Cumming <murrayc@murrayc.com>
1517 Fix a seperator->separator typo in the code.
1519 * src/main/java/org/glom/web/client/place/DetailsPlace.java
1520 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1521 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
1524 2011-12-15 Ben Konrath <ben@bagu.org>
1526 Cleanup some comments.
1528 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1530 2011-12-14 Ben Konrath <ben@bagu.org>
1532 Replace \n with <br/> for multiline text in the details view.
1534 Vertical scrollbars are added when needed as well.
1536 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1538 2011-12-14 Ben Konrath <ben@bagu.org>
1540 Specify the font for document selection links.
1542 * src/main/webapp/style.css:
1544 2011-12-14 Ben Konrath <ben@bagu.org>
1546 Fix bouncy CellTable while paging.
1548 This doesn't currently work with related list tables in unselected
1551 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1553 2011-12-14 Ben Konrath <ben@bagu.org>
1555 Revamp the appearance of the document selection page.
1557 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1558 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1559 * src/main/webapp/style.css:
1561 2011-12-13 Ben Konrath <ben@bagu.org>
1563 Set navigation button column to the smallest size possible.
1565 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1567 2011-12-13 Ben Konrath <ben@bagu.org>
1569 Change OpenButton nomenclature to NavigationButton.
1571 Using NavigtionButton makes things more generic. Classes, methods and
1572 variables have been changed.
1574 This is a rename-only refactor.
1576 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1577 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1578 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
1579 Renamed from OpenButtonCell.
1580 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1581 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1582 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1584 2011-12-12 Ben Konrath <ben@bagu.org>
1586 Remove unnecessary String argument in RelatedListTable and ListViewTable.
1588 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1589 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1590 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1591 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1593 2011-12-12 Ben Konrath <ben@bagu.org>
1595 Update variable names and comments.
1597 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1598 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1600 2011-12-12 Ben Konrath <ben@bagu.org>
1602 Properly initialize numNonEmptyRows variable to zero.
1604 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1605 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1607 2011-12-05 Ben Konrath <ben@bagu.org>
1609 Add latest mockup with HTML tables.
1611 Features of this mockup:
1613 -> HTML table for flowtable
1614 -> HTML table for flowtable column
1615 -> Example of how related lists would look
1616 -> Not using text entries for data items
1618 The current version of Online Glom doesn't use HTML tables for the
1621 This mockup has been sent to the glom-devel mailing list but it's good
1622 to have it here as well.
1624 * mockups/details-view-html-tables.html:
1626 2011-12-05 Ben Konrath <ben@bagu.org>
1628 Remove unnecessary getPrimaryKeyField() method.
1630 getPrimaryKeyFieldForTable(String) has been renamed to
1631 getPrimaryKeyField(String).
1633 * src/main/java/org/glom/web/server/database/DBAccess.java:
1634 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1635 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1637 2011-12-05 Ben Konrath <ben@bagu.org>
1639 Add string representation of TypedDataItem value to conversion error message.
1641 * src/main/java/org/glom/web/server/Utils.java: Logging the error
1642 message was extracted into its own method to avoid duplication.
1644 2011-12-05 Ben Konrath <ben@bagu.org>
1646 Add type checking to navigation primary key value creation.
1648 Create navigation primary key only if the expected type from the Glom
1649 document matches the type returned by the SQL query.
1651 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1653 2011-12-05 Ben Konrath <ben@bagu.org>
1655 Rename a couple of variables in RelatedListNavigation.
1657 This is a rename-only refactor.
1659 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1661 2011-12-05 Ben Konrath <ben@bagu.org>
1663 Move getListLayoutGroup() into getListViewLayoutGroup().
1665 This removes getListLayoutGroup(). It was only being called by
1666 getListViewLayoutGroup().
1668 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1670 2011-12-05 Ben Konrath <ben@bagu.org>
1672 Remove check for LayoutItem_Portal in list table method.
1674 This check is no longer necessary because the method isn't being used
1675 to create the LayoutItemPortal DTO.
1677 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1679 2011-12-05 Ben Konrath <ben@bagu.org>
1681 Properly support related list navigation.
1683 Navigation from the "Repository Analyzer -> Package Scans ->
1684 Dependencies" related table wasn't working because the primary key for
1685 related tables wasn't being set properly. This commit fixes the
1688 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
1689 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
1690 doesn't set the primary key properly for related list tables.
1691 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
1692 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
1693 useful for getting the primary key for list view tables and for related
1695 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1696 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1697 Move code to set the primary key for the table from the abstract
1698 ListDBAccess class to ListViewDBAccess as it's only correct for list
1700 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1701 Properly add primary key to related list tables.
1703 2011-12-02 Ben Konrath <ben@bagu.org>
1705 Properly set the horizontal alignment of fields.
1707 This fix is for both the list tables and the details view.
1709 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
1710 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
1711 to set the horizontal alignment of fields.
1713 2011-12-02 Ben Konrath <ben@bagu.org>
1715 Display currency codes in the details view.
1717 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1719 2011-12-02 Ben Konrath <ben@bagu.org>
1721 Avoid duplicate JNI call.
1723 JNI is not as efficient as pure Java and this is an easy (and small)
1726 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1727 Use previously retrieved value for whereClauseToTableName instead of
1730 2011-12-02 Ben Konrath <ben@bagu.org>
1732 Rename a couple of variables in RelatedListNavigation.
1734 This is a rename-only refactor.
1736 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1738 2011-12-02 Ben Konrath <ben@bagu.org>
1740 Indicate clearly that a mismatched primary key type is a bug.
1742 * src/main/java/org/glom/web/server/Utils.java: Change log level from
1743 warning to error. Add 'This is a bug.' to message.
1745 2011-12-02 Ben Konrath <ben@bagu.org>
1747 Update / fix some comments.
1749 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
1751 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
1753 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1754 Fix comments. Add some TODOs.
1756 2011-12-02 Ben Konrath <ben@bagu.org>
1758 Enable navigation to details view with string primary key from related list.
1760 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1761 Create a text primary key value when return type of result is
1762 java.sql.Types.VARCHAR.
1764 2011-12-02 Ben Konrath <ben@bagu.org>
1766 Use checkboxes for booleans in the details view.
1768 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1770 2011-12-01 Ben Konrath <ben@bagu.org>
1772 Improve performance of related list height calculation.
1774 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1775 Put code to calculate the expected height in a static initializer so
1776 that that it's only called once.
1778 2011-12-01 Ben Konrath <ben@bagu.org>
1780 Show related list tables in notebooks (again).
1782 Calculate the height of the related list tables so the Notebook can be
1783 set the correct height. The height of the related list table is also needed by
1784 FlowTable to be able decide how to create the layout.
1786 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
1787 and set the Portal height based on the height of the related list
1788 table and the Portal container.
1789 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1790 Add method to calculate the height of the related list tables.
1791 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1792 * src/main/webapp/style.css: Add css class for Pager. This is needed to
1793 calculate the height of the Pager widget.
1795 2011-12-01 Ben Konrath <ben@bagu.org>
1797 Use CellTable API for table property instead of setting style on Element.
1799 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1801 2011-12-01 Ben Konrath <ben@bagu.org>
1803 Make ListViewTable and RelatedListTable a consistent height.
1805 The tables are now a consistent height regardless of the contents of
1806 the table. A hidden button is added to empty rows to ensure that the
1807 height of these rows will match the height of rows with data.
1809 A navigation button column is now added to every table. The width of
1810 the navigation column is set to 0px when a RelatedListTable shouldn't
1811 have navigation buttons. This maintains the a consistent row height in
1812 tables that don't show the navigation buttons.
1814 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
1815 navigation column when not needed.
1816 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
1817 arguments for navigation button to constructor of ListViewTable.
1818 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
1819 hidden button for empty data rows.
1820 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
1821 arguments for navigation button to constructor.
1822 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
1823 create navigation buttons. Add hideNavigationButtons() method.
1824 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
1825 arguments for navigation button to constructor.
1827 2011-12-01 Ben Konrath <ben@bagu.org>
1829 Use 'visibility: hidden' in Utils.getWidgetHeight().
1831 This is better choice because hidden elements are invisible, don't
1832 respond to events and are not part of the tab order. They will,
1833 however, take up space which is required to be able to calculate the
1834 height of the widget.
1836 * src/main/java/org/glom/web/client/Utils.java:
1838 2011-12-01 Ben Konrath <ben@bagu.org>
1840 Use Utils.getWidgetHeight() in FlowTable.
1842 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
1844 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1846 2011-12-01 Ben Konrath <ben@bagu.org>
1848 Put the details css class name on the correct table column.
1850 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1852 2011-11-30 Ben Konrath <ben@bagu.org>
1854 Update for java-libglom API change.
1856 The getters and setters on FieldFormatting and NumericFormat were
1857 changed to remove the 'M'.
1859 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1861 2011-11-29 Ben Konrath <ben@bagu.org>
1863 Only allow RelatedListTables in Portals.
1865 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1867 2011-11-29 Ben Konrath <ben@bagu.org>
1869 Only create a contents panel for Portals when title is being set.
1871 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1873 2011-11-29 Ben Konrath <ben@bagu.org>
1875 Set TabLayoutPanel height based on calculated height its widgets.
1877 This is a potential fix for this bug:
1879 https://bugzilla.gnome.org/show_bug.cgi?id=665133
1881 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1883 2011-11-29 Ben Konrath <ben@bagu.org>
1885 Align details field labels and data with the Open buttons.
1887 * src/main/webapp/style.css:
1889 2011-11-29 Ben Konrath <ben@bagu.org>
1891 Remove unnecessary <div> in the Notebook widget.
1893 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
1894 method to get container FlowPanel (<div>).
1895 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
1896 initWidget() method directly on the TabLayoutPanel widget instead of
1897 Group's container widget.
1899 2011-11-29 Ben Konrath <ben@bagu.org>
1901 Don't add group titles for Portals in Notebooks.
1903 This reverts the previous patch and fixes a bug I introduced with
1904 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
1906 * src/main/java/org/glom/web/client/ui/details/Group.java:
1907 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1909 2011-11-28 Ben Konrath <ben@bagu.org>
1911 Remove unused boolean argument in Portal constructor.
1913 Just a code cleanup.
1915 * src/main/java/org/glom/web/client/ui/details/Group.java:
1916 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1918 2011-11-28 Ben Konrath <ben@bagu.org>
1920 Remove hack for glom 1.18 style glom files.
1922 * src/main/java/org/glom/web/client/ui/details/Group.java:
1923 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
1924 * src/main/java/org/glom/web/client/ui/details/Portal.java:
1926 2011-11-28 Ben Konrath <ben@bagu.org>
1928 Use Gda Value version of primary key to log result too large error.
1930 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1932 2011-11-28 Ben Konrath <ben@bagu.org>
1934 Don't use TypedDataItem.getText() for Unknown types from the URL.
1936 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1937 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
1938 instead of getText().
1939 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
1940 String field and getUnknown() method.
1942 2011-11-28 Ben Konrath <ben@bagu.org>
1944 Log an error message when the java-libglom .so is not present.
1946 The error message was being set in the exception but not logged.
1948 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1950 2011-11-28 Ben Konrath <ben@bagu.org>
1952 Ignore LayoutItem_CalendarPortals.
1954 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
1955 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
1957 2011-11-28 Ben Konrath <ben@bagu.org>
1959 Extract method for creating the LayoutItemPortal DTO.
1961 Just breaking the code up into smaller chunks.
1963 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1965 2011-11-28 Ben Konrath <ben@bagu.org>
1969 This should have been added with the refactor. Oops!
1971 * src/main/java/org/glom/web/shared/TypedDataItem.java:
1973 2011-11-28 Ben Konrath <ben@bagu.org>
1975 Create primary key value from URL string using type from Glom document.
1977 See this bug, comments 19 - 25:
1979 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
1981 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
1982 create a TypeDataItem for the primary key here when loading from a
1983 URL. Show the same string for the primary key value as was received
1984 from the URL string (when loading from a URL).
1985 * src/main/java/org/glom/web/server/Utils.java: Update method for
1986 creating the Gda Value from the TypeDataItem to properly deal with
1987 creating a Gda Value based on the Glom document type for the primary
1988 key value string when loading from a URL.
1989 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1990 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1991 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1992 Update for changed method name.
1994 2011-11-27 Ben Konrath <ben@bagu.org>
1996 Rename PrimaryKeyItem to TypedDataItem.
1998 The name PrimaryKeyItem suggests what the class should be used for.
1999 TypedDataItem is a neutral name that describes the class better.
2001 This is a rename-only refactor.
2003 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2004 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2005 * src/main/java/org/glom/web/client/Utils.java:
2006 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2007 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2008 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2009 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2010 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2011 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2012 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2013 * src/main/java/org/glom/web/server/Utils.java:
2014 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2015 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2016 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2017 * src/main/java/org/glom/web/shared/NavigationRecord.java:
2019 2011-11-25 Ben Konrath <ben@bagu.org>
2021 Improve Gda Value conversion from PrimaryKeyItem.
2023 The value from the PrimaryKeyItem is only used if its type match the
2024 type from the glom document.
2026 * src/main/java/org/glom/web/server/Utils.java:
2028 2011-11-25 Ben Konrath <ben@bagu.org>
2030 Manually check if the java-liblgom .so is visible to the JVM.
2032 It seems that Tomcat has problems when a static initializer throws an
2033 exception. This check is done before the first method call into
2034 java-libglom so that execution doesn't continue if the .so is not
2037 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2039 2011-11-25 Ben Konrath <ben@bagu.org>
2041 Improve browser configuration error messages.
2045 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2047 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2048 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2049 getConfigurationErrorMessage() method.
2050 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2051 Get and display a specific configuration error message when no Glom
2052 documents are found.
2053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2054 Implement getConfigurationErrorMessage() method. Surround configuration
2055 code in the init() method with a try/catch block. This allows the
2056 errors to be caught while keeping the servlet available to retrieve the
2057 configuration error message.
2059 2011-11-25 Ben Konrath <ben@bagu.org>
2061 Don't use Strings to hold primary key values.
2063 The primary key values are now held in a new data object
2064 (PrimaryKeyItem) that holds type information and the primary key value
2065 using the correct type.
2067 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2068 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2069 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2070 PrimaryKeyItem instead of String to hold the primary key value.
2071 * src/main/java/org/glom/web/client/Utils.java: Remove
2072 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
2073 PrimaryKeyItem based on the GlomFieldType and the DataItem.
2074 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
2075 PrimaryKeyItem instead of String to hold the primary key value. Load
2076 document selection page when the documentID has not been set correctly.
2077 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
2078 DetailsPlace -> URL and URL -> DetailsPlace conversion with
2080 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2081 Return empty string for URL instead of "null".
2082 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2083 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2084 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2085 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2086 PrimaryKeyItem instead of String to hold primary key values.
2087 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
2088 PrimaryKeyValue to a Gda Value.
2089 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2090 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2091 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2092 Replace temporary database access code that uses the PrimaryKeyValue to
2093 Gda Value conversion.
2094 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
2095 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
2096 PrimaryKeyItem instead of String.
2097 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
2098 hold primary key values.
2100 2011-11-24 Ben Konrath <ben@bagu.org>
2102 Use newly added java-libglom API to create queries.
2104 This isn't finished. I still need to stop using Strings for primary key
2105 values in the client code.
2107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
2108 libglom to use fake connections so that retrieving the query string will
2110 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2111 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2112 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2113 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2114 Use the newly added libglom sql methods and classes to create the
2115 query. Add temporary hack to convert primary value strings to Gda
2118 2011-11-23 Ben Konrath <ben@bagu.org>
2120 Don't explicitly set the height of Portals.
2122 See comments 6 - 10 of this bug for details:
2124 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
2126 * src/main/java/org/glom/web/client/ui/details/Portal.java:
2128 2011-11-23 Ben Konrath <ben@bagu.org>
2130 Use an HTML table instead of CSS for the FlowTable layout.
2132 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
2133 GWT's FlexTable to implement the FlowTable.
2134 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
2136 2011-11-18 Ben Konrath <ben@bagu.org>
2138 Add boolean example to HTML table mockup.
2140 * mockups/details-view-html-tables-text-entries.html:
2142 2011-11-17 Ben Konrath <ben@bagu.org>
2144 Ensure the pager buttons are always visible for related lists.
2146 To accomplish this, I've turned off text wrapping in the list view and
2147 related list tables for both the header and data text. The related list
2148 table now has a fixed layout so the it doesn't overflow its container.
2149 This is required to ensure that the cell text is clipped when it
2150 overflows the cell and an ellipsis is added to the right side of the
2151 cell when text is clipped.
2153 A fixed table layout for the related list table in the details view
2154 seems what we want for the details view anyway, so the side-effect is
2157 The ellipsis will only be displayed in Firefox >= 7.
2161 https://bugzilla.gnome.org/show_bug.cgi?id=662930
2163 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
2164 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
2165 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
2167 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2168 Set the 'table-layout: fixed' CSS property to the related list table.
2169 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
2170 'white-space: nowrap;' CSS property on both the list view and the
2171 related list tables.
2173 2011-11-16 Ben Konrath <ben@bagu.org>
2175 Rework the fix for empty notebook tab labels.
2177 Setting the empty group titles with its name caused problems for the
2178 details layout. Instead of using libglom's
2179 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
2180 to the client when the title is empty. This allows the Notebook to use
2181 the name when the title is empty without affecting anything else.
2183 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2184 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2186 2011-11-16 Ben Konrath <ben@bagu.org>
2188 Set group titles with name when title is empty.
2190 This fixes a problem with an empty notebook tab label in the Lesson
2191 Planner document. The forth tab in the notebook should be "Internet":
2193 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
2195 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2196 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
2199 2011-11-16 Ben Konrath <ben@bagu.org>
2201 Remove whitespace from the configured username properties.
2203 This assumes that usernames won't have whitespace at the beginning
2204 or end. But I think this is a reasonable assumption.
2206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2207 String.trim() to remove the whitespace from the username properties.
2209 2011-11-15 Ben Konrath <ben@bagu.org>
2211 Add details view mockup with HTML tables and text entries.
2213 This is from the attachment on this bug:
2215 https://bugzilla.gnome.org/show_bug.cgi?id=663109
2217 * mockups/details-view-html-tables-text-entries.html:
2219 2011-11-15 Ben Konrath <ben@bagu.org>
2221 Add space between the columns of the flow table.
2225 https://bugzilla.gnome.org/show_bug.cgi?id=662918
2227 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
2228 space between columns in the flow table.
2230 2011-11-15 Ben Konrath <ben@bagu.org>
2232 Add backup files to the .gitignore.
2234 * .gitignore: Ignore files that end with ~.
2236 2011-11-09 Ben Konrath <ben@bagu.org>
2238 Use latest release of gwt-log.
2240 Gwt-log releases are now being submitted to the maven central
2241 repository so manual installation of the jar is no longer required.
2243 * pom.xml: Update version and groupId of gwt-log dependency.
2245 2011-10-31 Ben Konrath <ben@bagu.org>
2247 Don't use GWT numeric formatting to override the glom currency formatting.
2249 Currencies are now displayed like they are in Glom. See this bug:
2251 https://bugzilla.gnome.org/show_bug.cgi?id=646216
2253 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
2255 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
2256 currency code to constructor and set it when the cell is rendered.
2257 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2258 currency code to the constructor of the NumericCell.
2260 2011-10-27 Ben Konrath <ben@bagu.org>
2262 Require the latest release of java-libglom (1.17.4).
2266 2011-10-26 Ben Konrath <ben@bagu.org>
2268 Add style to Notebook that matches current theme.
2270 It's not the best style in the world but it's better than the default.
2272 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
2273 padding at the bottom of the child widgets.
2274 * src/main/webapp/style.css: Add style for the Notebook.
2276 2011-10-26 Ben Konrath <ben@bagu.org>
2278 Move servlet initialization code to overridden init method.
2280 This is half of the solution to getting proper error messages
2281 displayed when configuration errors occur. Here's the relevant bug:
2283 https://bugzilla.gnome.org/show_bug.cgi?id=662792
2285 The rest of the solution involves surrounding the init method with a
2286 try/catch block and setting a global variable with the error /
2287 exception. A new async method should be created to retrieve and display
2288 the error message / exception.
2290 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
2291 code from constructor to init method adding exceptions as needed.
2293 2011-10-26 Ben Konrath <ben@bagu.org>
2295 Add script to monitor and restart tomcat if required.
2297 * utils/check-and-recover-tomcat.py: New file.
2299 2011-10-26 Ben Konrath <ben@bagu.org>
2301 Display the correct number of data items in the pager.
2305 https://bugzilla.gnome.org/show_bug.cgi?id=661441
2307 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2308 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2309 The implementation is the same for both tables: Keep track of the
2310 number of non-empty rows and fire and RowCountChangeEvent after the data has
2312 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
2313 custom Pager class that subclasses SimplePager to handle displaying
2314 the correct number when empty rows have been added.
2316 2011-10-26 Ben Konrath <ben@bagu.org>
2318 Correct error in previous commit.
2320 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
2321 eventBus parameter from listView.setCellTable().
2323 2011-10-26 Ben Konrath <ben@bagu.org>
2325 Fix error in TODO comment.
2327 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2329 2011-10-24 Ben Konrath <ben@bagu.org>
2331 Create Notebook widgets to the details view.
2333 This isn't finished just yet - I still need to create a reasonable
2334 style to match the current theme.
2336 * src/main/java/org/glom/web/client/Utils.java: Add method for
2337 calculating the height of a widget. This is used in the Notebook class.
2338 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2339 new constructor method in Group.
2340 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
2341 method for creating child widget that can be used by subclasses
2342 like Notebook. New constructor that allows disabling the group
2343 titles - Notebooks don't set a group title for their child groups.
2344 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
2345 to make Notebooks using GWT's TabLayoutPanel.
2346 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
2347 constructor that allows disabling the group titles.
2348 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
2349 LayoutItemNotebook DTO.
2350 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
2351 DTO for Notebooks. It's just an empty class for now but we might need
2352 it to transfer some specific information in the future.
2354 2011-10-21 Ben Konrath <ben@bagu.org>
2356 Add navigation buttons to related list tables.
2358 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2359 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2360 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
2361 method getSuitableRecordToViewDetails() for getting the table name
2362 and primary key value for related list navigation buttons.
2363 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2364 private cell renderer class to get the navigation information for
2365 related list tables from the server. Extract the navigation
2366 processing code from the details cell navigation and use it for the
2367 related list navigation as well.
2368 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
2369 cell renderer class for the details open buttons. This was needed
2370 because the related list navigation buttons and the list view
2371 navigation buttons need to react differently when clicked.
2372 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
2373 the onEnterKeyDown() method because it's now overriden in the
2374 subclasses that are specific to the related list tables and the list
2376 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
2377 the vertical size a little because the buttons add a bit of vertical
2378 space to table. This is not a perfect solution because the vertical
2379 size of with table fewer than 5 rows will be a little smaller.
2380 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
2381 changes in how navigation buttons are handled.
2382 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
2383 getSuitableRecordToViewDetails() using the new RelatedListNavigation
2384 database access object.
2385 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
2386 to find the portal for a given relationship name from
2387 RelatedListDBAccess. Add method to find a primary key field for a
2389 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2390 Move code to find the portal for a given relationship name to
2392 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2393 New file: database access object for getting the related list
2394 navigation information (the table name and the primary key value).
2395 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
2396 DTO for transferring a table name to navigate to and a primary key
2398 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2399 boolean and getter/setter to specifies if the related list should add
2402 2011-10-24 Murray Cumming <murrayc@murrayc.com>
2404 Use the master branch of java-libglom
2406 * pom.xml: Depend on java-libglom 1.19 instead.
2408 This is the master branch. See also the libglom-1-18 branch.
2410 2011-10-11 Ben Konrath <ben@bagu.org>
2412 Enable the open navigation button when the data has been set.
2414 This avoids having active buttons that don't do anything when the data
2417 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2419 2011-10-11 Ben Konrath <ben@bagu.org>
2421 Use IsWidget interface for FlowTableItem.
2423 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
2424 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
2426 2011-10-11 Ben Konrath <ben@bagu.org>
2428 Remove GWT styling from open button in details view.
2430 There are still some issues with how the details cell is arranged but
2431 this should be made to match Glom 1.20. I'm going to leave fixing this
2432 until I have Glom 1.20 up and running.
2434 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
2435 style name on open button.
2436 * src/main/webapp/style.css: Move and edit details-navigation class.
2437 Re-arrange some classes to make them appear in the same order as the
2440 2011-10-07 Ben Konrath <ben@bagu.org>
2442 Update to GWT 2.4.0.
2444 * .gitignore: Ignore new cache directory.
2445 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
2446 * pom.xml: Change GWT and maven plugin to 2.4.0.
2447 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
2449 * src/main/java/org/glom/web/client/ClientFactory.java:
2450 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2451 * src/main/java/org/glom/web/client/OnlineGlom.java:
2452 Update source for API changes.
2453 * utils/build-onlineglom-war.sh: Remove cache directory before the
2456 2011-10-07 Ben Konrath <ben@bagu.org>
2458 Add navigation buttons in the details view.
2460 This isn't finished but I thought I'd commit what I have as it's a
2461 pretty good start. I still need to:
2463 1. Change the style so that it fits better into the current theme
2464 2. Adjust the details cell to expand as much as possible.
2466 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2467 click handlers to navigation buttons in the DetailsCells. Create a
2468 refreshData() method to get just the data from the server without the
2470 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2471 Update the tableSelector and browser title when the table name
2472 changes without using the tableSelector.
2473 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2474 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2475 getDetailsCells() to getCells(). Update variable names.
2476 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
2477 method to set click handler on navigation button. Rename a few
2478 variables. Add navigation buttons where needed.
2479 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
2480 variables and methods.
2481 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
2482 navigation boolean and navigation table as required in the
2483 LayoutItemField DTO.
2484 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
2485 variables for navigation along with getter/setter methods.
2487 2011-10-07 Ben Konrath <ben@bagu.org>
2489 Rename Field to DetailsCell.
2491 This is a refactor-only commit. No functionality has been added or
2494 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2495 Update variable and method names.
2496 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2497 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
2498 variable and method names.
2499 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2501 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
2502 variable and method names.
2504 2011-10-07 Ben Konrath <ben@bagu.org>
2506 Create separate methods for layout and data the details view.
2508 This is a refactor-only commit. No functionality has been added or
2511 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
2512 private methods: setData(), createLayout().
2514 2011-10-07 Ben Konrath <ben@bagu.org>
2516 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
2518 This is part of a change to get navigation buttons in the details view
2519 but it should have been done this way from the start.
2521 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2522 for method name change in TableSelectionView.
2523 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2524 Create TableChangeEvent and set the browser title using the
2525 TableSelectionView API.
2526 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2527 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2528 Change getSelectedTable() to getSelectedTableName(). Add
2529 getSelectedTableTitle().
2531 2011-10-07 Ben Konrath <ben@bagu.org>
2533 Use primaryKeyValue naming convention in constructor of DetailsPlace.
2535 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2537 2011-10-07 Ben Konrath <ben@bagu.org>
2539 Update TableChangeEvent to use newTableName naming convention.
2541 This makes the class more consistent with GWT naming conventions.
2543 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2544 Update for method name change in TableChangeEvent.
2545 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
2546 for method name change in TableChangeEvent.
2547 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
2548 newTableName variable and getter method. Make toDebugString()
2551 2011-09-30 Ben Konrath <ben@bagu.org>
2553 Disable the pager in the list tables when the data row count is less than the minimum.
2555 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2556 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2558 2011-09-30 Ben Konrath <ben@bagu.org>
2560 Add empty rows to the end of related list and list view tables.
2562 I also extracted the cell rendering classes from the ListTable because
2563 the code was becoming a little crazy with all the anonymous inner
2564 classes. My plan is to use these cell rendering classes in the details
2565 view as well so this refactor will be needed for that change.
2567 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
2568 set the row count in related list tables if the data has more rows
2569 than the minimum number of rows visible.
2570 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
2571 row count in list view tables if the data has more rows than the
2572 minimum number of rows visible.
2573 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
2574 for rendering TYPE_BOOLEAN cells. The code was extracted from the
2576 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
2577 for rendering TYPE_NUMERIC cells. The code was extracted from the
2579 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
2580 class for rendering cells with buttons in list views. The code was
2581 extracted from the ListTable class.
2582 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
2583 for rendering TYPE_TEXT cells. The code was extracted from the
2585 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2586 Add empty rows to the end of the data if required. Implement
2587 ListTable.getMinNumVisibleRows().
2588 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
2589 cell renderer code to public classes. Return null in
2590 Column.getValue() for empty rows. Add new abstract method:
2591 getMinNumVisibleRows(). Move code to set the row count of the list view
2592 table to ListViewImpl.
2593 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
2594 empty rows to the end of the data if required. Implement
2595 ListTable.getMinNumVisibleRows().
2598 2011-09-27 Ben Konrath <ben@bagu.org>
2600 Use GWT.log for client-side debugging statements.
2602 These are optimized out when deployed so I should have used this method
2603 in the first place. These statements will eventually be replaced with some sort
2604 of notification in the browser.
2606 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2607 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2608 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2609 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2610 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2612 2011-09-27 Ben Konrath <ben@bagu.org>
2614 Put tableselector on the right, back to list link on right.
2616 The idea is that the table selector is acting like a label for the
2617 currently displayed table so it should be placed below the document title. This
2618 puts the table title in a similar position to where it is in Glom.
2620 * mockups/details-contacts.html:
2621 * mockups/details-projects.html:
2622 * mockups/listview-contacts.html:
2623 * mockups/listview-projects.html:
2624 * mockups/style.css:
2625 Update mockups to match how the interfaces currently look.
2626 * src/main/webapp/style.css: Swap positions of backlink with the table
2627 selector. Add some space on the left side of the table selector to
2628 line things up with the document title.
2630 2011-09-27 Ben Konrath <ben@bagu.org>
2632 Add field colouring to details view.
2634 This change re-works how field colouring works. The colour formatting
2635 information is now set to the client with the layout information instead of
2636 with the data. This eliminates the need to send the same colour strings for
2637 data in list view column when colour information is set.
2639 In order to set an alternate colour for negative numeric values, the
2640 number is now sent to client and formatted with the GWT NumberFormat class.
2642 This change also fixes:
2644 https://bugzilla.gnome.org/show_bug.cgi?id=659752
2646 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
2647 internationalization framework which is needed for client side numeric
2649 * src/main/java/org/glom/web/client/Utils.java: New file for some
2650 client static utility methods.
2651 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
2652 the DataItem object to the Field class. Use a utility method to
2653 create the foreignKeyValue string.
2654 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
2655 alignment and text colours in the constructor. Add setData(DataItem)
2656 method. Remove setText(String) method.
2657 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2658 colour information to GlomTextCell. Create and use GlomNumberCell for
2659 rendering numbers. Use utility method to get the string for the
2660 primary key of the key provider. Re-work how the horizontal alignment
2662 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2663 formatting to layout information. Methods for converting the libglom
2664 formatting information were moved from DBAccess.
2665 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
2666 numeric formatting (it's now done on the client side). Don't set text
2667 colours in DataItem. Move libglom formatting conversion methods to
2669 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
2670 getters/setters for text colour information.
2671 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
2672 for transferring the libglom NumericFormat information to the client.
2673 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
2674 and getters/setters for: GlomNumericFormat, background colour and
2675 foreground colour strings.
2677 2011-09-26 Ben Konrath <ben@bagu.org>
2679 Simplify code that iterates through the LayoutGroup.
2681 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2683 2011-09-26 Ben Konrath <ben@bagu.org>
2685 Accept Eclipse formatting for OnlineGlomServiceAsync.
2687 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2689 2011-09-26 Ben Konrath <ben@bagu.org>
2691 Don't use the ListDBAccess classes to get the primary key layout information.
2693 This was causing a bug where the wrong index for the hidden primary key
2694 was being sent to the client.
2696 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
2697 primary key while creating the LayoutGroup DTO. Create a
2698 LayoutItemField DTO for hidden primary keys. Don't use the
2699 RelatedListDBAccess because it was only used for getting the primary
2701 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
2702 access modifier from public to protected for getPrimaryKeyField() and
2703 getPrimaryKeyLayoutItemField().
2704 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
2705 abstract method getExpectedResultSize() because RelatedListDBAccess
2706 doesn't have enough info to implement it.
2707 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2708 Remove @Override for getExpectedResultSize().
2709 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2710 Remove method getExpectedResultSize().
2712 2011-09-23 Ben Konrath <ben@bagu.org>
2714 Log which layout (list or details) the ignored item is from.
2716 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2718 2011-09-23 Ben Konrath <ben@bagu.org>
2720 Remove annotations that turn off code formatting in DataItem.
2722 * src/main/java/org/glom/web/shared/DataItem.java:
2724 2011-09-23 Ben Konrath <ben@bagu.org>
2726 Rename GlomField to DataItem and update associated methods.
2728 This is a rename-only refactor. No functionality has been added or
2731 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2732 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2733 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2734 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2735 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2736 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2737 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2738 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2739 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2740 * src/main/java/org/glom/web/server/database/DBAccess.java:
2741 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2742 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2743 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2744 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2745 * src/main/java/org/glom/web/shared/DataItem.java:
2746 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
2747 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2749 2011-09-23 Ben Konrath <ben@bagu.org>
2751 Rename GlomDocument to DocumentInfo and update associated methods.
2753 This is a rename-only refactor. No functionality has been added or
2756 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2757 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2758 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2759 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2760 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2761 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2762 * src/main/java/org/glom/web/shared/DocumentInfo.java:
2764 2011-09-20 Ben Konrath <ben@bagu.org>
2766 Require java-libglom 1.17.3.
2768 This picks up the fix for the seg fault problem with the Scenes table
2769 in the Openismus Film Manager example.
2773 2011-09-20 Ben Konrath <ben@bagu.org>
2775 Change the way sort clause is added for primary key when no sort clause is requested.
2777 The primary key is now added to the LayoutFieldVector (fieldsToGet)
2778 before the sort clause is created. When a sort clause is not requested, the
2779 sort clause is created by finding the primary key in the LayoutFieldVector
2782 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2784 2011-09-20 Ben Konrath <ben@bagu.org>
2786 Log error message if no documents are found in the configured directory.
2788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
2789 Extract the glom file extension string to a private static final class
2790 variable (mostly as syntactic sugar). Accept a minor formatting change.
2791 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
2792 the example glom.document.directory configuration property to make it
2793 more clear that it can any directory, not just the home directory.
2795 2011-09-18 Ben Konrath <ben@bagu.org>
2797 Add related lists to details view.
2799 The related list table has support for paging and sorting just like the
2800 table in the list view.
2802 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
2803 SQL queries for the related list tables.
2804 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2805 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2806 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2807 Rename getList methods to getListView and add comments. Remove
2808 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
2809 it being unused. Add methods: getDetailsLayoutAndData(),
2810 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
2811 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2812 Create the layout and set the data for the fields in one async call
2813 instead of two. Create related lists where appropriate.
2814 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
2815 for method name changes in OnlineGlomService.
2816 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2817 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
2818 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
2820 * src/main/java/org/glom/web/client/ui/ListView.java:
2821 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
2822 tableName from setCellTable(). Create a ListViewTable instead of
2824 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
2825 represent a data field in the details view.
2826 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
2827 from addDetailsCell() to Field class. Keep track of the Fields and
2828 Portals in the details view.
2829 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
2830 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
2831 and add a method to get it. Add method to set the contents of the
2833 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2834 New class for related list tables. This class has the data provider
2835 for the related list table.
2836 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
2837 abstract class which is the base class for the ListViewTable and the
2839 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2840 New class for list view tables. This class has the data provider for
2841 the list view table.
2842 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
2843 methods for related list tables. Add more information to the
2844 LayoutItemField and LayoutItemPortal DTOs.
2845 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2846 Remove debugging print statement.
2847 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2848 Remove debugging print statements. Add primary key field to SQL count
2850 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2851 Remove unnecessary LayoutFieldVector parameter from
2852 getResultSizeOfSQLQuery() method.
2853 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2854 New class for related list table database access.
2855 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
2856 class that is a wrapper DTO for details view layout and data.
2857 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2858 new 'fromField' string to this DTO.
2859 * src/main/webapp/style.css: Remove bottom margin and override top
2862 2011-09-15 Ben Konrath <ben@bagu.org>
2864 Breakup the OnlineGlomServiceImpl class to make it more manageable.
2866 This sets things up to make it easier to add the data retrieval for
2867 related lists (portals). No user noticeable changes were made with
2870 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
2871 class has the code to retrieve the layouts and access the
2872 database using the new database helper classes.
2873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2874 Most of the functionality has been removed from this class. This
2875 class now represents the public interface for the client side
2876 code. It also deals with configuring the servlet and cleaning
2877 things up when the servlet is stopped.
2878 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
2879 of static methods into this utility class.
2880 * src/main/java/org/glom/web/server/database/DBAccess.java:
2881 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2882 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2883 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2884 These classes have the database retrieval code. The class hierarchy
2885 has been setup to make it easy to reuse code for similar
2888 2011-09-06 Ben Konrath <ben@bagu.org>
2890 Create separate classes for list table code and the data provider.
2892 As part of this refactor, I also split up the code a bit to make it
2895 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
2896 table code to two new classes (below).
2897 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
2898 with code from ListViewImpl.
2899 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
2900 New file with code from ListViewImpl.
2902 2011-09-06 Ben Konrath <ben@bagu.org>
2904 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
2906 This fixes the LayoutItemPortal DTO to match the libglom layout object
2909 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
2911 2011-09-01 Ben Konrath <ben@bagu.org>
2913 Set title of Portals in the Details View.
2915 * pom.xml: Bump required version of java-libglom to 1.17.1.
2916 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
2917 widget creation to its own class. Add comments to constructor.
2918 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
2919 The code is mostly from the Group class with the title now set.
2920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
2921 title of Portal. Update some comments. Fix some code formatting.
2923 2011-09-01 Ben Konrath <ben@bagu.org>
2925 Remove TODO comment for the flow table column width.
2927 The flow table column width is working correctly and doesn't need to be
2928 changed. See this mailing list post for more info:
2930 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
2932 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
2934 2011-08-27 Ben Konrath <ben@bagu.org>
2936 Add document title (database name) to top of the browser page.
2938 I added the document title to the TableSelecitonView but that will
2939 change if / when we add a view that doesn't require table selection.
2941 * mockups/details-contacts.html:
2942 * mockups/details-projects.html:
2943 * mockups/listview-contacts.html:
2944 * mockups/listview-projects.html:
2945 * mockups/style.css: Add document title to mockups to keep things
2947 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
2948 sizes to account for the document title.
2949 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2950 Set the document title when it has been retrieved from the server.
2951 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2952 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
2953 and implement setDocumentTitle(String) method.
2954 * src/main/webapp/style.css: Add ID for document title style.
2956 2011-08-25 Ben Konrath <ben@bagu.org>
2958 Add NavigationType enum to LayoutItemPortal DTO.
2960 This is the start of adding support for Portals to the Details View.
2962 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
2963 LayoutItem_Portal.navigation_type enum from libglom to
2964 LayoutItemPortal.NavigationType enum.
2965 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2966 NavigationType enum, field for storing the NavigationType and getter
2969 2011-08-25 Ben Konrath <ben@bagu.org>
2971 Implement the flow table layout in the Details View.
2973 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
2974 FlowTable to Group to account for the renamed class.
2975 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
2976 File. This is a container widget that implements the Glom details view
2977 flow table behaviour.
2978 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
2979 org/glom/web/client/ui/FlowTable.java.
2980 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
2981 so that the size of the subgroups are a closer match to the size of
2982 the Glom subgroups. This makes the flowtable layout match the layout
2983 in Glom for the Music Collection example file.
2985 2011-08-16 Ben Konrath <ben@bagu.org>
2987 Create container element for LayoutItemPortal in Details View.
2989 This will help me develop the layout for the FlowTable.
2991 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
2992 fieldPanel variable to detailsCell.
2994 2011-08-15 Ben Konrath <ben@bagu.org>
2996 Set the height of the data element in the Details View.
2998 I changed the InlineLabels (text in a span element) to Labels (text in
2999 a div element) so that I could set the height of the details-data
3000 elements instead of the details-cell parent elements. This allows the
3001 the details-data element to display the correct height if style is
3002 applied that shows the height.
3004 This change has the added benefit of allowing the order of the labels
3005 and data elements to be changed for right-to-left languages.
3007 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
3008 InlineLabels to Labels.
3009 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
3010 InlineLabels to Labels. Set the height of the data element.
3011 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
3012 multiline text height in the Formatting DTO.
3013 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
3014 for multiline height along with getter and setter methods.
3015 * src/main/webapp/style.css: Adjust style to account for the change
3016 from span elements to div elements in the details cell.
3018 2011-08-15 Ben Konrath <ben@bagu.org>
3020 Make the List View appearance match the mockups.
3022 It doesn't match exactly but it's much better than it was.
3024 * mockups/listview-contacts.html: Remove unused css classes.
3025 * mockups/listview-projects.html: Remove unused css classes.
3026 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
3027 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
3028 for mainPanel instead of VerticalPanel (table). Set style name on
3029 CellTable. Set style name on Details column. Right-align Details
3031 * src/main/webapp/style.css: Adjust properties to match the mockups.
3033 2011-08-12 Ben Konrath <ben@bagu.org>
3035 Add better support for subgroups in the details view.
3037 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
3038 changed FlowTable constructor.
3039 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
3040 support for subgroups and subgroup-titles.
3041 * src/main/webapp/style.css: Add CSS class for subgroups and
3044 2011-08-12 Ben Konrath <ben@bagu.org>
3046 Return the top level LayoutGroup title.
3048 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3050 2011-08-11 Ben Konrath <ben@bagu.org>
3052 Make the TableSelector header match the mockup.
3054 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
3055 the layout panel. Properly lineup the table selection header with
3056 the list and details view.
3057 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
3058 margin around the details view.
3059 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3060 Rename listBox variable to tableSelector. Set id for the style sheet.
3061 Use a FlowPanel instead of a HorizontalPanel.
3062 * src/main/webapp/style.css: Add properties to make the TableSelector
3063 box match the mockups.
3065 2011-07-13 Ben Konrath <ben@bagu.org>
3067 Update install script for java-libglom version change.
3069 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
3072 2011-07-13 Ben Konrath <ben@bagu.org>
3074 Add support sub-group in the details view.
3076 I also removed the code that special-cased the default details view
3079 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
3081 I still have to make a proper flowtable.
3083 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3084 Don't special-case default details view layout.
3085 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
3086 addLayoutField() as I'm going to use it.
3087 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
3088 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
3090 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
3091 extracted from DetailsViewImpl.GroupPanel. Add support for
3093 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
3094 column count when getting the details layout.
3096 2011-07-12 Ben Konrath <ben@bagu.org>
3098 Set browser title with database and table titles.
3100 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3101 Set the browser title when the table changes and when the activity
3103 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
3104 title when retrieving document info (the GlomDocument object).
3105 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
3106 with getter and setter methods. Remove unused convenience constructor.
3107 Use default code formatting.
3109 2011-07-12 Ben Konrath <ben@bagu.org>
3111 Ignore LayoutItemPortals in the details view.
3113 I added a new DTO for the LayoutItemPortal so that I can ignore it in
3116 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
3117 LayoutItemPortal layout objects.
3118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
3119 LayoutItemPortal objects when retrieving the details layout.
3120 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
3121 file. This is an empty class and just used to get type information for
3124 2011-07-12 Ben Konrath <ben@bagu.org>
3126 Use java-libglom 1.17.0.
3130 2011-07-11 Ben Konrath <ben@bagu.org>
3132 Remove "Table:" label from table selector.
3134 This matches a recent change in the Glom UI.
3136 * mockups/details-contacts.html:
3137 * mockups/details-projects.html:
3138 * mockups/listview-contacts.html:
3139 * mockups/listview-projects.html: Remove the "Table:" label from the
3141 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3143 2011-07-11 Ben Konrath <ben@bagu.org>
3145 Add main groups to the details view.
3147 This makes things look a little nicer in the details view. The next step
3148 is to implement the flowtable.
3150 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
3151 resources from the standard gwt css theme. Standard.css is now
3152 included in OnlineGlom.html so that the online glom css rules have
3153 precedence over the gwt theme.
3154 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
3155 the whole LayoutGroup to the DetailsView instead of just the titles.
3156 * src/main/java/org/glom/web/client/ui/DetailsView.java:
3157 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
3158 details layout with a helper class (GroupPanel). I might extract this
3159 class when I make the full flowtable.
3160 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
3161 string as default so I don't have to worry about NPEs when processing
3163 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
3164 note beside OnlineGlom.gwt.xml above).
3165 * src/main/webapp/style.css: Add default font-size to body to override
3166 the font-size set by the standard theme. Don't use h2 tags for
3167 group-title. Create new details-cell class.
3169 2011-07-08 Murray Cumming <murrayc@murrayc.com>
3171 ConfiguredDocument: Set the port number too.
3173 * src/main/java/org/glom/web/server/ConfiguredDocument.java
3174 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
3175 Glom document. Presumably this worked sometimes so far because there is a
3176 default port number.
3178 2011-07-08 Murray Cumming <murrayc@murrayc.com>
3180 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
3182 * src/main/java/org/glom/web/server/ConfiguredDocument.java
3183 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
3184 correct, though we should throw an exception too.
3186 2011-07-08 Murray Cumming <murrayc@murrayc.com>
3188 Fix a addDocuemnt typo.
3190 * src/main/java/org/glom/web/shared/Documents.java
3191 (Documents.addDocuemnt): Rename to addDocument().
3192 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
3193 (OnlineGlomServiceImpl.getDocuments): Adapt.
3195 2011-07-08 Murray Cumming <murrayc@murrayc.com>
3197 Slightly improved log output when connection fails.
3199 * src/main/java/org/glom/web/server/ConfiguredDocument.java
3200 (ConfiguredDocument.setUsernameAndPassword):
3201 We don't know for sure if it' the username/password that's wrong, so
3202 rephrase the message.
3203 Also ouput the exception message, though it's generic in this case.
3205 2011-07-08 Ben Konrath <ben@bagu.org>
3209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
3210 added braces to a one line if statement because the Eclipse formatter
3211 was getting confused.
3213 2011-07-07 Ben Konrath <ben@bagu.org>
3215 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
3217 These should really be two separate tasks but I counldn't get things to
3218 work with GWT 2.2.0 and Eclipse 3.7.
3222 * .settings/org.eclipse.jdt.core.prefs:
3223 * .settings/org.eclipse.jdt.ui.prefs:
3224 * .settings/org.eclipse.ltk.core.refactoring.prefs:
3225 * .settings/org.eclipse.m2e.core.prefs:
3226 Add new config files. Update current files. Remove references to the
3227 webtools plugins as we're not using any of the webtools features.
3228 * .gitignore: Add logs directory which is created when running with
3230 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
3231 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
3232 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
3234 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
3236 2011-07-07 Murray Cumming <murrayc@murrayc.com>
3238 onlineglom.properties: Add explanatory comments.
3240 * src/main/resources/onlineglom.properties: Also change the default user
3241 from ben to someuser, to avoid the risk of people thinking we just
3242 stupidly hard-coded a locale path, when they see that on stderr or in a log.
3244 2011-06-28 Ben Konrath <ben@bagu.org>
3246 Use filename in Log for incorrect passwords.
3248 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
3249 getFileName(String) method to get the filename from the URI.
3251 2011-06-28 Ben Konrath <ben@bagu.org>
3253 Add the table name to the URL token for the ListPlace.
3255 This makes things consis