I am trying to automatically reRender a datatable when user click on the Ok button on a modal panel. For whatever reason it isn't refreshing. What am I doing wrong here? Any help will be greatly appreciated.
<h:form>
<rich:dataTable id="promoList" columnClasses="column"
value="#{Promotions.promotionList}" var="promoDetail" rows="20">
<rich:column sortBy="#{promoDetail.promotion.promoName}">
<f:facet name="header">Promotion Name</f:facet>
<h:commandLink action="#{AddPromotion.editPromotionAction}"
actionListener="#{AddPromotion.gotoPromotionTab}"
value="#{promoDetail.promotion.promoName}">
<a4j:actionparam name="promotionId"
value="#{promoDetail.promotion.id}"
assignTo="#{AddPromotion.promotionId}"/>
</h:commandLink>
</rich:column>
<rich:column>
<f:facet name="header">Price</f:facet>
<h:outputText value="#{promoDetail.promotion.suggestedPrice}" />
</rich:column>
</rich:dataTable>
</h:form>
<rich:modalPanel id="deleteStatusPanel" width="350" height="150">
<f:facet name="header">
<h:outputText value="Delete Promotion" />
</f:facet>
<h:panelGroup>
<h:form>
<center>
<rich:spacer height="15" />
<h:panelGrid columns="1">
<h:outputText style="white-space:normal"
value="#{Promotions.deletePromoStatus}" />
</h:panelGrid>
<rich:spacer height="30" />
<a4j:commandButton value="OK"
onclick="Richfaces.hideModalPanel('deleteStatusPanel');"
reRender="promoList"/>
</center>
</h:form>
</h:panelGroup>
</rich:modalPanel>