Results 1 to 2 of 2
  1. #1
    harishpatarla is offline Member
    Join Date
    Mar 2013
    Rep Power

    Default The vm file is not being rendered properly


    Java Code:
    <body> <h1>Schedule Execution Notification</h1> <p>Schedule <b>${}</b> started executing at $date.format('EEEE dd/MM/yyyy HH:mm:ss',$execution.creationDate) for a duration of $date.format('mm:ss',$execution.duration) minutes resulting in <i><b>#if(${schedule.passed})a pass#{else}failure#end</b></i>.</p> <p/> <table cellspacing="0" border="1" cellpadding="0"> <tr> <th>Name</th> <th>Type</th> <th>Duration</th> <th>Result</th> </tr> #foreach($result in $execution.resultSet) <tr> <td>#if($result.type=="TEST_RESULT") ${} #else ${} #end</td> <td>#if($result.type=="TEST_RESULT") Test #else Suite #end</td> <td>$date.format('mm:ss',$result.duration)</td> <td>${result.passed}</td> </tr> #end </table> <p/> <p class="signature">Regression System</p> </body>
    I have the above code in .vm file but it is not rendering the #foreach block.

    I am wondering if it is being executed or not.Can anyone help on how to check if there is any value set variable i used in foreach block like execution.resultSet , ,

    I am trying to write code so that the above information will not be dispalyed in a tapestry page but will be attached as email and sent to users.

    My email is getting generated and being sent to my inbox but the content looks as below:

    Schedule Execution Notification
    Schedule testing binary started executing at Monday 04/03/2013 17:56:57 for a duration of 30:14 minutes resulting in .
    Name Type Duration Result
    Regression System

    Please give me some suggestions as to why its not showing the values below the columns Name,Type,Duration,Result.

    INFO:It works if i use it as a plain HTML code.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: The vm file is not being rendered properly

    Can you format it?
    That's unreadable.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 4
    Last Post: 01-30-2012, 10:22 AM
  2. Replies: 6
    Last Post: 01-14-2012, 05:14 PM
  3. Replies: 3
    Last Post: 05-16-2011, 01:50 AM
  4. Canvas rendered over JCombobox menu
    By JSK in forum AWT / Swing
    Replies: 2
    Last Post: 11-19-2007, 08:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts