Binding issue - Struts 2 with Jdeveloper 10.1.3.4
Hi All,
I am developing a struts 2 application with Jdeveloper 10.1.3.4 version.
I have created a view Object and used it on my JSP page to create an input form.
On my Submit Button, i wrote a custom event (onAdd) on my Action class. I am trying to get the input value of my parameter (id) using the following code:
DCBindingContainer bc = ctx.getBindingContainer();
JUCtrlValueBinding binding = (JUCtrlValueBinding) bc.findCtrlBinding("id");
int value = ((Integer) binding.getInputValue()).intValue();
I am able to get only the Binding Container and BindingContext from the PageLifeCycleContext object. But the values of the binding and value are all null. I am able to find the mappings and values in the pageDef.xml and DataBindings.cpx .
Can anyone let me know what could be causinig the values to be null.
Any help is highly appreciated.
Thanks,
Subashini