Generating id for tr datatable JSF
Is it possible to progrmmatically generate id for the <tr>
in开发者_开发百科 datatable?
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.
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.
精彩评论