我有一个带有commandLink的简单表单,当我点击链接时我在浏览器控制台Uncaught TypeError: Cannot set property 'adp' of null
中收到此消息,当我用h:commandButton替换h:commandLink时,它工作正常
<div class="modal fade" id="editSms" role="dialog"
aria-labelledby="contactLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-hidden="true">×</button>
<h4 class="modal-title" id="contactLabel">Edit SMS template</h4>
</div>
<h:form id="editSmsForm">
<div class="modal-body form-horizontal">
<div class="form-group">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 cfItem">
<h:inputTextarea id="oldSms" readonly="true"
value="#{homeBean.campaignDetails['Collateral_SMS_Text']}"
rows="3" style="resize: none" class="form-control" />
</div>
</div>
<div class="form-group">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 cfItem">
<h:inputTextarea id="newSms"
value="#{homeBean.campaignDetails['Collateral_SMS_Text']}"
rows="3" style="resize: none" class="form-control"
a:placeholder="New SMS... " />
</div>
</div>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal"
class="btn btn-outline btn-default">Close</a>
<h:commandLink actionListener="#{homeBean.test}" value="Save"
styleClass="btn btn-outline btn-primary">
</h:commandLink>
</div>
</h:form>
</div>
</div>
</div>