You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2011/01/09 02:16:21 UTC
[Tapestry Wiki] Update of "Tapestry5JSPEditorEclipse" by angerran
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The "Tapestry5JSPEditorEclipse" page has been changed by angerran.
http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse?action=diff&rev1=10&rev2=11
--------------------------------------------------
= How to use the built in JSP Eclipse Editor and a custom tld file to get code completion in Eclipse 3.4+ and Tapestry5 =
-
- I have been looking for a method to get "code" completion while editing *.tml files in Eclipse.
+ I have been looking for a method to get "code" completion while editing *.tml files in Eclipse.
The method I have come up with is using the Eclipse JSP editor to edit *.tml files, and a TLD file.
Attached are 5 documents:
+
+ Hm... I cann't download listed bellow
* [[attachment:INSTALL.txt]]
* [[attachment:t5.0.19.tld]]
@@ -14, +15 @@
* [[attachment:t5.2.0.tld]]
* [[attachment:NewTMLTemplate.xml]]
- The text below mirrors INSTALL.txt. All steps were performed on Eclipse 3.4, but I don't see any reason this shouldn't work on older versions of Eclipse also, although config locations may
+ The text below mirrors INSTALL.txt. All steps were performed on Eclipse 3.4, but I don't see any reason this shouldn't work on older versions of Eclipse also, although config locations may differ.
- differ.
UPDATE!!! This will not work on Eclipse 3.3. The JSP Editor by default does not appear to easily support the xmlns declarations.
+ TLD files have been generated by tapestry-tldgen Maven plugin (http://github.com/exanpe/tapestry-tldgen). You can also use this plugin to generate TLD associated to your own Tapestry 5 components library. Please have a look at http://exanpe.free.fr/tapestry-tldgen/ for advanced information and usage explanation.
- TLD files have been generated by tapestry-tldgen Maven plugin (http://github.com/exanpe/tapestry-tldgen).
- You can also use this plugin to generate TLD associated to your own Tapestry 5 components library.
- Please have a look at http://exanpe.free.fr/tapestry-tldgen/ for advanced information and usage explanation.
- Regardless, this really helps out coupling Eclipse and Tapestry 5.
+ Regardless, this really helps out coupling Eclipse and Tapestry 5.
+ #-- Installing and configuring Eclipse for Tapestry 5 tml file editing.
- #-- Installing and configuring Eclipse for Tapestry 5 tml file editing.
+ 1. Associate any *.tml file with the JSP Editor.
- 1. Associate any *.tml file with the JSP Editor.
+ * Window -> Preferences -> General -> Content Types
+ * Expand Text
+ * Select JSP
+ * Click "Add"
+ * Enter *.tml
+ * Apply and Save.
- * Window -> Preferences -> General -> Content Types
- * Expand Text
- * Select JSP
- * Click "Add"
- * Enter *.tml
- * Apply and Save.
-
- 2. Install the TLD associated to your Tapestry 5 version ( Tag Library Definition ) and associate it with the default Tapesty 5 Name Space.
+ 2. Install the TLD associated to your Tapestry 5 version ( Tag Library Definition ) and associate it with the default Tapesty 5 Name Space.
- * Save the TLD project file to a static location on your system. This will be a known location that will not be removed.
- * Window -> Preferences -> XML -> XML Catalog
- * Under "User Specified Entries", create a new association by clicking "Add"
- * Click on the "File" Icon to browse to the saved TLD file, and select it.
- * Leave the key type as : "Public ID"
- * Set the key field to: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd for 5.0 Version and http://tapestry.apache.org/schema/tapestry_5_1_0.xsd for others
- * Save the entry.
- 3. Install the default *.tml template in the JSP template provider:
+ * Save the TLD project file to a static location on your system. This will be a known location that will not be removed.
+ * Window -> Preferences -> XML -> XML Catalog
+ * Under "User Specified Entries", create a new association by clicking "Add"
+ * Click on the "File" Icon to browse to the saved TLD file, and select it.
+ * Leave the key type as : "Public ID"
+ * Set the key field to: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd for 5.0 Version and http://tapestry.apache.org/schema/tapestry_5_1_0.xsd for others
+ * Save the entry.
+ 3. Install the default *.tml template in the JSP template provider:
- * Window -> Preferences -> Web -> JSP Files -> Editor -> Templates
- * Click the "import" button and browse to the provided file in this project: "NewTMLTemplate.xml"
- * Selecting it will import the template.
- * Click "Apply", "Save"
-
- Once all steps are completed, you can create a new *.tml file by creating a new JSP File, and selecting the TML Template.
+ * Window -> Preferences -> Web -> JSP Files -> Editor -> Templates
+ * Click the "import" button and browse to the provided file in this project: "NewTMLTemplate.xml"
+ * Selecting it will import the template.
+ * Click "Apply", "Save"
- In any location of the html block, you can get Tapestry Component completion now by starting a new tag with:
+ Once all steps are completed, you can create a new *.tml file by creating a new JSP File, and selecting the TML Template.
+ In any location of the html block, you can get Tapestry Component completion now by starting a new tag with:
- * <t:
-
- and hitting ctrl-space. A list of available components will be provided along with standard Eclipse help dialogues.
+ * <t:
+
+ and hitting ctrl-space. A list of available components will be provided along with standard Eclipse help dialogues.
+
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org