Seam: Difference between revisions

From Wiki RB4
Line 18: Line 18:
   
   
  '''@org.jboss.seam.annotations.Name("'''<Name>'''")'''
  '''@org.jboss.seam.annotations.Name("'''<Name>'''")'''
<class_declaration>


specifies the name of the seam component.
specifies the name of the seam component.

Revision as of 21:45, 28 August 2008

Introduction

Seam integrates Hibernate Validator and lets you use it for data validation (even if you are not using Hibernate for persistence). Most Seam application use session beans as JSF action listeners

Installation and Configuration

  • download jboss-seam-2.0.2.SP1.zip and extract to <ECLIPSE_WORKSPACE>
  • add jboss.home to <SEAM_DIR>\build.properties

Annotations

org.jboss.seam.annotations.In

@org.jboss.seam.annotations.In
<attribute_declaration>

The attribute is injected by Seam.

org.jboss.seam.annotations.Name

@org.jboss.seam.annotations.Name("<Name>")
<class_declaration>

specifies the name of the seam component.