Your SlideShare is downloading. ×
0
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
GTLAB Overview
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

GTLAB Overview

711

Published on

Description of the GTLAB JSF tag libraries.

Description of the GTLAB JSF tag libraries.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
711
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Installing and Building GTLAB
  • 2. GTLAB and OGCE
    • OGCE contains multiple sub-projects
      • Portlet-based Grid portal (with Gridsphere and Tomcat).
      • Workflow suite (services and add-ins to the portal)
      • Information Web services
      • Gadget container
      • JavaScript libraries
      • GTLAB
    • These are packaged with Maven and include everything you need except Java and (for some services) MySQL.
    • We try to make things installable with minimal fuss.
      • Edit one config file (pom.xml)
      • Run one command (mvn clean install)
      • You may need to futz a little with MySQL
  • 3. Getting GTLAB
    • See http://www.collab-ogce.org/ogce/index.php/GTLAB
    • You can use your favorite SVN client to check out.
      • svn co https://ogce.svn.sourceforge.net/svnroot/ogce/GTLAB (latest)
      • svn co https://ogce.svn.sourceforge.net/svnroot/ogce/tags/GTLAB-release-SC08-1.1 (tagged)
    • The tagged represents a stable preview release. The latest is whatever was checked in last.
    • “ Latest” will also give you easy access to any updates
      • “ svn update”
      • Best option if you want to actively develop and get fixes right away.
  • 4. No SVN? Get the TAR
    • SourceForge’s SVN/CVS viewer now provides a “Download GNU Tar” option.
    • http://ogce.svn.sourceforge.net/viewvc/ogce/GTLAB/ for latest.
    • http://ogce.svn.sourceforge.net/viewvc/ogce/tags/GTLAB-release-SC08-1.1/ for tag
  • 5. What’s in GTLAB?
  • 6. Build GTLAB
    • Unpack or checkout code
    • Cd GTLAB
      • All commands are executed from here.
    • Edit properties at the top of pom.xml.
      • Change IP
      • Change project.home if you unpack someplace besides $HOME.
    • Run “mvn clean install”
    <properties> <portal.server.ip> 156.56.104.143 </portal.server.ip> <host.base.url> http://${portal.server.ip}:8080/ </host.base.url> <project.home> ${env.HOME}/GTLAB </project.home> <tomcat.version> apache-tomcat-5.5.27 </tomcat.version> <catalina.home> ${project.home}/portal_deploy/${tomcat.version}/ </catalina.home> <dot.globus.home> ${env.HOME}/.globus/ </dot.globus.home> </properties>
  • 7. Run Examples
    • From GTLAB, start tomcat with ./startup.sh.
    • From GTLAB, stop Tomcat with ./shutdown.sh
    • Point browser to http://localhost:8080/GTLAB
    • Start with MyProxy Example
  • 8. Next Steps
    • Play with examples.
      • These are really bare bones. Make something interesting.
    • Make a Google gadget.
    • Mix and match tags in a pipeline to make a new application.
      • Use the dependency tag.
      • Note you can mix and match JSF and JSP if you are not familiar with JSF.
    • Try making a new tag.
      • Explained next.
  • 9. Making a New JSF Page from Tags
    • I recommend starting from the examples.
      • jsf_standalone/src/main/webapp/examples
    • “ Build” the examples with
      • mvn –o clean install –f jsf_standalone/pom.xml
    • The “-o” option is used to build offline. Will also avoid unnecessary Maven repository updates.
    • The “-f” specifies only build this specific module.
    • I recommend not futzing with the deployed versions under portal_deploy.
      • A computer is a state machine. State must be reproducible.
  • 10. Making a New Tag
    • Run the following command from GTLAB:
      • mvn clean process-resources -Dtag.name=test -Dprojectname=Test -f templateTag/pom.xml
      • Add -Ddest.dir=/tmp for a dry run.
    • Replace “test” with the name of your tag.
    • Replace “Test” with the name for your Bean.
    • This will make 4 files
      • TestBean.java , TestTag.java, TestBeanFactory.java , UITest.java
    • Edits also 3 config files
      • gtlab-factory.xml, managed-beans.xml , components.xml
    • This will compile but to implement something useful, you will need to edit the highlighted files.
  • 11. Implementing a Tag
    • The place to start is TestBean.java (or whatever you used for –Dprojectname=…).
    • This includes several inherited methods that can be implemented.
      • Most important is submit() . Use the try/catch block. This is where the action is.
      • If you need to hook tags into chains, implement getOutput() and setInput() .
      • Also take a look at the other beans.
  • 12. What Can You Implement as a Tag?
    • What can you do in your bean? Anything server-side Java can do.
    • Some suggestions:
      • Implement a tag client to a remote Web service. Amazon has some interesting ones….
      • Implement an RSS/Atom feed client to Twitter, your blog, Facebook, etc.
      • Combine the feeds as a mash-up.
      • Connect to a database with JDBC.
      • Implement a JMS publisher or subscriber.
      • Use Google Java APIs to interact with Blogger, Calendar, and YouTube.
      • Try interacting with Facebook.

×