Shasi Mitra wrote:Check the navigation rule in faces-config once. Did you specify proper navigation rule from this page once you hit the action button?
Jolie Lee wrote:you can try body on~load calls a javascript method, then in the javascript method calls a commandbutton which is hidden. that commandbutton can then call a method in your backing bean.
function test(){
document.getElementById('formName:buttonId').click();
}
<body on~load="test();">
<h:commandButton action="#{backingBean.methodName}" id="buttonId" style="display: none"/>
</body>
Hi i am trying to use the function on body onload .its hitting more then once test();
Test function is called endless loop...
Thanks
kumar