0 Replies Latest reply on Aug 10, 2008 3:48 PM by Greg Zoller

    a4j:support not firing with rich:inplaceInput

    Greg Zoller Newbie

      Can anyone give me some tips why my action isn't firing in the code below? It all seems like it should work but when I click on my input field and enter something, hit return, the event/action is ignored and my method never called and nothing is displayed in messages.

      <a4j:outputPanel ajaxRendered="true">
       <h:messages />
       Give me:
       <rich:inplaceInput
       defaultLabel="(add more)"
       selectOnEdit="true"
       value="#{mgr.scratch}">
       <a4j:support event="onviewactivated" action="#{mgr.sayHey()}" />
       </rich:inplaceInput>
       </a4j:outputPanel>


      My session bean:

      @Name("mgr")
      @Stateful
      @Scope(ScopeType.SESSION)
      public class ManagerBean implements Manager {
      
       private String scratch="Hey";
      
       public String getScratch() {
       return scratch;
       }
      
       public void setScratch(String scratch) {
       this.scratch = scratch;
       }
      
       public void sayHey() {
       System.out.println("FOOBAR!");
       }
      
       @Remove @Destroy
       public void destroy() {}
      }
      


      Any ideas?
      Thanks!
      Greg