Re: Simple D2W Question.
Re: Simple D2W Question.
- Subject: Re: Simple D2W Question.
- From: David LeBer <email@hidden>
- Date: Sun, 18 Apr 2010 11:58:46 -0400
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