Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pop/Push variable values in the templates

cbiosOct 17 2007 — edited Oct 24 2007
Hi,

I've been working for some months with JHeadStart 10.1.3, and I've started to change the templates to adapt the behaviour to our project needs.

But I've discovered that the variables I set in a template have no context information (or I haven't found the way to establish its context), so the next time the generation goes through that template, the variable changes its value forever, and I'm not able to recover the value it had at the previous level.

Mainly, my problem is in the region management loops. As a group region can contain other regions, any variable I set in a region can be reseted in a child region and it will not have utility in the region that goes after the first, because the value is taken from the child region.

So, is there any way to push/pop variable value using the JHS api?

I hope I've been able to make me understand.

Thank you in advance.

Carles Biosca
BBR IngenierĂ­a de Servicios SL
www.bbr.cat
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2007
Added on Oct 17 2007
2 comments
1,052 views