Looks like the generated javascript does not use the correct name. It should show:
function initAllRows() {
var table = document.getElementById("f:subview:Fragment1:table1");
table.initAllRows();
}
It should match your subview id:
<f:subview id="Fragment1">
I've logged a bug for this 6490603.
Hope it helps,
Lark
Creator Team
I allways try to avoid problems with the algorythm for generating the client IDs. My app creates all javascript, that contains client IDs, dynamically in page bean.
JSP
<ui:.. id="myComponent" onClick="#{MyBean.myComponentOnClick}">
Page Bean
public String getMyComponentOnClick()
{
StringBuilder script = new StringBuilder();
...
script.append(this.otherComponent.getClientId(getFacesContext()));
...
return script.toString();
}
If the algorythm changes, there is no need to change the code. Maybe there is a way more elegant.