Re: Simple D2W Question.
Re: Simple D2W Question.
- Subject: Re: Simple D2W Question.
- From: David LeBer <email@hidden>
- Date: Sun, 18 Apr 2010 19:40:06 -0400
On 2010-04-18, at 2:36 PM, James Cicenia wrote:
> This happens in a direct action at login (ERD2WDirectAction)
>
> Yet, I don't see d2wContext() being available. Would the factory give that to me?
You can obtain a temporary d2wContext with:
D2WContext newContext = new D2WContext(session);
But I guess the question is how dynamic do you need the UserHomePage to be, in other words is the rules the right place for this to go?
> On Apr 18, 2010, at 10:58 AM, David LeBer wrote:
>
>>
>> On 2010-04-18, at 11:30 AM, James Cicenia wrote:
>>
>>> Is it possible to just render a page without any,
>>> edit, list or query? In other words, a page with my
>>> own custom components?
>>>
>>> I was hoping to just call a return D2W.factory().pageForConfigurationNamed("UserHomePage", session());
>>>
>>> followed with rules to set UserHomePage pageName = "UserHomePage"
>>
>> If your page isn't a D2W page then no.
>>
>> However it is trivial to achieve what you want if you have access to a d2wContext:
>>
>> Rule:
>>
>> true => userHomePageName = "UserHomePage"
>>
>> Component Code:
>>
>> return pageWithName(d2wContext().valueForKey("userHomePageName"));
>>
>>
>> ;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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
;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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden