Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jsf
diff options
context:
space:
mode:
authorrsrinivasan2010-05-11 04:35:09 +0000
committerrsrinivasan2010-05-11 04:35:09 +0000
commitf319570a216fd29879583a13ba6534c2b21b61a4 (patch)
tree829fcace5a7fc285e22435003d4c32e31e2d6da8 /jsf
parent1f175e95026c9f679ec51ae1d624f36e3a20a9e5 (diff)
downloadwebtools.jsf-f319570a216fd29879583a13ba6534c2b21b61a4.tar.gz
webtools.jsf-f319570a216fd29879583a13ba6534c2b21b61a4.tar.xz
webtools.jsf-f319570a216fd29879583a13ba6534c2b21b61a4.zip
Bug 311972 - HTML editor template doesn't handle "%" signs
Diffstat (limited to 'jsf')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties14
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.xml82
2 files changed, 16 insertions, 80 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties b/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties
index df946390e..1b2b72bda 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties
+++ b/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.properties
@@ -1,11 +1,15 @@
-New_Footer=New Facelet Footer
-New_Footer_Description=Create a simple footer.
+New_Facelet_Footer=New Facelet Footer
+New_Footer_Description=Creates a footer for use with the Facelet template.
New_Facelet_Header=New Facelet Header
-New_Facelet_Header_Description=Creates a new header for use with the simple facelet template
+New_Facelet_Header_Description=Creates a header for use with the Facelet template
New_Facelet_Template=New Facelet Template
-New_Facelet_Template_Description=Creates a basic header/content/footer template
+New_Facelet_Template_Description=Creates a basic header/content/footer Facelet template
New_Simple_Facelet_Composition_Page=New Facelet Composition Page
-New_Simple_Facelet_Composition_Page_Description=Creates a new facelet page for use with a template. \ No newline at end of file
+New_Simple_Facelet_Composition_Page_Description=Creates a new Facelet page for use with a template.
+New_Facelet_Header.header=<?xml version="1.0" encoding="ISO-8859-1" ?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<body>\n<div style="width:100%;font-size:36px;line-height:48px;background-color:navy;color:white">My Facelet Application</div>\n</body>\n</html>\n
+New_Facelet_Footer.footer=<?xml version="1.0" encoding="ISO-8859-1" ?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />\n<title>Insert title here</title>\n</head>\n<body>\n<div style="background-color:navy;width:100%;color:white"></div>\n</body>\n</html>\n
+New_Facelet_Template.template=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" \n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml"\n xmlns:ui="http://java.sun.com/jsf/facelets">\n<head>\n <title><ui:insert name="title">Default title</ui:insert></title>\n</head>\n\n<body>\n\n<div id="header">\n <ui:insert name="header">\n Header area. See comments below this line in the source.\n <!-- include your header file or uncomment the include below and create header.xhtml in this directory -->\n <!-- <ui:include src="header.xhtml"/> -->\n </ui:insert>\n</div>\n\n\n<div id="content">\n <ui:insert name="content">\n Content area. See comments below this line in the source.\n <!-- include your content file or uncomment the include below and create content.xhtml in this directory -->\n <!-- <div> -->\n <!-- <ui:include src="content.xhtml"/> --> \n <!-- </div> -->\n </ui:insert>\n</div>\n\n<div id="footer">\n <ui:insert name="footer">\n Footer area. See comments below this line in the source.\n <!-- include your header file or uncomment the include below and create footer.xhtml in this directory -->\n <!--<ui:include src="footer.xhtml"/> -->\n </ui:insert>\n</div>\n\n</body>\n\n</html>\n
+New_Simple_Facelet_Composition_Page.composition=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" \n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html xmlns="http://www.w3.org/1999/xhtml"\n xmlns:ui="http://java.sun.com/jsf/facelets"\n xmlns:h="http://java.sun.com/jsf/html"\n xmlns:f="http://java.sun.com/jsf/core">\n\n<ui:composition template="">\n <ui:define name="header">\n Add your header here or delete to use the default\n </ui:define>\n <ui:define name="content">\n Add your content here or delete to use the default\n </ui:define>\n <ui:define name="footer">\n Add your footer here or delete to use the default\n </ui:define>\n</ui:composition>\n</html>
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.xml b/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.xml
index 7e5751152..c5f4eb18e 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.xml
+++ b/jsf/plugins/org.eclipse.jst.jsf.facelet.ui/templates/templates.xml
@@ -1,75 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?><templates><template id="org.eclipse.jst.jsf.facelet.ui.new_simple_footer_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Footer_Description" enabled="true" name="%New_Footer">&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;&#13;
-&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&#13;
-&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&#13;
-&lt;head&gt;&#13;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt;&#13;
-&lt;title&gt;Insert title here&lt;/title&gt;&#13;
-&lt;/head&gt;&#13;
-&lt;body&gt;&#13;
-&lt;div style="background-color:navy;width:100&#37;;color:white"&gt;&lt;/div&gt;&#13;
-&lt;/body&gt;&#13;
-&lt;/html&gt;</template><template id="org.eclipse.jst.jsf.facelet.ui.new_header_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Facelet_Header_Description" enabled="true" name="%New_Facelet_Header">&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;&#13;
-&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&#13;
-&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&#13;
-&lt;body&gt;&#13;
-&lt;div style="width:100&#37;;font-size:36px;line-height:48px;background-color:navy;color:white"&gt;My Facelet Application&lt;/div&gt;&#13;
-&lt;/body&gt;&#13;
-&lt;/html&gt;</template><template id="org.eclipse.jst.jsf.facelet.ui.new_basic_template_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Facelet_Template_Description" enabled="true" name="%New_Facelet_Template">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &#13;
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&#13;
-&lt;html xmlns="http://www.w3.org/1999/xhtml"&#13;
- xmlns:ui="http://java.sun.com/jsf/facelets"&gt;&#13;
-&lt;head&gt;&#13;
- &lt;title&gt;&lt;ui:insert name="title"&gt;Default title&lt;/ui:insert&gt;&lt;/title&gt;&#13;
-&lt;/head&gt;&#13;
-&#13;
-&lt;body&gt;&#13;
-&#13;
-&lt;div id="header"&gt;&#13;
- &lt;ui:insert name="header"&gt;&#13;
- Header area. See comments below this line in the source.&#13;
- &lt;!-- include your header file or uncomment the include below and create header.xhtml in this directory --&gt;&#13;
- &lt;!-- &lt;ui:include src="header.xhtml"/&gt; --&gt;&#13;
- &lt;/ui:insert&gt;&#13;
-&lt;/div&gt;&#13;
-&#13;
-&#13;
-&lt;div id="content"&gt;&#13;
- &lt;ui:insert name="content"&gt;&#13;
- Content area. See comments below this line in the source.&#13;
- &lt;!-- include your content file or uncomment the include below and create content.xhtml in this directory --&gt;&#13;
- &lt;!-- &lt;div&gt; --&gt;&#13;
- &lt;!-- &lt;ui:include src="content.xhtml"/&gt; --&gt; &#13;
- &lt;!-- &lt;/div&gt; --&gt;&#13;
- &lt;/ui:insert&gt;&#13;
-&lt;/div&gt;&#13;
-&#13;
-&lt;div id="footer"&gt;&#13;
- &lt;ui:insert name="footer"&gt;&#13;
- Footer area. See comments below this line in the source.&#13;
- &lt;!-- include your header file or uncomment the include below and create footer.xhtml in this directory --&gt;&#13;
- &lt;!--&lt;ui:include src="footer.xhtml"/&gt; --&gt;&#13;
- &lt;/ui:insert&gt;&#13;
-&lt;/div&gt;&#13;
-&#13;
-&lt;/body&gt;&#13;
-&#13;
-&lt;/html&gt;</template><template id="org.eclipse.jst.jsf.facelet.ui.new_basic_composition_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Simple_Facelet_Composition_Page_Description" enabled="true" name="%New_Simple_Facelet_Composition_Page">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &#13;
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;&#13;
-&#13;
-&lt;html xmlns="http://www.w3.org/1999/xhtml"&#13;
- xmlns:ui="http://java.sun.com/jsf/facelets"&#13;
- xmlns:h="http://java.sun.com/jsf/html"&#13;
- xmlns:f="http://java.sun.com/jsf/core"&gt;&#13;
-&#13;
-&lt;ui:composition template=""&gt;&#13;
- &lt;ui:define name="header"&gt;&#13;
- Add your header here or delete to use the default&#13;
- &lt;/ui:define&gt;&#13;
- &lt;ui:define name="content"&gt;&#13;
- Add your content here or delete to use the default&#13;
- &lt;/ui:define&gt;&#13;
- &lt;ui:define name="footer"&gt;&#13;
- Add your footer here or delete to use the default&#13;
- &lt;/ui:define&gt;&#13;
-&lt;/ui:composition&gt;&#13;
-&lt;/html&gt;</template></templates> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<templates>
+<template id="org.eclipse.jst.jsf.facelet.ui.new_simple_footer_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Footer_Description" enabled="true" name="%New_Facelet_Footer">%New_Facelet_Footer.footer</template>
+<template id="org.eclipse.jst.jsf.facelet.ui.new_header_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Facelet_Header_Description" enabled="true" name="%New_Facelet_Header">%New_Facelet_Header.header</template>
+<template id="org.eclipse.jst.jsf.facelet.ui.new_basic_template_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Facelet_Template_Description" enabled="true" name="%New_Facelet_Template">%New_Facelet_Template.template</template>
+<template id="org.eclipse.jst.jsf.facelet.ui.new_basic_composition_xhtml" autoinsert="false" context="html_new" deleted="false" description="%New_Simple_Facelet_Composition_Page_Description" enabled="true" name="%New_Simple_Facelet_Composition_Page">%New_Simple_Facelet_Composition_Page.composition</template>
+</templates> \ No newline at end of file

Back to the top