sirpelidor
06-03-2009, 03:41 AM
hi, i have a following tags in my jsf page wrapped in a <h:form> tag:
<h:outputText value="#{msg.username}" />
<h:inputText id="txt_username" value="#{loginBean.username}" required="#{true}"/>
<h:outputText value="#{msg.password}" />
<h:inputSecret id="txt_pwd" value="#{loginBean.password}" required="#{true}" />
<h:commandButton id="cmd_login" value="#{msg.login}" action="#{loginBean.action}"></h:commandButton>
<h:messages layout="list"></h:messages>
when i purposely -not- to enter any value and hit the login button, i get the following error message on my page:
j_id_jsp_1302903026_1:txt_username: Validation Error: Value is required.
j_id_jsp_1302903026_1:txt_pwd: Validation Error: Value is required.
where's that extract "j_id_jsp_1302903026_1" come from and how to take it away from the page?
thank you
<h:outputText value="#{msg.username}" />
<h:inputText id="txt_username" value="#{loginBean.username}" required="#{true}"/>
<h:outputText value="#{msg.password}" />
<h:inputSecret id="txt_pwd" value="#{loginBean.password}" required="#{true}" />
<h:commandButton id="cmd_login" value="#{msg.login}" action="#{loginBean.action}"></h:commandButton>
<h:messages layout="list"></h:messages>
when i purposely -not- to enter any value and hit the login button, i get the following error message on my page:
j_id_jsp_1302903026_1:txt_username: Validation Error: Value is required.
j_id_jsp_1302903026_1:txt_pwd: Validation Error: Value is required.
where's that extract "j_id_jsp_1302903026_1" come from and how to take it away from the page?
thank you