2 Replies Latest reply on Oct 15, 2007 5:17 AM by Tomislav Jakopec

    suggestionbox a:support onsubmit not working

    Tomislav Jakopec Novice

      here is situation

      <t:inputText value="#{traziSimpleSifarnik.opis}" id="traziRadniOdnos"/>
      <r:suggestionbox id="suggRO" for="traziRadniOdnos"
      suggestionAction="#{traziSimpleSifarnik.autocomplete}" var="r"
      fetchValue="#{r.opis.naziv}" minChars="2" width="400" height="150"
      nothingLabel="#{messages['zajednicke.nemaRezultata']}">
      <a:support event="onsubmit" action="#{traziSimpleSifarnik.setIdent('vrstaRadnogOdnosa')}"/>
      <a:support event="onselect">
      <t:updateActionListener value="#{r}"
       property="#{zaposlenik.vrstaRadnogOdnosa}" />
      </a:support>
      <r:column width="50%">
      <t:outputText value="#{r.opis.naziv}" />
      </r:column>
      <r:column width="50%">
      <t:outputText value="#{r.napomena.naziv}" />
      </r:column>
      </r:suggestionbox>
      


      When I put two support tags onsubmit action doesn't work, error is


      Error: event is not defined
      Source File: http://localhost:8080/kadrovska/a4j_3_2_0-SNAPSHOTorg/richfaces/renderkit/html/scripts/suggestionbox.js
      Line: 69


      but when I put onsubmit on suggestionbox tag its working fine.

      So, onsubmit on suggestionbox working fine but a:support event="onsubmit" NOT WORKING

      Please help!