RE: dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-14 Thread Dave
"text" value=""/ Even if the ids in the label and the input field matches I still get the message ¡°Validation Error in testField¡± instead of ¡°Validation error in Test label¡±. -Frode From: Dave [mailto:[EMAIL PROTECTED] Sent: 14. oktober 2005 02:52To: MyFaces DiscussionSubject: Re:

dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-13 Thread Dave
Hello, I am using t:dataTable with two columns. one is label, the other isinputText. If there is any validation problem, I get the message like: Validation Error "_id49": Value is not a valid option. How can I replace _id49 with some meaningful id? I notieced that component id can not bind to

Re: dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-13 Thread Dave
what id should I assign to them statically? The data model is a list of objects. Thanks. t:dataTable var="student" value="#{bean.students}" h:column h:outputText value="#{bundle.Name}"/ /h:column h:column h:inputText value="#{student.name}"/ /h:column /t:dataTable Mike Kienenberger

Re: dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-13 Thread Mike Kienenberger
I'd probably go with a label instead, but you could just use h:outputText id=bundleName value=#{bundle.Name}/ h:inputText id=studentName value=#{student.name}/ On 10/13/05, Dave [EMAIL PROTECTED] wrote: what id should I assign to them statically? The data model is a list of objects. Thanks.

Re: dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-13 Thread Mike Kienenberger
There's an example of using labels here: http://wiki.apache.org/myfaces/Create_and_Display_Messages On 10/13/05, Mike Kienenberger [EMAIL PROTECTED] wrote: I'd probably go with a label instead, but you could just use h:outputText id=bundleName value=#{bundle.Name}/ h:inputText id=studentName

Re: dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-13 Thread Dave
This approach works fine ifdata are not in dataTable. For dataTable, we have a collection of data. Supposethecollectionhave ten rows.All of them will have the same id(s). If there is a validation error, user will not be able toknow which row has the error. - h:outputText id="bundleName"

Re: dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-13 Thread Mike Kienenberger
Yes, that's why I suggested you'd be better off trying to use a label and have the value bound to your row data instead. But I haven't tried it. Remember that components in your dataTable may represent multiple rows, but every row is still represented by only one component. So only by binding

Re: dataTable error message - Validation Error _id49: Value is not a valid option.

2005-10-13 Thread Dave
I tried outputLabel, but it still did not work. t:dataTable var="student" value="#{bean.students}" h:column h:outputLabelfor=""value="#{student.name}"/ /h:column h:column h:inputText id="score" value="#{student.score}"/ /h:column /t:dataTable All the validation error messages are using