Users - FTL assign != context.put ???

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Users - FTL assign != context.put ???

oceatoon
Hi everyone

I would like to insert variables ( myvar ) in the context just before my
screens.render("....") with <#assign my="...">
then call my screen/midget and use that dynamic variable.
but this doesn't work
context.get("myvar") is null.

does anybody know how I could pass data to the screens.render from the ftl ?
or pass a parameter to my ftl ?

this would allow great reusibility according to use case of a screen widget

also I can't seem to find where <@renderSubContentCache is defined ?

any ideas would be greatly appreciated.

Thanks in advance
Tib



 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - FTL assign != context.put ???

oceatoon
I managed to do what I wanted by using the request object
in FTL ${setRequestAttribute("myvar","cococococo")}
just before my screens.render
then in my screens.render bsh I can retreive the value of myvar with
request.getAttribute("myvar");

Just out of curiosity would it be hard to add parameters to a
screens.render call ?
or maybe have a regExp system on the <screen  name like this
<screen  name="screenName(*)"
and anywhere in my screen widget I would have $1...$x
so then I could call
screens.render(compo:///....#screenNametest)

I was used to using this with Cocoon's Sitemap and often turned out very
usefull.

WDYT?
Tibor


Tib Kat a écrit :

> Hi everyone
>
> I would like to insert variables ( myvar ) in the context just before my
> screens.render("....") with <#assign my="...">
> then call my screen/midget and use that dynamic variable.
> but this doesn't work
> context.get("myvar") is null.
>
> does anybody know how I could pass data to the screens.render from the ftl ?
> or pass a parameter to my ftl ?
>
> this would allow great reusibility according to use case of a screen widget
>
> also I can't seem to find where <@renderSubContentCache is defined ?
>
> any ideas would be greatly appreciated.
>
> Thanks in advance
> Tib
>
>
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>
>  

--
180 Rue Réné Laennec
Res les Pins , Bat M
34090 Montpellier
France

Mobil : 0033-660756657
Home : 033- 467405929

site : www.open-atlas.org
email & gtalk : [hidden email]
msn : [hidden email]
yahoo : [hidden email]
skype : oceatoon
ICQ : 104346615

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users