You can use the “for” label on a outputLabel so that this code…

 

<h:outputLabel for="rackNumber" value="Rack Number:" />    

<h:inputText id="rackNumber" value="#{backingBean.rackNumber}" maxlength="10" size="20"  />

 

Will result in the error message…

 

Validation Error with Rack Number: Value is required.

 

The “for” and “id” fields are linked by MyFaces, hence giving a more meaningfull number.

 

Since you say your < inputText > is not linked to a backing bean, you can have this…

 

<h:outputLabel for="rackNumber" value="Rack Number:" />    

<h:inputText id="rackNumber" value="" maxlength="10" size="20"  />

     

JP

 

 

-----Original Message-----
From: Dave [mailto:[EMAIL PROTECTED]
Sent:
12 January 2006 00:47
To: [email protected]
Subject: "Validation Error "_id89": Value is required" in dataTable

 

I am using <inputText> inside <dataTable>. is there a way to override message?

    Validation Error "_id89": Value is required

I did not specify id for <inputText>, because it can not bind to backing bean and thus not meaningful.

 

 


Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.

Reply via email to