Bugs item #907842, was opened at 2004-03-01 22:05
Message generated for change (Settings changed) made by vietj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=907842&group_id=22866
Category: Nukes
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Dennis Przybyla (thepriz)
>Assigned to: Julien Viet (vietj)
Summary: Templates does not support over 1 deep levels.
Initial Comment:
Adding a nested template in a nested template does not
work.
Example:
<!-- BEGIN main -->
This is the main template section with this
variable "{MAIN_VARIABLE}"<br/>
<br/>
<!-- BEGIN level1 -->
This is the 1 nested level template section with
this variable "{level1.LEVEL1_VARIABLE}"<br/>
<br/>
<!-- BEGIN level2 -->
This is the 2 nested level template section with
this variable "{level2.LEVEL2_VARIABLE}"<br/>
<br/>
<!-- END level2 -->
<!-- END level1 -->
<!-- END main -->
The LEVEL2_VARIABLE is never rendered even when you set
it. You also get an error in the server.log "
[Generated50] field LEVEL2_VARIABLE is null".
I am including a simple module that demonstrates the bug.
----------------------------------------------------------------------
Comment By: Dennis Przybyla (thepriz)
Date: 2004-03-01 23:04
Message:
Logged In: YES
user_id=693840
Yes, this works.
Thanks
----------------------------------------------------------------------
Comment By: Kevin Viet (vietk)
Date: 2004-03-01 22:28
Message:
Logged In: YES
user_id=602561
The way you access the LEVEL2_VARIABLE is wrong, you should
prefix it with its nested context (i.e: "level1.level2" )
So it becomes :
...
This is the 2 nested level template section with
this variable "{level1.level2.LEVEL2_VARIABLE}"<br/>
...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=907842&group_id=22866
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development