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 protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> 
> This email sent to [email protected]

;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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to