简体   繁体   中英

How to pass variable from javascript to java BakingBean

I am trying to pass a variable from a Javascript method (which is written in jspx) page to a Java BakingBean.

Here is the Javascript code:

<SCRIPT type="text/javascript">
    function OnSave() {
    alert("The signature you have taken is the following data: " + SigPlus1.SigString);
    }
    </SCRIPT>

of course, this method will be called after the user presses the save button, defined as follows:

<INPUT id="submit1" name="Save" type="submit" value="Save" onclick="OnSave()"/>

As you can see this Javascript will alert the result to the user. Instead I want to pass the object ( SigPlus1 ) to a Java Bean.

I am using ADF technology with JDveloper 11.1.2.3

本文涵盖了以下内容: http : //www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf您需要使用adfCustomEvent JS方法

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM