inline bindings and ognl
inline bindings and ognl
- Subject: inline bindings and ognl
- From: Sanford Selznick <email@hidden>
- Date: Tue, 11 Aug 2009 09:15:50 -0700
Hello,
I'm a little new.
I would like to access a "final static" string from a class from my
wod in a tag, as in:
tag="$com.me.product._Contact.ENTITY_NAME"
But this always results in a parsing error in WOLips: "There is no
com in blah."
Question 1: Is this supposed to work?
----------------------
So a little bird told me this should work with ognl, so I tried:
tag="[ognl: @com.me.product._Contact@ENTITY_NAME]"
This is not syntax checked but yields a runtime error:
"There is no model containing entity '[ognl: @com.me.product....'
in the default model group"
Question 2: What magic do I need to do in Eclipse/WOLips to make this parse?
----------------------
I also tried:
tag="~@com.me.product._Contact@ENTITY_NAME", which _is_ working.
But I would _really_ like to have that syntax checked inside the wod,
which is the whole point of using static strings like this.
Question 3: How do I get the syntax checker to work so I can get
compile-time errors with this stuff?
Question 4: Auto completion would be cool here too. Can that be
enabled somehow? :-)
----------------------
Question 5: Is there a maximum number of questions per e-mail? :-)
Thank you!
Sanford
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden