如何从复合组件外部引用元素

时间:2019-05-23 14:22:25

标签: jsf primefaces composite-component

我有一个     <p:datatable id="resultatTitre"> 模板中的元素。我将此元素移动到名为“ tableSearch”的复合组件中。因此,通过诸如target="resultatTitre"block="resultatTitre"trigger="resultatTitre"update="resultatTitre"之类的属性,引用该元素的页面的其他元素将不再直接可见该元素。

如何从“ tableSearch”组件外部引用该元素?通过“ @tableSearch:p:resultatTitre”之类的语法...还是通过组件级别的类似导出的指令?

我在jsf / primefaces中还很陌生,谷歌给了我很多线索...谢谢您的关注!

我得到的错误是:Cannot find component for expression "resultatTitre" referenced from "j_idt128"

"@tableSearch:resultatTitre"这样的语法给我这个错误  :javax.faces.FacesException: No SearchExpressionResolver available for expression "@tableSearch"

0 个答案:

没有答案