aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with JSF 1.1 and Ajax" Watch "Problem with JSF 1.1 and Ajax" New topic
Author

Problem with JSF 1.1 and Ajax

Lucas Mogari
Greenhorn

Joined: Feb 11, 2010
Posts: 5
Hi.

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?


Thanks.


[Thumbnail for jsf-ajax.png]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with JSF 1.1 and Ajax