Tuesday, June 26, 2012

EL in ZK 6 I had some issues trying to figure out some basic stuff since I didn't see it documented anywhere.

For concatenation I seemed to have to use el2's concat function...


  1. <listcell label="@load(owner.lastName.concat(', ').concat(owner.firstName))">  
  2. </listcell>   

For equals you can't use == , need to use el's 'eq' or 'ne'
  1. visible="@load(productGroup.owner.id eq user.id)"   

Monday, April 2, 2012

Groovy - using a writer with FileIO

Groovy - using a writer with FileIO

  1. public void writeToFile(def directory, def fileName, def extension, def infoList) {  
  2.   new File("$directory/$fileName$extension").withWriter { out ->  
  3.     infoList.each {  
  4.       out.println it  
  5.     }  
  6.   }  
  7. }  

Blogger Syntax Highliter