2 Replies Latest reply on Nov 14, 2008 8:43 AM by ivan senji

    s:decorate reRendered with ajax not appearing on page

    ivan senji Newbie

      This is the code



      <a4j:outputPanel
           rendered="#{not empty zastupnik}">
                <table>
                <tr>
                <s:decorate id="nameDecoration" template="/layout/editTD.xhtml">
                     <ui:define name="label">#{messages.personName}</ui:define>
                     <h:inputText value="#{zastupnik.name}" required="true">
                     </h:inputText>
                </s:decorate>
                </tr>
                </table>
      ...



      This part of the page is reRendered using a4j:commandButton. An action on that button makes the a4j:outputPanel rendered condition become true.
      But the component nameDecoration doesn't show up.
      Without <table><tr> and </tr><table> that part turns up after the ajax request is processed.


      Replacing s:decorate with ui:decorate makes the above code work but then we lose
      invalid that is available inside of s:decorate.


      Any ideas what could cause this problem?


      Note: template used above (/layout/editTD.xhtml) is a modification of the original template: div is removed and label and input are in seperate td's.


      Thanks!