Community
Participate
Working Groups
I believe there should be a way to suppress JSP validator warnings. Sometimes user has to use non-standard HTML elements like 'autocomplete' attribute in <input type="text" autocomplete="off" .../> tag. Even if autocomplete is a non-standard element it IS honored by browsers and it's necessary to use it in certain projects. I suggest to add a suppress warnings feature in JSP validator, ideally much like Java's @SuppressWarnings annotation, eg. user would put <%-- SuppressWarnings: UndefinedAttribute --%> in JSP page just before invalid tag.
Sorry, it's JSP not JSF-related.
Such a syntax isn't part of any standard that I'm aware of. Have you tried disabling the JSP Content Validator?
Sorry for the tags, they appear to work with JSP but I'm not an expert here so I won't argue over it :) Let's just assume they meant 'some kind of comment tag' :) I haven't tried disabling JSP validator since it's very useful tool and I do need it for the rest of the project. Form with autocomplete attribute is just one problematic spot which means without warning suppression I'll always have at least a few warnings in Problems tab, even with perfectly clean project.
You could always filter it out of your Problems view.
Oh, and I should point out that there is a difference between JSP Syntax Validator & JSP Content Validator. JSP Syntax Validator validates things like el & java code in jsps and jsp action tags and taglib directives. JSP Content Validator validates the html in the JSP, like unknown attributes in tags which is the one you are concerned about. I'm not sure which one you find useful (hopefully both) but if you're mainly concerned about JSP Syntax Validation, then it is possible for you to just turn off JSP Content Validation then.
Well, I believe that code with invalid syntax wouldn't simply run, isn't that true? What bothers me are non-standard attributes that has to be used inside project. As I said, turning validation off completely is not an option since it's extremely useful feature.
Invalid attributes on custom tags would prevent a page from running, but not on the HTML around them. I'm setting it to 3.0, _time permitting_, but high quality contributions would be helpful.
Amy, fixed via JSP Validation preference page?
reassigning to inbox
Fixed via HTML Validation preference page