primefaces / primeui

Rich set of javascript-css only widgets
http://www.primefaces.org/primeui
285 stars 125 forks source link

Custom content bug in p-column #155

Closed cagataycivici closed 8 years ago

cagataycivici commented 8 years ago

Reported at PrimeFaces forum.

http://forum.primefaces.org/viewtopic.php?f=16&t=44319

I upgrade my application from 2.2 to 3.0, use replace .puidatatable(), it's great. but >when I use mustache template to custom content of , it's not work! Debug into code , I found the custom content function always call with last column, so only last column >can use custom content. It is more like a issue then a design limit. It occus at line 502 in primeelenents-3.0.0.js, like below code: col.template = columnElement.children('script').text(); the col.template always get last p-column's script content. Anyone has got this issue too?