File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes OpenFaces simple Ajax problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "OpenFaces simple Ajax problem" Watch "OpenFaces simple Ajax problem" New topic

OpenFaces simple Ajax problem

Tom Fulton
Ranch Hand

Joined: Mar 30, 2006
Posts: 96
Hello everyone,

I have worked with RichFaces and some other component libraries a bit less extensively (such as PrimeFaces) and am trying to get a fairly simple OpenFaces app to work. I am hoping someone can help.

I have a page that displays accounts in a selectOneListbox. Using vanilla JSF, I have the form being submitted when the user selects a different account, which re-displays the current page and shows the balance for the newly-selected account. This works fine, except that I don't want to have to submit the form. Hence: Ajax.

Here is a simplified portion of my form:
Whenever I run this, I get an IllegalStateException pointing at the selectOneListbox. I am assuming that this is caused by attempting to restore the state of this component, but for the life of me I can't see what I'm doing wrong. I've tried a number of different approaches from the OpenFaces Developer's Guide, but nothing seems to work. Any ideas?

Thanks in advance.
I agree. Here's the link:
subject: OpenFaces simple Ajax problem
It's not a secret anymore!