h:selectOneListbox inside modal panel is not refreshing
palino Feb 5, 2009 7:29 AMHi,
I have a problem with modal panel. Inside modal panel i have input rich:calendar and h:selectOneListbox. When i click on link from main page to open modal panel its calling action and rerendering modal panel to refresh its values. richCalendar is refreshed without problems and correctly but selectOneListbox is not.
Any toughts?
Thanks
Action
<a4j:commandLink id="addPointsLink" action="#{pointsBean.emptyAction}" value="Add Penalty Points" immediate="true" reRender="pointsMP" limitToList="true" oncomplete="Richfaces.showModalPanel('pointsMP',{width:450, top:200})"> <f:param name="conversationPropagation" value="join"/> </a4j:commandLink>
ModalPanel
<rich:modalPanel id="pointsMP" autosized="true" zindex="2000" styleClass="formData"> <f:facet name="header"> <h:outputText value="Add Penalty Points" /> </f:facet> <f:facet name="controls"> <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('pointsMP')" /> </f:facet> <h:form id="pointsForm"> <a4j:queue name="pointsInfoQueue" requestDelay="500" ignoreDupResponce="true"/> <h:inputHidden value="#{pointsBean.pointsIndex}" /> <h:inputHidden value="#{pointsBean.driverIndex}" /> <a4j:outputPanel id="pointsValues"> <h:outputText id="pointsMessagesId" style ="display: none;" value="#{facesContext.maximumSeverity}"/> <!-- Points Details --> <s:decorate id="pointsDatePart" template="/WEB-INF/templates/form/formItem.xhtml"> <ui:define name="label">Date</ui:define> <ui:param name="componentId" value="pointsDate"/> <rich:calendar id="pointsDate" value="#{pointsBean.date}" required="true"> <f:validator validatorId="DateValidator" /> </rich:calendar> </s:decorate> <s:decorate id="pointsNumberPart" template="/WEB-INF/templates/form/formItem.xhtml"> <ui:define name="label">Penalty Points</ui:define> <ui:param name="componentId" value="pointsNumber"/> <h:selectOneListbox id="pointsNumber" size="1" label = "Penalty Points" value="#{pointsBean.number}" required="true"> <f:selectItems value="#{quoteItemsBean.penaltyPointItems}"/> <regex:regexValidator regexid="points.penaltypts.validator1"/> <rich:ajaxValidator event="onblur"/> </h:selectOneListbox> </s:decorate> </a4j:outputPanel> <div class="space"/> <a4j:commandButton id="pointsButton" action="#{pointsBean.addEdit}" value="#{pointsBean.buttonText}" immediate="false" reRender="pointsValues, pointsList, driverListPanel" limitToList="true" oncomplete="closeMP('#{rich:clientId('pointsMessagesId')}','pointsMP');" styleClass=""> <f:param name="conversationPropagation" value="join"/> </a4j:commandButton> </h:form> </rich:modalPanel>