Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by Dean Murphy:
http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse

------------------------------------------------------------------------------
  
  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 I've created based on the Tapestry 5 Version 5.0.18 
Component documentation. 
+ The method I have come up with is using the Eclipse JSP editor to edit *.tml 
files, and a TLD file I've created based on the Tapestry 5 Version 5.0.18 
Component documentation.
  
+ Attached are 3 documents:
+ 
+ INSTALL.txt
+ t5.tld
+ 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 differ. 
+ 
+ Let me know your thoughts on this method, and if anyone has any ideas on 
improving on this! It would be great to come up with an automated method to 
generate the tld files based on the code documentation used to create the 
component docs. 
+ 
+ Regardless, this has really helped out when using Eclipse and Tapestry 5. 
+ 
+ 
+ #-- Installing and configuring Eclipse for Tapestry 5 tml file editing. 
+ 
+ 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. 
+       
+ 2. Install the t5.tld ( Tag Libraray Definition ) and associate it with the 
default Tapesty 5 Name Space.             
+       Save the t5.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 t5.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
+       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. 
+ 
+ In any location of the html block, you can get Tapestry Component completion 
now by starting a new tag with: 
+  
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to