javascript function is not getting called onclick of hx:commant button
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
11:53 UTC
Read the original article
Hit count: 302
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
© Stack Overflow or respective owner