ajax - InputNumber submit -
i have problem inputnumber primefaces extensions. have inputnumber component on form , when come in value in form , right after press come in button page submitted without value in inputnumber field. works when field loses focus. checked in showcase there same problem. in case, field required , when press come in button, value gone , validation message says value missing shown. help?
set input required="true" grab "enter" key , alter focus otherinput below; run on .xhtml
page between <script type="text/javascript"> </script>
tags.
$( 'form' ).bind('keypress', function(e){ if ( e.keycode == 13 ) { document.getelementbyid('input10_input').focus(); } });
it works showcase.
good luck!
ajax jsf primefaces primefaces-extensions
No comments:
Post a Comment