0 Replies Latest reply on Nov 9, 2010 10:39 AM by null null

    adding a4j:jsFunction breaks rerendering

    null null Novice

      Issue fixed, a:jsFunction ...found out adding these attributes fixed it for some reason... bypassUpdates="true" ajaxSingle="true"


      I read this article on how to fix back browser button




      but I find I have a richfaces page not working in firefox and not working in IE...must be something in richfaces causing this somehow where firefox can't grab what happened.  Anyways, I am trying the solution to solve for both, BUT it turns out after adding that a4j:jsFunction, when the page comes up and I select an item from the first pulldown AND that pulldown tells the submenu pulldown to rerender with it's new value, it does NOT anymore.  It is like adding jsFunction broke my other stuff.


      Here is the code(remove the jsFunction and the pulldown menus work again!!!  put it back and they break.  This is a page users constantly use the back browser button to get back to and it doesn't have the previous state the user filled in without a jsFunction type fix or is there another way to reRender without using jsFunction since that is breaking my page????


           <a:form id="searchForm">
                  <a:jsFunction name="reloadAjaxPanels" eventsQueue="foo" reRender="searchForm"  />           
                  <rich:panel id="searchPanel" bodyClass="rich-laguna-panel-no-header">


                          <f:subview id="quickSearch">
                              <h3>Quick Search</h3>


                                  <s:div styleClass="blockDivLeft">
                                      <s:decorate id="searchTypeDec2"
                                          <h:selectOneMenu id="searchType2" value="#{query.searchType}">
                                              <s:selectItems var="s" value="#{queryManager.searchTypes}"
                                                  label="#{s.label}" />
                                              <a:support event="onchange" reRender="searchTypeValueD,errormessages" bypassUpdates="false" ajaxSingle="true" />
                                              <s:convertEnum />
                                  <s:div styleClass="blockDivRight" id="searchTypeValueD">
                                      <s:decorate id="searchTypeValueDec"
                                          template="/web/zlogin/noLabelTemplate.xhtml"  rendered="#{not query.searchALL}">
                                          <h:inputText value="#{query.searchId}" id="searchTypeValue"
                                              required="true" validator="limit30Validator">
                                              <a:support event="onblur" ajaxSingle="true"
                                                  reRender="searchTypeValueDec,errormessages" />
                                      <s:decorate id="dateRangeDec222"
                                          <h:selectOneMenu id="dateTypeRange" value="#{queryManager.dateType}"
                                              <s:selectItems var="s" value="#{queryManager.rangeTypes}"
                                                  label="#{s.label}" />
                                              <s:convertEnum />
                              <rich:spacer width="1" height="10" title="Here is a spacer..." />
                              <rich:separator height="1" />