javascript function is not getting called onclick of hx:commandButton
Posted
by Sunny Mate
on Stack Overflow
See other posts from Stack Overflow
or by Sunny Mate
Published on 2010-04-01T11:48:14Z
Indexed on
2010/04/01
13:13 UTC
Read the original article
Hit count: 268
JavaScript
|jsf
When I click on the hx:commandButton
the method should get called but the method is not getting called. My code is as follows:
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.
© Stack Overflow or respective owner