How to get any value from any text-box using oracle-adf through button click?

最后都变了- 提交于 2019-12-23 02:45:13

问题


How to get any value from a text-box adf component using oracle-adf through button click?


回答1:


@ Livin,

Your query was not completely clear, so I made assumption that UI had backing bean enabled.

On UI lets have a "Text Box" & "Command Button" for getting this done.

In the backing bean just write a method..,

public String cb1_action() 
{

    String a = (String)it1.getValue(); // To recieve value from UI InputText Component
    System.out.println(a);

    return null;
}

"it1" is the id of the InputText Component, so now map this method {cb1_action()} to the Action Field in Property Inspector of jDev IDE.

Hope you got it :)




回答2:


In the textbox component of ADF you have a property called Value. By using an EL you can set the value in the bean.

Now in the button's actionListner you can get the value just by calling the get method of the id that you set in the bean earlier.



来源:https://stackoverflow.com/questions/11100258/how-to-get-any-value-from-any-text-box-using-oracle-adf-through-button-click

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!