1 Reply Latest reply on Mar 17, 2013 5:07 PM by Christian Peter

    Issue with jsfunction with managed bean value

    Keith Wong Newbie

      I got issue when using jsFunction(insdie autocomplete) assigning jsf manage bean value to other outputText. If that is static valve, that can be showed correctly. I believe that is straightforward to your expertise knowledge. Thanks in advance.

       

      {code}

      <div class="topLeft">

      <p>

      <a4j:jsFunction name="updateVal" render="vobjects">

                <a4j:param name="val" assignTo="#{searchBean.parameters.make}"/>

      </a4j:jsFunction>

      <h:outputText value="Vehicle Model:" />

      <rich:autocomplete height="200" width="200"

                mode="cachedAjax" minChars="1" autofill="true"

                oncomplete="updateVal(#{makeModel.model})"

                autocompleteList="#{vehicleModelsBean.makeModels}" var="makeModel"

                autocompleteMethod="#{vehicleModlsBean.autocomplete}"

                value="#{searchBean.parameters.model}"

                fetchValue="#{makeModel.model}" id="vsuggestion" layout="table">

                <rich:column>

                          <h:graphicImage value="#{makeModel.logo}" />

                </rich:column>

                <rich:column>

                          <h:outputText value="#{makeModel.model}" />

                </rich:column>

      </rich:autocomplete></p>

      <p><h:outputText value="Vehicle Make" />

      <h:inputText value="#{searchBean.parameters.make}" id="vobjects" style="font-weight:bold"/></p>

       

       

      </div>


      {code}