I am developing a JSF (JavaServer Faces) page using PrimeFaces 5.1.2. However, when I run my application I get the following error in the browser console:
jquery.js.xhtml?ln=primefaces&v=5.1.2:25 Uncaught TypeError: Cannot read properties of undefined (reading 'debug')
I can't update the jsf version. However, a lot of new problems appear. So it seems like an update is needed in the code. But I can't find where the problem is. Is it a tag I used that is wrong? (fileUpload, growl...)
This is my code:
<!DOCTYPE html>
<html xmlns=";
xmlns:ui=";
xmlns:p=";
xmlns:f=";
xmlns:h=";>
<h:head>
<style>
.ui-widget-overlay {
background: rgba(64, 64, 64, 0.85) !important;
display: block !important;
}
</style>
</h:head>
<body>
<h:form id="proposalIdForm">
<p:growl id="proposalIdGrowlId" showDetail="true" sticky="false" life="4000"/>
<fieldset style="background: none; border: 1px solid #CCCCCC; padding: 10px; border-radius: 10px;">
<legend style="padding-left: 10px; font-size: small; margin-left: 10px; border-bottom: 0; width: 120px">
#{messages['tr.superonline.crm.web.bi.premon.proposalId.panel']}
</legend>
<ui:fragment>
<div class="row">
<div class="col-md-12">
<ui:decorate template="/WEB-INF/templates/edit.xhtml">
<ui:param name="colwidth" value="5"/>
<ui:define name="_label">#{messages['tr.superonline.crm.web.bi.premon.proposalId.label']}</ui:define>
<p:inputText id="proposalIdText"
maxlength="200"
placeholder="#{messages['tr.superonline.crm.web.bi.premon.proposalId.placeHolder']}"
value="#{proposalIdController.proposalId}">
</p:inputText>
</ui:decorate>
<ui:decorate template="/WEB-INF/templates/edit.xhtml">
<ui:param name="colwidth" value="5"/>
<ui:define name="_label">#{messages['tr.superonline.crm.web.bi.premon.proposalId.notenteredreason.label']}</ui:define>
<p:selectOneMenu autoWidth="false" id="proposalIdReasons" name="proposalIdReasons"
value="#{proposalIdController.proposalIdReason}">
<f:selectItem itemLabel="#{messages['tr.superonline.crm.web.bi.premon.proposalId.notenteredreason.pleaseSelect']}" itemValue="#{null}"/>
<f:selectItems value="#{proposalIdController.proposalIdReasonList}" var="_reasonItem" itemLabel="#{_reasonItem}" itemValue="#{_reasonItem}"/>
</p:selectOneMenu>
</ui:decorate>
</div>
</div>
</ui:fragment>
</fieldset>
<fieldset style="padding-top: 10px;">
<ui:fragment>
<div class="col-md-6">
<p:outputPanel style="text-align: start">
<p:commandButton
value="#{messages['tr.superonline.crm.web.bi.premon.button.showDocument']}"
id="showDocButton"
icon="fa fa-archive"
action="#{proposalIdController.showDocument}"
immediate="true"
/>
</p:outputPanel>
</div>
<div class="col-md-6">
<p:outputPanel style="text-align: end">
<p:commandButton value="#{messages['tr.superonline.crm.web.bi.premon.button.next']}"
styleClass="btn btn-xs"
icon="fa fa-arrow-circle-right"
update=":proposalIdForm:proposalIdGrowlId"
action="#{proposalIdController.validateInputs}"/>
</p:outputPanel>
</div>
</ui:fragment>
</fieldset>
<!-- Doküman Yükleme -->
<fieldset style="margin-top: 20px; background: none; border: 1px solid #CCCCCC; padding: 10px; border-radius: 10px;">
<legend style="padding-left: 10px; font-size: small; margin-left: 10px;">
Doküman Yükleme
</legend>
<div class="row">
<div class="col-md-12">
<!-- Dosya Yükleme -->
<p:fileUpload fileUploadListener="#{proposalIdController.handleProposalOrderConfirmationUpload}"
mode="advanced"
auto="true"
dragDropSupport="true"
update="proposalIdGrowlId fileUploadPanel"
immediate="true"
label="Dosya Seç"/>
</div>
</div>
<!-- Yüklenen Dosya Adı -->
<div class="row" style="margin-top: 20px;">
<div class="col-md-12">
<p:outputPanel id="fileUploadPanel">
<p:outputLabel id="fileNameDisplayId"
value="Yüklü Dosya: #{not empty proposalIdController.uploadedFile.fileName ? proposalIdController.uploadedFile.fileName : 'Dosya Seçilmedi'}"
style="font-weight: bold; color: red;"/>
</p:outputPanel>
</div>
</div>
</fieldset>
</h:form>
</body>
</html>
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744270206a4566062.html
评论列表(0条)