wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

Connect JSF project to Android Project in eclipse

Prabhjot Chandhar

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: 15960

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
Similar Threads
Eclipse unable to show class and methods
how install in Eclipse(Java/Android) emulator for Tablet PC Android
How to get back R.java after cleaning the project in eclipse?
Uncaught handler: thread main exiting due to uncaught exception
Swing or SWT with Android