2017-01-16 16 views
0

Ich verwende JSF in meiner Anwendung. Ich bekomme Laufzeitfehler während der Anzeige von Daten über Ace LinkButton.Eigenschaft 'linkButton' von undefined kann nicht gelesen werden

Fehler ich bin immer ist: Uncaught Typeerror: kann Eigenschaft ‚linkbutton‘ undefinierter

Durch diese Verbindung wird nicht gelesen aktivieren. Ich verstehe, dass etwas nicht initialisiert wird, deshalb bekomme ich Fehler, aber weiß nicht was.

Das ist mein Code:

<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> 
+0

Hallo, bitte erstellen Sie eine [mcve]. Die größte Chance besteht darin, dass Sie eine jquery-Bibliothek manuell hinzugefügt haben. – Kukeltje

Antwort

1

I <ace:linkButton> zu <ice:commandLink> geändert und jetzt ist es funktioniert, obwohl ich weiß immer noch nicht, was das Problem war.

Verwandte Themen