Kees Jongenburger <[EMAIL PROTECTED]> wrote:
> > 
> > But the essence of the hack is, that I want the the mechanism I described 
> > 'getFunction
> > - function.getNewParameters, function.getFunctionValue)' to work, and that
> > the actual implemenation of 'getFunction' can vary.
> > 
> What will the function return?

I showed three functions.

But 'getFunction', the (on a 'factory'), will return an 'function' object. This
funciton object can do 2 things:

- It can provide an empty 'parameter list' (getNewParameters)
- It can execute itself when provided parameters (see the example I gave in
  reaction to rvm).

> and how is it supposed to work with taglibs?
> (so that both parameters as return values van be desinged with taglibs)

Using the name of the function and the environment it can determin on what
kind of object the function should be performed, and it can search the
function object (this is delegated to a 'factory'), and parameter checking
can be done.

You have to use the right function tag for the return type.

e.g. '<mm:booleanfunction' would expect e afunction returning a Boolean, and
it not so, it will throw an error.

<mm:function > will expect a String (or something similar like an 'Integer')
and write it to the page (it is a Writer tag)

<mm:listfunction> will iterator thtrough the result of the function (and give
an error if the result is not a List).

etc.

> (my example is "my" forum function that adds thread info to a node list)
> the list comes from taglibs and the result "the threaded message" must also be 
> displayed with this.

I think this could be done, though I don't precisely get what you mean.

> My global feeling is that what you are proposing is a lot more then a hack and more 
> time is needed to think about all this.

I do think though that it is little urgent, because what use is a
'getFunctionValue' function if you don't know what to feed it.

 Michiel


-- 
Michiel Meeuwissen 
Mediapark C101 Hilversum  
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

Reply via email to