For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 3 voices, and was last updated 17 years, 3 months ago by
Loyal Water.
-
AuthorPosts
-
Ted PatenaudeMemberHow can I configure the Facelets Validator to recognize single quotes the same way it reconizes double quotes?
When using single quotes around attribute values, as opposed to double quotes, the Facelets validator reports the error “missing opening quote”
If I replace all single quotes with double quotes, the error goes away. I really don’t want to replace all the single quotes with double quotes across numerous files.I am using MyEclipse 7.1.1.
Sample xhtml:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' xmlns:ui='http://java.sun.com/jsf/facelets' xmlns:h='http://java.sun.com/jsf/html' xmlns:f='http://java.sun.com/jsf/core' xml:lang='en' lang='en'> <head> <title>My Facelets Page</title> <meta http-equiv='keywords' content='enter,your,keywords,here' /> <meta http-equiv='description' content='A short description of this page.' /> <meta http-equiv='content-type' content='text/html; charset=UTF-8' /> <!--<link rel='stylesheet' type='text/css' href='styles.css'>--> </head> <body> <p> <ui:insert name='body'> This is my JavaServer Facelets page. <h:form id='myform'> <h:commandButton action='#{myHandler.nextPageAction}' value='#{message.nextPage}' /> </h:form> </ui:insert> </p> </body> </html>May 7, 2009 at 5:58 am #298246
support-joyMemberInteresting. I am unable to reproduce this issue on ME7.1.1. Can you copy and paste your installation details here? You need to go to MyEclipse > Installation Summary > Installation Detail.
May 7, 2009 at 10:01 am #298250
Ted PatenaudeMemberInstallation Details:
*** Date:
Thursday, May 7, 2009 8:59:20 AM MDT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.5.0_18*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.1.1
Build id: 7.1.1-20090310*** Eclipse details:
Eclipse PlatformVersion: 3.4.2
Build id: M20090211-1700Eclipse Platform
Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL
Build id: M20090211-1700Eclipse Java Development Tools
Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI
Build id: M20090211-1700Eclipse Graphical Editing Framework GEF
Version: 3.4.1.v20080806-67718083A56B4H2A3213573
Build id: 200902181337Eclipse RCP
Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63
Build id: M20090211-1700Eclipse Plug-in Development Environment
Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS
Build id: M20090211-1700Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
C:\Tools\eclipse\plugins\org.eclipse.platform_3.3.101.v200902111700\splash.bmp
-launcher
C:\Tools\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\Tools\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Tools\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\java\jdk1.5.0_18\bin\..\jre\bin\client\jvm.dllMay 7, 2009 at 2:33 pm #298258
Loyal WaterMemberHow can I configure the Facelets Validator to recognize single quotes the same way it reconizes double quotes?
I’m afraid there is not option in MyEclipse that would allow you to do this.
May 7, 2009 at 2:59 pm #298265
Ted PatenaudeMemberIn that case, is it a bug? Should the facelets validator recognize single quotes also so that it does not report the error? It seems to me that this is a parsing error in the validator. The errors are not reported immediately. The error shows up after the validator runs. Either when changing and saving the file or manually running the validator.
If you are unable to reproduce the error, I would like to know, because every member of my team of 7 developers sees this error. The error is seen on differing versions of MyEclipse as well. 7.1.1 and 6.0.1. Any help would be appreciated
I know that I can ignore the error, but I am concerned that this error may cause the validator to report additional false errors.May 8, 2009 at 1:24 pm #298293
Loyal WaterMemberThere is not support for using single quotes as the primary quote character — I believe there is precendence associated with the kind of quote used similar to how you can use single quotes inside double quotes in a JSP page in a taglib argument.
As for the flaky validation behavior we are looking into that right now for a fix in 7.5.
-
AuthorPosts
