java - Why doesn't h:dataTable inside ui:repeat get correct ID? -


code:

<ui:repeat var="obj" value="#{demo2bean.somelist}">     <h:panelgroup id="foo" />     <h:datatable id="bar" /> </ui:repeat> 

result:

<span id="j_idt55:0:foo"></span> <table id="j_idt55:0:bar"><tbody><tr><td></td></tr></tbody></table> <span id="j_idt55:1:foo"></span> <table id="j_idt55:0:bar"><tbody><tr><td></td></tr></tbody></table> 

as can see, id datatables same 'j_idt55:0:bar' panelgroups grows (as should): 'j_idt55:0:foo', 'j_idt55:1:foo'. why so?

because it's bug in uidata#getclientid(). i've reported issue 1830.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -