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