2011-08-21 77 views
0

當視圖嘗試渲染時,我使用icefaces validators標籤以簡單的冰面形式獲取此異常,而且即時通訊使用spring實例化託管的bean,但它在其他頁面中正常工作,所以我不覺得春天是問題...這是個例外:java.lang.UnsupportedOperationException與ICEFaces

java.lang.UnsupportedOperationException:實現SWF集成在 com.icesoft.util.SeamUtilities.getSpringFlowId(SeamUtilities.java:542) at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeBegin(FormRenderer.java:146) at com.ice soft.faces.component.ext.renderkit.FormRenderer.encodeBegin(FormRenderer.java:42) 在 org.icefaces.impl.renderkit.RendererWrapper.encodeBegin(RendererWrapper.java:50) 在 javax.faces.component。 UIComponentBase.encodeBegin(UIComponentBase.java:824) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) at javax。 faces.component.UIComponent.encodeAll(UIComponent.java:1646) 在 com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389) 在 com.sun.faces.application.view。 MultiViewHandler.renderView(MultiViewHand (com.un.faces.lifecycle.Phase.doPhase(Phase.java:97)at )com.un.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) com.un.faces.lifecycle.Phase.doPhase(Phase.java:97)at com .sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain的.java:290) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 在 org.apache.catalina.core.Standar dContextValve.invoke(StandardContextValve.java:191) 在 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 在 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) 在等.....

這是我的網頁的代碼:

<?xml version="1.0" encoding="UTF-8" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:h="http://java.sun.com/jsf/html" 
    xmlns:ice="http://www.icesoft.com/icefaces/component" 
    xmlns:ui="http://java.sun.com/jsf/facelets"> 
<ui:include src="generic-modules/header.xhtml" /> 
<h:body> 
    <ui:include src="generic-modules/header-navigation.xhtml" /> 
    <div id="bd"> 
     <div class="registration"> 
      <div class="form"> 
       <ice:form> 
        <ice:inputText id="Name" value="#{applicant.name}" partialSubmit="true"> 
         <f:validateLength maximum="45" minimum="5" /> 
        </ice:inputText> 
        <ice:message style="color: red;" id="nameError" for="name" /> 
        <br /> 
        <ice:inputText id="Address" value="#{applicant.address}" partialSubmit="true"> 
         <f:validateLength maximum="45" minimum="10" /> 
        </ice:inputText> 
        <ice:message style="color: red;" id="addressError" for="address" /> 
        <br /> 
        <ice:inputText id="Workplace" value="#{applicant.workplace}" partialSubmit="true"> 
         <f:validateLength maximum="45" minimum="10" /> 
        </ice:inputText> 
        <ice:message style="color: red;" id="workplaceError" for="workplace" /> 
        <br /> 
        <ice:inputText id="Telephone" value="#{applicant.telephone}" partialSubmit="true"> 
         <f:validateLength maximum="10" minimum="8" /> 
        </ice:inputText> 
        <ice:message style="color: red;" id="telephoneError" for="telephone" /> 
        <br/> 
        <ice:inputText id="Photo" value="#{applicant.photo}" partialSubmit="true"> 
         <f:validateLength maximum="80" minimum="2" /> 
        </ice:inputText> 
        <ice:message style="color: red;" id="photoError" for="photo" /> 
        <br/> 
        <ice:inputText id="Username" value="#{applicant.username}" partialSubmit="true"> 
         <f:validateLength maximum="10" minimum="8" /> 
        </ice:inputText> 
        <ice:message style="color: red;" id="usernameError" for="username" /> 
        <br/> 
        <ice:inputText id="Password" value="#{applicant.password}" partialSubmit="true"> 
         <f:validateLength maximum="10" minimum="8" /> 
        </ice:inputText> 
        <ice:message style="color: red;" id="passwordError" for="password" /> 
        <br/> 
        <ice:commandButton value="Register" actionListener="#{applicant.save}" /> 
        <br /> 
        <!-- <ice:outputText value="Age: " /> 
        <ice:outputText value="" /> --> 
       </ice:form> 
      </div> 
     </div> 
    </div> 
</h:body> 
</html> 

我不知道,因爲我只是通過ICEFaces教程的代碼什麼是錯的,我很感激,如果任何人都可以幫我

回答

1

目前,我不相信這個問題有解決方案。我昨天在同一件事情上工作了大約8個小時。請參閱iceface錯誤跟蹤器上的this頁面:。他們實際上有問題標註的解決,並有聲稱的ICEfaces與SWF 2.X集成的教程,但事情的簡單的事實是代碼的這個小行自己:

if (true) 
{ 
    throw new UnsupportedOperationException("Implement SWF integration"); 
} 

我試着在通過當前測試版實施修復之前運行各種版本的icefaces,並且仍然存在問題。我現在要說,這兩個不兼容。

0

我得到這個異常與冰論壇,並作爲一種解決方法,我使用jsf形式,而不是iceforums,迄今它工作正常與我。

相關問題