Project is using Spring Webflow and JSF (PrimeFaces). I have a page called 'manageArticle.xhtml'. On the page if a user clicks 'Edit' button, a p:panel will be displayed with the current Article object content. The article object is passed to the view as follows
<transition on="edit_article" to="manageArticles">
<evaluate expression="articles.selectedRow" result="flowScope.selectedArticle" />
<set name="flashScope.editMode" value="'edit'" />
</transition>
On the panel there is a command button 'Save' defined as follows
<p:commandButton id="editArticleSave" action="${articleManager.saveArticle(selectedArticle)}" ajax="false" value="Save" />
The object 'articleManager' is in the service layer injected by Spring:
@Service("articleManager")
public class ArticleManagerImpl implements ArticleManager{
// inject dao ...
@Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW)
public void saveArticle(Article article) {
articleDao.save(article);
}
}
However when I clicked the save button, the action is not called. I put a break point in function saveArticle and it's not breaking. The action is ignored. Anybody knows what happened? Thank you very much.