【发布时间】: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教程的代码,如果有人可以帮助我,我很感激
【问题讨论】: