views:

23

answers:

1

Is it possible to ignore invalid xml-syntax in jsf-files?

I'm writing my own components is jsf 2 and want to create a dynamic table, so i want to render tr- and td-tags conditional. I've tried <h:panelGroup rendered="#{someCondition}"><tr></h:panelGroup> (same with </tr>) and <c:if test="#{someCondition}"><tr></c:if> (same with </tr>) though its bad to mix jstl with jsf.

I am getting a javax.faces.view.facelets.FaceletException: Error Parsing [...] The element type "tr" must be terminated by the matching end-tag "</tr>".

Anybody knows how to ignore the invalid xml oder how solve this problem in any other way?