I believe there is a controller button on the page there. You may be able to
omit it with a rule.
Because it is there, it's going to get the default controller choices unless
you override it with rules.
100:pageConfiguration = 'ListMyEntity' => branchChoices = () [Assignment]
105:pageConfiguration = 'ListMyEntity' and object.isNonNull = 1 =>
branchChoices = (setNewPassword) [Assignment]
You might be able to get away with just one rule
100:pageConfiguration = 'ListMyEntity' and object.isNonNull <> 1 =>
branchChoices = () [Assignment]
I forget if that works. Or use annotations on your delegate method
@D2WDelegate (
scope = "object", availableTasks = "list", availablePages =
"ListMyEntity"
)
public WOComponent setNewPassword(WOComponent sender) {
//Does stuff
}
Ramsey
On Jan 28, 2013, at 4:13 PM, Tim Worman wrote:
> I've overridden the css in my D2W project to show the ERDControllerButton.
> And I've set up a page controller delegate. I've also added a rule that this
> controller shows up for task = 'list' and entity.name = 'MyEntity'.
>
> 100 : (task = 'list' and entity.name = 'MyEntity') => actions = {"left" =
> ("inspectAction", "controllerAction"); }
> [com.webobjects.directtoweb.Assignment]
>
> The problem I can't figure out is why additional controller buttons are
> becoming visible in other places outside the actual list - like in the
> attached example.
>
> Tim
> UCLA GSE&IS
>
> <PastedGraphic-1.tiff>
> _______________________________________________
> 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/rgurley%40smarthealth.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]