javascript function is not getting called onclick of hx:commant button
- by Sunny Mate
hi i have method called test()
when iu click on the commandButton the method should get called but the method is not getting called my code is as follows
method
**function test()
{
alert('ss');
return "true";
}**
and method calling is
<hx:commandExButton
type="submit"
value="Search"
styleClass="action2" id="searchButton"
**onclick="return test();"**
action="#{pc_WorkInProgressUserGrid.doSearchButtonAction}"
immediate="true </hx:commandExButton>
any suggestion would be helpful