Rob Vermeulen <[EMAIL PROTECTED]> wrote:
> Your email discusses the use of functions in taglibs, how are you going
> to implement this ?
> Something like:
>
> <mm:node>
> <mm:function name="function name">
> <mm:parameter name="parameter name">value</mm:parameter>
> </mm:function>
> </mm:node>
something linkt this, but acutally a bit differnt:
<mm:node>
<mm:function name="functionname" />
</mm:node>
or
<mm:node>
<mm:functioncontainer>
<mm:param name="name" value="valkue" /?>
<mm:function name="functionname" />
</mm:functioncontainer>
</mm:node>
or
<mm:node>
<mm:functioncontainer>
<mm:param name="name" value="valkue" /?>
<mm:booleanfunction name="functioname">
yes!
</mm:booleanfunction>
</mm:functioncontainer>
> The thing that interests me even more is how do you want to implement
> this in the MMCI ?
There are currently no extra MMCI methods, it is e.g. using the already existing
function.getFunctionValue(name, parameters);
Using the MMCI object Node you can however request its functions via a
'function factory'. But of course a method 'getFunctionParmaeters' (or so)
could be added to MMCI itself.
> Which extra methods are required and on which classes ?
So, for the moemnt: none.
>
> You are also talking about xml definitions for the functions. Is it also
> possible to use reflection instead of making additional xml files that
> are a description of the actual classes ?
yes.
> Could you give an example of
> such a xml file, and where are you going to store these files ?
I'd suppose you would place these kind of XML's in <config>/functions
Such an XML would contain things like:
<function name="getPostings">
<description>List the postings within a
postthread</description>
<type>class</type>
<class>org.mmbase.applications.forums.gui.Controller</class>
<method>getPostings</method>
<param name="forumid" type="String" description="MMBase node
num
ber of the forum" />
<param name="postareaid" type="String" description="MMBase
node
number of the postarea" />
<param name="postthreadid" type="String" description="MMBase
nod
e number of the postthread" />
<param name="posterid" type="int" description="MMBase node
numbe
r of current Poster (on the page)" />
<param name="page" type="int" description="Page number of
the th
reads we want" />
<param name="pagesize" type="int" description="The number of
pos
tings per page">5</param>
<return type="NodeList">
</return>
</function>
> I also saw editors with which you can make the xml definitions, are they
> part of this vote ?
No, but scb2 can undoubtly explain better what they are and how they work.
This vote is a prerequisite for these editors.
Michiel
--
Michiel Meeuwissen
Mediapark C101 Hilversum
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
[] ()