3 Replies Latest reply on Oct 8, 2007 7:32 AM by Alexander Kovachev

    Problem with ForceRender and message bundles

    Alexander Kovachev Newbie

      When using ForceRender on component with value to be displayed from .properties file it does not display the value from the bundle.

      <h:dataTable ..... >
      ......
      <h:panelGrid id="buttons">
       <a4j:commandButton value="#{msg.change}" rendered="#{!bidDataBean.editableField}"
      actionListener="#{bidBean.changeKeyword}"
      reRender="buttons">
       <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender" />
       </a4j:commandButton>
       <a4j:commandButton value="#{manmsg.save}"
      rendered="#{bidDataBean.editableField}"
      actionListener="#{bidBean.saveKeyword}"
      reRender="buttons">
       <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender" />
       </a4j:commandButton>
      </h:panelGrid>
      .....
      </h:dataTable>


      The message bundle var is "msg". The bundle is loaded properly. The problem is that rerendering that panel grid with ForceRender it does not take the value from the bundle for the new button name. (when clicking on the "edit" button I get the new "save" button with no vlaue - just an empty button)