Announcement Announcement Module
No announcement yet.
<h:commandButton> not invoking action consistently Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • <h:commandButton> not invoking action consistently

    I have a form built using JSF and RichFaces. Here's a snippet of the code:

    <h:form id="newContactModalForm">

    ....... Form input code here

    <hanelGrid columns="1" style="width: 100%" border="0">
    <h:commandButton action="addPerson" value=" Save "
    oncomplete="#{rich:component('newContactModalPanel ')}.hide();return true;"
    rendered="true" style="margin-right: 3px"/>



    Here's the addPerson action in my flow xml:

    <transition on="addPerson">
    <evaluate expression="viewScope.personBean.setUpdatedBy(curr"/>
    <evaluate expression="personManager.persistPerson(viewScope. personBean)" result="viewScope.person" />

    I noticed that the addPerson action on the commandButton does not get called consistently when it is clicked. I've been reading forums and it seems that there is a problem with the h:commandButton not invoking the action bound to it. However, I don't see any post explaining why the problem is happening and what to do to resolve it.

    I need help.

    Last edited by amc709; Oct 21st, 2009, 09:48 AM. Reason: Added flow xml snippet