summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* Improve proxy comparison support (#14639)Juuso Valli2014-09-152-6/+75
| | | | Change-Id: I114ea5bf9d55c78826c1163206caf585b96143ef
* Make Vaadin component handling proxy-friendly (#14639)Juuso Valli2014-09-1514-21/+53
| | | | | | Comparisons with the ==-operator between a proxy and it's underlying instance fail, so we should use a custom equals method instead. Change-Id: Iaa86ae830fecbedfb1f55636e25f5affebf5aba3
* Update to Atmosphere 2.1.2.vaadin5 (#13877)Sergey Budkin2014-09-151-1/+1
| | | | | | | | New version of vaadin atmosphere, picked change from main codebase: https://github.com/Atmosphere/atmosphere/commit/9eeb5768 Tested manually against Jetty 9.2.3 Change-Id: I90f4a90b1ff651cc475eb01c2156d3c58abd8c2c
* DateField ValueChange is now fired after flags are set (#14487)Guillermo Alvarez2014-09-121-3/+35
| | | | | | | | When the UI had an invalid string the ValueChange event was fired before setting all the flags causing an invalid isValid result when handling ValueChange. Now the event is fired after the flags are set. Change-Id: Ie4e6ba21edc81bf41c2c661aa27e0ace71e1bef0
* Fix potential invalid JSON output in MetadataWriter (#14591)Johannes Dahlström2014-09-122-0/+15
| | | | Change-Id: I90ec428ae11727b9762d53ebb8d94f8c850c425b
* StreamResource methods equals() and hashCode() are corrected (#14027).Denis Anisimov2014-09-122-8/+62
| | | | Change-Id: I68a629a29cc0d6efd2dd7788875a1dc4182ee6bf
* Bump Atmosphere-runtime version number to 2.1.2.vaadin4 (#14038)Johannes Dahlström2014-09-121-1/+1
| | | | Change-Id: Ifcfe1f90b795072c12d3118db33f3df6c96c568b
* Handle byte[] type in StatementHelper and correct SQLException (#13305).Denis Anisimov2014-09-122-25/+83
| | | | Change-Id: I235ebe6250b9c03bbea393df7e8eb8823d119a2c
* Ignore files from the classpath for scss cache timestamps (#14506)Leif Åstrand2014-08-281-3/+13
| | | | Change-Id: I82e3caef915b6a8683608f1834130468b3f16dbf
* Remove defunct __gwt_historyFrame (#11560)Leif Åstrand2014-08-271-8/+0
| | | | Change-Id: Id3829562f7bb898ee0df873de90f0339ad06adff
* Add option for collapsing empty rows/columns in GridLayout (#14392)7.3.0.rc1Artur Signell2014-08-211-0/+29
| | | | | | | | This reverts the new default behavior introduced in fix for #8855. If you want empty rows/columns to be ignored when rendering, use GridLayout.setHideEmptyRowsAndColumns(true) Change-Id: I38a8717d79cec7739b649174654b615db9d8dc7e
* Depend on sass-compiler, not the old theme-compiler (#14009)Artur Signell2014-08-211-1/+1
| | | | Change-Id: I0635ea0a390c868162695291176d0ce416dfaf4c
* fixes incorrect JSONArray/String usage in ServerRpcHandler (#14471)Fabian Lange2014-08-201-2/+2
| | | | | | | | | | As described by Johannes, the RPCRequest constructor first takes whole JSON as string and builds its attribute json from it (by parsing). Then it reads from this parsed JSON the array called "rpc". However it previously did a .toString on it only to re-parse it. Newer json versions complain that "rpc" is not a string, but an array. Change-Id: If4bb45abad551b183d757f0aa326c37c070ce103
* Fixes DragAndDropWrapper does not support choosing a custom component as the ↵Sebastian Nyholm2014-08-181-0/+41
| | | | | | | | | drag image (#13836) Amend : Fixes the comments for the last commit. Amend 2: Fixes a nullpointer found in a certain test scenario Change-Id: I72327f5f8ab9e46d88e1ebed8f1db3a7da39d7d8
* Add new "colored" style for Label (Valo)Jouni Koivuviita2014-08-151-0/+5
| | | | | | | | | Makes any Label text colored, by default the same as $v-selection-color. Modify the Forms and Labels examples to use the new style, and remove the fixed color from “light” style form layout for header labels. Change-Id: I27a4fce56b1f734aa5c2c837bf1684284b0d96cc
* Add two new size variants for Valo, tiny and hugeJouni Koivuviita2014-08-151-3/+66
| | | | | | | Available as additional style names for buttons, text fields/text areas, combo boxes, date fields and labels. Change-Id: I12f36935a690f5bf3f12333f5bd4ac986d4efd1f
* Update Font Awesome to the latest version (#14396)Jouni Koivuviita2014-08-111-327/+461
| | | | | | | | | | | | Update the font icon to version 4.1.0. The enum is now sorted alphabetically by the icon name, while previously it was sorted by the code point. The new list is copied from http://fontawesome.io/cheatsheet/ which contains all the icons in the font. Change-Id: I41a69248a9e3bd25c90b7f79b5814cdb46b10bbc
* Do not call requestStart/end multiple times when using push (#14228)Artur Signell2014-08-071-5/+15
| | | | | | | All HTTP request based push request invoke onRequestStart/End in the servlet. We need to trigger start/end separately in push handler only for websocket messages Change-Id: I16064ea88b0c70812f247028ddb23560536db70d
* Document remaining additional style names for Valo (#14107)Jouni Koivuviita2014-08-061-9/+163
| | | | Change-Id: I079492e8a2f3d37d44de3213a2dffb746f726079
* Fix regression caused by #14147 patch (#14147)Anthony Guerreiro2014-08-061-212/+227
| | | | | | The previous patch caused TestCurrentPageFirstItem to fail. Change-Id: I6eec8818f5ba2ce847a696afa40ba423ec482668
* Reverting multiple commits that caused 100+ regression tests to fail.Markus Koivisto2014-08-051-1/+1
| | | | | | | | | | Commits reverted: * 392e8a0 - Minor refactor to #14147 patch * 8d470c9 - Context menu is not shown in Table body on mobi... (#13694) * f7dc719 - Fix Table stuck scroll position after setting ... (#14147) Change-Id: I3f5ed7fa15a9cfebce7a57662d229bf46118c5d6
* Adding a constant for vaadinBootstrap.js (#14284)Fabian Lange2014-08-051-13/+14
| | | | | | | If for any reason a developer wants to parse the bootstrap html, this constants allows easy identification of the bootstrap js. Change-Id: I894cf6e22a7e6d9154c3c9124dda911a86a99475
* Allow changing theme on the fly (#2874, #14139, #14124)Artur Signell2014-08-041-5/+22
| | | | | | | | | | * Updates UI and overlay container class names when the theme changes * Initially verifies that the theme has actually been loaded (for the embed case) and class names have been properly set * Forces a state change to all components to re-translate theme:// URLs * Runs a full layout after the new theme has been loaded and activated Change-Id: I5a7391abe1bb467130bbb4660e4829b43f3e4255
* Disable automatic removal of trailing whitespace and reformatted using LunaArtur Signell2014-07-317-14/+16
| | | | | | | | | | Automatic removal of trailing whitespaces in Eclipse does not work even in a nearly consistent way across platforms, versions or even on the same maching within the same workspaces. Saving the same file multiple times even alternates between adding and removing a whitespace on empty block comment lines when saving. Change-Id: I0efd307fd48869ea688eb79aa77c9ba38de5a4a6
* Fix Table stuck scroll position after setting scroll to last page (#14147)Anthony Guerreiro2014-07-291-1/+1
| | | | Change-Id: I9c39db5c2ccafd495a1ecc8b28687eeeebe3b6c2
* TextArea size get reset when css resize is set (#14080)Bogdan Udrescu2014-07-282-29/+42
| | | | | | | Listen to MouseUp event on the <textarea> and notify the state with the width and height if changed. Add com.vaadin.client.Util.Size to manipulates the css width/height. Change-Id: I96a308658d2877f1f6c05feaa7840a268bb06709
* Fallback to finding disconnected UI based on AtmosphereResource (#14251)Leif Åstrand2014-07-221-7/+43
| | | | Change-Id: Icdac51322a90c32c122a182bc692c4eff3d8285b
* Improves performance of VaadinService.requestEnd(). (#14218)Fabian Lange2014-07-212-130/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doing two times session.accessSynchronously is unnecessary effort in multiple aspects: * The session will be locked twice. * CurrentInstances are set twice. * CurrentInstances are restored twice. * VaadinSession being checked for being the current via VaadinService.verifyNoOtherSessionLocked(this); When we leave requestEnd we unset all CurrentInstances. There is no need to just restore them before doing so. When we are in requestEnd, VaadinSession is set to "current" by PushHandler.callWithUi() or VaadinService.handleRequest(). Also, the cleanupSession code does not need any of these thread locals, so not having them set would also not hurt. having an extra accessSynchronously call for just setting the duration does not make a lot of sense. While it somehow wants to make the previous accessSynchronously call to be counted completely into the duration it invests an the same time that would have been left out additionally. VaadinService removeClosedUIs is a cleanup which also locks and sets CurrentInstances just to figure out that the UI it is checking is not closing. This change moves that check out of ui.accessSynchronously. In the end, the resulting code is a tiny bit less robust, however it eliminates over 50% response time on trivial push request/responses. Change-Id: If71d1dbbae5d1fd57d3d4e735c592fd263261a81
* Fixed javadoc for Upload class (#14266)Heikki Ohinmaa2014-07-211-80/+80
| | | | Change-Id: Ib16d4b8922a139b37d551797ada163b6d6b5e720
* Add asserts checking for negative container sizes (#14232)Leif Åstrand2014-07-176-2/+69
| | | | Change-Id: I5b6298be367e4fe820320a5e3fd6bf5aaa7e2047
* Update Atmosphere runtime to 2.1.2.vaadin3 (#13971)Sauli Tähkäpää2014-07-161-1/+1
| | | | | | | Atmosphere 2.1.2.vaadin3 includes fix for: https://github.com/Atmosphere/atmosphere/issues/1643 Change-Id: I67c07dc3b32ebb3b0eed634bf143bac9a7e5efe2
* Mention Date serialization in javadocs related to JavaScript (#14143)Leif Åstrand2014-07-152-0/+4
| | | | Change-Id: I14d782843684f623a2cf671f14d0ab062829ebac
* Remove csrfToken if disable-xsrf-protection is true (#14111)Bogdan Udrescu2014-07-152-1/+255
| | | | | | | If the server sends no token and the client value remains "init" then it's not sent back to the server. Change-Id: I74fc470c5c22d57c4a48eab3e4476ae4cc2dd242
* Optimizes initial sizes of frequently used Collections. (#14223)Fabian Lange2014-07-145-195/+205
| | | | | | | | | There are a few places in frequently used core classes which could initialize collection classes with the correct (or slightly oversized) length. Maps are initialized with 2x the size due to its load factor. Change-Id: I3aee5a60602937a8550ca5a200ec2a529ff36fe9
* Optimize CurrentInstance.set(UI) and .set(VaadinSession). (#14220)Fabian Lange2014-07-141-54/+40
| | | | | | | | | This change reduces the amount of intermediate steps taken to initialize the thread locals for a given ui or vaadin session. It mainly takes advantage of reusing the old values from the map in set() instead of creating new ones to put into the "old" map which is returned. Change-Id: I4dbaff973f46e73f8f3a0c285b14c97603f2d5a4
* removes extra VaadinSession.setCurrent() from PushHandler. (#14222)Fabian Lange2014-07-141-9/+11
| | | | | | | | | The setCurrent call on VaadinSession is not needed. the one extra call can be saved because service.findVaadinSession will already set it. Added a comment like it is done for UI (service.findUI will also set the UI). Change-Id: Ic24d922554d1316aae310813ef5d00a0bbfd418a
* Fix overwrite mechanism for web.xml atmosphere init params (#14196).Fabian Lange2014-07-101-7/+8
| | | | | | | | | | Non obvious problem before. "config" is a property of AtmosphereFramework which also has getInitParameter(String) method. So it compiles but does not do what is intended: to check against the user defined web.xml servlet init-prams. (the variableName servletConfig has the same problem :-)) Change-Id: Ib02f0b94312327d482775456c2d63a904b1e8104
* Cache sass output compiled on the fly by VaadinServlet (#9532)Leif Åstrand2014-07-101-26/+108
| | | | Change-Id: I5ce36a5c3beffe7b686a8754b6f7311d83b00f87
* Avoid object creation in getAllChildrenIterable in most cases. (#14142)Fabian Lange2014-07-043-63/+59
| | | | | | | | | | | | API change from: public static Iterable<ClientConnector> getAllChildrenIterable(final ClientConnector connector) to public static Iterable<? extends ClientConnector> getAllChildrenIterable(final ClientConnector connector) avoids creating wrappers in case the component has either no subcomponents or no extensions. This covers the vast majority of components. Change-Id: I48ffd2f26f09c265fae6e1aaabdbaa655d52ffb8
* Revert "Allow changing theme on the fly (#2874)"Henri Sara2014-07-031-22/+5
| | | | | | | | | | | | | | | | This reverts commit 1b73b00b2875c5eafa3c641b77f5d9efc2f7d929 as well as the related changes to @since, release notes etc. Conflicts: client/src/com/vaadin/client/ResourceLoader.java client/src/com/vaadin/client/communication/TranslatedURLReference.java client/src/com/vaadin/client/ui/ui/UIConnector.java server/src/com/vaadin/ui/UI.java shared/src/com/vaadin/shared/ui/ui/UIState.java uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java Change-Id: Id882dc730f51055f6d17200964bcaf8a1f87a35f
* Add missing @since 7.3 to javadocHenri Sara2014-07-035-5/+7
| | | | Change-Id: I62610ef647fbbb5a7cfae25ac5c7628f78f2c6ff
* Reading properties of components should not set state to dirty (#14060).Fabian Lange2014-07-011-8/+12
| | | | | | Fixed issue with SplitPanels which were not marking sets as dirty. Change-Id: I23bb8bfca87a825aef132f249e05871cf7b36a34
* Add conf option for disabling sync id checking (#14084)Leif Åstrand2014-07-016-5/+62
| | | | Change-Id: If3fcc88e69d797b219f5af5906853a42d81f693c
* Ignore -1 sync id on the server (#14084)Leif Åstrand2014-07-011-2/+15
| | | | Change-Id: Iad73c44852c207f29381d59bea25275ac8f24dbd
* Merge branch 'master' into valoHenri Sara2014-06-301-36/+0
|\ | | | | | | Change-Id: Ifeb36e6c0acd156b7714f96f32ad7d4ff8416100
| * Remove VaadinServlet.handleServiceSecurityException (#14082)Leif Åstrand2014-06-271-36/+0
| | | | | | | | Change-Id: I80029235997e29e0d430bccfd3a7b050598e4031
* | Merge branch 'master' into valoJouni Koivuviita2014-06-271-5/+22
|\| | | | | | | Change-Id: Iffe877e047ee29dbd4e5b3a6098f82da3d0a47cc
| * Allow changing theme on the fly (#2874)Artur Signell2014-06-261-5/+22
| | | | | | | | Change-Id: I70c153c4109428686002f985bfe1cb7cba2c9b31
* | Merge branch 'master' into valoJouni Koivuviita2014-06-2631-180/+393
|\| | | | | | | Change-Id: I9f804f3ba10922a3d59999df06a23f2daa4cd4e8
| * Don't complain about missing sync id for critical notifications (#14081)Leif Åstrand2014-06-251-0/+2
| | | | | | | | Change-Id: I351d256230a5cd674a5e1b8066d3e2aef07ff3bf