• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

OpenFaces simple Ajax problem

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic