javascript - 无法读取未定义的属性 'linkButton'

标签 javascript jsf icefaces

我在我的应用程序中使用 JSF。我在通过 ace linkBut​​ton 显示数据时遇到运行时错误。

我收到的错误是:未捕获类型错误:无法读取未定义的属性“linkBut​​ton”

由于此链接未启用。我知道有些东西没有初始化,这就是为什么我收到错误,但不知道是什么。

这是我的代码:

<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>现在它正在工作,尽管我仍然不知道问题是什么。

关于javascript - 无法读取未定义的属性 'linkButton',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41669870/

相关文章:

jsf - 部署后我无法访问我的简单 jsf 项目

java - JSF View 在每个 ajax 请求上得到重建

java - 从 Icefaces Web 应用程序调用的 Servlet 在客户端上造成持续的高 CPU 使用率

javascript - 如何禁用 `datepickr.js` 中的过去日期?

javascript - 将 Dicom 文件显示为 HTML 中的图像序列列表

java - ApplicationContext.getBean 与 new 关键字

java - 除了使用操作之外,还可以通过单击按钮来设置值

css - 表格在无序列表项上对齐

javascript - 如何检查浏览器是否支持公钥凭据?

javascript - 根据某个值进行 x 次计算