myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucio piccoli <lu...@asteriski.com>
Subject immediate=true ignored on cancel button
Date Tue, 07 Aug 2012 10:12:57 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message