I have a component that outputs two element with distinct ids, e.g.
<div id="foo">
...
</div>
<input type='hidden" id="foo:bar" />
If I do:
DynaFaces.fireAjaxTransaction(foo, {
render: 'foo,foo:bar',
inputs: 'foo:bar'
});
it seems like what happens is that (on callback) foo and foo:bar are
removed and replaced with the output of the component, which happens
to include foo and foo:bar. (The response only has one render element,
id="foo")
My question is 1. Is this expected behavior? and 2. Can I rely on this
behavior, i.e. the removal of foo:bar, to remain consistent in the
future?