【问题标题】:java.lang.UnsupportedOperationException with ICEFaces带有 ICEFaces 的 java.lang.UnsupportedOperationException
【发布时间】:2011-10-31 17:26:48
【问题描述】:

当视图尝试呈现时,我得到了这个异常,我以简单的冰形式使用 icefaces 验证器标签,我也使用 spring 来实例化托管 bean,但它在其他页面中正常工作,所以我不觉得 spring 是问题...这是个例外:

java.lang.UnsupportedOperationException:实现 SWF 集成 com.icesoft.util.SeamUtilities.getSpringFlowId(SeamUtilities.java:542) 在 com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeBegin(FormRenderer.java:146) 在 com.icesoft.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) 在 javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641) 在 javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) 在 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(MultiViewHandler.java:127) 在 com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) 在 com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) 在 com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) 在 javax.faces.webapp.FacesServlet.service(FacesServlet.java:309) 在 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.StandardContextValve.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教程的代码,如果有人可以帮助我,我很感激

【问题讨论】:

    标签: spring icefaces


    【解决方案1】:

    目前,我认为没有解决此问题的方法。我昨天在同一件事上工作了大约 8 个小时。请参阅 icefaces 错误跟踪器上的 this 页面:。他们实际上已将问题标记为已解决,并且有教程声称 icefaces 与 SWF 2.X 集成,但简单的事实是他们seamutilities.java class 中的这一小行代码:

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

    在通过当前测试版实施修复之前,我已经尝试运行各种版本的 icefaces,但我仍然遇到问题。我现在要说,两者不兼容。

    【讨论】:

      【解决方案2】:

      我在 ice 论坛上遇到了这个异常,作为一种解决方法,我使用 jsf 表单而不是 iceforums,到目前为止它对我来说工作正常。

      【讨论】:

        猜你喜欢
        • 2012-03-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-31
        • 2011-01-26
        • 2011-02-03
        • 1970-01-01
        相关资源
        最近更新 更多