直接上代码
jsp:
<f:view>
<h:form>
<!-- textlabel标签 -->
<h:outputLabel for="userName" value="用户名:"/>
<!-- 绑定提交用户名数据 -->
<h:inputText id="userName" value="#{user.userName}"></h:inputText><br>
......
页面报这个错:
org.apache.jasper.JasperException: Unable to convert string "userName" to class "javax.el.ValueExpression" for attribute "for": Property Editor not registered with the PropertyEditorManager
h:outputLabel这个标签不就是个label标签么, 文本框前面的标题,但是为什么会报转换错误呢?
jsp:
<f:view>
<h:form>
<!-- textlabel标签 -->
<h:outputLabel for="userName" value="用户名:"/>
<!-- 绑定提交用户名数据 -->
<h:inputText id="userName" value="#{user.userName}"></h:inputText><br>
......
页面报这个错:
org.apache.jasper.JasperException: Unable to convert string "userName" to class "javax.el.ValueExpression" for attribute "for": Property Editor not registered with the PropertyEditorManager
h:outputLabel这个标签不就是个label标签么, 文本框前面的标题,但是为什么会报转换错误呢?