我在WebSphere V8.0上使用MyFaces JSF 2.0 - IBM实现.在系统输出消息中,我仅在用户成功登录后才注意到以下错误.
HtmlLabelRend W Attribute 'for' of label component with id j_id1610532955_33b1d0aa is not defined
Run Code Online (Sandbox Code Playgroud)
我没有任何名为"id"的字段.解决此问题的任何指针都将非常有用
的h:outputLabel用于标记输入组件.它呈现一个label html标记.
你可能正在使用h:outputLabel它,它的for属性指向一个不存在的组件.
for属性的值必须是现有组件的ID,即要标记的组件.例如:
<h:outputLabel for="username" />
<h:inputText id="username" value="#{bean.username}" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6537 次 |
| 最近记录: |