wood burning stoves 2.0
The moose likes JSF and the fly likes Problem with JSF 1.1 and Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with JSF 1.1 and Ajax" Watch "Problem with JSF 1.1 and Ajax" New topic

Problem with JSF 1.1 and Ajax

Lucas Mogari

Joined: Feb 11, 2010
Posts: 5

Could you help me with a problem?

Here is my setup:
The project is using JSF 1.1, MyFaces 1.1.5, Java 1.4, Spring 2.5, WebSphere 6.0 and prototype 1.6.1
Only one servlet (front controller) that dispatch to jsf mapped events. Spring manages beans.

Here is the situation:
The user opens a view (all normal with jsf). In that view, he clicks in a button and then a ajax request is fired to get a html form and inject it in that view with javascript (innerHTML). Till there it's ok. I attached a image to ilustrate it better.
The problem is that when the user submits the form, the fields loaded via ajax are not been setted/validated/converted in the managed bean. And something funny is that the fields that was already in the main view are only setted sometimes.

Am i missing something?


[Thumbnail for jsf-ajax.png]

I agree. Here's the link: http://aspose.com/file-tools
subject: Problem with JSF 1.1 and Ajax
jQuery in Action, 3rd edition