0

I have a jsf component with action

<h:form>
   <a4j:commandButton value="click" action="#{myBean.method()}" />
</h:form>

the problem is that bean's method "method" was called only once at first click, how can I fix it that it will be called at every click on

Vasil Lukach
  • 3,658
  • 3
  • 31
  • 40
needermen
  • 43
  • 1
  • 8
  • Post more of the surrounding markup. Do you have another `` enclosing the one you've shown here? What version of JSF/Richfaces are you running? – kolossus Jul 29 '14 at 07:33
  • I don't have another tag, I am using JSF 2.2 and Richfaces 4 – needermen Jul 29 '14 at 08:12
  • 1
    Press F12 in browser for clues. – BalusC Jul 29 '14 at 09:42
  • Problem is not in `a4j:commandButton` code. You can add `oncomplete` attribute (with alert) there and temporary remove action attribute for testing purpose. And if it regular submit button without ajax, then you can use `h:commandButton`. – Vasil Lukach Jul 29 '14 at 17:18

0 Answers0