On 30-Mar-09, at 6:53 PM, Johan Henselmans wrote:
I used to have a <body> and </body> tags wrapped in their own
header and footer components with some conditionals to add a
bgcolor : yellow would be a test site and white the real site. Tthat
does not work in 5.4.x anymore: 5.4.x expects a complete tag in a
component: <body> should be ended with </body> in one component,
otherwise it throws an exception. I can not have one component with
the <body> tag, and another component with the </body> tag.
What alternatives would you recommend to do what I want to do? (make
a difference between a test site and the real site by body back
ground color).
You want to create a wrapper component
ie: My WrapperComponent
<wo:WOGenericContainer elementName="body" class="$deployType">
<wo:WOComponentContent/>
</wo:WOGenericContainer>
Usage:
<wo:MyWrapperComponent>
// Content goes here
</wo:MyWrapperComponnet>
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com