Javascript changes
One goal of WF-2.0 is to reduce javascript file inclusion in the header. For that purpose the build process in
WF-2.0 has been modified so that widget specific javascript merge to a single file. You have to put the javascript
in a specific location in the widget. Then the build process will merge those. The location is
<widget>/src/main/webapp/jscripts
.The merged javascript file will be
created as <war>/resources/js/wf-widget.js
.
widget1 src main webapp jscripts somejs1.js somejs2.js ...
widget2 src main webapp jscripts somejs3.js somejs4.js ...
widget-framework-util.js will be delivered by servlet. It has been moved out from resources/js directory. The new path to include widget-framework-util.js is
http://<host>/<publication>/escenic/js/widget-framework-util.js
Several third party libraries has been removed and their functionalities has been implemented using jquery, jquery ui. The third party plugins that has been removed are
jscal2.js
en.js
jquery.form.js
jquery.jqpopup.min.js
jquery.charcounter.js
captify.js
If you don't update widgets then you must add these files in the corresponding location and updates the
head.jsp
file. If you upgrade all widgets to WF 2.0 then you don't need to these files.