{
clientIds2.add(c.getClientId(facesContext));
}
Assert.assertArrayEquals(clientIds.toArray(), clientIds2.toArray());
ComponentBindingFormBean formBean = facesContext.getApplication().evaluateExpressionGet(
facesContext, "#{componentBindingFormBean}", ComponentBindingFormBean.class);
formBean.forceRebuild();
processLifecycleRender();
comp = facesContext.getViewRoot().findComponent("mainForm:panel");
Assert.assertNotNull(comp);
fieldCount = comp.getChildCount();
clientIds.clear();
for (UIComponent c : comp.getChildren())
{
clientIds.add(c.getClientId(facesContext));
}
button = (UICommand) facesContext.getViewRoot().findComponent("mainForm:postback");
client.submit(button);
processLifecycleExecute();
comp = facesContext.getViewRoot().findComponent("mainForm:panel");
Assert.assertNotNull(comp);
Assert.assertEquals(fieldCount, comp.getChildCount());
clientIds2.clear();
for (UIComponent c : comp.getChildren())
{
clientIds2.add(c.getClientId(facesContext));
}
Assert.assertArrayEquals(clientIds.toArray(), clientIds2.toArray());
formBean = facesContext.getApplication().evaluateExpressionGet(
facesContext, "#{componentBindingFormBean}", ComponentBindingFormBean.class);
formBean.forceRebuild();
processLifecycleRender();
comp = facesContext.getViewRoot().findComponent("mainForm:panel");
Assert.assertNotNull(comp);
fieldCount = comp.getChildCount();
clientIds.clear();
for (UIComponent c : comp.getChildren())
{
clientIds.add(c.getClientId(facesContext));
}
button = (UICommand) facesContext.getViewRoot().findComponent("mainForm:postback");
client.submit(button);
processLifecycleExecute();
comp = facesContext.getViewRoot().findComponent("mainForm:panel");
Assert.assertNotNull(comp);
Assert.assertEquals(fieldCount, comp.getChildCount());
clientIds2.clear();
for (UIComponent c : comp.getChildren())
{
clientIds2.add(c.getClientId(facesContext));
}
Assert.assertArrayEquals(clientIds.toArray(), clientIds2.toArray());
formBean = facesContext.getApplication().evaluateExpressionGet(
facesContext, "#{componentBindingFormBean}", ComponentBindingFormBean.class);
formBean.forceRebuild();
processLifecycleRender();
comp = facesContext.getViewRoot().findComponent("mainForm:panel");
Assert.assertNotNull(comp);