特定页面上的jsf核心验证程序错误

时间:2014-05-21 17:19:48

标签: java jsf exception validation jsf-1.2

我正在使用 jsf 1.2 adf 来创建应用程序。

应用程序在本地weblogic服务器11g中运行良好。

但是当我在oracle企业管理器上部署时,我在加载特定页面时出错:

    <21-may-2014 16H34' CEST> <Warning> <oracle.adfinternal.view.faces.lifecycle.LifecycleImpl> <BEA-000000> <ADF_FACES-60098: The Faces lifecycle exceptions receives untreated RENDER_RESPONSE 6
javax.faces.FacesException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Not nested in a tag of proper type. Error for tag with handler class:com.sun.faces.taglib.jsf_core.ValidatorTag 
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)

at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDec orator.java:44)

at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)

at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)

at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)

at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)

at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:45)

at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:268)

at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:471)
.......................

我可以理解,有一个标签不在其中,与验证器有关吗?

我页面中唯一的验证器放在这里:

<af:inputText value="#{row.bindings.DocumName.inputValue}"
    label="#{bindings.DocumentsPresentProcessVVO2.hints.DocumName.label}"
    required="#{bindings.DocumentsPresentProcessVVO2.hints.DocumName.mandatory}"
    columns="#{bindings.DocumentsPresentProcessVVO2.hints.DocumName.displayWidth}"
    maximumLength="#{bindings.DocumentsPresentProcessVVO2.hints.DocumName.precision}"
    shortDesc="#{bindings.DocumentsPresentProcessVVO2.hints.DocumName.tooltip}"
    id="it1" readOnly="true">
    <f:validator binding="#{row.bindings.DocumName.validator}" />
</af:inputText>

不在那里,它应该在哪里?

<f:validator binding="#{row.bindings.DocumName.validator}" />

或者我错误地解释了这个例外?

任何帮助都将不胜感激。

0 个答案:

没有答案