2 Replies Latest reply on Oct 30, 2007 10:58 AM by Jaime Martin

    action after selecting from a suggestionbox

    Jaime Martin Apprentice

      Hi,
      I want a method in a compoenent to be executed after selecting from a suggestionBox.
      But that method is never invoked. I´m trying it by means of a:support event="onselect. This is teh code:

       <s:decorate id="currencyIsoDecoration" template="layout/edit.xhtml">
       <ui:define name="label">#{messages['CfgCurrency']}</ui:define>
       <h:inputText id="currencyIso"
       value="#{rstReportHome.instance.cfgCurrency.currencyIso}"
       required="true">
       </h:inputText>
       <rich:suggestionbox for="currencyIso"
       suggestionAction="#{rstReportHome.suggestCfgCurrency}"
       var="name"
       fetchValue="#{name.currencyIso}"
       tokens=","
       selfRendered="true"
       width="500">
       <h:column>
       <h:outputText value="#{name.currencyDes} (#{name.currencyIso})"></h:outputText>
       </h:column>
       <a:support event="onselect" action="#{rstReportHome.sugBox}" >
       <f:setPropertyActionListener value="#{name.currencyIso}" target="#{rstReportHome.instance.cfgCurrency.currencyIso}" />
       </a:support>
       </rich:suggestionbox>
       </s:decorate>
      


      thanks in advance!