2 Replies Latest reply on Mar 12, 2008 5:23 PM by enesterov

    rerender does not work with inputTextarea inside modalPanel

    enesterov

      Hi everyone,

      I have the following code to invoke modalPanel. Everything woks fine except that inputTextarea with id="messagebody" does not get reRendered after I change value in inputText with id="template". Interestingly enough that outputText with id="foo" gets rerendered with no problem at all.

      Could someone help me understand what am I doing wrong with inputTextarea?
      Thanks

      <rich:modalPanel id="messagesendpanel" width="400" height="280" moveable="false" resizeable="false" left="auto" top="auto">
       <f:facet name="header">
       <h:outputText value="Initiate Conversation"/>
       </f:facet>
       <a:form id="messagesendform">
       <h:panelGrid id="sendmessagegrid" columns="2" columnClasses="name1,value1" style="width:100%">
      
       <h:outputLabel for="template">Template Name:</h:outputLabel>
       <h:inputText id="template" value="#{reply.selection}">
       <a:support ajaxSingle="true"
       disableDefault="true"
       event="onchange"
       focus="sendmessagelink"
       limitToList="true"
       reRender="messagebody, foo"></a:support>
       </h:inputText>
      
       <h:outputLabel for="messagebody">Message:</h:outputLabel>
       <h:inputTextarea id="messagebody" value="#{reply.bodyText}" rows="4"></h:inputTextarea>
      
       <h:outputLabel value="" for="btncell" style="padding-top:5px;padding-bottom:5px;"></h:outputLabel>
       <h:panelGroup id="btncell" style="padding-top:5px;padding-bottom:5px;">
       <a:commandLink oncomplete="Richfaces.hideModalPanel('messagesendpanel')" value="Cancel" styleClass="btn"></a:commandLink>
       <a:commandLink id="sendmessagelink" actionListener="#{reply.sendMessage}" oncomplete="Richfaces.hideModalPanel('messagesendpanel')" value="Send" styleClass="btn"></a:commandLink>
       </h:panelGroup>
       </h:panelGrid>
      
       </a:form>
       <h:outputText id="foo" value="#{reply.bodyText}"></h:outputText>
       </rich:modalPanel>