3 Replies Latest reply on Feb 4, 2014 5:43 PM by Max Barkley

    Possible bug in template eng

    Amit Kumar Newbie

      I was trying to build a grid and ended up creating a List widget and another widget to represent row and associated templates as below:

       

      List Widget:

      <div class="content-section-b">

        <div class="container">

        <table class="table"> 

        <thead> 

         <tr> 

           <th>Student-ID</th> 

           <th>First Name</th> 

           <th>Last Name</th> 

           <th>Grade</th> 

         </tr> 

        </thead> 

           <tbody id="mediaList">

           </tbody> 

        </table> 

        </div>

      </div>

       

      Row Widget:

        <tr id="mediaRow"> 

           <td>001</td> 

           <td>Rammohan </td> 

           <td>Reddy</td> 

           <td>A+</td> 

        </tr> 

       

      In my opinion, it should work but no it doesn't. Errai complain that no root element available for Row Widget. But if I move row template in List Widget like below and refer it via  @Templated("ListWidget.html#mediaRow") it works. Not sure if i am missing something or is it a bug? But i am loving the framework and though will put it into your notice.


      <div class="content-section-b">

        <div class="container">

        <table class="table"> 

        <thead> 

         <tr> 

           <th>Student-ID</th> 

           <th>First Name</th> 

           <th>Last Name</th> 

           <th>Grade</th> 

         </tr> 

        </thead> 

           <tbody id="mediaList">

      <tr id="mediaRow"> 

           <td>001</td> 

           <td>Rammohan </td> 

           <td>Reddy</td> 

           <td>A+</td> 

        </tr> 

           </tbody> 

        </table> 

        </div>

      </div>

       

      Thanks,