Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Binding issue - Struts 2 with Jdeveloper 10.1.3.4

user9949730Nov 23 2009 — edited Nov 24 2009
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2009
Added on Nov 23 2009
6 comments
632 views