• 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: Lachlan Deck <email@hidden>
  • Date: Wed, 7 Nov 2007 10:34:59 +1100

On 07/11/2007, at 1:52 AM, David Koski wrote:

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.

That's flexible indeed.

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


References: 
 >Re: WebObjects 5.4 is out. (From: David Koski <email@hidden>)

  • Prev by Date: Re: EODatabaseContext locking situation
  • Next by Date: Re: Slogan
  • Previous by thread: Re: WebObjects 5.4 is out.
  • Next by thread: clarification on single-bundle WOA deployment
  • Index(es):
    • Date
    • Thread