You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by lucio piccoli <lu...@asteriski.com> on 2012/08/07 12:12:57 UTC

immediate=true ignored on cancel button

hi all

when using a h:commandButton type="button the immediate=true is ignored
when submitted by js onlclick and validation errors are displayed.

the code is below

<h:commandButton type="button" value="#{messages['button_cancel']}"
action="#{locationBackingBean.cancelAction(merchantLocationBean)}"
                 styleClass="action_button" immediate="true"
onclick="submit();"/>


when i use the type="submit" and no onclick the immediate=true works
correctly.

according to
https://cwiki.apache.org/confluence/display/MYFACES/How+the+immediate+attribute+works
there is no indication that it only works with type=submit.

any help is appreciated.

-- 
regards

-Lucio Piccoli

Director
------------------------------
www.asteriski.com