Wednesday, March 26, 2008

How can you specify a state

How can you specify a state (i.e. in an application) without needing the use to select it (using a BP selector).

1 comment:

Unknown said...

You need to get the following javascript into your DocumentShell:

ApplicationEventManager.getInstance().setBlueprint(blueprintObject)

where blueprintObject has at minimum an id property. For example the javascript literal object {id:14} would set all of the elements within the DocumentShell to use the blueprint with id=14. The javascript can be added via an HTMLFragment, or via a DocumentFragment running a custom JSP.