Hi
After upgrading from b48 to UR1 I have a problem with validation of
fields, which all working in b48. I have
<h:outputLabel for="Username">
<h:outputText styleClass="body" value="Username: "/>
</h:outputLabel >
<h:inputText id="Username" size="20" required="true"
value="#{authorisationBean.username}">
<f:validateLength minimum="1" maximum="10"/>
</h:inputText>
<h:message for="Username" styleClass="error" showSummary="false"
showDetail="true" />
When I press submit with out entering anything in the username no error
is displayed. I get this error in the logs
[#|2006-11-09T15:26:04.413+0000|WARNING|sun-appserver-pe9.0|javax.enterp
rise.resource.webcontainer.jsf.renderkit|_ThreadID=20;_ThreadName=httpWo
rkerThread-8080-0;_RequestID=4a8d49ff-76db-44ff-beca-aeccd4939d4c;|Unabl
e to find component with ID Usernamej_id_1 in view.|#]
[#|2006-11-09T15:26:06.788+0000|INFO|sun-appserver-pe9.0|javax.enterpris
e.resource.webcontainer.jsf.lifecycle|_ThreadID=21;_ThreadName=httpWorke
rThread-8080-1;
sourceId=body:j_id_id6j_id_1:Username[severity=(ERROR 2),
summary=(body:j_id_id6j_id_1:Username: Validation Error: Value is
required.), detail=(body:j_id_id6j_id_1:Username: Validation Error:
Value is required.)]
So I changed the id of the inputText to Usernamej_id_1 and it worked.
Where is this j_id_1 coming from that's been added to my ids??
Any ideas?
Thanks glen