Ted, Null should evaluate to false by the WOConditional, so I don't think you *need* the default false rule. Though it does give some indication in your rules that the key exists.
You should be using BooleanAssignment to set it's value though. D On 2012-10-01, at 1:20 PM, Theodore Petrosky <[email protected]> wrote: > I cloned the ERMDSimpleListPageRepetition and added a conditional at the top > of the page to allow help text to be either visible or not: > > <webobject name = "InstructionComponentCondition"> > <webobject name = "InstructionComponent" /> > </webobject> > > InstructionComponent : WOSwitchComponent { > WOComponentName = d2wContext.headerInstructionComponentName; > } > > my conditional: > > InstructionComponentCondition : WOConditional { > condition = d2wContext.showHeaderInstructionComponent; > } > > each user that logs in has a security setting "showsHelpText". so I can > access it at: session.user.showsHelpText > > so I created a rule: > 100 : (task = 'list' and session.user.showsHelpText = 1) => > showHeaderInstructionComponent = "true" > [com.webobjects.directtoweb.Assignment] > > Do I have to worry about the 'false' setting? > Should there be a rule: > 10 : *true* => showHeaderInstructionComponent = "false" > [com.webobjects.directtoweb.Assignment] > > What is best 'form' for setting the state of > d2wContext.showHeaderInstructionComponent? > > Ted > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
