Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Connect JSF project to Android Project in eclipse

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 25851
184
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic