Nice to see a fellow country man using RIFE :-)
On 10 Apr 2006, at 10:05, henk wrote:
Hi Geert,
thanks for your ultra-fast response (I guess we are in the same
timezone ;-) )! I knew there must be a better way.
Henk
Geert Bevin wrote:
Hi Henk,
you're not supposed to instantiate elements yourself, nor call
processElement yourself. You should fully rely on the web engine
to do this. Elements are fully standing alone building blocks that
are linked together by the web engine.
If you want to have components inside your view template, take a
look at embedded elements:
http://rifers.org/wiki/display/RIFE/Embedded+elements
However, in your case, I wouldn't do this for the content piece.
The best way to do this is to have a blueprint template with a
'content' value placeholder. Then you include this page from
within any other page that should look like this blueprint, and
add a BV tag that will set the content inside the blueprint's
value placeholder.
Hope this helps.
Best regards,
Geert
On 10 Apr 2006, at 09:40, henk wrote:
Hi,
I'm just starting with Rife and I have a 'good practise' question.
I have a html page in which I can identify different 'modules'
like the menu and the content piece. I'm implementing it like
this :
- I use two includes in my main page to include 'menu' and 'content'
- I have an element (Home)that refers to this main page
- I have two classes (also extending 'Element') that each fill
'menu.html' and 'content.html' in the 'processElement' method
- the Home class instantiates these two classses, sets the
template in each of these classes (main page) and calls the
processElement method in each one of them
That way the template gets filled.
Now I'm wondering if this is the way to do it. It's not
difficult or something, but Rife has such a rich feature set that
maybe there is another way.
Thanks
Henk
___________________
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED]
"Use what you need" Avenue de Scailmont 34 Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin
gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users