[opencms-dev] getFieldMethods

Mark Miller mark.miller at hema.ch
Wed Oct 29 17:52:01 CET 2003


Is it possible to pass the cms object to a getXXX method ???
 
Eg.
 
Can I use something like this
 
methods.addElement(AlbumContentDefinition.class.getMethod("getNumberOfIm
ages", new Class[] {CmsObject.class} ));
 
if so . how do I let the backoffice template to call the method with
it's cms object ? . I have a getter that requires use of the vfs, ie. it
dynamically works out the number of files in a folder in the VFS . hence
why I need a way to pass the cms object so I can then use
 
cms.getResourcesInFolder(getImageLocation()).size();
 
within the getter.
 
Does this make sense ? if so, how do I implement it ?
 
Many thanks in advance,
 
 
mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031029/529f699f/attachment.htm>


More information about the opencms-dev mailing list