在以下问题上,我需要您的帮助,单击命令按钮3次后,我的jsf应用程序冻结。我似乎不知道为什么会这样,而且我也不知道错误是从哪里来的,我不得不在应用程序启动之前重新启动tomcat,下面是我的代码;
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:b="http://bootsfaces.net/ui"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<b:container>
<div style="height: 15px" />
<h:form id="job-main-form" class="job-main-form">
<div class="controls">
<div class="row">
<div class="col-lg-9">
<b:inputText id="e_qualificationToBeAwarded"
value="#{job.searchTerm}" placeholder="Profession you are looking for"
maxlength="255" styleClass="ui-fluid" />
</div>
<div class="col-lg-3">
<b:commandButton type="submit" value=""
action="#{job.seachJobs}"
iconAwesome="search" id="btn"
class="btn btn-primary" />
</div>
<div class="row">
<div class="col-lg-12">
<p:dataTable id="datalist" value="#{job.listOfJobs}" var="item"
selectionMode="single" selection="#{job.jobs}" reflow="true"
paginator="true" paginatorPosition="bottom"
rowKey="#{item.id}"
rows="10"
rowsPerPageTemplate="10,20,30,40,50"
>
<p:column width="200" >
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText value="#{item.name}"/>
</p:column>
</p:dataTable>
</div>
</div>
</div>
</div>
</h:form>
</b:container>
</h:body>
我的bean方法是
public void seachJobs(){
listOfJobs = commonsession.getJobsByName(searchTerm);
}