3 Replies Latest reply on Sep 24, 2008 11:05 AM by Shervin Asgari

    Introduces Bug on suggestionbox on Richfaces 3.2.2 from Rich

    Shervin Asgari Master

      I have just upgraded to 3.2.2.GA from 3.2.1.GA and suddenly something is terribly wrong with my suggestionbox.

      This is how it looks now:
      Mind you it is two screenshots, and I had to take two of them because it was too difficult to capture both the suggestionbox and the strange list without styling also.

      So the suggestionbox with correct styling is suddenly on top left corner, and another list with the wrong styling is appeared directly where it should. So it looks like the problem is with the merging.

      The two screens:
      http://www.asgari.no/personal/suggestionbox_3.2.2.png
      http://www.asgari.no/personal/suggestionbox2_3.2.2.png

      Here is the relevant code:


      <s:decorate id="postnummerDecoration" template="/layout/edit.xhtml">
       <ui:define name="label">Postnummer</ui:define>
      
       <h:inputText value="#{adressePoststedHelper.postnummer}"
       openOnEdit="true" showControls="false" id="postnummer"
       maxlength="4" size="4">
       <a:support event="onblur"
       reRender="poststedDecoration,kommuneDecoration,fylkeDecoration,landDecoration,adresseSave,adresseUpdate"
       ajaxSingle="true" bypassUpdates="false"
       action="#{adresseHome.setPoststedReference(null, adressePoststedHelper)}" eventsQueue="Q"/>
       <rich:toolTip followMouse="false" direction="top-right" styleClass="tooltip">
       <span style="white-space:nowrap">
       Etter inntasting av minst to siffer vil du kunne velge blant postnummer som starter med disse.
       </span>
       </rich:toolTip>
       </h:inputText>
      
       <rich:suggestionbox for="postnummer"
       suggestionAction="#{poststedList.autocomplete}"
       fetchValue="#{object.postnummer}" var="object" minChars="2" >
       <h:column>
       <h:outputText value="#{object.postnummer}" />
       </h:column>
       <h:column>
       <h:outputText value="#{object.navn}" />
       </h:column>
       <a:support event="onselect"
       reRender="postnummerDecoration,poststedDecoration,kommuneDecoration,fylkeDecoration,landDecoration,adresseSave,adresseUpdate"
       ajaxSingle="true" bypassUpdates="false"
       action="#{adresseHome.setPoststedReference(object, adressePoststedHelper)}" eventsQueue="Q" />
       </rich:suggestionbox>
       </s:decorate>
      
       <s:decorate id="poststedDecoration" template="/layout/edit.xhtml">
       <ui:define name="label">Poststed</ui:define>
       <h:outputText value="#{adressePoststedHelper.poststedNavn}"
       id="poststedNavn" maxlength="256" size="30">
       </h:outputText>
       </s:decorate>
      
       <s:decorate id="kommuneDecoration" template="/layout/edit.xhtml">
       <ui:define name="label">Kommune</ui:define>
       <h:outputText value="#{kommuneHome.instance.navn}" id="kommuneNavn"
       maxlength="256" size="30" />
       </s:decorate>
      
       <s:decorate id="fylkeDecoration" template="/layout/edit.xhtml">
       <ui:define name="label">Fylke</ui:define>
       <h:outputText value="#{fylkeHome.instance.navn}" id="fylkeNavn"
       maxlength="256" size="30" />
       </s:decorate>
      
       <s:decorate id="landDecoration" template="/layout/edit.xhtml">
       <ui:define name="label">Land</ui:define>
       <h:outputText value="#{landHome.instance.navn}" id="landNavn"
       maxlength="256" size="30" />
       </s:decorate>
      


      Please bear in mind that this worked correctly on 3.2.1