seam - JSF: Button/Link without form submit -


in earlier projects used s:button or s:link seam 2 when caceling something, because wouldn't submit form , no model updates occured.

now switched weld + seam 3 , couldn't find there anymore - blind or have use else?

geziefer

you can in plain jsf 2.0 setting immediate attribute true in h:commandbutton.

from myfaces wiki:

the immediate attribute can used achieve following effects:

allow commandlink or commandbutton navigate user page without processing data in input fields of current screen. in particular, allows navigation occur when there validation errors. "cancel" button typically falls category.

allow commandlink or commandbutton trigger back-end logic while ignoring validation of fields on screen. more general version of item above.

make 1 or more input components "high priority" validation, if of these invalid validation not performed "low-priority" input components in same page. can reduce number of error messages shown.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -