]> source.dussan.org Git - vaadin-framework.git/log
vaadin-framework.git
11 years agoActivate tab stop automatically for modal windows (#12344)
michaelvogt [Wed, 21 Aug 2013 12:09:19 +0000 (14:09 +0200)]
Activate tab stop automatically for modal windows (#12344)

Change-Id: Icef7a3bb3729ebd407fe53af334f93e1e5c0a7cb

11 years agoMerge commit '5fb05e84c80931fcaa9929ad556a20f5316e06a8'
John Ahlroos [Fri, 23 Aug 2013 06:20:37 +0000 (09:20 +0300)]
Merge commit '5fb05e84c80931fcaa9929ad556a20f5316e06a8'

Change-Id: Ib3f2d1d269f8ec7ee1f03dfdbc290453e2356387

11 years agoMerge from origin/7.1
Artur Signell [Mon, 19 Aug 2013 14:33:54 +0000 (17:33 +0300)]
Merge from origin/7.1

11f8811 Make sure bean field validators are only added once (#11045)

Conflicts:
server/tests/src/com/vaadin/tests/server/validation/TestBeanValidation.java

Change-Id: I6533b00f78dfb2d587b52b320d2d709c640b9159

11 years agoMerge changes from origin/7.1
Artur Signell [Mon, 19 Aug 2013 14:31:46 +0000 (17:31 +0300)]
Merge changes from origin/7.1

16d17f9 Fix native scrolling regression in iOS 6 homescreen apps (#12295)
7212e02 Fix race in VaadinService.lockSession() (#12282)
2d5a107 Update "lastRequestedFirstvisible" field value right away (#10666).
325cdf9 Disable failing calendar Actions Menu Test (#12181)
8ba4117 Split UiAccess test (#12332)

Change-Id: I30e7aaacaf0ecbdc1a6dbdf956a6e48f4846de32

11 years agoNo-op merge from origin/7.1
Artur Signell [Mon, 19 Aug 2013 13:37:38 +0000 (16:37 +0300)]
No-op merge from origin/7.1

2ff71f6 Avoid infinite recursion when purging access queue (#12310)

Change-Id: I53db81b236b1141b7259c27021fd1da62fb62ec2

11 years agoMerge changes from origin/7.1
Artur Signell [Mon, 19 Aug 2013 09:37:52 +0000 (12:37 +0300)]
Merge changes from origin/7.1

7cb49d1 Fix invisible calendar actions menu #12181
44aacf4 Clarify Embedded javadoc (#12290)
59a043b Fix actions in action menu appearing in random order #12250
5d57129 Fix calendar click events on context menu #12297
f5e3663 Document multiple load semantics in @StyleSheet and @JavaScript (#12200)
17bb700 Add optional OSGi Import-Package for javax.validation (#12301)
ea148c8 Disable all logging if production mode is enabled (#12299)
326bbb5 Fixes parsing of multiple push messages in streaming mode (#12197)
7fc1054 Ensure StringToIntegerConverter rejects values outside range of int (#12230)
f587298 Improve URI fragment listener javadocs (#12296)
d97cfbc Refine handling of null and empty URI fragments (#12207)
99c7d0b Show tooltips for ordered layout captions (#10046)

Change-Id: Ifb2e0131fde769e2620b7ba03755a5ba324d8aaf

11 years agoNo-op merge from origin/7.1
Artur Signell [Mon, 19 Aug 2013 09:34:35 +0000 (12:34 +0300)]
No-op merge from origin/7.1

3a373ef Fix race condition that might leave access queue unpurged (#12277)

Change-Id: I58c3bcadb413b8c0dd0e9d687a995c5ee1d10de6

11 years agoMerge changes from origin/7.1
Artur Signell [Mon, 19 Aug 2013 09:34:29 +0000 (12:34 +0300)]
Merge changes from origin/7.1

a53d487 Verify the connector hierarchy if assertions are enabled (#12271)
e9f3fcc Fix issue with hidden component cells in Table and TreeTable #12119
cbab936 Fixes light theme window sprites #12171
938d412 Fixes button :active state on firefox #12126
4219227 Fixed wrong classname in WindowThemes TB test #12171

Change-Id: I09bdb2fd0d16acad2afd84c544b26223d5f603a1

11 years agoFixed WAI-ARIA test related to #11820 which never has succeeded
John Ahlroos [Thu, 15 Aug 2013 13:27:27 +0000 (16:27 +0300)]
Fixed WAI-ARIA test related to #11820 which never has succeeded

Due to Testbench bug #12375 the test had never succeed on IE9/IE10.
To circumvent the issue I changed the way the test was done by
substituting the /@class assertion with an xpath statement instead which
works on all supported browsers.

Change-Id: Iad663ae6cf0976c09e0907942f8324d57b4328e6

11 years agoFixed WAI-ARIA test related to #11821 which never has succeeded
John Ahlroos [Thu, 15 Aug 2013 09:39:46 +0000 (12:39 +0300)]
Fixed WAI-ARIA test related to #11821 which never has succeeded

Due to Testbench bug #12375 the test had never succeed on IE9/IE10.
To circumvent the issue I changed the way the test was done by
substituting the /@class assertion with an xpath statement instead which
works on all supported browsers.

Change-Id: Idd5b8cb37404a2f88c4a00dc9849e3645559551d

11 years agoFix test AbsFieldValueConversions (#12092)
Henri Sara [Thu, 15 Aug 2013 06:59:37 +0000 (09:59 +0300)]
Fix test AbsFieldValueConversions (#12092)

Change-Id: Ifa23d60e8c1dd388c0404b9c40f00f81304778cf

11 years agoFixes tests broken by accessability fixes #11874 and #11820
John Ahlroos [Thu, 15 Aug 2013 06:32:54 +0000 (09:32 +0300)]
Fixes tests broken by accessability fixes #11874 and #11820

Both WAI-ARIA fixes improves the accessability by adding a hidden
element into the dom for the screen readers. Unfortunatly this
broke tests based on a certain DOM path.

Change-Id: I64631f22d7ef0bbb840131802dab1e50e9dac913

11 years agoFixed DOM path in theme tests after accessability improvement #11874
John Ahlroos [Tue, 13 Aug 2013 08:09:44 +0000 (11:09 +0300)]
Fixed DOM path in theme tests after accessability improvement #11874

The WAI-ARIA fix added an element to the Window header making the dom
path in the tests invalid.

Change-Id: Iee7eb4f922153da8a413c81e6611f0d967ebe134

11 years agoFixed DOM path in test after accessability improvement #11874
John Ahlroos [Mon, 12 Aug 2013 13:40:36 +0000 (16:40 +0300)]
Fixed DOM path in test after accessability improvement #11874

The WAI-ARIA fix added an element to the Window header making the dom
path in the test invalid.

Change-Id: Ifc8e993969643c32fbf552aa55b8700744ecbc9d

11 years agoFixed regression where page title was not updated #12353
John Ahlroos [Mon, 12 Aug 2013 11:52:17 +0000 (14:52 +0300)]
Fixed regression where page title was not updated #12353

Page title was moved to PageState in #11054 causing the UIConnector
state change handling to never trigger an update.

Change-Id: I592d316f99b40950f7ce4dd92e3ef48f835f29df

11 years agoFixed DOM path in test after accessability improvement #11874
John Ahlroos [Mon, 12 Aug 2013 12:09:03 +0000 (15:09 +0300)]
Fixed DOM path in test after accessability improvement #11874

The WAI-ARIA fix added an element to the Window header making the dom
path in the test invalid.

Change-Id: I32592496d95b8fc0238e4a3a651b6ebc21f46f46

11 years agoFixed DOM path in test after accessability improvement #11874
John Ahlroos [Fri, 9 Aug 2013 13:16:41 +0000 (16:16 +0300)]
Fixed DOM path in test after accessability improvement #11874

The WAI-ARIA fix added an element to the Window header making the dom
path in the test invalid.

Change-Id: Ia056adc55d12800bded3e6791d119ca0a786ef33

11 years agoFixed DOM path in test after accessability improvement #11820
John Ahlroos [Fri, 9 Aug 2013 12:56:15 +0000 (15:56 +0300)]
Fixed DOM path in test after accessability improvement #11820

The WAI-ARIA fix added a new element into the notification making the
dom path in the test invalid.

Change-Id: Id0ce89ebff618bd68f6a7db51c72b6d25227d0cb

11 years agoSupport for null intermediate beans in NestedMethodProperty (#11435)
Matti Hosio [Mon, 15 Jul 2013 12:56:07 +0000 (15:56 +0300)]
Support for null intermediate beans in NestedMethodProperty (#11435)

Allows intermediate beans to return null in the NestedMethodProperty.
The feature is not enabled by default and thus should be fully backwards
compatible.

Change-Id: I438d0f787c5c76f61ab234f3c92dd927a8354a37

11 years agoFixes Button icon alt text not being updated #12333
John Ahlroos [Thu, 8 Aug 2013 08:05:38 +0000 (11:05 +0300)]
Fixes Button icon alt text not being updated #12333

Change-Id: I23a26fbc5281e76792e257321d96f3d30a8bc2b2

11 years agoMake sure bean field validators are only added once (#11045)
Patrik Lindström [Wed, 31 Jul 2013 13:42:16 +0000 (16:42 +0300)]
Make sure bean field validators are only added once (#11045)

Change-Id: I67779fa5bfd4c850101c11c22091c988eb65b808

11 years agoSplit UiAccess test (#12332)
Leif Åstrand [Wed, 7 Aug 2013 08:22:09 +0000 (11:22 +0300)]
Split UiAccess test (#12332)

Change-Id: I231e84d84adca79549d00a88dd4ae613ff291dbc

11 years agoDisable failing calendar Actions Menu Test (#12181)
Patrik Lindström [Wed, 7 Aug 2013 08:08:13 +0000 (11:08 +0300)]
Disable failing calendar Actions Menu Test (#12181)

This test cannot be completed in a smart fashion until TestBench 3 is in
use, because of differences in the DOM structure created by GWT for IE
and Opera, versus Webkit and Gecko browsers. TB2 requires identical DOM
structure for assertion queries to work.

Change-Id: I6f5f9aac1c25e4e105459da215db080b031b2aab

11 years agoUpdate "lastRequestedFirstvisible" field value right away (#10666).
denisanisimov [Tue, 6 Aug 2013 13:19:40 +0000 (16:19 +0300)]
Update "lastRequestedFirstvisible" field value right away (#10666).

Change-Id: Idef31fa74f4720b5c55511de0545cd8ae1b77b26

11 years agoFix race in VaadinService.lockSession() (#12282) 7.1.2
Johannes Dahlström [Mon, 5 Aug 2013 12:47:16 +0000 (15:47 +0300)]
Fix race in VaadinService.lockSession() (#12282)

The session might be invalidated before lockSession() acquires the lock.
Check if the session is still valid after locking and ensure
SessionExpiredException is thrown if not.

Change-Id: Iad716332a65b7c198427fce5198f6808140c140c

11 years agoFix native scrolling regression in iOS 6 homescreen apps (#12295)
Johannes Dahlström [Tue, 6 Aug 2013 10:59:33 +0000 (13:59 +0300)]
Fix native scrolling regression in iOS 6 homescreen apps (#12295)

Change-Id: Ie225663ebc2a9ffe4b481a49e34e9dcf79b064b2

11 years agoFixes missing description text for button icon #12321
John Ahlroos [Tue, 6 Aug 2013 07:23:03 +0000 (10:23 +0300)]
Fixes missing description text for button icon #12321

Change-Id: I88fea408e110dc454c8d37cf0e95e109e8d8c8d1

11 years agoAvoid infinite recursion when purging access queue (#12310)
Leif Åstrand [Fri, 2 Aug 2013 13:03:15 +0000 (16:03 +0300)]
Avoid infinite recursion when purging access queue (#12310)

Change-Id: Id5029f6606ce508c5746af4e0fa3078283f511bf

11 years agoShow tooltips for ordered layout captions (#10046)
denisanisimov [Fri, 2 Aug 2013 11:32:47 +0000 (14:32 +0300)]
Show tooltips for ordered layout captions (#10046)

Change-Id: I80cb1cbd573d7e0de8aa200a4513dc32984ba9f5

11 years agoRefine handling of null and empty URI fragments (#12207)
Leif Åstrand [Fri, 2 Aug 2013 07:20:40 +0000 (10:20 +0300)]
Refine handling of null and empty URI fragments (#12207)

Change-Id: Ie133694b010a586c6336e9b04be7bcd94d2525e9

11 years agoImprove URI fragment listener javadocs (#12296)
Leif Åstrand [Fri, 2 Aug 2013 05:32:45 +0000 (08:32 +0300)]
Improve URI fragment listener javadocs (#12296)

Change-Id: I7c91768f02d04c613f25e5984cb015067465815c

11 years agoEnsure StringToIntegerConverter rejects values outside range of int (#12230)
Johannes Dahlström [Thu, 1 Aug 2013 08:53:34 +0000 (11:53 +0300)]
Ensure StringToIntegerConverter rejects values outside range of int (#12230)

Change-Id: I150bee64144045355bfa75ac10ede663d3feb5ce

11 years agoFixes parsing of multiple push messages in streaming mode (#12197)
Fabian Lange [Wed, 17 Jul 2013 09:44:57 +0000 (11:44 +0200)]
Fixes parsing of multiple push messages in streaming mode (#12197)

The current atmosphere code can handle messages split up using the message
length header. But it does not handle the case where the header is actually
split up itself.
This patch solves it by making sure the length header stays intact.
Corresponding atmosphere ticket:
https://github.com/Atmosphere/atmosphere/issues/1199

Change-Id: If22c42ea63b0749c68df19c869b316f9b69f4317

11 years agoDisable all logging if production mode is enabled (#12299)
Leif Åstrand [Thu, 1 Aug 2013 09:18:05 +0000 (12:18 +0300)]
Disable all logging if production mode is enabled (#12299)

Change-Id: Ia6b05c0ebaf1f0bb4fb675392cc8f634cab8e494

11 years agoDetach previous UI with the same window.name (#10338, #12255)
Leif Åstrand [Mon, 22 Jul 2013 06:14:30 +0000 (09:14 +0300)]
Detach previous UI with the same window.name (#10338, #12255)

Change-Id: I15234985f1591d6af383c6e014679762619d5000

11 years agoAdd optional OSGi Import-Package for javax.validation (#12301)
Johannes Dahlström [Wed, 31 Jul 2013 12:07:12 +0000 (15:07 +0300)]
Add optional OSGi Import-Package for javax.validation (#12301)

Change-Id: Iff9105537a2a8123b808be33f8cd390b0c23edd6

11 years agoAdd LayoutManager.setNeedsMeasureRecursively (#12180)
Leif Åstrand [Mon, 8 Jul 2013 11:48:52 +0000 (14:48 +0300)]
Add LayoutManager.setNeedsMeasureRecursively (#12180)

Change-Id: Iddedc74b471cc8a2743cdeab78e877654fce9609

11 years agoDocument multiple load semantics in @StyleSheet and @JavaScript (#12200)
Leif Åstrand [Fri, 19 Jul 2013 12:25:40 +0000 (15:25 +0300)]
Document multiple load semantics in @StyleSheet and @JavaScript (#12200)

Change-Id: Id52f196ad6d14e8077482b19a8d0479aedc64db3

11 years agoFix calendar click events on context menu #12297
Patrik Lindström [Tue, 30 Jul 2013 11:10:01 +0000 (14:10 +0300)]
Fix calendar click events on context menu #12297

Change-Id: Ifb66253ef05677d80d2f1e8bb935e5e4789308de

11 years agoFix actions in action menu appearing in random order #12250
Patrik Lindström [Tue, 30 Jul 2013 11:14:07 +0000 (14:14 +0300)]
Fix actions in action menu appearing in random order #12250

Change-Id: I77186adb94392cd317d37b9d9250f28891e6f06e

11 years agoClarify Embedded javadoc (#12290)
Johannes Dahlström [Tue, 30 Jul 2013 11:58:14 +0000 (14:58 +0300)]
Clarify Embedded javadoc (#12290)

Change-Id: I3c15bf79236019056eeb501974a6a34799e8fd40

11 years agoFix invisible calendar actions menu #12181
Patrik Lindström [Mon, 29 Jul 2013 12:09:35 +0000 (15:09 +0300)]
Fix invisible calendar actions menu #12181

Change-Id: I4cdf3d1e584f1537f0f216ddd6f65c1ec4a2ee6b

11 years agoBeanValidator changed to throw exception with array of causes (#11324)
Jarno Rantala [Wed, 26 Jun 2013 11:56:54 +0000 (14:56 +0300)]
BeanValidator changed to throw exception with array of causes (#11324)

BeanValidator was modified to throw InvalidValueException with array of causes
instead of exception with one message including HTML. This way
AbstractErrorMessage is able to create correct error notification message with
multiple lines.

Change-Id: I414189f56ac282daad9dd3fe58d13fd99108c479

11 years agoDon't lock session for checking request details (#12265)
Leif Åstrand [Tue, 23 Jul 2013 11:20:17 +0000 (14:20 +0300)]
Don't lock session for checking request details (#12265)

Change-Id: Id3e2b250b6aea66859274e2a5d6046c4f80172c3

11 years agoFix race condition that might leave access queue unpurged (#12277)
Leif Åstrand [Mon, 29 Jul 2013 12:51:33 +0000 (15:51 +0300)]
Fix race condition that might leave access queue unpurged (#12277)

Merge: no
Change-Id: Iee1012486906d8c2c46cef94cfcd6d2b399d7a6b

11 years agoFixed wrong classname in WindowThemes TB test #12171
John Ahlroos [Mon, 29 Jul 2013 10:16:40 +0000 (13:16 +0300)]
Fixed wrong classname in WindowThemes TB test #12171

Change-Id: I23ce7ba8a87c119ada78bba1d4735c4d8404b4f8

11 years agoFixes button :active state on firefox #12126
John Ahlroos [Fri, 26 Jul 2013 08:07:36 +0000 (11:07 +0300)]
Fixes button :active state on firefox #12126

When doing event.preventDefault() firefox will not trigger the :active
selector intentionally (see
https://bugzilla.mozilla.org/show_bug.cgi?id=771241).

Event.preventDefault() was added to prevent text selection in #10917
but it actually is not needed since the button also uses the
user-select:none css attribute which effectivly prevents the text selection.

Also now applying the previously browser specific (ie,opera) .v-pressed
classname to all browsers to make styling of the pressed state a bit easier
to do for all browsers and not reliant on the :active pseudo-class which is a
non-standard pseudo-class.

Change-Id: Ic67c0abb9d0bf8f47b817609f2928aa8fff3e82b

11 years agoFixes light theme window sprites #12171
John Ahlroos [Thu, 25 Jul 2013 06:53:50 +0000 (09:53 +0300)]
Fixes light theme window sprites #12171

The close buttons images for the Window black theme was mistakenly
added to the white theme sprite and ended up in the middle of the
light theme window. Moved the black theme button images to the
black theme sprite.

Change-Id: Ieaaaa1b404f1d623c61fe7cfecb4996d96904b27

11 years agoFix issue with hidden component cells in Table and TreeTable #12119
John Ahlroos [Wed, 24 Jul 2013 12:28:15 +0000 (15:28 +0300)]
Fix issue with hidden component cells in Table and TreeTable #12119

Change-Id: I2f491d04ff177f7f0ce104c96b1c4a84ee7a2bc0

11 years agoMake settting of assistive description of Window optional (#12276)
michaelvogt [Wed, 24 Jul 2013 08:17:23 +0000 (11:17 +0300)]
Make settting of assistive description of Window optional (#12276)

Throws exception on server side for null parameter
Adds client side getter for descriptions

Change-Id: I7d6231eec52b584f674b97b9d0c8ee0b78b19297

11 years agoVerify the connector hierarchy if assertions are enabled (#12271)
Leif Åstrand [Tue, 23 Jul 2013 13:12:49 +0000 (16:12 +0300)]
Verify the connector hierarchy if assertions are enabled (#12271)

Change-Id: I87632abe9d86927b7ba4254724fedfdb04513205

11 years agoMerge changes from origin/7.1
Leif Åstrand [Tue, 23 Jul 2013 10:18:19 +0000 (13:18 +0300)]
Merge changes from origin/7.1

36aebc8 Update to Atmosphere 1.0.14.vaadin4 (#12242)
62c63a6 Only add DateRangeValidator to DateField if start or end of range is set (#12193)

Change-Id: Ie2ba84e2d598313158007e521508c756abef6c2e

11 years agoNo-op merge from origin/7.1
Leif Åstrand [Tue, 23 Jul 2013 10:18:09 +0000 (13:18 +0300)]
No-op merge from origin/7.1

9c8eb70 Close PushRequestHandler when VaadinServlet is destroyed (#11878)

Change-Id: Id68ea7f18c57ca5e2a2102c979f9b0b431c58c15

11 years agoMerge changes from origin/7.1
Leif Åstrand [Tue, 23 Jul 2013 10:18:04 +0000 (13:18 +0300)]
Merge changes from origin/7.1

3229847 Fix lost focus in Table when refreshing row cache (#12231)
654d570 Don't close an unbound VaadinSession for GAEVaadinServlet (#12209)
2ea19f3 Make VaadinService.closeInactiveUIs set UI threadlocals (#12186)
7f5a0a7 Add Require-Bundle for our rebased atmosphere bundle (#12195)

Change-Id: I65c9a33462b3508b763115f8410fec3e62e16d45

11 years agoClears the live area flag that Firefox sets by mistake (#12257)
michaelvogt [Mon, 22 Jul 2013 08:44:45 +0000 (11:44 +0300)]
Clears the live area flag that Firefox sets by mistake (#12257)

When selecting a Tab, screen reader reads out all the tabs otherwise

Change-Id: I41d4f6c103daeec06be3828eb27ee479dc92477c

11 years agoOnly add DateRangeValidator to DateField if start or end of range is set (#12193)
Johannes Dahlström [Fri, 19 Jul 2013 13:09:53 +0000 (16:09 +0300)]
Only add DateRangeValidator to DateField if start or end of range is set (#12193)

Change-Id: I9138a5607c1ff20f3aa7be49270f683e732ee195

11 years agoUpdate to Atmosphere 1.0.14.vaadin4 (#12242)
Leif Åstrand [Thu, 18 Jul 2013 14:11:17 +0000 (17:11 +0300)]
Update to Atmosphere 1.0.14.vaadin4 (#12242)

Change-Id: I76ccbf631f8ba169f11513b7d585f39b8ab570a4

11 years agoAdd ServiceDestroyListerner used by PushRequestHandler (#12251, #11878)
Leif Åstrand [Fri, 19 Jul 2013 12:02:20 +0000 (15:02 +0300)]
Add ServiceDestroyListerner used by PushRequestHandler (#12251, #11878)

Change-Id: Id6147bbfe8da7cd3e3f3744acf3ef92b8c63b37b

11 years agoClose PushRequestHandler when VaadinServlet is destroyed (#11878)
Leif Åstrand [Fri, 19 Jul 2013 11:36:56 +0000 (14:36 +0300)]
Close PushRequestHandler when VaadinServlet is destroyed (#11878)

Should be implemented using ServiceDestoryListener in Vaadin 7.2

Merge: no

Change-Id: Ibb4d37f1f95c56b80111df3a3217076af18dd93d

11 years agoAdd Require-Bundle for our rebased atmosphere bundle (#12195)
Leif Åstrand [Thu, 18 Jul 2013 10:26:08 +0000 (13:26 +0300)]
Add Require-Bundle for our rebased atmosphere bundle (#12195)

Change-Id: Ibcc86cf874925096b3ac368cb0c6e3af00619f60

11 years agoMake VaadinService.closeInactiveUIs set UI threadlocals (#12186)
Leif Åstrand [Wed, 17 Jul 2013 12:15:21 +0000 (15:15 +0300)]
Make VaadinService.closeInactiveUIs set UI threadlocals (#12186)

Also update javadocs for methods called without UI threadlocals
Also make sure pending access tasks are run for a UI being closed

Change-Id: Ia600207b2d25fc195ee4254da371d420152bf100

11 years agoDon't close an unbound VaadinSession for GAEVaadinServlet (#12209)
Leif Åstrand [Fri, 12 Jul 2013 07:05:53 +0000 (10:05 +0300)]
Don't close an unbound VaadinSession for GAEVaadinServlet (#12209)

Change-Id: If3480eb6e21f5f19a43b8dc0d6279173ff3bec40

11 years agoFix lost focus in Table when refreshing row cache (#12231)
Tapio Aali [Tue, 16 Jul 2013 13:15:01 +0000 (16:15 +0300)]
Fix lost focus in Table when refreshing row cache (#12231)

svn changeset:25991/svn branch:6.8
svn changeset:26075/svn branch:6.8
svn changeset:26091/svn branch:6.8

Change-Id: Ia4a6ab4cc6ff98795a6d1f9b1701a345dc3f4dc4

11 years agoMerge changes from origin/7.1
Leif Åstrand [Mon, 15 Jul 2013 06:15:13 +0000 (09:15 +0300)]
Merge changes from origin/7.1

419c6c7 Implemented Focusable in MenuBar (#7674)
a4f1277 Fixed NPE in ApplicationRunnerServlet (#12145)
08d365a Fixed slider value initialization on HSV and RGB tabs of ColorPicker. (#7863)
da480bd Fix VaadinService.findUI to throw Error if UIConstants.UI_ID_PARAMETER is not set (#11943)
6291a50 Ensure that Slider diffstate always contains "value" (#12133)
7e7e698 32x32 favicons added, replacing the old favicons (#12143)
1702059 Replace printStackTrace with getLogger().log() (#12147)
b421d6e Updated Javadoc for Table.getColumnAlignment fixing #6810
414e3bf Fixed an error in CustomComponent JavaDoc (#10038), and some improvements.
4583d07 Fix NPE in Like.java (#10167)
6c4da29 Ensure table's cells aren't refreshed if table is detached. (#9138)
e37464c #11638: Ending an imported SCSS file with a comment causes an error in the Sass
478eeb5 Test using Jetty 9 (#12124)
f7cc72d Close only combobox on escape, not the window (#12163)
9a9b0a5 Automatic test for escape closing window from combobox (#12163)
ae565a2 Fix bug in PopupDateField where locale was retained incorrectly if changed while popup was open (#12153)
d7a64fd Enable native scrolling in home screen apps on iOS 6+ (#12149)
4a04f00 Add test case for testing ClickEvent after dragging button (#7690)
775c969 Make UploadInterruptedException visible (#12070)
6a4bbe5 Set heartbeat response Content-Type to text/plain (#12182)
e4011c6 When InputStream cannot be opened while writing static resource response, display 404 instead of 500 (#10920)
20162db Set current instances when calling UI.push from VaadinSession.unlock (#12168)
94c0f86 Ensure VaadinSession.service is set up by storeInSession (#12204)
23ed487 Attempt to get GAE lock for UIDL requests (#12211)
7f52b2e Improved AbstractClientConnector performance (#12219)
a934261 Improving performance of ConnectorTracker (#12218)

Change-Id: I810124d60c22d4d0ab837a19eb9c2689951864b5

11 years agoImproving performance of ConnectorTracker (#12218)
Fabian Lange [Sat, 13 Jul 2013 20:12:28 +0000 (22:12 +0200)]
Improving performance of ConnectorTracker (#12218)

Swapping the if check in cleanConnectorMap to prevent unnecessary calls to
isComponentVisible when the connector is in uninitializedConnectors set.

Change-Id: If6305a908364f8a7bb51fd7302449c6f54c274a3

11 years agoImproved AbstractClientConnector performance (#12219)
Fabian Lange [Sun, 14 Jul 2013 14:38:26 +0000 (16:38 +0200)]
Improved AbstractClientConnector performance (#12219)

Avoiding duplicate lookup of connector hierarchy when a component shall be
marked dirty. Optimized if statement to fail fast.

Change-Id: I3ac82d64b235ebfd1888a6076c595f351018d887

11 years agoTabsheet should not immediately select a tab when changing tab using
michaelvogt [Mon, 24 Jun 2013 10:55:55 +0000 (13:55 +0300)]
Tabsheet should not immediately select a tab when changing tab using
keyboard (#11823)

Adds the necessary WAI-ARIA roles to the component (#11827)

Change-Id: Ie1ed40227679e3497971b834919713614a8cc23e

11 years agoAttempt to get GAE lock for UIDL requests (#12211)
Leif Åstrand [Fri, 12 Jul 2013 06:54:06 +0000 (09:54 +0300)]
Attempt to get GAE lock for UIDL requests (#12211)

Also removing the overhead of creating a Date object just for getting a
timestamp in the otherwise touched areas of code.

Change-Id: Ic712c0ae26d22995ad332593dbb8a14dbec7fcd6

11 years agoEnsure VaadinSession.service is set up by storeInSession (#12204)
Leif Åstrand [Fri, 12 Jul 2013 06:59:25 +0000 (09:59 +0300)]
Ensure VaadinSession.service is set up by storeInSession (#12204)

Change-Id: Ie707442f2625f3c9c07c75924c99299f07a4f3ec

11 years agoPrevent to exit a Window with the tab key (#11874)
michaelvogt [Fri, 14 Jun 2013 14:08:38 +0000 (17:08 +0300)]
Prevent to exit a Window with the tab key (#11874)

Change-Id: Icd12ec6e2eac626ad493707dfa8288d620bb9bb7

11 years agoSet current instances when calling UI.push from VaadinSession.unlock (#12168)
Leif Åstrand [Mon, 8 Jul 2013 14:23:49 +0000 (17:23 +0300)]
Set current instances when calling UI.push from VaadinSession.unlock (#12168)

Change-Id: I27795ab9ae3e3692f508e847936ccaa5a1ebadd4

11 years agoWhen InputStream cannot be opened while writing static resource response, display...
Fabian Lange [Thu, 13 Jun 2013 13:11:39 +0000 (15:11 +0200)]
When InputStream cannot be opened while writing static resource response, display 404 instead of 500 (#10920)

A security audit revealed that it is possible to trigger an error 500 with
stack trace by just trying a directory traversal. An example of this can be
found in the sampler: http://demo.vaadin.com/sampler/VAADIN/widgetsets/
While there are other scenarios that can produce exceptions, in this place
Vaadin can handle it more graceful by just catching the exception and
returning 404.

Change-Id: Iec68d81d3bca365ec133737a9cd3e3b825d192b2

11 years agoFixes @PreserveOnRefresh losing page title on refresh #11054
Joonas Lehtinen [Fri, 28 Jun 2013 15:19:47 +0000 (18:19 +0300)]
Fixes @PreserveOnRefresh losing page title on refresh #11054

Moves Page title to PageState instead of using RPC for changing the title on Page.setTitle().

Change-Id: I8e5ab2064c04235503fb2531f4cdbb108530ac7e

11 years agosimplified isStaticResourceRequest and improved its performance (#11758)
Fabian Lange [Wed, 12 Jun 2013 14:48:00 +0000 (16:48 +0200)]
simplified isStaticResourceRequest and improved its performance (#11758)

The previous implementation did first check if the PathInfo was empty (null returned).
This is almost never the case in reality. But if it happens, then the RequestURI would never contain contextRoot+"/VAADIN/".
Next it checked that contextUri was not null, and checked if the Uri started with "/VAADIN/".
This only would have worked in case the context root would have been "".
The next case checked was if the Uri starts with contextRoot+"/VAADIN/".
This is what you normally want to check. The only valid other case from before (contextRoot == "") is also covered by this line.

What you would have seen in normal deployments is:
* First if exit only for first request (http://demo.vaadin.com/sampler/) (and sometimes not even that depending on trailing slash config)
* Second exit only on no context root deployments (getContextRoot() returns "")
* Last exit in all other cases

Additionally, the existing implementation does not work correctly for the case getContextRoot would return null (which thankfully no container does).

Change-Id: I500e0c5eb0ac2bfa0b32af91800b2f7f303485ff

11 years agoSet heartbeat response Content-Type to text/plain (#12182)
Johannes Dahlström [Tue, 9 Jul 2013 09:03:30 +0000 (12:03 +0300)]
Set heartbeat response Content-Type to text/plain (#12182)

By default browsers assume text/html and may complain about an empty response body.

Change-Id: I66ed1aef3421a7f0a618bc441ffab1dc0efbdc71

11 years agoMake UploadInterruptedException visible (#12070)
Fabian Lange [Thu, 13 Jun 2013 12:51:08 +0000 (14:51 +0200)]
Make UploadInterruptedException visible (#12070)

When another threads interrupts the Upload, the UploadInterruptedException is
thrown. The respective StreamVariable will receive
streamingFailed(StreamingErrorEvent event) which contains the causing exception
via event.getException(). When the UploadInterruptedException is not public, it
is impossible to react on it in the StreamVariable (e.g. treating an
IOException differently from an UploadInterruptedException).

Change-Id: I9098e70e6750c420fcc0978340544e545e237b26

11 years agoSupport uploading files larger 2GB via drag and drop and file input (#11947).
Fabian Lange [Wed, 12 Jun 2013 19:21:31 +0000 (21:21 +0200)]
Support uploading files larger 2GB via drag and drop and file input (#11947).

Vaadin mostly just passes through the value from the Javascript File object
on drag and drop. As per specification (http://www.w3.org/TR/file-upload/#blob)
the size value can be "long". The size attribute of Html5File was already long,
but this patch makes sure long values actually are transported correctly from
the client side Transferable. Additionally, the file upload handling in
FileUploadHandler was determining the length of the upload via the Servlet Spec
getContentLength method of the request. However the spec was written at a time
where 2GB were unthinkable. Luckily containers return this value by querying
the Content-Length header, which can transport values of "long". So instead of
using the Servlet Spec method, FileUploadHandler evaluates the header itself.
AbstractStreamingEvent already was supporting "long" values. For Drag&Drop,
the file size needs to be serialized as double, because long is not supported
in JSNI.

Change-Id: I606fca7430c65c20144793fa011cb2f6ee3a0415

11 years agoAdd getCacheTime(filename) to VaadinServlet (#11744)
Fabian Lange [Wed, 12 Jun 2013 14:08:48 +0000 (16:08 +0200)]
Add getCacheTime(filename) to VaadinServlet (#11744)

This implementation by default adheres to the GWT Pristine Caching rules
and calculates 0 seconds for ".nocache." and 1 year for ".cache."
filenames. All other filenames will use the value configured in the
deployment configuration.
By exposing this to a method, developers can implement custom naming
schemes. Developers also can opt to set an expires header using this
value.

Change-Id: Ibc0d17d48d38bfa3bb28bdf3929ad314828be406

11 years agoTabsheet tabs should support alternate text (#11824)
michaelvogt [Tue, 25 Jun 2013 08:47:38 +0000 (11:47 +0300)]
Tabsheet tabs should support alternate text (#11824)

Change-Id: I000fe6102291d8bd9bbe484b5683b50c40c8470b

11 years agoAdd test case for testing ClickEvent after dragging button (#7690)
Patrik Lindström [Tue, 2 Jul 2013 12:26:35 +0000 (15:26 +0300)]
Add test case for testing ClickEvent after dragging button (#7690)

Change-Id: I9ecb796a9bcbc8415efe27873fdbd71745d0aa85

11 years agoAccessibility for Window (#11821)
michaelvogt [Fri, 14 Jun 2013 08:55:21 +0000 (11:55 +0300)]
Accessibility for Window (#11821)

Change-Id: Ica5d13fb138e8ed1c1966858c9e1dd0c4aa13af5

11 years agoEnable native scrolling in home screen apps on iOS 6+ (#12149)
Henri Sara [Thu, 4 Jul 2013 07:53:44 +0000 (10:53 +0300)]
Enable native scrolling in home screen apps on iOS 6+ (#12149)

This also fixes another iOS 6 detection issue for home screen apps.

Change-Id: Icbbb15d3f0d6668f11b2a796ae2c096d8c4dec0b

11 years agoFix bug in PopupDateField where locale was retained incorrectly if
Patrik Lindström [Tue, 2 Jul 2013 21:04:35 +0000 (00:04 +0300)]
Fix bug in PopupDateField where locale was retained incorrectly if
changed while popup was open (#12153)

Change-Id: Ib4bebab8c6e75e7f1af7cfc5198ab6516e94a45e

11 years agoAutomatic test for escape closing window from combobox (#12163)
Henri Sara [Thu, 4 Jul 2013 07:08:52 +0000 (10:08 +0300)]
Automatic test for escape closing window from combobox (#12163)

Change-Id: I38a143fb76ebf3a64cd416e5ba7d325aedc60ffe

11 years agoClose only combobox on escape, not the window (#12163)
Henri Sara [Wed, 3 Jul 2013 13:33:50 +0000 (16:33 +0300)]
Close only combobox on escape, not the window (#12163)

Change-Id: I356e115b5cd96ba0a598178a15215654f2fd16bb

11 years agoSupport screen reader only notifications (#11830)
michaelvogt [Wed, 19 Jun 2013 13:15:23 +0000 (16:15 +0300)]
Support screen reader only notifications (#11830)

Change-Id: I09391b27c0b3df538ffe74c4edb8d96224f14cd3

11 years agoAccessibility for Notification (#11820)
michaelvogt [Fri, 10 May 2013 14:45:21 +0000 (17:45 +0300)]
Accessibility for Notification (#11820)

Change-Id: Ic9c1a417fa791927897b6fcdf35a1fb4444dfd70

11 years agoFix two tests broken by removal of StringToNumberConverter (#12092)
Henri Sara [Tue, 2 Jul 2013 06:22:25 +0000 (09:22 +0300)]
Fix two tests broken by removal of StringToNumberConverter (#12092)

Change-Id: Ic1520ddf670d83ce804acf240067c85d493196ca

11 years agoAdds String <-> BigDecimal converter (#9997)
Artur Signell [Tue, 18 Jun 2013 19:15:54 +0000 (22:15 +0300)]
Adds String <-> BigDecimal converter (#9997)

* BigDecimal properties connected to String based fields (TextField/TextArea/...) are now supported without custom converters

Change-Id: I2dab67875b3cfdb46b17e9d4cc35ffb94c114478

11 years agoRemoved StringToNumberConverter (#12092)
Artur Signell [Tue, 18 Jun 2013 19:00:14 +0000 (22:00 +0300)]
Removed StringToNumberConverter (#12092)

Change-Id: Iada5bb27eefef788143625c4d63a121f6c2589ea

11 years agoTest using Jetty 9 (#12124)
Artur Signell [Tue, 25 Jun 2013 07:54:08 +0000 (10:54 +0300)]
Test using Jetty 9 (#12124)

Change-Id: Ie765e542e2319dc1d94c61a986cab3720556e66a

11 years ago#11638: Ending an imported SCSS file with a comment causes an error in
Haijian Wang [Fri, 28 Jun 2013 13:18:13 +0000 (16:18 +0300)]
#11638: Ending an imported SCSS file with a comment causes an error in
the Sass

Change-Id: Ib498f68caa7e87e2d9a21b29c9bfb2f30f35c701

11 years agoEnsure table's cells aren't refreshed if table is detached. (#9138)
Anna Koskinen [Fri, 28 Jun 2013 13:47:10 +0000 (16:47 +0300)]
Ensure table's cells aren't refreshed if table is detached. (#9138)

Change-Id: I026cd70e9e518fa320f6ec3011194359385a3a4a

11 years agoFix NPE in Like.java (#10167)
Patrik Lindström [Fri, 28 Jun 2013 11:56:21 +0000 (14:56 +0300)]
Fix NPE in Like.java (#10167)

Change-Id: I041fbc5c3cda08d3cf3453cefc5f044c63dbe9bb

11 years agoFixed an error in CustomComponent JavaDoc (#10038), and some improvements.
Marko Gronroos [Fri, 28 Jun 2013 13:19:55 +0000 (16:19 +0300)]
Fixed an error in CustomComponent JavaDoc (#10038), and some improvements.

Change-Id: Ifbdae94dc94405eca967a95fe783a85d778f461a

11 years agoUpdated Javadoc for Table.getColumnAlignment fixing #6810
Sami Ekblad [Fri, 28 Jun 2013 13:23:14 +0000 (16:23 +0300)]
Updated Javadoc for Table.getColumnAlignment fixing #6810

Change-Id: I05004cb874f5c32c03d28119d0522d3184a82292

11 years agoReplace printStackTrace with getLogger().log() (#12147)
Artur Signell [Fri, 28 Jun 2013 13:31:48 +0000 (16:31 +0300)]
Replace printStackTrace with getLogger().log() (#12147)

Change-Id: I9ec61fdc7ddc06f129a9d69b99e6295a62c4b0d3

11 years ago32x32 favicons added, replacing the old favicons (#12143)
Jouni Koivuviita [Fri, 28 Jun 2013 13:19:24 +0000 (16:19 +0300)]
32x32 favicons added, replacing the old favicons (#12143)

Added new version for favicon.ico, which has 32x32 pixel version in
addition to 16x16 pixels. Adds support for high resolution/retina
displays.

Change-Id: I49bd84b9d23f1e26ceee28dab1e26d9cd4f6b6d2

11 years agoEnsure that Slider diffstate always contains "value" (#12133)
Risto Yrjänä [Fri, 28 Jun 2013 12:53:03 +0000 (15:53 +0300)]
Ensure that Slider diffstate always contains "value" (#12133)

Force diff state to contain "value", so that value changes from value
change listeners work.

Change-Id: I5b2c661f1297ec0272c150a5a9ff4ca26f19fefe

11 years agoFix VaadinService.findUI to throw Error if UIConstants.UI_ID_PARAMETER
mtzukanov [Fri, 28 Jun 2013 12:52:48 +0000 (15:52 +0300)]
Fix VaadinService.findUI to throw Error if UIConstants.UI_ID_PARAMETER
is not set (#11943)

Change-Id: I3cbb88e3fab4f39af8e4799d5a914ab9bd4733f5