gpt4 book ai didi

jsf - in jsf causing exception 的验证器 =""属性

转载 作者:行者123 更新时间:2023-12-04 06:55:41 25 4
gpt4 key购买 nike

我们正在尝试从 WS5 迁移到 WAS7 并且 jsf 代码导致以下错误

原始异常:

Error Message: JSPG0227E: Exception caught while translating /jsp/listView/listViewUPD_MAP_UM01.jsp: JSPG0301E: Invalid attribute, validator, for deferred method returning void. 
Error Code: 500
Target Servlet: /jsp/listView/listViewUPD_MAP_UM01.jsp
Error Stack:
com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception caught while translating /jsp/listView/listViewUPD_MAP_UM01.jsp:
JSPG0301E: Invalid attribute, validator, for deferred method returning void.
at com.ibm.ws.jsp.translator.visitor.generator.BaseTagGenerator.evaluateAttribute(BaseTagGenerator.java:527)

最佳答案

有类似问题,从WAS6.1迁移到WAS7.0:

异常(exception):

com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception caught while translating /RegisterName.jsp:  
JSPG0301E: Invalid attribute, validator, for deferred method returning void.
at com.ibm.ws.jsp.translator.visitor.generator.BaseTagGenerator.evaluateAttribute(BaseTagGenerator.java:527)

RegisterName.jsp 片段:
<h:inputText
id="callerName"
size="50"
value="#{callerSC.currentCaller.name}"
required="true"
validator="#{callerSC.validateCallerName}"
converter="StringTrimmer"
onchange='return setFocusOn(this, "nextButton");'
>
</h:inputText>

有一个技巧可以将以下代码片段包含到我的 jsp 页面中
<%@ page isELIgnored="false" deferredSyntaxAllowedAsLiteral="false"%>

为我工作,异常消失了

替代方法是将以下代码段添加到 web.xml 中以指定 el-ignored=false 为 JSP
<jsp-config>                                                            
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
</jsp-property-group>
</jsp-config>

关于jsf - <h :inputtext> in jsf causing exception 的验证器 =""属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2590777/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com