Lab #9 JSF (Component Copy/Paste Zone)

Overview

Seam can be used with facelets or standard JSP to render standard web forms and even more sophisticated AJAX based forms. Treat this lab as your copy/paste zone application. It is a great place to get snippets of JSF/facelets for your web application.

Lab Instructions

  1. Open your seam command window/shell
  2. type: cd @seamHome@
  3. type: seam switch-project (helloworld-lab9 should be entered as the project name)
  4. type: seam labs-cheat (Enter '9' for the lab cheat you want to apply)
  5. type: seam explode restart
  6. Goto URL: localhost:8080/helloworld-lab9/home.seam
  7. type: seam unexplode (Will undeploy the exploded EAR file)

Key Files

@workspaceHome@@sep@helloworld-lab9@sep@build.xml
@workspaceHome@@sep@helloworld-lab9@sep@resources@sep@META-INF@sep@application.xml
@workspaceHome@@sep@helloworld-lab9@sep@resources@sep@treecache.xml

@workspaceHome@@sep@helloworld-lab9@sep@resources@sep@WEB-INF@sep@components.xml
@workspaceHome@@sep@helloworld-lab9@sep@resources@sep@WEB-INF@sep@faces-config.xml
@workspaceHome@@sep@helloworld-lab9@sep@resources@sep@WEB-INF@sep@web.xml

@workspaceHome@@sep@helloworld-lab9@sep@src@sep@com@sep@mydomain@sep@helloworld@sep@DataBean.java
@workspaceHome@@sep@helloworld-lab9@sep@src@sep@com@sep@mydomain@sep@helloworld@sep@Pojo.java
@workspaceHome@@sep@helloworld-lab9@sep@src@sep@com@sep@mydomain@sep@helloworld@sep@PojoBean.java

@workspaceHome@@sep@helloworld-lab9@sep@view@sep@ajax.xhtml
@workspaceHome@@sep@helloworld-lab9@sep@view@sep@date-picker.xhtml
@workspaceHome@@sep@helloworld-lab9@sep@view@sep@errors-messages-cache.xhtml
@workspaceHome@@sep@helloworld-lab9@sep@view@sep@form-buttons.xhtml
@workspaceHome@@sep@helloworld-lab9@sep@view@sep@form-fields-required.xhtml
@workspaceHome@@sep@helloworld-lab9@sep@view@sep@form-fields-validate-all.xhtml
@workspaceHome@@sep@helloworld-lab9@sep@view@sep@form-fields-validate-partial.xhtml

@workspaceHome@@sep@helloworld-lab9@sep@view@sep@stylesheet@sep@date.css

Home