简体   繁体   中英

Generating id for tr datatable JSF

是否可以在数据表中以编程方式为<tr>生成ID?

Try this. It works for me.

$('[id^='+tab+'][id$='+componentId+']').each(function(){
        if(!($(this).is(":checked"))) {
                $(this).parent().parent().hide();
        }
    });

I am hiding the rows for which checkbox is not selected.

Override the renderer associated with UIData component.

It's only fairly a lot of work and I don't have the impression that you're skilled enough to do that. I think it's better to elaborate more about the problem / functional requirement for which you thought that this is the solution, so that we can suggest better (more correct) solutions for what you're trying to achieve.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM