Hi All,
         I am using a jsf project as my client project which tries to access
the published methods of a service project(dynamic web project).So,as per my
need there is a service method which takes an argument of "ExternalContext
type".But when I try to pass the same object from client project,it is
unable to recognize the External type.
         The service method is like:
                                                 void
createEmployee(Employee emp,ExternalContext ext){ // }
         And Im trying to invoke this method from JSF client project as:
                                                
                public String run(){
          ClassPathXmlApplicationContext context = new
ClassPathXmlApplicationContext(new String[]{"p2/bean-  client.xml"});
        TestService test = (TestService)context.getBean("testClient");
        //ExternalContext externalContext =
FacesContext.getCurrentInstance().getExternalContext();
        FacesContext fc = FacesContext.getCurrentInstance();
            ExternalContext externalContext = fc.getExternalContext();
                Employee Emp = new Employee();
                Emp.setName("aritra");
           test.createEmployee(Emp,externalContext);
          return null;
        }

             This is a casting problem for ExternalContext..Can anybody help
me out??
Regards,
Aritra Ghosh

--
View this message in context: 
http://cxf.547215.n5.nabble.com/JSF-FacesContext-is-not-working-for-CXF-tp5480158p5480158.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to