You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/06/28 16:41:57 UTC
[Myfaces Wiki] Update of "SubmitPageOnValueChange" by JeffBischoff
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by JeffBischoff:
http://wiki.apache.org/myfaces/SubmitPageOnValueChange
The comment on the change is:
Added example using commandLink
------------------------------------------------------------------------------
<x:commandButton id="submitLogin" forceId="true" action="#{yourBean.whateverAction} style="visibility:hidden;" />
}}}
+
+
+
+ If you need to submit a commandLink instead of a commandButton, use the clickLink() function from JavascriptWithJavaServerFaces;. Then use the example above, but change the last "if" statement to the following:
+
+ {{{
+ if (keycode == 13) {
+ clickLink(commandLinkId);
+ return false;
+ }
+ }}}
+