This approach works fine if data are not in <dataTable>.
For dataTable, we have a collection of data.
Suppose the collection have ten rows.  All of them will have the same id(s). If there is a validation error, user will not be able to know which row has the error.
 
---------
<h:outputText id="bundleName" value="#{bundle.Name}"/>
<h:inputText id="studentName" value="#{student.name}"/>


Mike Kienenberger <[EMAIL PROTECTED]> wrote:
I'd probably go with a label instead, but you could just use




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.
>
> > var="student"
> value="#{bean.students}">
>
>
>

>
>
>
>

>

>
>
> Mike Kienenberger <[EMAIL PROTECTED]>wrote:
> You can statically assign an id on your page.
>
> I think y ou can also assign a label to your component, and that label
> value will be used instead of the id.
>
> On 10/13/05, Dave wrote:
> >
> > Hello,
> > I am using with two columns.
> > one is label, the other is .
> > 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 backing bean(or data model)
> > method.
> >
> >
> >
> > Thanks. Dave
> >
> > ________________________________
> > Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> >
> >
>
>
> ________________________________
> Yahoo! Music Unlimited - Access over 1 million s ongs. Try it free.
>
>


Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Reply via email to