我在使用 JSF 1.1 的 JSF 页面中遇到动态绑定问题
我想要的只是经理拥有动态的经理名称
<%String manger="ManagerName";%>
上面的代码只是一个片段,它将作为请求参数出现
jsf 文件中的代码
<h:inputText id="street1" value="#{address.street1}"
binding = "#{<%=manager%>.billingStreet}"
/>
这是我现在遇到的错误
enter code here
Caused by: org.apache.commons.el.parser.ParseException: Encountered "<" at line 1, column 3.
Was expecting one of:
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<STRING_LITERAL> ...
"true" ...
"false" ...
"null" ...
"(" ...
"-" ...
"not" ...
"!" ...
"empty" ...
<IDENTIFIER> ...
at org.apache.commons.el.parser.ELParser.generateParseException(ELParser.java:1895)
at org.apache.commons.el.parser.ELParser.jj_consume_token(ELParser.java:1779)
at org.apache.commons.el.parser.ELParser.Expression(ELParser.java:124)
at org.apache.commons.el.parser.ELParser.AttrValueExpression(ELParser.java:96)
at org.apache.commons.el.parser.ELParser.ExpressionString(ELParser.java:43)
at org.apache.myfaces.el.ELParserHelper.parseExpression(ELParserHelper.java:83)
... 49 more