I like that idea, much simpler :) thanx
On 2/2/09 2:09 PM, "John Ours" <[email protected]> wrote: > > 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 Fyrirvari á tölvupósti / e-mail disclaimer http://us.is/Apps/WebObjects/US.woa/wa/dp?id=3776 _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
