2 Replies Latest reply on Dec 17, 2008 7:08 AM by Yenan Zhou

    should component be created if rendered=false?

    Yenan Zhou Newbie

      A simple test case:


      if I do


      <s:div rendered="false">
          <h:outputText value="#{tester.myname}" />
      </s:div>
      


      tester component is created and getMyname() is called even nothing is actually rendered


      but if I do


      <s:div rendered="false">
          #{tester.myname}
      </s:div>
      


      getMyname() is not called.


      I'm wondering what's going on here?