我该如何使用
myfaces.oam.submitForm()
提交单选按钮?我试过了
myfaces.oam.submitForm('formName', 'formName:radioButtonsName')
但它似乎不起作用。我在哪里可以找到此功能的规格?
答案 0 :(得分:2)
来自google源代码(myfaces-js):https://code.google.com/a/apache-extras.org/p/myfaces-js-integrationtests/source/browse/src/main/webapp/resources/scripts/myfaces/_impl/_util/_OamSubmit.js?r=ad5b5c39ac9e7ecba5f7b20f7cbe3d9ae73a11f3
/**
* does special form submit remapping
* remaps the issuing command link into something
* the decode of the command link on the server can understand
*
* @param formName
* @param linkId
* @param target
* @param params
*/
this.submitForm = function(formName, linkId, target, params) {
// ...
}