【发布时间】:2016-04-21 15:50:59
【问题描述】:
我有一个复合材料(如 xmlns:composite="http://java.sun.com/jsf/composite")。我通过
调用它<comps:cimgx imgId="imA" flav="r" />
(例如)在页面上。有没有办法通过 javascript 引用此复合客户端生成的所有 html 对象?
类似
window.document.getElementsBy_magic_jsf_tagType("comps.cimagx");
编辑:或在合成中类似
#{cc.JSF_tag_type_name}
??
Edit2:关于我问这个问题的背景,请参阅Is it possible to add a javascript function to a h:form in jsf2?
【问题讨论】:
标签: javascript jsf-2 composite-component