3 Replies Latest reply on Apr 26, 2011 10:00 AM by denebj

    [Resolved] - <a4j:region> Behavior

    denebj

      Good afternoon

       

      I have a question about the region tag, I am using the RF4 Final.

      When I have a component like a <rich:autocomplete> outside a region tag, the list of suggestions is being displayed like it should be, but if it is wrapped around a <rich:region> it is not working (the autocomplete method is not being executed).

      What I am missing ?

       

      I have :

       

      <a4j:region>

            <rich:collapsiblePanel

                  switchType="ajax"

                  header="Search"

                  id="search"

                  expanded="false">

       

       

                                      <rich:autocomplete

                                              id="suggestionBox"

                                              value="#{searchModule.searchWord}"

                                              minChars="3"                                        

                                              mode="cachedAjax"

                                              autocompleteMethod="#{searchModule.autoCompleteWord}"

                                                 var="result"

                                              fetchValue="#{result}"

                                              autofill="false">

       

                                               <h:column>

                                                    <h:outputText value="#{result}" />

                                               </h:column>

                                          </rich:autocomplete>

       

              </rich:collapsiblePanel>

      </a4j:region>

       

      Thank you !

        • 1. <rich:region> Behavior
          ilya_shaikovsky

          add rich:messages to the page.

          • 2. <a4j:region> Behavior
            denebj

            Good morning Ilya :)

            The page already contains a rich:message and nothing is being displayed.

            What I noticed is that there is ajax request sent by the autocomplete indeed I have a popup panel which displays a loading popup on ajax requests. So, I see this modal when I use the autocomplete but nothing is happening !

            • 3. <a4j:region> Behavior
              denebj

              Allright, I found the answer, the <a4j:region> had to be placed INSIDE the <rich:collapsiblePanel>.

              I guess because the collapsiblePanel is in ajax mode, I had to include the region inside.

               

              Resolved