thanks for your feedback!
my actionbean:
@Stateful
| @Name("projectMaintAction")
| @Scope(ScopeType.CONVERSATION)
| @Restrict("#{identity.loggedIn}")
| public class ProjectMaintActionImpl implements ProjectMaintAction {
|
| @In(required = false) @Out
| private Project project;
|
| //@In(value="projectMaintService", create=true)
| //public ProjectMaintService projectMaintService;
| @In
| private EntityManager entityManager;
|
| @In
| private FacesMessages facesMessages;
|
| @Logger
| private Log log;
|
| private boolean isCreation = false;
|
| public boolean isCreation() {
| return isCreation;
| }
| @Begin
| public void createProject() {
| isCreation = true;
| project = new Project();
| }
| @End
| public void saveProject() {
| if (isCreation == true){
| String aa = project.getName();
| entityManager.persist(project);
| }
| }
|
|
| @Destroy @Remove
| public void destroy() {
| }
| public void delete() {
| // TODO Auto-generated method stub
|
| }
| public void editProject() {
| // TODO Auto-generated method stub
|
| }
| public void updateProject() {
| // TODO Auto-generated method stub
|
| }
| public void viewProject() {
| // TODO Auto-generated method stub
|
| }
|
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026209#4026209
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026209
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user