• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating unique IDs inside dataTable

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Inside my dataTable I have inputText components.
How to assign a unique ID for each inputText (so I can assign message component for each one of them)?
Thanks.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It happens automatically. The dataTable uses your ID as a model, but the full ID is decorated to make it unique.

In th case of JSF message components, things (again) are handled automatically. If you're generating your own message, it needs to be a property for the row of the model that your dataTable is displaying.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But this way I'm forced to:

While I'm looking for:

In the later case, nothing is displayed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic