Surely sendmail reeled when thusly spake Geert Bevin:
>
> Hi Pierre,
> 
> Everything works correctly, however in the menu.xml element you  
> specify this:
> <element implementation="tutorial.friends.Display">
> 
> This means that you will use the Display element implementation  
> instead of printing the menu template. If you use this instead it  
> will work:
> <element extends="rife/template/print.xml">
> <property name="name">menu</property>

I have not dug into Pierre's sample files, but when you specify 

        <element extends="rife/template/print.xml">
        <property name="name">menu</property>

is this essentially the same as specifying something like 

        <element implementation="com.uwyn.rife.engine.elements.PrintTemplate">
        <property name="template_name">menu</property>

I ask because this is (IMHO) a fundamental distinction which 
is not (or was not) clearly made in the documentation.  That 
is to say, a page which needs to have hyperlinks generated 
for exits, but which does not otherwise require a processing 
backend written in Java, is easy to define -- but it does 
require a reference to a specific named functionality (print 
template) that is presupplied by Rife.

I wonder if there is a way to auto-detect and auto-implement 
this, for example that an element declaration like this:

        <element type="html" implementation="myapp.menu">

would automatically use the print-template functionality. 
Exits would be declared in the usual way. 


HTH

fred

-- 
F.Baube                *  
Georgetown/MSFS/1988   *  Act locally.
email fbaube#welho.com *  Think pangalactically. 
 gsm  +358 41 536 8192 *  
 wmd   60°11'10.8"N 24°57'36.9"E
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to