Strings
Composite applications often use comma-separated value (CSV) strings to serialize lists for transfer between server and client.
The Composite Application Framework library extends the core JavaScript String object with extra methods:
![*](bullet.gif)
The
formatMessage(params) method constructs a parameterized message similar to the
java.text.MessageFormat class.
![*](bullet.gif)
The
escapeJS() method ends the use of JavaScript blocks within programmatically generated HTML fragments.
![*](bullet.gif)
The
escapeRegExp() ends the JavaScript for use by new
RegExp() method.
![*](bullet.gif)
The
trim() method deletes the leading and trailing white space.