当我在没有它的情况下使用此代码时,<p:tab>
它会按预期工作,
<h:form>
<p:wizard>
<p:tab title="Test-1">
<h:form>
<p:growl id="msg"/>
<p:selectOneMenu value="#{studentController.departmentIDgenerate}">
<f:selectItems value="#{departmentController.departmentList}" var="deparet" itemLabel="#{deparet.departmentName}" itemValue="#{deparet.departmentId}"/>
<p:ajax listener="#{studentController.addMessage}" update="msg"/>
</p:selectOneMenu>
</h:form>
</p:tab>
<p:tab title="Test-2">
</p:tab>
</p:wizard>
</h:form>
但是当我开始使用时<p:tab>
,它会引发以下异常:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at com.sun.faces.renderkit.ServerSideStateHelper.getState(ServerSideStateHelper.java:266)
at com.sun.faces.renderkit.ResponseStateManagerImpl.getState(ResponseStateManagerImpl.java:100)
这是如何引起的,我该如何解决?