Lets take the blog example.
I have my BlogService thats hast the following code:
| @RequestParameter("blogEntryId")
| private String blogEntryId;
|
| @In(required=false)
| @Valid
| private BlogEntry newBlogEntry;
|
| @Factory("newBlogEntry")
| public void createBlogEntry()
| {
| if(blogEntryId != null)
| {
| newBlogEntry = get Blog by ID ...
| }
| else newBlogEntry = new BlogEntry();
| }
|
| public String saveEntry()
| {
| em.persist(newBlogEntry);
| return "home";
| }
|
The action is always: action="#{blogService.saveEntry}"
Is that the right way to solve this?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959103#3959103
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959103
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user