[jboss-user] [JBoss Seam] - Re: Injection Problem

fernando_jmt do-not-reply at jboss.com
Wed Apr 25 13:48:46 EDT 2007


  | @Entity
  | @Name("contact")
  | @Role(name="contact1")
  | @Table(name = "CONTACT")
  | 
  | public class Contact implements java.io.Serializable {
  | 
  | 	private Long id;
  | 
  | 	private String firstName;
  | 
  |         ......
  | }
  | 





  | @Stateful
  | @Scope(SESSION)
  | @Name("customerFormAction")
  | public class CustomerFormAction implements ICustomerFormAction, Serializable {	
  | 
  | 	private static final long serialVersionUID = 1L;	
  | 	 
  | 	@Logger private Log log;
  | 	
  | 				
  | 	@In
  | 	Contact contact;
  | 		
  | 	@In
  | 	Contact contact1;
  | 
  |         ........
  | }
  | 	
  | 





  | ...............     
  | 
  |     Contact 1 First: <h:inputText value="#{contact.firstName}"/>
  |     Contact 1 Last: <h:inputText value="#{contact.lastName}"/>
  | 
  |     Contact 2 First:<h:inputText value="#{contact1.firstName}"/>
  |     Contact 2 First:<h:inputText value="#{contact1.lastName}"/>
  | 
  |     ...........
  | 
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040697#4040697

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040697



More information about the jboss-user mailing list