XSD problems with IDEA 8.1.4


I just installed IDEA 8.1.4 and my Facelets (*.xhtml) started showing errors.

As a first example, the ui:composition and ui:include behave differently (see facelets.png attached). The ui:composition is complaining when there are two ui:define elements in a sequence and the ui:include one always wants a ui:param specified.

Maybe IDEA is more strict with its checks in the last version but in this case the XSD file should be fixed to allow syntax that is otherwise working in runtime.

As a second example, custom taglibs have problems with validation (see taglib.png attached). IDEA navigates to the authorize tag:

<facelet-taglib xmlns="http://java.sun.com/JSF/Facelet">

Here is the XSD for the custom taglib:


When used, IDEA complains that no declaration of the element autorize can be found and taglib is not a element. In this case, I cannot define well what is wrong.

Comment actions Permalink

As a workaround, you can turn off Xerces validation inspection (Project
Settings -> Errors -> XML -> File does not pass external validation).
Please file a ticket for the problem.

Comment actions Permalink

Thanks Dmitry,

Ticket ID: IDEA-26096

BTW I have several other warning messages in my Facelet file and I thought it'll be ok to have it as a warning too. So I tried to change the validation from 'error' to 'warning'. Well that didn't work and it stayed red. Only when I disable it, it is hidden. Is it supposed to be like that?

Comment actions Permalink

No, it is not. Please file another issue for that.


Please sign in to leave a comment.