Hi all,
I have a jsf page and don't know how to get the rid of this Warning :
WARNING: Component _id0 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
I put an id at every important place, I think. This is my JSF Page :
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<html>
<head>
<title>jsf-login</title>
</head>
<body>
<f:view>
<h2>My Homepage</h2>
UserID: <h:outputText value="#{homeBean.userId}"></h:outputText>
<br/>
Authorities
<h:dataTable id="tblAuthorities" value="#{homeBean.authorities}" var="authority">
<h:column id="colAuthority">
<f:facet name="header">
<h:outputText value="Authority" />
</f:facet>
<h:outputText value="#{authority}"></h:outputText>
</h:column>
</h:dataTable>
<br/>
Accessable Pages
<h:dataTable id="tblaccessableUrls" value="#{homeBean.accessableUrls}" var="url">
<h:column id="colUrl">
<f:facet name="header">
<h:outputText value="URL" />
</f:facet>
<h:outputLink id="lnkUrl" value="#{url}"><h:outputText value="#{url}"/></h:outputLink>
</h:column>
</h:dataTable>
<br/>
<h:form id="forLogout">
<h:commandButton id="cmdLogout" value="Logout" action="logout"/>
</h:form>
</f:view>
</body>
</html>
It's just two tables and one form. Did I miss something ?
Regards,
Vadus