Re: WebObjects 5.4 is out.
Re: WebObjects 5.4 is out.
- Subject: Re: WebObjects 5.4 is out.
- From: David Koski <email@hidden>
- Date: Tue, 6 Nov 2007 06:52:57 -0800
Check out:
http://developer.apple.com/documentation/MacOSXServer/Reference/WO54_Reference/com/webobjects/appserver/parser/package-summary.html
In particular the WOAssociationFactory part. This would allow you to
write:
<td class="[ognl: row % 2 == 0 ? 'even' : 'odd']"> ... </td>
etc. You can create your own association schemes. Ones we are using
are:
ognl: expression
translate: 'key', key=value, ...
format: 'pattern', key=value, ...
These can be used _anywhere_ an association can be used, which is
everywhere.
dk
On Oct 28, 2007, at 8:50 PM, Lachlan Deck wrote:
Personally I find creating a simple groovy expression in your wod
binding cleaner looking than WOOgnl.
e.g.,
SomeDiv : WOGenericContainer {
<....>
omitTags = hasFoo && hasBar;
}
Other than that, I think Wonder's is a more developer-friendly
parser. I am, however, totally biased on this topic :) I think
groovy components over in-place groovy bindings is probably the
better approach to solve the dynamic binding problem.
If it's a developer updating the page, sure. It's simple things like
being able to prefix a numeric id for css purposes where groovy
bindings are very helpful for a web designer.
with regards,
--
Lachlan Deck
_______________________________________________
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