~~ Licensed to the Apache Software Foundation (ASF) under one or more ~~ contributor license agreements. See the NOTICE file distributed with ~~ this work for additional information regarding copyright ownership. ~~ The ASF licenses this file to You under the Apache License, Version 2.0 ~~ (the "License"); you may not use this file except in compliance with ~~ the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, software ~~ distributed under the License is distributed on an "AS IS" BASIS, ~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~~ See the License for the specific language governing permissions and ~~ limitations under the License. ------ What's new in Tobago 2.0? ------ {What's new in Tobago 2.0?} At July 21, 2014 the version 2.0.0 has been released. Here was a quick overview over the features and changes made in the last time to release this major revision. Tobago 2.0.0 contains 184 entries in {{{http://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310273&styleName=Html&version=12321253}Jira}} and most of them are exclusive in this version. Please take also a look at the {{{./migration-2.0.html}Migration from Tobago 1.5 to 2.0}} guide. Enhancements * Date- and Time-Picker * Using jQuery UI Datepicker and TimePicker Addon * Faster — no server request * Better interactivity * Old Date-/TimePicker via <<>> * Draggable Popups * Input Suggest * New implementation * Sub-Tag <<>> * More configuration options * Tabs * Icons * Toolbar buttons * File upload * Looks pretty now in every browser * Radio Buttons * Icons New Features * HTML WYSIWYG Editor * Integration example in the demo of {{{http://ckeditor.com/}CKEditor™}} and {{{http://www.tinymce.com/}TinyMCE}} * Not included, because of incompatible licences or breaks CSP * Other possible, but many have disadvantages * Default Command for Sub-Forms * Dependent from the focused input, the default command will be selected * Markup to show the command to the user * Tree and Tree-Table * Big internal refactoring * Work internally now with the JSF <<>> * Free model: <<>> is not required any longer, but you can implement <<>> * TreeTable * Infinite Trees possible * Selectors: sub-tree selection * More * Dynamic lists in <<>> need not glue code (JSF 2.0) * Redirect in navigation rules doesn't break layout size * Additional possibility to show paging arrows in sheet * Automatically create accesskey from underscore is know configurable Security * Content Security Policy * To prevent XSS * {{{http://www.w3.org/TR/CSP/}W3C Standard}} * Idea: * Don't execute any code inside the HTML file * No content in script tags * no onclick, nor on* etc. * Don't execute <<>> * Don't apply CSS inside the HTML file * Define the sources of any resources * Strict separation of code and data * Keep the code in JavaScript Files * Put additional data in HTML5 <<>> attributes * Browser support: all current, but IE 10 and 11 only "sandbox" * Activated by default, can be configured via <<>> * There is also a "report-only" mode for development * Content Security Policy and Tobago * All renderers and scripts are refactored to be compliant with CSP * Using application specific JavaScript in Tobago * script attribute in command tags is deprecated * Problem: when setting non of these attributes: <<>>, <<