File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Connect JSF project to Android Project in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Connect JSF project to Android Project in eclipse" Watch "Connect JSF project to Android Project in eclipse" New topic
Author

Connect JSF project to Android Project in eclipse

Prabhjot Chandhar
Greenhorn

Joined: Aug 23, 2010
Posts: 3
i have made a jsf project in eclipse and a android project .
Now i need to call a function of jsf's managed bean on using onclicklistener in andriod.
please tell me how i could do this


Hoping to clear OCPJP
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

You cannot.

JSF is a server-based webapp framework. Android is a client system. The classes in a webapp are on a completely different computer than the classes in an Android device, so they have no shared memory space. In the particular case of Android, they're also in a completely different binary format.

An Android app can invoke a webadd using the HttpURLConnection, but that doesn't solve the issue that the JSF backing bean is still not in the same JVM (or Dalvik VM, in the case of Android). And actually, JSF isn't be best interface for an Android client anyway, since its output is formatted for display rather than for use internal to a client-side app.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connect JSF project to Android Project in eclipse