• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connect JSF project to Android Project in eclipse

 
Prabhjot Chandhar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic