TapestryJfly

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    TapestryJfly - Presentation Transcript

    1. The Dojo Tapestry5 integration library http://tapestry-jfly.sourceforge.net
    2. What's all about
      • Dojo – The most effective javascript framework
      • Java – A standard for the big and medium sized industry
      • Tapestry5 – A web framework that incorporates all the tools you need for the backend and frontend development
      • Tapestry-JFly – An extension library that incorporates dojo into Tapestry5 in a fascinating natural way
    3. Dojo Advantages
      • Portability among all the browsers jungle
      • A super rich widget set
      • A shiny templating system
      • Ease of use thanks to dojo.parser
      • Available documentation with a lot of samples
      • … yes it's fast!
    4. Java Advantages
      • Widely used in the big and medium sized industry
      • Huge set of libraries, for nearly every needs
      • Portability among OS, mostly without native libraries
      • A powerful modern project management system (MAVEN)
      • Nearly all you need is Open Source
    5. Tapestry Advantages
      • A dependency injection system that makes easy the availability of all services present in your application
      • Component based (all components may provide their own assets, like css and js files)
      • A templating system that allow a distinct separation between presentation and buisiness layers, so HTML like - NO jsp!
      • Library of services, components and pages that may be directly injected into your application
    6. Tapestry-JFly advantages
      • Naturally integrates dojo into Tapestry5
      • Ready to use
      • No expressed need to force the programmer to include dojo.js
      • No need to remember any dojo.include (tapestry-jfly components do it for you)
      • All dojo/dijit/dojox public classes mapped into components
    7. Creating a Tapestry5 application
      • Creating a T5 “myapp” project
      • mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
    8. Modifying the pom.xml
      • Adding tapestryjfly dependency
      <dependency> <groupId>net.sourceforge.tapestryjfly</groupId> <artifactId>dojotapestry5</artifactId> <version>1.2.3-rc1</version> </dependency>
      • Adding tapestryjfly repository
      <repository> <id>TapestryJFly_Release</id> <name>TapestryJFly Release Repository</name> <url>http://tapestryjfly.sourceforge.net/repository/</url> </repository>
    9. Enabling dojo
      • Use annotation @DojoInitialization for page classes
      • Use annotation @DojoInitialization for a teamplate component, and add @Mixin private DojoWidget dojoWidget; as a template property
      • You are ready to use TapestryJFly!!
    10. Using TapestryJFly components
      • As html elements
      <t:dojot5:dijit.form.button id=”foo” element=”button”> Click me </t:dojot5:dijit.form.button>
      • As html decorators
      <t:dojot5:dijit.form.form forId=”theForm” <t:form id=”theForm”>...</t:form> </t:dojot5:dijit.form.form>
      • For new custom dojo classes
      <t:dojot5:dojocomponent id=”foo” dojoType=”mylib.widget.Foo” dojoRequire=”mylib.widget.Foo”> Something inside </t:dojot5:dojocomponent>
    11. Ending
      • Questions?
      • See it in action!
      • Conclusions....

    + kiumakiuma, 9 months ago

    custom

    481 views, 0 favs, 0 embeds more stats

    Slides presented at the dojo.wine the 28th of March more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 481
      • 481 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories