Jsf 在primefaces选项卡视图中使用IntroJs框架进行巡演';行不通

Jsf 在primefaces选项卡视图中使用IntroJs框架进行巡演';行不通,jsf,primefaces,intro.js,Jsf,Primefaces,Intro.js,我使用的是IntroJs框架(),我的问题是在tabView(primefaces组件)上执行一次巡更(intro)。 当我将内联atributedata intro放入p:tab组件中时,primefaces会忽略它们,并且introJsstart()函数无法看到它生成的html组件 这是我的代码: <p:tabView id="tabView" scrollable="true" styleClass="users"> <p:tab title="ldap" id=

我使用的是IntroJs框架(),我的问题是在tabView(primefaces组件)上执行一次巡更(intro)。 当我将内联atribute
data intro
放入
p:tab
组件中时,primefaces会忽略它们,并且introJsstart()函数无法看到它生成的html组件

这是我的代码:

<p:tabView id="tabView" scrollable="true" styleClass="users">
    <p:tab title="ldap" id="tabLDAP" data-intro="test">
    <ui:include src="tabldap.xhtml" />
</p:tab>

要呈现非JavaServer Faces属性的属性,需要使用传递属性。 我看到您正在使用Primefaces,因此这是一篇有用的博客文章:

JSF2.2有一个很好的特性,可以向组件添加动态属性 在运行时,这些属性称为传递属性。 PrimeFaces4.0旨在同时支持JSF2.0、2.1和2.2 使用运行时检测和最近通过属性的时间 支持添加到4.0中

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
xmlns:p="http://primefaces.org/ui">

<h:head>
</h:head>

<h:body>

<p:inputText value="#{bean.value}" pt:placeholder="Watermark here"/>

</h:body>
</html>


另一篇有用的文章:

请像阅读我们一样阅读您的问题。。。你觉得你能帮忙吗?我个人无法做到。请阅读并…抱歉,第一次到这里。更好?好吧,只是稍微好一点。至少有一些示例代码,但它不是最小的,也不是完整的,也不是可验证的