像这样通过 jquery 修改 f:setPropertyActionListener 的值后出现一个错误:
$('#javax\\.faces\\.ViewState').val("1111111");
我检查了元素以了解它的 id(它被转换为隐藏输入)
这是 jsf 元素:
<p:commandButton actionListener="#{typeMB.supprimer}" value="supprimer" >
<f:setPropertyActionListener target="typeMB.selectedIdType" value="dcscdc" />
</p:commandButton>
</h:form>
然后在页面的代码源中:值受到影响,但方法“supprimer”没有被执行,我有这个错误:
mars 19, 2013 3:33:12 PM com.sun.faces.renderkit.ClientSideStateHelper doGetState
SEVERE: Not in GZIP format
java.util.zip.ZipException: Not in GZIP format
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:164)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:78)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:90)
at com.sun.faces.renderkit.ClientSideStateHelper.doGetState(ClientSideStateHelper.java:231)
at com.sun.faces.renderkit.ClientSideStateHelper.getState(ClientSideStateHelper.java:198)
at com.sun.faces.renderkit.ResponseStateManagerImpl.getState(ResponseStateManagerImpl.java:100)
at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:227)
at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:188)
at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:453)
at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:148)
我该如何解决
先感谢您