AppFuse Tutorials
If you've just downloaded AppFuse and want to setup it up on your machine, your best bet is the QuickStart Guide. Once you've got everything setup, the tutorials below are a great resource for learning how to develop with AppFuse. NOTE: These tutorials are included in AppFuse's distribution. If you want to update your project's copy (in the docs directory), run "ant wiki".As of 1.6.1, you can generate most of the code covered in these tutorials. If you're using Struts+Hibernate, you can generate all of it. For Spring and WebWork, it was too much trouble to write the installers so you will need to manually configure the Controllers and Actions. This was mainly due to the fact that I'm not using XDoclet for these web frameworks and the limitations of using Ant as an installer. The AppGen tool which generates the code is covered in Part I.
There's also an AppFuse Generator project that has similar functionality to AppGen.
Part I: Creating new DAOs and Objects in AppFuse - A HowTo for creating Java Objects (that represent tables) and creating Java classes to persist those objects in the database.
- Translations: Chinese, Portuguese, Spanish
Part II: Creating new Managers - A HowTo for creating Business Facades that talk between the database tier (DAOs) and the web tier (Actions or Controllers).
- Translations: Chinese, Portuguese, Spanish
Part III: (Struts) Creating Struts Actions and JSPs - A HowTo for creating Actions and JSPs in your AppFuse project. Includes generating JSPs and customizing them to look good. Also, you will write a WebTest to test the JSPs functionality. Other web framework options are as follows:
- Translations: Chinese, Portuguese
- Translations: Portuguese
- WebWork: Creating WebWork Actions and JSPs
- JSF: Creating JSF Beans and JSPs
- Tapestry: Creating Tapestry Pages and Templates
Part IV: (Struts) Adding Validation and List Screen - Adding validation logic to the personForm so that firstName and lastName are required fields and adding a list screen to display all person records in the database.
- Translations: Chinese, Portuguese
- Translations: Portuguese
- WebWork: Adding Validation and List Screen
- JSF: Adding Validation and List Screen
- Tapestry: Adding Validation and List Screen
Thomas Gaudin's Excellent AppFuse Tutorials
Thomas Gaudin has put together a couple of detailed and easy-to-follow tutorials on his site.
- Handling Dates with AppFuse and Struts
- Building a persisted dynamic web tree
- Flexi-Float Sitemesh decorator for AppFuse
- Lucene Integration with Spring and Hibernate
Related AppFuse HowTos
- How I setup my Development Environment.
- Translations: Portuguese
- Translations: Portuguese
- Using AppFuse with MyEclipse: Part I and Part II.
- AppFuse also supports IDEA 4.0 out-of-the-box, or at least the project files are included.
- How to run your AppFuse web application and testcases in a debugger.
- Using Anthill or CruiseControl to automate AppFuse testing.
- How do I create object relationships with Hibernate.
- How to run AppFuse on Resin.
- How to run AppFuse on Orion.
- How to run AppFuse on Oracle.
- How to run AppFuse on DB2.
- How to run AppFuse on PostgreSQL.
- How to run AppFuse on MS SQL.
- How to use Velocity Templates instead of JSPs.
- XDoclet Template for Hibernate in Eclipse.
- How to add a library dependancy into AppFuse.
- How to add a servlet into AppFuse.
- How to autogenerate PDF documents from DAO layer.
- How to automatically generate random data.
- How to integrate code coverage tool with appfuse
Server Configuration
Other
Outdated Articles that still get some traffic: