gpt4 book ai didi

Eclipse Facelet HTML 验证器 : Cannot apply expression operators to method bindings

转载 作者:行者123 更新时间:2023-12-03 13:23:55 31 4
gpt4 key购买 nike

Eclipse Facelet HTML 验证器针对以下行报告错误“无法将表达式运算符应用于方法绑定(bind)”:

<ui:fragment rendered="#{!empty managedBean.getSomething('ENUM_VALUE', someInt)}">

我在 Juno help 中找到了这个(我正在使用开普勒):
Applying operator to method binding
#{bean.action * 5}
If bean.action indicates a method "action()" on bean, then it is not legal EL to treat its result as a value. In the example, multiplying action by 5 attempts treat it is as a value.

我很难理解为什么将其结果视为值(value)是不合法的?那么编写EL的正确方法是什么?谢谢!

最佳答案

如果您愿意,可以通过设置隐藏错误消息

窗口 -> 首选项 -> Web -> JavaServer Faces 工具 -> 验证 -> 一般问题

Applying method operator to bindingIgnore .

关于Eclipse Facelet HTML 验证器 : Cannot apply expression operators to method bindings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20928595/

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