4 Replies Latest reply on Mar 25, 2008 7:40 AM by zhang tao

    suggestionbox in modalpanel's problem

    zhang tao Newbie

      Hi everyone,i encounter a problem when i put suggestionbox in modalpanel,the suggestionbox wouldn't appear as it in other place.Does anyone can solve it? thanks !
      I search the document,but then give an answer:use the latest version,but i didn't find it work.

      <rich:modalPanel id="addAccountItemPanel" minHeight="200" minWidth="450"
       height="200" width="500" zindex="2000" left="70">
       <f:facet name="header">
       <h:outputText value="#{config['accountItemAdd.title']}" />
       </f:facet>
       <f:facet name="controls">
       <h:graphicImage value="/images/control/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('addAccountItemPanel')" />
       </f:facet>
       <h:panelGrid style="border: 1px dashed #3c78b5">
       <!-- 录入数� -->
       <h:panelGrid columns="3">
       <!-- 账目类型 -->
       <h:outputText value="#{config['accountItemAdd.type']}"></h:outputText>
       <h:selectOneMenu id="AccountItemType">
       <f:selectItem itemValue="income" itemLabel="#{config['accountItemAdd.type.income']}"/>
       <f:selectItem itemValue="outcome" itemLabel="#{config['accountItemAdd.type.outcome']}"/>
       </h:selectOneMenu>
       <h:message for="AccountItemType"></h:message>
       <!-- 用途 -->
       <h:outputText value="#{config['accountItemAdd.usage']}"></h:outputText>
       <h:inputText id="AccountItemUsage"></h:inputText>
       <rich:suggestionbox width="50" height="30" for="AccountItemUsage"
       suggestionAction="#{accountItemAddMBean.autocomplete}" var="result" fetchValue="#{result}" minChars="1" nothingLabel="#{config['accountItemAdd.noUsageFound']}">
       <h:column>
       <h:outputText value="#{result}"></h:outputText>
       </h:column>
       </rich:suggestionbox>
       </h:panelGrid>
       <!-- �作� -->
       <h:panelGrid style="text-align:center;" columns="2">
       <a4j:commandButton value="#{config['accountItemAdd.save']}"></a4j:commandButton>
       <a4j:commandButton value="#{config['accountItemAdd.cancel']}" onclick="Richfaces.hideModalPanel('addAccountItemPanel')"></a4j:commandButton>
       </h:panelGrid>
       </h:panelGrid>
       </rich:modalPanel>