jsf - Children component does not contain id parent in facet -


in datatable there possibility define custom facet. facet i'm trying define contains 1 p:menubutton, because facets contained in paginator, p:menubutton display on top , bottom of datatable. first issue was, client id duplicated (and couldn't open menubutton). fixed issue setting specific id, see https://github.com/primefaces/primefaces/pull/2651/files, works partially...

because, if put 2 p:menubutton (or component) fix won't work. uipanel created getfacet() method when contains more 1 element, , looks event though force id won't set id children. firts, let's see fix:

uicomponent elementfacet = uidata.getfacet(element); if(elementfacet != null) {     // determines new id     string facetname = element.replaceall("[\\w+]", "_").tolowercase();     elementfacet.setid(uidata.getid() + facetname + position);     elementfacet.encodeall(context); } 

the output html

<div id="table_form:table_form:table_paginator_top">     <span id="table_form:table_form:j_idt246" class="ui-menubutton">       <button id="table_form:table_form:j_idt246_button" />     </span> </div> 

i expect p:menubutton contains parent id (e.g table_form:table_form:table_paginator_top) not that, why that?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -