Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding attributes to markup



You can add additional bindings to your wod file and wire them up to code in your controller just like any other binding.  These will be add as attributes.

WOD bindings:

String1: WOString {
class = "myClass";
value = message;
}

On Mar 29, 2007, at 5:33 PM, Webobjects Developer wrote:

If I have an HTML template and I want to use a WO component to provide
an attribute on markup, what is the best way to do that?

I've used the following type of construct, but I'm uncomfortable with
it, at best:

<tr<webobject name="ConditionalAltRow"> class="alt"</webobject>>

(Note: the 'class="alt"' is only a placeholder for preview; it will of
course be replaced when the webobject is replaced).

Is there any cleaner way to provide attributes to HTML elements?
_______________________________________________
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

--
Robert Walker



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

References: 
 >Adding attributes to markup (From: "Webobjects Developer" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.