• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing a managed bean directly  RSS feed

 
Robert Gorn
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm new to Java web engineering, so please be patient. )

In my web application, there is a servlet that's transforming XML by XML to HTML. From the resulting web pages, I would like to update a shopping cart -- I was thinking of using AJAX to call a remote servlet or JSF page (without reloading the current user page).

The shopping cart could be a JSF-managed bean with Session scope.

Now, the first question/thought is, the aforementioned pages are pure HTML. Is there a way to include JSF (i.e., ajax4jsf) tags and let them get interpreted by the Faces servlet? (I don't think so.)

Second, if I would remotely call a servlet (to update the shopping cart), was there a way to access the managed shopping cart bean?

And third, if I would (remotely) call a JSF page, how would I update the shopping cart bean from there?

I'm appreciating any hint.
Thanks indeed
Robert
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!