-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReleaseNotes.html
3233 lines (2801 loc) · 117 KB
/
ReleaseNotes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<style type="text/css">
dt { font-weight: bold; }
h3 { text-decoration: underline; }
dd { margin-top: 10px; margin-bottom: 10px; }
dd p { margin-top: 0px; }
dd div { margin: 10px 0px; }
</style>
<title>Wt Release notes</title>
</head>
<body>
<h1>Wt Release notes</h1>
This file lists important notes on migrating existing applications to
newer version of Wt. It lists changes in the library that may break
the way you build Wt, the way you configure Wt or the Wt API and
behaviour.
<h2>Release 3.2.2 (July, 23 2012)</h2>
<p>
This release contains mostly bug and feature improvements, but
also a rewrite of the layout managers in Wt (WBoxLayout and
WGridLayout), and this comes with some changes in (in most cases
previously undefined) behaviour.
</p>
<h3>A) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1WSslInfo.html">WSslInfo</a>
</dt>
<dd>
Class containing information on a client-side certificate that may
have been configured for a SSL connection, and which can be used
for authentication (accessible from
<a href="classWt_1_1WEnvironment.html">WEnvironment</a>).
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1weak__ptr.html">Wt::Dbo::weak_ptr</a>
</dt>
<dd>
A weak variant of Wt::Dbo::ptr which is used to implement
One-to-One relations (see also
<a
href="group__dbo.html#ga00a060d5f4764f673948989f21837548">Wt::Dbo::hasOne()
</a>).
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
Rewrite of <a href="classWt_1_1WLayout.html">WBoxLayout, WGridLayout</a>
</dt>
<dd>
<p>
The layout managers have been reimplement, to address various
issues with the old implementation, including API (in particular the wonked
side-effects of AlignTop | AlignJustify) inconsistencies and bugs.
</p>
<p>The new implementation no longer uses tables when JavaScript
is available, but instead using JavaScript-based layout with
absolute positioning. The table-based implementation is still kept
for plain HTML sessions (and progressive bootstrap). The code now
uses exactly the same layout logic for both horizontal and
vertical layout (but giving precedence to horizontal layout) and
should be much more consistent (and perhaps also more
performant). However, because of the many complexities and
problems with the old code (inconsistent behaviour), you may see
issues while upgrading. Please see the "Non-backwards compatible
changes" below for hints on how to deal with this.</p>
</dd>
<dt>
<a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a>
</dt>
<dd>
<p>
A drag & drop mime-type can now be specified on a per-item
basis using a new <a
href="group__modelview.html#ga0ae864e12320f9f89172735e075ed068">ItemDataRole</a>,
and the mime-type for the entire selection is computed
from these individual mime-types.
</p>
</dd>
<dt>
<a href="classWt_1_1WInteractWidget.html">WInteractWidget</a>
</dt>
<dd>
A new method <a href="classWt_1_1WInteractWidget.html#a60423e777cffa89e6d1373fd25754099">setMouseOverDelay()</a> allows to specify a delay for
generating the mouseWentOver() event.
</dd>
<dt>
<a href="classWt_1_1Auth_1_1AbstractUserDatabase.html">Auth::AbstractUserDatabase</a>
</dt>
<dd>
A new method <a href="classWt_1_1Auth_1_1AbstractUserDatabase.html#a5067e569748cfad8c3356735a33aa10f">deleteUser()</a> was added, which deletes a user and all
related authentication information.
</dd>
<dt>
<a href="classWt_1_1Chart_1_1WCartesianChart.html">Chart::WCartesianChart</a>
</dt>
<dd>
A new method <a href="classWt_1_1Chart_1_1WCartesianChart.html#aa6c394c4d9a801d088b7b02c3fd66b28">setAxisPadding()</a> was added, which configures the
amount of adding between the chart area and the axes.
</dd>
<dt>
<a href="classWt_1_1Chart_1_1WDataSeries.html">Chart::WDataSeries</a>
</dt>
<dd>
A new method <a href="classWt_1_1Chart_1_1WDataSeries.html#ab0dbcd9bcbc0f39a042eb36aa930def4">setCustomMarker()</a> was added which allows the use of a
user-defined path for the markers. A new role
MarkserScaleFactorRole was added which allows overriding the
marker size based on item model data.
</dd>
</dl>
<h3>C) Non-backwards compatible changes</h3>
<dl>
<dt>
<a href="classWt_1_1WLayout.html">WBoxLayout, WGridLayout</a>
</dt>
<dd>
While migrating old code to this version, here are some tips:
<ol>
<li><p>Alignment flags</p>
<p>Previously, specifying an alignment for a widget in a
layout, or for the layout when set to a container, had a double
meaning. Not only would it implement the given alignment but also
revert to passively letting HTML layout decide the layout of the
contents, and adjust the parent (layout respectively container)
accordingly. This had all kinds of side effects such as not
propagating the size of layout-size-aware widgets and quirks in
the vertical alignment.</p>
<p><a href="classWt_1_1WContainerWidget.html#aff9884c8efdf90974077e96bcb1701db">WContainerWidget::setLayout(layout, alignment)</a> has been
deprecated and will be removed from a future release. This call
was almost always used to let the parent container resize to fit
the size of the contained children, instead of fitting children
in the parent container. This behaviour is now
automatically deduced based on an (empty) size of the parent
container. In case this heuristic does not work, then setting a
non-0 maximum size on the container using <a href="classWt_1_1WWebWidget.html#a9b83805a5b8090d296ae4b5939fc9d11">setMaximumSize()</a> will
act as a trigger, with the added benefit that the parent will only
be allowed to resize up to a specified maximum size.</p>
<p>An alignment specified in
<a href="classWt_1_1WBoxLayout.html#a7c1ec58e25d0b7add93f5f4342844db6">W(Box/Grid)Layout::addWidget(widget, stretch, alignment)</a> now
purely affects the alignment but has no other side effects. The
perferred and minimum sizes of a child widget or layout is now
always taken into account.</p>
</li>
<li><p>Child item sizes</p>
<p>The layout algorithm is now implemented entirely in
JavaScript, and is more gentle when dealing with a combination
of cells (or columns/rows) that have a stretch factor and others
that don't. Previously, a minimum (or fixed) size would be used
to layout items that do not have a stretch factor. This had for
example as a consequence that a WText would be narrowed down to its
minimum width by using word wrapping throughout. Now, the
preferred size is used for a child item, and shrinking to a minimum
size only if necessary.</p>
<li><p>Progressive bootstrap</p>
A layout in the first page of an application rendered using
progressive bootstrap will no longer fully upgrade to a full
JavaScript version, but will result in a hybrid (between
table-based and JavaScript-based). If it doesn't work out as you'ld
expect, then you should reconsider the use of progressive bootstrap,
or the use of a layout manager in your first page.
</li>
</ol>
</dd>
</dl>
<hr>
<h2>Release 3.2.1 (March 16, 2012)</h2>
<p>
This release contains mostly bug and feature improvements.
</p>
<h3>A) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1WFormModel.html">WFormModel</a>
</dt>
<dd>
A model class for forms. These models are used in Wt::Auth as the
basis for RegistrationModel and AuthModel, and allow a more
straight-forward customization of the underlying behavior of these
forms.
</dd>
<dt>
<a href="classWt_1_1WReadOnlyProxyModel.html">WReadOnlyProxyModel</a>
</dt>
<dd>
A proxy model class which allows to share a source model
read-only between multiple sessions.
</dd>
<dt>
<a href="classWt_1_1WTemplateFormView.html">WTemplateFormView</a>
</dt>
<dd>
A WTemplate-based standard view implementation that works in conjunction
with WFormModel.
</dd>
<dt>
<a href="classWt_1_1Auth_1_1AuthModel.html">Auth::AuthModel</a>
</dt>
<dd>
A model that implements authentication logic.
</dd>
<dt>
<a href="classWt_1_1Auth_1_1FacebookService.html">Auth::FacebookService</a>
</dt>
<dd>
An OAuth-2.0 based authentication service implementation for
Facebook.
</dd>
<dt>
<a href="namespaceWt_1_1Utils.html">Wt::Utils</a>
</dt>
<dd>
This namespace contains a number of utility functions that we
found useful in projects using Wt. They relate mostly to
lower-level encoding and decoding functions: base64-, hex-, html-,
and url-encoding/decoding.
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
<a href="classWt_1_1WApplication.html">WApplication</a>
</dt>
<dd>
A new method, WApplication::bind(), is useful in combination with
WServer::post() to avoid posting to a method of a deleted object,
leveraging the same life-time tracking as with signal connections.
</dd>
<dt>
<a href="namespaceWt_1_1Render.html">Render library</a>
</dt>
<dd>
A large number of performance improvements, especially for table
layout and rendering.
</dd>
<dt>
<a href="classWt_1_1Chart_1_1WAxis.html">Chart::WAxis</a>
</dt>
<dd>
DateScale and DateTimeScale axes have improved auto-configuration of
limits and timesteps, now taking into account the resolution.
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1Transaction.html">Dbo::Transaction</a>
</dt>
<dd>
We've modified the default transaction outcome: a transaction will
now automatically commit(), unless the transaction is being
destroyed (goes out of scope) because an exception is being
thrown, in which case the transaction will rollback(). Previously,
an uncomitted transaction would always rollback() on destruction.
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1ptr.html">Dbo::ptr</a>
</dt>
<dd>
Added a session() method, returning the session with which the
session has been associated.
</dd>
<dt>
Shipped SHA-1 implementation.
</dt>
<dd>
We now ship a SHA-1 implementation with Wt and this thus relaxes
the need for OpenSSL to implement WebSockets and
Auth::SHA1HashFunction.
</dd>
</dl>
<h3>C) Non-backwards compatible changes</h3>
<dl>
<dt>
<a href="classWt_1_1WTextEdit.html">WTextEdit</a>
</dt>
<dd>
Due to backwards incompatiblity of IE9, we now require the latest
version of TinyMCE (3.5b1 or later).
</dd>
<dt>
<a href="classWt_1_1Auth_1_1AuthWidget.html">Auth::AuthWidget</a>
</dt>
<dd>
A number of API methods that configure and access the configuration
were moved to the new Auth::AuthModel class which can be accessed from
the widget using model().
</dd>
<dt>
<a href="classWt_1_1Auth_1_1AbstractPasswordService_1_1AbstractStrengthValidator.html">Auth::AbstractPasswordService::AbstractStrengthValidator</a>
</dt>
<dd>
The API was simplified to be less unorthodox: validate() now
returns a Result that contains all the information for it.
</dd>
<dt>
<a href="classWt_1_1Http_1_1Client.html">Http::Client</a>
</dt>
<dd>
We've changed the signature of the parseUrl() utility function to
parse the URL into a URL structure instead of a collection of
string parameters.
</dd>
</dl>
<hr>
<h2>Release 3.2.0 (November 29, 2011)</h2>
<p>
This release contains a number of new modules, as well as the usual
batch of <a href="http://redmine.emweb.be/versions/show/13">bug
fixes</a> and small feature improvements.
</p>
<p>
In this release we also change the WValidator API in a way that it
is likely to break existing applications.
</p>
<h3>A) New namespaces:</h3>
<dl>
<dt>
<a href="group__json.html">Wt::Json (JSON handling)</a>
</dt>
<dd>
This namespace contains classes (Object, Value, Array) which map
the JSON types in C++. It also contains a parser to deserialize
JSON. A writer to serialize to JSON hasn't been added yet.
</dd>
<dt>
<a href="group__mail.html">Wt::Mail (SMTP protocol)</a>
</dt>
<dd>
This namespace contains a Client to send mail messages. It is
currently offering only limited functionality w.r.t. SMTP protocol
handling, but contains enough functionality to send standards
compliant plain-text/HTML mails, with full support for unicode.
</dd>
<dt>
<a href="group__auth.html">Wt::Auth (Authentication)</a>
</dt>
<dd>
<div>This namespace contains model and view classes for
authentication. It implements password authentication using best
practices, email verifiation, remember-me tokens, and provisions
support for federated login with an implementation of OAuth 2.0
for authentication using third party identity providers.</div>
<div>We expect that the API may still evolve, especially with
respect to OAuth 2.0 (which is a draft protocol), and its use
for OpenID Connect, which is the main use case for OAuth within
the authentication module.</div>
</dd>
</dl>
<h3>B) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1WException.html">WException</a>
</dt>
<dd>
We have cleaned up the use of exceptions within Wt. We have
converted numerous cases where an exception used to be thrown to
error logging, if the exception was thrown to indicate an API
problem. When the API problem is not resulting in a corrupt state,
we now log the error instead of terminating the session. All other
cases now use an exception that implements WException. This does
not affect situations where a std::exception was advertised in the
API.
</dd>
<dt>
<a href="classWt_1_1WIOService.html">WIOService</a>
</dt>
<dd>
<div>
Previously, boost::asio was used only in the built-in httpd as a
portable asynchronous I/O reactor implementation. We have now
moved this into the Wt library itself, where it is now used
instead of a dedicated thread pool for dispatching requests (and
other server events), and where it is also used for asynchronous
I/O by e.g. the Http::Client.
</div>
<div>
The WIOService specializes a boost::asio::service, and integrates
the thread pool that runs the service.
</div>
</dd>
<dt>
<a href="classWt_1_1WStringStream.html">WStringStream</a>
</dt>
<dd>
This is a utility class that we have used since long in Wt. It is
a more efficient replacement for std::stringstream, with mostly a
compatible API (at least for our purposes). For our purposes it is
typically a factor of two or more faster.
</dd>
<dt>
<a href="classWt_1_1Http_1_1Client.html">Http::Client</a>,
<a href="classWt_1_1Http_1_1Message.html">Http::Message</a>
</dt>
<dd>
<div>We have added an implementation of a Http(s) client. The client
is intended for consuming web services in Wt, and handles GET or
POST requests. It is not suitable (yet) for large responses, since
it buffers the entire response internally.</div>
<div>The client uses asynchronous I/O, using the WIOService that is
found in the current WServer instance.</div>
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1backend_1_1Firebird.html">Dbo::Firebird</a>
</dt>
<dd>
<div>Lukasz Matuszewski contributed a Firebird backend
implementation, thanks !</div>
</dd>
</dl>
<h3>C) Main improvements:</h3>
<dl>
<dt>
<a href="classWt_1_1WAbstractItemView.html">WAbstractItemView</a>
</dt>
<dd>
Added a setHeaderWordWrap() method which configures header text
word wrapping, and changed setHeaderAlignemnt() so that it now
allows to change both the horizontal and vertical alignment. This
replaces the previously interwoven API for both features using the
multiLine parameter in setHeaderHeight(), which has been
deprecated. The rendering of the header items has been
reimplemented, simplified, and cleaned up in the process, avoiding
rendering problems on IE browsers.
</dd>
<dt>
<a href="classWt_1_1WApplication.html">WApplication</a>
</dt>
<dd>
Two new methods, deferRendering() and resumeRendering() can be
used to defer the rendering phase in response to the current
event-loop request. This is useful for situations where you are
waiting for an asynchronous operation to complete, but want to
handle this synchronously in the user-interface (i.e. blocking the
interface until the operation completes). While this is not a good
idea in general, it may be useful if you can guarantee that the
event will arrive within an acceptible time (e.g. 1 second). This
effectively stalls the response to the current request, but avoids
blocking threads in the process.
</dd>
<dt>
<a href="classWt_1_1WDialog.html">WDialog</a>
</dt>
<dd>
Added setClosable(), which adds a close icon into the title bar.
</dd>
<dt>
<a href="classWt_1_1WFormWidget.html">WFormWidget</a>
</dt>
<dd>
We have cleaned up the use of exceptions within Wt. We have
converted numerous cases where an exception used to be thrown to
error logging, if the exception was thrown to indicate an API
problem. When the API problem is not resulting in a corrupt state,
we now log the error instead of terminating the session. All other
cases now use an exception that implements WException. This does
not affect situations where a std::exception was advertised in the
API.
</dd>
<dt>
<a href="classWt_1_1WLogger.html">WLogger</a>
</dt>
<dd>
<div>
We have reorganized the logging within Wt. Internally, a number
of macros are now used for logging, with as default
implementation our own (simple) logger, but which can be
redefined to use instead another logging framework of your
choice, as some have rightfully requested.
</div>
<div>
But we've also improved our logger so that it now can be
configured to filter only certain information, based on type and
scope. This is mostly useful for debuggin and development of Wt
itself, since it allows us to switch on debugging output, in a
fine-grained way, in a debug build.
</div>
<div>Finally, a new global function has been added (Wt::log()) which
selects an appropriate logger for logging and is more convenient
than WApplication::log() which required an application instance.
</div>
</dd>
<dt>
<a href="classWt_1_1WTemplate.html">WTemplate</a>
</dt>
<dd>
<div>Arguments to bound functions are now parsed and passed to
the resolveString() methods.</div>
<div>Two new constructs have been added: conditions and
functions. Conditions allow certain parts of a template to be
skipped or included based on a bound condition. Functions are
useful to automatically resolve certain variables, two built-in
functions are implemented: one to resolve strings in a message
resource bundle ("tr"), and another to resolve the id of a bound
widget ("id").
</div>
</dd>
<dt>
<a href="classWt_1_1Dbo_1_1collection.html">Dbo::collection<T></a>
</dt>
<dd>
We've added front() methods that return the first element.
</dd>
<dt>
Built-in httpd connector
</dt>
<dd>
We have expanded the WebSockets implementation to cover newer
versions of the WebSockets protocol (draft): next to 00, we now
also support 07, 08 and 13 protocols (with draft-17 semantics).
</dd>
<dt>
Configuration
</dt>
<dd>
On UNIX-like platforms, and using the built-in httpd connector,
SIGHUP is caught in the WServer::waitForShutdown() utility function,
and the configuration file (wt_config.xml) is reread.
</dd>
<dt>
Several security improvements
</dt>
<dd>
<dl>
<dt>DoS mitigation</dt>
<dd>We have added two measures to prevent DoS attacks that try
to exhaust the server by spawning sessions. This is in
particular a risk when deploying using the progressive bootstrap
method, since then a plain HTML session can be spawned with a
single request.
<ul>
<li>Plain sessions may be limited to constitute only a
fraction of the total number of sessions. This is configured
using the <plain-ajax-sessions-ratio-limit>
configuration option.</li>
<li>Ajax sessions need to confirm their "intelligence" by
solving a puzzle which requires them to properly parse the
(ever-changing) JavaScript and HTML.</li>
</ul>
</dd>
<dt>Compromised session ID risk reduction</dt>
<dd>
A compromised session ID no longer can be used to hijack that
session.
<ul>
<li>A full page refresh (using the session ID to rerender
the current application state) is no longer allowed unless
both client IP address and user-agent are unchanged. To
still enable page refresh in this situation, you may
configure the use of a cookie which can be used to confirm
the original browser (although that cookie will not be
used for session tracking), using the
<session-id-cookie> setting.</li>
<li>
The session ID cannot be used to POST events to an Ajax
session, since these require proof of other ever-changing
context specific information, notably a pageId and ackId.
</li>
</ul>
</dd>
</dl>
</dd>
</dl>
<h3>D) Non-backwards compatible changes</h3>
<dl>
<dt>
Build options
</dt>
<dd>The HTTP_WITH_SSL option has been removed, and is now replaced
by WT_WITH_SSL -- OpenSSL is now a dependency of Wt inherited by
the httpd.
</dd>
<dt>
<a href="classWt_1_1WValidator.html">WValidator</a>
</dt>
<dd>
We broke the validate() method, to return a new WValidator::Result
instead of WValidator::State. The main improvement is that the
validation may also return a text which contains information on
why validation failed. This makes the API consistent with the
client-side API, and obviously much more useful. It will break
existing application that call validate() or have reimplemented
validate() in a custom validation class.
</dd>
<dt>
<a href="classWt_1_1Test_1_1WTestEnvironment.html">WTestEnvironment</a>
</dt>
<dd>
This class has moved to a pseudo-connector library
(libwttest). This was needed to be able to use asynchronous I/O
(such as Http::Client) in test cases, which rely on a WIOService
fournished by a WServer instance.
</dd>
</dl>
<hr>
<h2>Release 3.1.11 (September 23, 2011)</h2>
<p>
This release
contains <a href="http://redmine.emweb.be/versions/show/12">many
bug fixes</a> and a few new features.
</p>
<h3>A) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1WLink.html">WLink</a>
</dt>
<dd>
This class unifies the different link types used in Wt, in a
single value class. Depending on the context, a link may refer to
a URL, a resource, or an internal path. We've updated the API
throughout to replace the function overloads for these different
cases with a single usage of WLink, simplifying the API (but don't
worry, we left the old methods, albeit depricated).
</dd>
<dt>
<a href="classWt_1_1WMediaPlayer.html">WMediaPlayer</a>
</dt>
<dd>
A media player has been added which provides a unified framework
for playing audio and video, and which deals with cross-browser
issues (chosing a suitable implementation per browser). We've also
renamed WHTML5Audio, WHTML5Video, and WHTML5Media to WAudio,
WVideo and WAbstractMedia respectively (since well, everything
will eventually be HTML5, no ?).
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
<a href="classWt_1_1WResource.html">WResource</a>,
<a href="classWt_1_1Http_1_1ResponseContinuation.html">Http::ResponseContinuation</a>
</dt>
<dd>
Currently, you can already stream the output of a big resource in
little chunks, using a continuation to resume sending the next
part. We've now added API methods
(WResourceContinuation::waitForMoreData() and
WResource::haveMoreData()) to allow a resource to suspend its
response because it is currently lacking more data, to continue
later when new data is available (and without tying up a thread).
</dd>
<dt>
<a href="classWt_1_1WDialog.html">WDialog</a>
</dt>
<dd>
Added an option setResizable() which puts a resize handle in the
bottom right corner.
</dd>
<dt>
<a href="classWt_1_1WPopupMenu.html">WPopupMenu</a>,
<a href="classWt_1_1WPopupMenuItem.html">WPopupMenuItem</a>
</dt>
<dd>
Added a triggered() signal, and an option to automatically cancel
the popup menu when the mouse leaves the menu (after a
delay). We've also added the possibility to link a popup menu item
with a WLink, and the option to make the item which has a submenu
item also itself selectable.
</dd>
<dt>
Dbo::Session
</dt>
<dd>
The load() method has an additional, optional parameter, to force
rereading the copy from the database.
</dd>
<dt>
Dbo::collection<C>
</dt>
<dd>
Added a count() method which uses a query to determine whether the
collection contains an element.
</dd>
<dt>
Test::WTestEnvironment
</dt>
<dd>
Added dialogExecuted() and popupExecuted() methods which allow to
interact with a reentrant eventloop from a test plan.
</dd>
</dl>
<h3>C) Non-backwards compatible changes</h3>
The item data roles InternalPathRole and UrlRole have been removed,
and replaced by a LinkRole (which contains a WLink value instead).
<h3>D) Deprecated API</h3>
With the introduction of WLink, the following API is being deprecated
(although it can be argued that some of these may be kept for
convenience):
<ul>
<li>
WAbstractArea::setRef(): use WAbstractArea::setLink() instead.
</li>
<li>
WAbstractArea::ref(): use WAbstractArea::link() instead.
</li>
<li>
WAbstractArea::setResource(): use WAbstractArea::setLink() instead.
</li>
<li>
WAbstractArea::resource(): use WAbstractArea::link() instead.
</li>
<li>
WAnchor::setRef(): use WAnchor::setLink() instead.
</li>
<li>
WAnchor::ref(): use WAnchor::link() instead.
</li>
<li>
WAnchor::setResource(): use WAnchor::setLink() instead.
</li>
<li>
WAnchor::resource(): use WAnchor::link() instead.
</li>
<li>
WAnchor::setRefInternalPath(): use WAnchor::setLink() instead.
</li>
<li>
WImage::setImageRef(): use WImage::setImageLink() instead.
</li>
<li>
WImage::imageRef(): use WImage::imageLink() instead.
</li>
<li>
WImage::setResource(): use WImage::setLink() instead.
</li>
<li>
WImage::resource(): use WImage::link() instead.
</li>
<li>
WStandardItem::setInternalPath(): use WStandardItem::setLink() instead.
</li>
<li>
WStandardItem::internalPath(): use WStandardItem::link() instead.
</li>
<li>
WStandardItem::setUrl(): use WStandardItem::setLink() instead.
</li>
<li>
WStandardItem::url(): use WStandardItem::link() instead.
</li>
</ul>
The following classes have been renamed, and the old name is being
deprecated:
<ul>
<li>
WHTMLMedia is now WAbstractMedia.
</li>
<li>
WHTMLVideo is now WVideo
</li>
<li>
WHTMLAudio is now WAudio
</li>
</ul>
<hr>
<h2>Release 3.1.10 (July 8, 2011)</h2>
<p>
This release contains a mix of new features and bug fixes
</p>
<h3>A) New classes:</h3>
<dl>
<dt>
<a href="classWt_1_1WAnimation.html">WAnimation</a>
</dt>
<dd>
We have added support for animations to show or hide widgets (used
in <a href="classWt_1_1WWidget.html#a66bdda41220267a8c7ff9865996e2675">WWidget::setHidden()</a>,
and <a href="classWt_1_1WStackedWidget.html">WStackedWidget</a>). These
animations will only be used when the browser supports CSS3
animations (at the moment of writing that includes latest Firefox,
Chrome and Safari releases).
</dd>
<dt>
<a href="classWt_1_1WStreamResource.html">WStreamResource</a>
</dt>
<dd>
Dmitriy Igrishin factored this out of the WFileResource since most
of its functionality (continuations, range support) could be
generalized to streaming from a std::istream.
</dd>
</dl>
<h3>B) Main improvements:</h3>
<dl>
<dt>
Allowing multiple WServer instances.
</dt>
<dd>
Apparently for no good reasons at all, some singletons were still
around which prevented you from instantiating
multiple <a href="classWt_1_1WServer">application servers</a>. Now
you can (but only using the built-in httpd) instantiate multiple
servers side by side in the same process, which may server the
same or different web applications over different ports. A feature
example (<tt>multiple_servers</tt>) shows how that works.
</dd>
<dt>
Internal path encoding in WTemplate and WText</a>
</dt>
<dd>
<div>
The
new <a href="classWt_1_1WTemplate.html#aeee888e560c519ac0e33bfc1ebb315e2">setInternalPathEncoding()</a>
method will, if needed, enable reencoding of <a> anchors
which reference internal paths consistent with how in the
current session internal paths need to be dealt with (which
depends on whether the browser supports Ajax and HTML5 History).
</div>
<div>
Since this requires an additional XML parsing step (but the
rapidxml parser that is used is ... rapid !), it is off by
default.
</div>
</dd>
<dt>
<a href="classWt_1_1WWApplication.html">WApplication::findWidget()</a>
</dt>
<dd>
Like WWidget::findWidget(), but on the whole application,
including widgets outside the WApplication::root().
</dd>
<dt>
<a href="classWt_1_1WWApplication.html">WApplication::changeSessionId()</a>
</dt>
<dd>
Generates a new session ID for the application. This is useful to prevent
session fixation attacks by changing the session ID when a user has
authenticated successfully.
</dd>
<dt>
<a href="classWt_1_1WResource.html">WResource::setDispositionType()</a>
</dt>
<dd>
This method allows to specify how the browser should preferably
show a (non-HTML) resource.
</dd>
<dt>
<a href="classWt_1_1WTable.html">WTable</a>
</dt>
<dd>
Methods were added
to <a href="classWt_1_1WTable.html#a239d85781509ff321eb964af042bcf57">move
a row</a>
or <a href="classWt_1_1WTable.html#a0670b90a05a6c0176c773bf8766a5bf2">a
column</a>. In addition we added methods
to <a href="classWt_1_1WTableRow.html">WTableRow</a>
and <a href="classWt_1_1WTableColumn.html">WTableColumn</a> for
accessing cells in the given row or column.
</dd>
<dt>
<a href="classWt_1_1WTextEdit.html">WTextEdit</a>
</dt>
<dd>
Various improvements to allow more flexible access to TinyMCE
settings on a per-instance basis.
</dd>
<dt>
<a href="classWt_1_1WWidget.html">WWidget::setToolTip()</a>
</dt>
<dd>
An additional argument was added which may specify the use of
XHTML tooltips, which are implemented using a <div>.
</dd>
<dt>
Dbo::collection<T>
</dt>
<dd>
Make insert() and erase() also work for a collection involved in a
1-N relation
</dd>
<dt>
Dbo::ptr<C>
</dt>
<dd>
Improved modify() behaviour returns a proxy object which marks the
the object dirty also from its destructor, avoiding situations where
the transaction is flushed during a modification and remainig changes
are forgotten.
</dd>
<dt>
Dbo::Dbo<C>
</dt>
<dd>
Added setDirty() and self() methods.
</dd>
<dt>
Dbo::backend::Sqlite3
</dt>
<dd>