1 Reply Latest reply on Mar 4, 2009 11:39 AM by nbelaevski

    InlineInput - can't make it work with onkeyup event

    themathmagician

      Hello
      I am writing to you, because I have been trying to make the following code snippet work in all ways I could think of without success.

      Basically, I wan't the InlineInput to fire an event on keyup - but it only fires when the user leaves the field, and/or returns to set new values.

      I am developing with RichFaces 3.2 and Seam 2.1 on JBossAS 4.2.3.

      Here is the code snippet:

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
      
       <h:form>
       <p><rich:inplaceInput value="#{jobSearch.searchString}" >
       <a4j:support event="onkeydown" reRender="outtext" />
       </rich:inplaceInput></p>
      
       <h:inputText value="#{jobSearch.category}" >
       <a4j:support event="onkeydown" reRender="outtext" />
       </h:inputText>
       </h:form>
      
       <h:outputText id="outtext" value="#{jobSearch}" />
      
      </ui:composition>
      


      Any ideas whether this is a bug, or I have misunderstood how to use the component? I haven't found the answer in the documentation.

      Best,
      Agata