• 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: appendToResponse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: appendToResponse
      • From: Atli Páll Hafsteinsson <email@hidden>
References: 
 >Re: appendToResponse (From: Atli Páll Hafsteinsson <email@hidden>)

  • Prev by Date: Re: appendToResponse
  • Next by Date: Re: appendToResponse
  • Previous by thread: Re: appendToResponse
  • Next by thread: Re: appendToResponse
  • Index(es):
    • Date
    • Thread