2012-02-23 4 views
0

내가 특정 조건에 따라 NVelocity의 레코드를 인쇄하기 위해 노력하고있어 : 아래 NVelocity - 조건에 따라 기록을 인쇄

은 조각이 ... 기본적으로, 루프는 주소가 객체와 통해 현재의 adType을 경우 그것을 무시하는 것처럼 내가 ... 내 출력 HTML에서 "#break"를 얻고있다

..

... "현재 주소", 다음 루프 밖으로 출구를 인쇄하고있다 NVelocity 버전 1.1.1을 가지고 있습니다.

감사합니다.

 #foreach($spAddress in $Report.Spouse.Addresses) 
     #if($spAddress.AdType == "Current Address") 
    <tr> 
     <td width="23%"> 
      <font size="2"><strong>$spAddress.AdType :</strong></font> 
     </td> 
     <td width="75%"> 
      <font size="2">$spAddress.CivicNumber, $spAddress.StreetName,$spAddress.City, $spAddress.Province, $spAddress.PostalCode</font> 
     </td> 
    </tr> 
     #break 
     #end 
    #end 

답변

0

약 1 년 전에 #break을 구현했지만 아직 출시 된 버전이 아닙니다. Monorail2 repository에서 가져올 수 있습니다. 시도해보고 버그를 발견하면 알려주십시오.