Re: binding validation problem
Re: binding validation problem
- Subject: Re: binding validation problem
- From: Mike Schrag <email@hidden>
- Date: Mon, 31 Mar 2008 23:31:45 -0400
That should just work, so I'm not sure what the problem is there,
offhand ... Not sure what version of WOLips you're using, though.
ms
On Mar 31, 2008, at 11:26 PM, Archibald Singleton wrote:
On 01 Apr 2008, at 00:16, Mike Schrag wrote:
<wo:WOImage alt = "~\"Order a \" + $currentItem" border = "0"
filename = "~$currentItem + \".gif\""/>
OGNL doesn't use $, it just uses the binding name, so "~
$currentItem + \".gif\"" is invalid, it should be "~currentItem +
'.gif'" (single tick instead of quote is a lot easier with OGNL,
too -- a lot less escaping).
Ooops, so the error message was actually pretty straight on, missed
the '$' in the keyname %-).
Thanks! (also for pointing out the use single quote).
Now for another one:
Application.java has the following accessor method
public NSArray<Entree> entrees() {
return _entrees;
}
public void setEntrees(NSArray<Entree> entrees) {
_entrees = entrees;
}
And Main.html has the following subcomponent for which I'm getting
the following error message "There is no key 'entrees' for the
keypath 'application' in Main"
<wo:loop list = "$application.entrees" item = "$currentItem">
I'm sure it's something obvious again, but I can see what.
= tmk =
_______________________________________________
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
_______________________________________________
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