Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Can't reRender richfaces datatable from modal panel

843844Jul 9 2009 — edited Jul 11 2009
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>  

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 8 2009
Added on Jul 9 2009
3 comments
543 views