问题
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