Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

id of ui:repeat

How can i set the id of ui:repeat

Structure of my code is

Tabview
  ui : repeat 
     dattable
       column
          checkbox

I am getting the id of checkbox as

tabViewId:0:j_idt45:0:dataTableId:0:checkBoxId

It contains 7 things which are

id of tabview
active tab
ui:repeat id
index of ui:repeat
id of dattable
row of dattable
id of checkbox

i want to assign id of ui:repeat so that it does not chooses it on its own.

How can i set the id of ui:repeat, say

repeatId

instead of j_idt45

like image 584
Tarun Madaan Avatar asked Mar 29 '12 07:03

Tarun Madaan


1 Answers

You should try:

<ui:repeat id="repeatId" ...

(it is undocumented but it works in both Mojarra and MyFaces).

like image 114
Adam Avatar answered Nov 03 '22 01:11

Adam