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!

Can't find javax.faces.context.FacesContext

user10264958Apr 29 2009 — edited May 5 2009
Hi,

I have strange problem since morning. I am using Jdeveloper 10.1.3 ADF BC
I have been using the below code successfully. But today all of a sudden everything is pointing to the wrong import
// 1. Access the FacesContext
FacesContext fc = javax.faces.context.FacesContext.getCurrentInstance();

// 2. Create value binding for the #{data} EL expression
ValueBinding vb = fc.getApplication().createValueBinding("#{data}");

// 3. Evaluate the value binding, casting the result to BindingContext
BindingContext bc = (BindingContext)vb.getValue(fc);

// 4. Find the data control by name from the binding context
DCDataControl dc = bc.findDataControl("AppModuleDataControl");

For eg: FacesContext instead of fetching from javax.faces.context is getting FacesContext from com.sun.Faces
DCIteratorBinding is going to oracle.jbo.uicli.binding.JUIteratorBinding instead of oracle.adf.model.binding even if i have imported it in the class. Should i start all over again.

Please Help.
Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2009
Added on Apr 29 2009
4 comments
748 views