On Jul 15, 8:10 am, DFectuoso <santiago1...@gmail.com> wrote:
> I don't know if its possible, but lift have surprised me so many times
> so far that it worth to ask.
>
> I have a html lift binding that i would like to place on several
> places of my web application like:
> <lift:Foo.Bar variable="value"/>
> <lift:Foo.Bar variable="value1"/>
> <lift:Foo.Bar variable="value2"/>
>
> Is there any way for Foo.Bar to programaticly know all the possible
> values that it could receive in variable(and those being value, value1
> and value2 and if someone adds a new binding somewhere else with
> value3 then value3 too)?

No because each line over there is a different invocation of a
potentially "stateless" snippet meaning a new instance of Foo. Inside
your snippet you can use S.attr("variable") to get the value of the
variable.

But what is the use case? ... what are you trying to solve?

>
> Its a long shot but if you have any idea please do tell!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to