5 Replies Latest reply on Nov 7, 2008 9:51 AM by Jens Mueller

    suggestionbox - wrong rendering

    Gregor Jarisch Newbie

      hello!

      i am using a suggestionbox inside a panelgrid:

      <h:panelGrid border="1" columns="3">
      <f:facet name="header">
      <h:outputText value="Bestellung hinzufügen" escape="false" />
      </f:facet>
      <h:outputText value="Company" />
      <h:inputText id="company"
      label="Unternehmen"
      value="#{Order.customer.company}"
      required="true"
      size="20" />
      <rich:suggestionbox for="company"
      height="200"
      width="200"
      suggestionAction="#{Order.autocompleteCompany}"
      var="suggest">
      <h:column>
      <h:outputText value="#{suggest.company}"/>
      </h:column>
      </rich:suggestionbox>
      <h:outputText value="Straße: " escape="false" />
      <h:inputText id="street"
      label="Straße"
      value="#{Order.customer.street}"
      required="true"
      size="30" />
      <rich:message for="street" errorClass="errorMessage">
      <f:facet name="passedMarker">
      <h:graphicImage value="/images/passed.gif" />
      </f:facet>
      <f:facet name="errorMarker">
      <h:graphicImage value="/images/error.gif" />
      </f:facet>
      </rich:message>

      ...

      </h:panelgrid>

      The suggestionbox should appear under the company textbox. Instead it appears on the left top of the page. It seams that the <h:column> will be rendered as an own column in the panelgrid instead as an element of the suggestionbox.
      Take a look: http://www.sls.io/screenshot_suggestionbox.jpg

      any ideas how to solve that?

      - amoun