Skip to content
PDF

Extending BWF

Content Script Volume

As for Content Script, Beautiful WebForms makes use of the Content Script Volume to store a set of objects necessary for the correct operation of the framework. These object are stored in specific containers, which will be covered on the following sections:

  • CSFormTemplates

  • CSFormSnippets

  • CSServices

  • CSScriptSnippets

CSServices

The CSServices container is dedicated to Content Scripts that should be accessible as REST services, and has been covered in the previous sections.

Content Script REST services are somehow related to Beautiful WebForms in that some components used to build forms (essentially, the ones with AJAX capabilities) make use of these services to work correctly.

An example is the getuserbyname REST service, which backs the user selection components available in the form builder.

CSFormTemplates

The CSFormTemplates container is dedicated to HTML templates associated to Beautiful WebForms Views.

The templates are essentially Velocity HTML templates. A placeholder expression indicating where the actual Form Fieldset should be placed, this should usually be present in all Beautiful WebForms Templates.

New templates added to this folder will automatically be available in the template selection dropdown menu accessible from the Beautiful WebForms Views Specific Properties tab.

CSFormSnippets

The CSFormSnippets container is dedicated to the libraries of components that are available to build Beautiful WebForms views.

The CSFormSnippets container is organized on two levels: the first level is a container and identifies the Component Family, while at the second level there are the actual components.

New component families and components created in this container will automatically be available to the developer in the Beautiful WebForms Form Builder tool.