Dear Wiki user,

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

The "Tapestry5HowToCreateYourOwnComponents" page has been changed by BobHarner.
The comment on this change is: URL updates.
http://wiki.apache.org/tapestry/Tapestry5HowToCreateYourOwnComponents?action=diff&rev1=3&rev2=4

--------------------------------------------------

  
   1. Create a new package in src/main/java, 
''org.example.myapp''.'''components'''. Note that the first part (in italics) 
should follow the same naming convention as your other packages (e.g. 
org.example.myapp.pages), but the components part is compulsory.
   1. Within the component package, create a new class, e.g. Tree.java
-  1. Study the diagram on component rendering at 
http://tapestry.apache.org/tapestry5/guide/rendering.html (reproduced at the 
bottom of this page). Based on this diagram, you can see which states you need 
to implement as annotations.
+  1. Study the diagram on component rendering at 
http://tapestry.apache.org/component-rendering.html (reproduced at the bottom 
of this page). Based on this diagram, you can see which states you need to 
implement as annotations.
   1. For example, the Tree.java file below creates an unordered list <ul>, 
which is reformatted by the CSS and JS to the DHTMLgoodies 
drag-drop-folder-tree.
   1. That's all there is too it: you can now reference your tree component in 
every HTML page as follows, e.g. you can write in Start.html:
  
@@ -158, +158 @@

  }
  }}}
  
- 
{{http://tapestry.apache.org/tapestry%35/images/component%2Drender%2Dstates.png}}
+ {{http://tapestry.apache.org/tapestry5/images/component-render-states.png}}
  

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

Reply via email to