Commit Graph

12632 Commits

Author SHA1 Message Date
Artur Signell
cc3041f933 Maximize/restore icons for Chameleon, Liferay, Runo (#3400)
Change-Id: Ibbeed5b5925442f966841c0f5d2ea3dbfe9007bb
2013-04-05 07:15:08 +00:00
Artur Signell
874c76e4a5 Do not push only meta data to the client (#11490)
Change-Id: I589ede89583be90e99fbed6fe5c0c6c1ac4d7c0a
2013-04-05 07:10:48 +00:00
Artur Signell
8466d23c5e Made vaadin-server jar not depend on Atmosphere (#11492)
Change-Id: Ib57ce4f4336df2806f58a5d65bda61907e76591a
2013-04-05 07:02:10 +00:00
Artur Signell
cf4ebc2a50 Use fallback transport if websockets is not supported by server (#11491
Applied fix from GitHub Atmosphere project: 367a88d340

Change-Id: Ieae27cab5a8637886a66f923184b52ce1e0ed661
2013-04-05 07:01:34 +00:00
Artur Signell
e09a33d013 Improved logging to be able to debug push related problems (#111)
Change-Id: I630f453891a8a43a4e8ee8d796c9b2c2e0b97254
2013-04-05 07:00:36 +00:00
Artur Signell
9b7b7edc5f Fixed compilation error
Change-Id: I033d9950298f574e2200913a7b1307101bad0878
2013-04-04 23:01:47 +03:00
michaelvogt
f980667fdf WAI-ARIA functions for Tree (#11389)
All to navigate the tree with an assisitve device

Change-Id: I531cefc95d7a720caf69aca579549e5a497ad586
2013-04-04 16:15:00 +00:00
Artur Signell
3ee3b4926b Wrap the atmosphere request instead of reusing an old request which might no longer be available (#11489)
Change-Id: I0623b056a657c341ec367d0249e5f66840119f87
2013-04-04 18:29:45 +03:00
Artur Signell
1de6598dcf Include atmosphere javascript files into vaadin-server (#111)
Change-Id: Ib5db34e9d09649b72dc824d491f699e4f6b7891b
2013-04-04 16:54:44 +03:00
Pekka Hyvönen
d937722318 Maximize Restore for Window #3400
Change-Id: I164ae83bd6cf98f7a3d7e76d8e717a56e8cb5183
2013-04-04 12:52:55 +00:00
Johannes Dahlström
69def694d5 Server push (#111)
* Asynchronous bidirectional communication
* Use Atmosphere as a backend
* Use websockets if available, fallback to HTTP streaming
* Push mode (disabled, manual, automatic)
  * Configurable via servlet parameter pushMode
  * Disabled: The default; regular AJAX communication
  * Manual: Need explicit UI.push() call
  * Automatic: push all UIs in session when lock released
* UI.push()
  * Push pending state and RPC to client asynchronously
  * Must hold session lock when invoking

Change-Id: Idb5978ac81f7ff1e66665df4e3f96e29e4c419d4
2013-04-04 12:46:42 +00:00
Artur Signell
008d51dba3 Renamed Calendar tests to be more consistent with other tests (#11079)
Change-Id: I3c057c6c6ebf3cad982b5f8d2821b579f7aa57ea
2013-04-04 12:24:43 +03:00
Artur Signell
74703a72ad Fixed issue with IE8 showing loading indicator when it should not (#7448)
Change-Id: I07fd3f3051d3114e419a3a75a7a102c6ea52ab53
2013-04-04 12:08:38 +03:00
Artur Signell
e97d8f42b6 Updated javadoc to mention runSafely in addition to the manual locking pattern
Change-Id: Ia0ddf6149641b8dc609c5c6e53ad569c5bc9c555
2013-04-03 17:05:57 +00:00
Artur Signell
134bc904a6 Write JSON response to a buffer instead of directly to the output stream (#11424, #11156)
* Allows safe abortion of JSON output and writing a critical notification instead
* Unifies json writing for init request and other UIDL requests
* Ensures headers are written before the response

Change-Id: Idd8acb672aac8716b727701d6c057bbe58f50993
2013-04-03 15:45:49 +00:00
Artur Signell
b6928fde24 Reworked fix for ignoring /APP/ (#11192)
* Fixed potential NPE by using existing helper method
* Pass /APP/ urls also to session handlers as at least GlobalResourceHandler requires it
* Fixed test to test /APP/ instead of /APP

Change-Id: I8d913e6a5509c63f8e47813fce5751f5279ed4fc
2013-04-03 18:37:59 +03:00
Artur Signell
3c479dd00b Refactored how all requests are handled by VaadinServlet and VaadinPortlet (#11192)
* Handling is now based on a list of RequestHandlers in VaadinService
* Request handling logic has been moved to VaadinService
* Users can customize the list by adding own (service level) request handlers
* For users specific request handlers you can still use the request handlers in VaadinSession
* Deprecated RequestType - all handlers are given the opportunity to handle a request until one of them chooses to handle it. RequestType makes no sense as it does not tell which handler will handle the request.
* Removed serveStaticResource which has never been used

Change-Id: Ia7d088535e46430ca8adf631d3f1dd944b9d51e2
2013-04-03 13:01:43 +00:00
michaelvogt
ad290f8c65 Fix for CheckBox and Layout (#11407)
Change in CheckBoxConnector led to wrong enabled behaviour and addition
to top coordinate to prevent scrollbars with VPopupCalendar

Change-Id: I381ab7c8a605535280ae58716181ef4c346997f7
2013-04-03 11:39:17 +00:00
Artur Signell
d94f2cc6c3 Added example on how to get time displayed in the browser (#9033)
Change-Id: I349120b3e1ead2428009b7a0d77ec30a775eb34a
2013-04-03 11:01:59 +00:00
Artur Signell
29013c34b6 Do not clean connectors before client rpc is sent (#11192, #7891)
Change-Id: I9b0f6f3fb48cad8f870bfa9ccfe99a5725f24b8e
2013-04-03 13:27:39 +03:00
John Ahlroos
217ba18e53 Integrate Calendar into core #11079
Everything else integrated, except TB3 tests (ticket #11090, old TB2 tests used instead)

Change-Id: If1700d7680a6c0a45f84d6e3c7b80e6536da78c8
2013-04-03 08:03:37 +00:00
John Ahlroos
1d25d6d642 Removed unnessesary pixel calculations from AbsoluteLayout #11177
Change-Id: Ib3f8b48e5712e895abab159616aa1b2a1ec589c8
2013-04-03 07:57:13 +00:00
John Ahlroos
bde44c29bd Implemented changes to CSS injection based on API review #5500
Change-Id: I2bed5f5a5c3cfc6b97e94cbd218bb06f446c7325
2013-04-03 07:55:39 +00:00
Artur Signell
d7bfb3a99c Merge commit '5d8b1862b63d32070b4084d7e49cae1f4bc66953'
Change-Id: I329cab3a4a039cd41486353d41d678abf29cb6a9
2013-04-03 10:24:00 +03:00
Artur Signell
2b5f6ccc1e Backported fix of minimal (empty hashmap) leak on redeploy (#9993)
Change-Id: I9933c21ab8449378269c577c9622d75586590e45
Merge: no
2013-04-03 10:14:53 +03:00
Artur Signell
ce2df6d103 Enable setting loading indicator delays from the server (#7448)
* Refactored LoadingIndicator to a separate class on client side to enable customization and to remove clutter from ApplicationConnection

Change-Id: I12e94294beed9c65a5710bdfe2486bc0f1b92bd9
2013-04-03 06:42:55 +00:00
Artur Signell
9586a30b64 Made is possible to configure tooltip on the server (#8065)
Change-Id: I35af6df1dfa75ef1de1268eb630fc0f4b9306170
2013-04-03 06:42:36 +00:00
Artur Signell
3cc90e37d8 Fixed minimal (empty hashmap) memory leak on redeploy (#9993)
Change-Id: I2b3f83220070f1f46730d956abb24ba9edf02f20
2013-04-03 06:25:29 +00:00
michaelvogt
4c5c1e0cfe WAI-ARIA field corrections (#11407)
Implementation of suggestions from usage test by an screen reader user

Change-Id: If02512f3d4ee60e3e115023af9d9e600dc11321a
2013-04-02 14:10:58 +00:00
Artur Signell
d454bf66d9 Show session expired instead of throwing exception (#4252)
Change-Id: Ic3ba079d91293fd804c3c95d6cc19fc6e3cf82cc
2013-04-02 16:18:19 +03:00
Artur Signell
fb30fffdcb Enable setting default alignment for VerticalLayout, HorizontalLayout, GridLayout (#11421)
Change-Id: I56b14a6a027dc700748f2bd7219b47e1134bb56a
2013-04-02 13:34:22 +03:00
Leif Åstrand
dd157ae121 Use updated CurrentInstance API (#9945)
Change-Id: I6576c4be4d6c909ce95e8b48904529477ae755f9
2013-04-02 10:26:40 +00:00
Artur Signell
cbd3badb92 Fixed locking issue in tests
Change-Id: I3706cfa46f82615b8cc677bcaaa207d5ab05bf40
2013-04-02 10:25:58 +00:00
Artur Signell
6323e6e3f1 Exclude ColorPickerPreview as it has no no-arg constructor
Change-Id: I245aa609b2cce17cd5116be1b80f2b9c437b975d
2013-04-02 13:25:24 +03:00
Artur Signell
80808482c3 Fixed locking and cleaned up error handling in FileUploadHandler (#10569)
Change-Id: I6ed72b866ee4ca28957726f8dbe0bda6316e8685
2013-04-02 10:54:23 +03:00
Artur Signell
d0c7dabbb1 Fixed locking problem with serviceException (#10569)
Change-Id: I363ac3508f558769a79098572cb268cadfc4b1e2
2013-04-02 07:49:30 +00:00
Artur Signell
507a520f0c Fixed locking in RequestHandlers and documented that RequestHandlers are called without locking (#9945)
* Added SynchronizedRequestHandler which locks the session for the whole request
* Made request handlers which do not do do heavy IO implement SynchronizedRequestHandler
* Fixed locking for GlobalResourceHandler, ConnectorResourceHandler, PublishedFileHandler

Change-Id: I0e7b442a9392828f1930685f194dc4f898d0f525
2013-04-02 10:47:49 +03:00
Artur Signell
d4fcfdf7aa Ensure session is locked during cleanup (#10569)
* At the same time ensures request timer handling is done while session is locked (#10108)

Change-Id: Ifc36e1ac66d02e25fe98616319c014137bd94c10
2013-04-02 10:40:33 +03:00
Artur Signell
7dcccb0175 Correctly set thread locals when session times out (#11361, #10995)
Change-Id: I5051cef344f03af276be24a28471a6d6c15b0da6
2013-04-02 07:39:28 +00:00
Artur Signell
d7708c5cc6 Moved request start/end handling to VaadinService (#11400)
* VaadinService.requestStart/requestEnd is called for all requests, including static resource requests

Change-Id: Ic19f33f069d0b4f4127fdafc7b5c3a2fa1a3b5dc
2013-04-02 07:39:00 +00:00
Artur Signell
f23f2533c6 Redefined UI.runSafely so it throws an exception if session can't be locked (#11219)
Change-Id: I300bfb25c4040d0df18d3a11594efe2ce6b0679d
2013-03-31 13:09:15 +00:00
Artur Signell
af4fdcda59 Convert value if locale changes and field has converter (#11419)
Change-Id: Icb33ee2db9e36d4282c19b46203054a2da4abdbd
2013-03-31 11:01:47 +00:00
michaelvogt
833b117b96 WAI-ARIA button (#11380)
Accessibility functions for Button

Change-Id: I12ddfd8232d4d35135add1cb4406bfdc20b758f2
2013-03-28 16:03:45 +00:00
Artur Signell
a92166902c Refactored VaadinPortlet to have same structure as VaadinServlet (#10569)
Change-Id: Ia012fd3b200a97b394c18dca549d048695b88a43
2013-03-28 14:14:48 +00:00
Artur Signell
37527d9c5e Verify lock is held while updating VaadinSession or connector state (#9515)
Change-Id: Iceacb7dae6c4f433ccf747fca5a89514622baba4
2013-03-28 16:13:17 +02:00
Artur Signell
1a9c7d1bdb Changed VaadinSession locking to be based on a session attribute (#8894)
Locking of a VaadinSession is now done in VaadinService using the underlying HTTP session. This enables locking of the VaadinSession even before it has been created.

Change-Id: I815d08d1fb74a1d0905c58b190bb10aa2161a834
2013-03-28 16:13:11 +02:00
Artur Signell
600f6e51b4 Convenience methods for running code in the UI or VaadinSession context (#11219)
Change-Id: If31a965f925ca2bedb25c712b83ccb070a9e71a0
2013-03-28 13:50:05 +00:00
Artur Signell
a2a8666118 Added Page.reload (#10250)
Change-Id: I8ec7edbc370388d8b36a474a8845e846395f26ed
2013-03-28 07:27:01 +00:00
Johannes Dahlström
5e77672975 Removed CommunicationManager and PortletCommunicationManager
* Moved AbstractCommunicationManager abstract methods
  getThemeResourceAsStream and createBootstrapHandler to VaadinService
* Made ACM non-abstract and renamed to LegacyCommunicationManager
* Lifted anonymous inner BootstrapHandler subclasses into named public classes

Change-Id: I31739ce8a506d572e75ca8cd5509be215e01693d
2013-03-27 16:15:22 +00:00
Johannes Dahlström
3c351deadf Remove synchronous AJAX support (#11254)
SJAX was used in Vaadin 6 only for window close events,
and those are not supported in Vaadin 7.

Change-Id: I3ca7137d5a16252f63051314743e0bee2890caf1
2013-03-27 16:06:12 +00:00