Re: appendToResponse
Re: appendToResponse
- Subject: Re: appendToResponse
- From: Atli Páll Hafsteinsson <email@hidden>
- Date: Mon, 02 Feb 2009 14:16:46 +0000
- Thread-topic: appendToResponse
I like that idea, much simpler :)
thanx
On 2/2/09 2:09 PM, "John Ours" <email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden