Interoperable interactive geometry for Europe
I forgot my login data
Register


Report a bug


Fan club

Quick Intro Videos
click to start movie
Create A Simple
GeoGebra Resource (25Mb)
click to start movie
Filing a review
click to start movie
Find a Resource

SPONSORS
This platform is brought to you by the intergeo project, funded under the eContent Plus programme of the European commission and by partners

import com.xpn.xwiki.validation.*; import com.xpn.xwiki.*; import com.xpn.xwiki.doc.*; import com.xpn.xwiki.objects.*;

public class Val implements XWikiValidationInterface { public boolean validateDocument(XWikiDocument doc, XWikiContext context) { System.out.println("Validating " + doc); def res = true; def obj = doc.getObject("QF.ReviewClass"); if(empty(obj.reviewSummary)) { res=false; XWikiValidationStatus.addErrorToContext("QFReviewValidation", "reviewSummary","Summary","QF.non-empty-summary"); } return res; } public boolean validateObject(BaseObject object, XWikiContext context) { return true; } }