1 Reply Latest reply on Jun 27, 2007 11:54 AM by Damian Harvey

    problem in my Suggestion box with seam decorate

    alex rozario Newbie

      Hi, I can't succeed in using Suggestion box with seam decorate,

      i use Suggestion box(for auto completion) in my input text (country) field,
      i validate that text field not empty.
      the auto completion functionality working properly at first time
      After getting one validation alert message the auto completion not proper
      i meant the text field not get completed text
      please any one give me the right solution

      i give my sample code here
      i am using seam JBoss 4.0.1 GA and JBoss seam 1.2.1

      
      <s:decorate id="countryDecorate" template="layout/edit.xhtml">
      
       <ui:define name="label">Country:</ui:define>
      
      
       <h:inputText value="#{user.country}" id="country" required="true">
      
       <a:support event="onblur" reRender="countryDecorate"/>
      
       </h:inputText>
      
       <rich:suggestionbox id="suggestionBoxId" for="country" tokens=",["
       rules="#{suggestionBox.rules}"
       suggestionAction="#{suggestionBox.autocomplete}" var="result"
       fetchValue="#{result.text}" rows="#{suggestionBox.intRows}"
       first="#{suggestionBox.intFirst}"
       minChars="#{suggestionBox.minchars}"
       shadowOpacity="#{suggestionBox.shadowOpacity}"
       border="#{suggestionBox.border}" width="#{suggestionBox.width}"
       height="#{suggestionBox.height}"
       shadowDepth="#{suggestionBox.shadowDepth}"
       cellpadding="#{suggestionBox.cellpadding}">
       <h:column>
       <h:outputText value="#{result.text}" />
       </h:column>
       </rich:suggestionbox>
      
       </s:decorate>



      By
      Alex