Disabling faces validation in #5350
Still the same old problem with JSF:
Can i disable jsf configuration validation during compile? After "Validating faces model" i get "Cannot resolve symbol xxx" from all <property-name>-values. Worked fine in 5289.
There is nothing wrong with the configuration files.
Any workaround? I'm stuck with build 5289.
Details about the issue: http://www.jetbrains.net/jira/browse/IDEA-8052
Message was edited by:
Sakke Wiik
Please sign in to leave a comment.
I'll take this a little further, and ask for a way to turn off any extra (non-java) validation.
IDEA is getting smarter and smarter every day, but our projects aren't catching up. Most jsp's in my current project will never validate in IDEA, and I'm sure there are more people out there in a similar situation. I want is easy, project-wide toggles for every non-java validation sets. I want to create a project, and tell IDEA "no, don't validate any HTML here", or "please, don't mind my CSS", and so on.
Am I the only one that cares about this? I have a issue opened[1] about this for 10 months now. Demetra is shipping soon, and yet, there's no way to disable HTML/CSS/Faces/whatever validation for a whole project.
http://jetbrains.net/jira/browse/IDEA-4471
I've just found the original discussion thread, 11 months old:
http://www.intellij.net/forums/thread.jspa?forumID=22&threadID=153608
Hoping I won't celebrate this thread's first anniversary...
>>Am I the only one that cares about this? I have a issue opened[1] about this for 10 months now. Demetra is shipping soon, and yet, there's no way to disable HTML/CSS/Faces/whatever validation for a whole project.<<
You're not the only one who cares; I think you may be the only one who hasn't given up and just switched the whole thing off!
Can I just validate the JSP/HTML in a simple way. Just point out missing tags.
I'm playing around with Facelets, and IntelliJ is just marking everything in red.
You need to map facelets to jspx file type.
Rayz wrote:
>>>Am I the only one that cares about this? I have a issue opened[1] about this for 10 months now. Demetra is shipping soon, and yet, there's no way to disable HTML/CSS/Faces/whatever validation for a whole project.<<
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I found a very simple workaround. It should work for all file types.
For disabling the faces validation, go to ide settings/file types. Select xml files (since faces configurations are xml files). Remove *.xml from registered patterns.
Faces validation is gone and I can compile and start my project.
Hello Sakke,
SW> Still the same old problem with JSF:
SW>
SW> Can i disable jsf configuration validation during compile? After
SW> "Validating faces model" i get "Cannot resolve symbol xxx" from all
SW> <property-name>-values. Worked fine in 5289.
SW>
SW> There is nothing wrong with the configuration files.
SW>
SW> Any workaround? I'm stuck with build 5289.
Is there a JIRA request for this problem?
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"
another way is to unselect "Dom Model Inspection"(or to set "warning severity")
Hello Dmitry, here it is: http://www.jetbrains.net/jira/browse/IDEA-8052
You mean in the inspection profile? Those doesn't affect compiling.
Thanks .. :)
Tried renaming all the xhmtl files to jspx; made no difference.
So then I tried switching off the DOM inspection.
IDEA locked up when trying to redraw the jspx file in the editor window.
Restarted. It locked up again. Restarted. Locked up again.
Still trying to render the screen, memory bouncing between 52 and 54M
Attachment(s):
errors.txt
Hi,
Start on clean installation (with empty system directory) should work.
Rayz wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Nope.
Removed IDEA completely.
Fresh install. New settings file.
Atempted to open the JSF projects, and IDEA falls into ane endless loop; cannot even render the JSP file. None of the icons are appearing either.
Right; here are the files
I have no idea what's going on .. looks pretyy badly broken though. I'll see if I can convince IDEA to stop trying to parse them.
Attachment(s):
person.jspx
return.jspx
template.jspx
Hi,
Could you please provide stack traces (IDEA should be run with console)
or small project exhibiting the problem?
Rayz wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Sure.
Attachment(s):
jsftest.zip
Bugger .. sent the wrong files (I'd already started to rename them when I picked up your message).
Try these ones; they should show the problem. IDEA just locks up solid.
Attachment(s):
jsftest2.zip
Remove HighlightingSettingsPerFile tag from iws file.
Rayz wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Ok, back to the original subject... can we expect or not to be able to disable HTML/CSS/Faces/Whatever validation globally (or better yet, project-wide) before Demetra final release? It's been promised "for the next version" almost a year ago. ]]>
That fixed it ... :)
Thanks.
+10
Not just Spring.
I'm using Shale, and that allows properties to be defined using annotations.
I don't actually believe that JSP/JSPX validation can work, not to everyone's satisfaction, so we should have a way to turn off certain parts of it.
+10
+10