users@jsf-extensions.java.net

fireAjaxTransaction - IDs not corresponding to components

From: noah <iamnoah_at_gmail.com>
Date: Sat, 14 Apr 2007 10:11:50 -0500

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?