0 Replies Latest reply on Jul 20, 2009 4:12 PM by Jeremy Cowgar

    Using AJAX, ClassNotFound error

    Jeremy Cowgar Newbie

      I have just begun to learn Seam and I like what I see thus far except I am having a problem making Ajax work. I have deployed my Seam 2.2.0.CR1 application (little more than a seam-gen app w/1 model added) onto a JBoss 5.1.0.GA server. Once I used seam-gen, I then imported the project into Eclipse w/JBoss Tools.


      The model I created was User and I used seam-gen create-ui to create base CRUD functionality for the model. I then wanted to provide an AJAX method to check for the existance of the username when a new user is added. i.e. no duplicate usernames.


      The xmlns:a=http://richfaces.org/a4j line already existed in my ui:composition tag.


      The code I added as simply:


      <a:outputPanel id="aUsernameField">
      ...
      </a:outputPanel>
      



      When I run my app now, I get an exception:


      java.lang.ClassNotFoundException: org.ajax4jsf.component.html.HtmlAjaxOutputPanel
      



      I checked my deployed-jars-war.list and it has richfaces-ui.jar and richfaces-impl.jar. The -ui file contains the class it states cannot be found.


      Any thoughts on making this work?


      Thank you,


      Jeremy