1 Reply Latest reply on Jun 12, 2007 9:56 AM by Brad Leupen

    rich tree and suggestion box

    Brad Leupen Newbie


      Has anybody successfully used a suggestionbox within a rich tree? i have added <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/> to the suggestion box, which fixed the first problem of bad IDs. The following problems remain, however:

      1. The suggestion box renders twice (both with the correct data): as a non-rich/non-scrollable table directly below the input field (wrong look, right location) and as a rich-scrollable window at the top left corner of my form (right look, wrong location).

      2. Selecting a choice in the suggestion box does nothing. The input field is not updated.

      3. I get frequent "Out of memory: line 99" errors in IE 7.


      My markup currently looks like:

       <rich:tree switchType="client" value="#{MyBean.richTreeModel}" var="item" nodeFace="#{item.type}">
       <rich:treeNode type="Value">
       <ui:include src="/value.xhtml"/>
       <a4j:outputPanel ajaxRendered="true">

       <a4j:outputPanel ajaxRendered="true">
       <h:panelGrid columns="3">
       <h:inputText value="#{item.value}" id="valueInput"/>
       <rich:suggestionbox eventsQueue="suggestQueue" for="valueInput" height="150" width="150" border="1" suggestionAction="#{item.autocomplete}" var="suggest">
       <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/>
       <h:outputText value="#{suggest}"/>