myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Porter" <PORTE...@WMGMAIL.wmg.warwick.ac.uk>
Subject RE: "Validation Error "_id89": Value is required" in dataTable
Date Tue, 17 Jan 2006 09:18:40 GMT
 

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:javaone9@yahoo.com] 
Sent: 12 January 2006 00:47
To: users@myfaces.apache.org
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
<http://us.rd.yahoo.com/mail_us/taglines/holidayprints/*http:/pa.yahoo.c
om/*http:/us.rd.yahoo.com/mail_us/taglines/photos/evt=38089/*http:/pg.ph
otos.yahoo.com/ph/print_splash>  all the ways to get quality prints in
your hands ASAP.


Mime
View raw message