Embedding a constructed component instance

The page constructs an EmbeddedCounter itself, sets its label through a plain setter before it is ever rendered, keeps the reference, and embeds it with ERXWOComponentInstance. The component's own action advances its counter (state that must survive across requests); the page can also bump it directly by calling a method on the instance; a note binding is passed alongside; and the instance can be replaced wholesale.

Generation: 1

Label (set by the page at construction): first

Count (state owned by this instance): 0

Note (pulled from the page's binding): hello from the page

Bump from inside the component

Wrapped content, rendered by the instance's wo:content.

Bump by calling a method on the instance · Replace the instance · Bind a stateless instance (must fail loudly)

Home