JQuery and other JS-based libraries are getting used more and more for application development across the industry, and there are now a huge number of open source and other script libraries available that support a wide range of features. We increasingly see Web Experience Factory (WEF) customers using these libraries in their WEF applications. To support this trend, we've just posted a series of articles and samples on using jQuery and other JS libraries, along with a "Script Application" builder that you can download.
By combining WEF with jQuery or other scripting libraries you can:
- Build portlets and applications using the skills many developers already have with jQuery, Backbone.js, ExtJS, or other scripting libraries
- Easily use REST/JSON to access data and services using the full array of WEF's data integration and transformation builders
- Selectively enhance a WEF application's UI using any of the available script UI libraries
- Leverage all of WEF's support for Portal features such as portlet preferences and shared render parameters
- Leverage WEF's unique support for dynamic profiling, to generate different application variations for different target audiences or devices
The new articles and samples show a few different scenarios for using WEF with script libraries. They show how you can do this using standard WEF builders, and then they show how the Script Application builder can make things simpler. The Script Application builder automates a common pattern for building script-based applications:
- A single HTML page provides the shell of the application, with links to JS and CSS for libraries and for application code
- Server-based code provides REST/JSON access to data and services
Using WEF and the Script Application builder, you supply the application JS/HTML, specify the libraries you want to use, and then the portlet or web application is generated for you. For access to data and services, you can reference a WEF Service Provider model and have all of its operations automatically available to your JS code via REST/JSON.
We expect to continue posting additional samples and downloadable tools related to building script-based applications and using script libraries with WEF. There are a lot of different potential scenarios for using WEF's model-based code generation with client script-based applications. If there are specific scenarios that you are interested in, we'd love to hear about them, by adding comments here, posting in the WEF forum, or email.
Here's a list of the recently posted articles and downloadable code, all available on the WEF wiki:
- Leveraging Other Web UI Frameworks with Web Experience Factory
- A Simple jQuery Web Experience Factory Sample
- Leverage Web Experience Factory Data Service Operations From a jQuery UI
- Script Application Builder for Using jQuery and Other Scripting Libraries
- Leverage Web Experience Factory Data Service Operation Results For A jQuery jqPlot Pie Chart