Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with JSF 1.1 and Ajax  RSS feed

Lucas Mogari
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!