Re: appendToResponse
Re: appendToResponse
- Subject: Re: appendToResponse
- From: John Ours <email@hidden>
- Date: Mon, 2 Feb 2009 09:09:37 -0500
On Feb 2, 2009, at 8:25 AM, Atli Páll Hafsteinsson wrote:
Woha ...! That code block is unreadably formatted (I blame entourage
and the cold weather), lets try again:
public void appendToResponse( WOResponse response, WOContext
context ) {
I'm not sure what's wrong with your code but the approach I usually
take is something like this:
===SecureWrapper.html
<webobject name="NotLoggedIn">
<webobject name="NoNavWrapper">
<webobject name="LoginBox"/>
</webobject>
</webobject>
<webobject name="LoggedIn">
<webobject name="OuterWrapper">
<webobject name="PageContent"/>
</webobject>
</webobject>
===SecureWrapper.wod
NotLoggedIn : WOConditional {
condition = loggedIn;
negate = true;
}
NoNavWrapper : PageWrapper {
hideMenu = true;
}
LoginBox : Login {
}
LoggedIn : WOConditional {
condition = loggedIn;
}
OuterWrapper : PageWrapper {
}
PageContent : WOComponentContent {
}
John _______________________________________________
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