| @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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user