On 12/29/2009 11:02 AM, tomcatlee wrote: > > Thanks. > > got it $xwiki is an instance com.xpn.xwiki.api.XWiki class,I throught it is > an instance of com.xpn.xwiki.XWiki >
$xwiki.class will print the exact classname. Works for every variable. When something doesn't work, although it should, check that each variable has the class you think they do. > > > > > Caleb James DeLisle wrote: >> >> Here is the XWiki api doc. >> http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D2.0.5%2Djavadoc.jar/com/xpn/xwiki/api/XWiki.html >> >> Here is the entire javadoc for the public api. >> http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-2.0.5-javadoc.jar/index.html >> >> Document maps to $doc >> Context maps to $xcontext (or $context if using xwiki syntax 1.0) >> >> Good luck, remember that velocity converts everything to Strings so >> something like >> #set($x = 1) >> $xwiki.methodRequiringInteger($x) >> will fail because velocity turns 1 the number into "1" the 1 character >> string >> I think $mathtool has a way to convert it back. >> >> >> Caleb James DeLisle >> >> >> tomcatlee wrote: >>> Hi, can anybody help me ? >>> >>> How do i know what's methods in $xwiki? Is there any api doc? -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
