3 Replies Latest reply on Oct 26, 2010 3:26 AM by Ponic Pan

    Suggestion Box, results not getting displayed

    Ponic Pan Newbie

      Hello,

       

      I am trying suggestionbox aned results are not getting displayed.

      I am getting the following in a4j log. Any idea what went wrong?

       

      debug[17:10:19,792]: Such element  exist in document
      debug[17:10:19,792]: Attempt to update  part of page for Id: suggestionbox_form:suggestionBoxId:suggest
      debug[17:10:19,792]: call  selectSingleNode for id= suggestionbox_form:suggestionBoxId:suggest
      error[17:10:19,792]: New node for ID  suggestionbox_form:suggestionBoxId:suggest is not present in response
      debug[17:10:19,792]: call  selectSingleNode for id= ajax-view-state
      debug[17:10:19,792]: Hidden JSF state  fields:
      debug[17:10:19,792]: Namespace for  hidden view-state input fields is undefined
      debug[17:10:19,792]: search for  elements by name 'input'  in element span
      debug[17:10:19,792]: selectNodes found  1
      debug[17:10:19,792]: Replace value for  inputs: 4 by new values: 1
      debug[17:10:19,792]: Input in  response: com.sun.faces.VIEW
      debug[17:10:19,792]: Found same input  on page with type: hidden
      debug[17:10:19,792]: search for  elements by name 'INPUT'  in element span
      debug[17:10:19,808]: selectNodes found  0
      debug[17:10:19,808]: Replace value for  inputs: 4 by new values: 0
      debug[17:10:19,808]: call  selectSingleNode for id= _A4J.AJAX.focus
      debug[17:10:19,808]: No focus  information in response
      debug[17:10:19,808]: call  selectSingleNode for id= org.ajax4jsf.oncomplete
      debug[17:10:19,808]: Call component  oncomplete function after processing updates
      debug[17:10:19,839]: call  selectSingleNode for id= _ajax:data
      debug[17:10:19,839]: AJAX response   complete - updateChoices
      debug[17:10:19,839]: Choices  updated

        • 1. Re: Suggestion Box, results not getting displayed
          Ponic Pan Newbie

          Some could kindly help, I am still stuck with this error!

           

          Thanks

          • 2. Re: Suggestion Box, results not getting displayed
            liumin hu Master

            hi,

            you need show your code for more detail.

            • 3. Re: Suggestion Box, results not getting displayed
              Ponic Pan Newbie

              Here is my jsf page code, I do not have any issues in getting values from bean.

              I am using Jdeveloper 10g with embedded oc4j instance, RF version 3.1.6.

               

              Thanks

               

              *****************************JSF Page**************************************

              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
              "http://www.w3.org/TR/html4/loose.dtd">
              <html>
                <head>
                  <title>bean</title>  
                </head>
                      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
                   <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
                   <%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
                   <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
                      
                      
              <f:view>
                
                 
                <h:form id="suggestionbox_form">      
                     <h:panelGrid width="100%" >
                          <h:panelGroup >
                              <h:inputText value="#{capitalsBean.capital}"  id="text" />
                              <rich:suggestionbox id="suggestionBoxId" for="text"                    
                                  suggestionAction="#{capitalsBean.autocomplete}" var="result"
                                  fetchValue="#{result.name}"  ajaxSingle="true"
                                  first="0"
                                  minChars="1"
                                  shadowOpacity="2"
                                  border="2" width="300"
                                  height="180"
                                  shadowDepth="3"
                                  cellpadding="2"
                                  nothingLabel="No capitals found">                          
                                  <h:column>
                                      <h:outputText value="#{result.name}" />
                                  </h:column>                           
                              </rich:suggestionbox>         
                              <a4j:outputPanel ajaxRendered="true">
                   <h:messages />
                   </a4j:outputPanel>
                      <a4j:log popup="false"/>
                          </h:panelGroup>           
                      </h:panelGrid>      
                  </h:form>
              </f:view>
              </html>