无法读取未定义的属性'linkButton'
问题描述:
我在我的应用程序中使用JSF。我在通过ace linkButton显示数据时出现运行时错误。无法读取未定义的属性'linkButton'
错误我得到的是:遗漏的类型错误:无法读取的不确定
财产“的LinkButton”由于这个环节不启用。我知道有些东西没有初始化,这就是为什么我得到错误,但不知道是什么。
这是我的代码:
<ice:panelGroup>
<fieldset>
<legend>Downstream info</legend>
<ice:panelGrid columns="2">
<ice:outputLabel value="Channel type" />
<ice:outputText value="Primary"/>
<!-- Downstream -->
<ice:outputLabel value="Channel ID" />
<ice:panelSeries id="dsChannelId" value="#{viewCustomerBean.pollModemResult.downstreamChannelID}" var="item">
<ice:panelGroup style="width:63px;float:left;text-align:center;"><ice:outputText value="#{item}" /></ice:panelGroup>
</ice:panelSeries>
<ice:outputLabel value="Frekvens (Hz)" />
<ice:panelSeries id="dsFrekvensId" value="#{viewCustomerBean.pollModemResult.downstreamFrekvens}" var="item">
<ice:panelGroup style="width:63px;float:left;text-align:right;"><ice:outputText value="#{item}" rendered="#{item!=0}"/></ice:panelGroup>
<ace:linkButton id="FrekID" value="#{item}" action="#{viewCustomerBean.pollModemResult.showFreqPopup}" rendered="#{item==0}"/>
</ice:panelSeries>
<ice:outputLabel value="Received power level (dBuV)" />
<ice:panelSeries id="dsPowerId" value="#{viewCustomerBean.pollModemResult.downstreamReceivedPowerLevel}" var="item">
<ice:panelGroup style="width:63px;float:left;text-align:center;"><ice:outputText value="#{item}" /></ice:panelGroup>
</ice:panelSeries>
<ice:outputLabel value="Downstream SNR (dB)" />
<ice:panelSeries id="dsSNRId" value="#{viewCustomerBean.pollModemResult.downstreamSNR}" var="item">
<ice:panelGroup style="width:63px;float:left;text-align:center;"><ice:outputText value="#{item}" /></ice:panelGroup>
</ice:panelSeries>
<ice:outputLabel value="Downstream MER (dB)" />
<ice:panelSeries id="dsMERId" value="#{viewCustomerBean.pollModemResult.downstreamMER}" var="item">
<ice:panelGroup style="width:63px;float:left;text-align:center;"><ice:outputText value="#{item}" /></ice:panelGroup>
</ice:panelSeries>
</ice:panelGrid>
</fieldset>
</ice:panelGroup>
答
我改变<ace:linkButton>
到<ice:commandLink>
,现在它的工作,但我还是不知道究竟是什么问题。
嗨,请创建一个[mcve]。最大的机会是你手动包含一个jQuery库。 – Kukeltje