Rerender for selectonemnu dont work, RF 3.2.2.BETA4
goompas Aug 15, 2008 9:09 PMHello
I need rerender second and third selectonemenus after change value of first selectonemenu.
OutputText rerender good, problem is only with second and third selectonmenu (id=prefixy1 and id=sufixy1). Why? I dont have any idea. These menus dont rerender also on commandbutton and page reload. OutputText show good list. Only when i click another page and again these page(konkretnepolaczenie), these selectonemenus are good rendered.
<%-- Document : konkretnepolaczenie Created on : 2008-08-13, 12:56:38 --%> <%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <%@taglib uri="http://richfaces.org/rich" prefix="rich"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <jsp:useBean class="org.my.richfaces.BeanListy" id="data"> </jsp:useBean> <a4j:region id="csly"> <h:form> <h:panelGrid> <h:selectOneMenu id="grupy" binding="#{BeanListy.filters['grupy']}" value="#{BeanListy.ktoragrupa}" immediate="true" valueChangeListener="#{BeanListy.processColorChange}" onchange="this.form.submit();"> <a4j:support event="onchange" reRender="regionek" /> </h:selectOneMenu> <a4j:region id="regionek"> <a4j:outputPanel id = "listy" > <h:selectOneMenu id="prefixy1" binding="#{BeanListy.filters['tprefixy1']}" value="#{BeanListy.wybranyprefix1}"> </h:selectOneMenu> <h:selectOneMenu id="sufixy1" binding="#{BeanListy.filters['tsufixy1']}" value="#{BeanListy.wybranysufix1}"> </h:selectOneMenu> </a4j:outputPanel> <h2><h:outputText value=" asd #{BeanListy.linkdoglownej}" id="seto12" /></h2> <a4j:outputPanel id="panel"> <h2><h:outputText value=" wybrana lista: #{BeanListy.ktoragrupa}" id="wynik" rendered="true"/></h2> <h2><h:outputText value=" wybrana lista: #{BeanListy.tprefixy}" id="wynik1" rendered="true"/></h2> </a4j:outputPanel> </a4j:region> <a4j:commandButton action="next" reRender="wynik, wynik1, listy"/> <h2><h:outputText value=" wybrana lista: #{BeanListy.ktoragrupa}" id="wynik2" /></h2> </h:panelGrid> </h:form> </a4j:region> </body> </html>