• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebObjects 5.4 is out.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: WebObjects 5.4 is out.
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: How to create WO Project on Leopard
  • Next by Date: Re: java.lang.AbstractMethodError at org.apache.axis.AxisEngine.refreshGlobalOptions(AxisEngine.java:502)
  • Previous by thread: Re: How to create WO Project on Leopard
  • Next by thread: Re: WebObjects 5.4 is out.
  • Index(es):
    • Date
    • Thread