ERModern and ERDControllerButton css

2013-01-28 Thread Tim Worman
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.TimUCLA GSEIS ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERModern and ERDControllerButton css

2013-01-28 Thread Ramsey Gurley
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 GSEIS
 
 PastedGraphic-1.tiff
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERModern and ERDControllerButton css

2013-01-28 Thread Tim Worman
G. Annotations. And so continues my hate/love relationship with D2W. Yes, I 
know it is awesome. :-)

The one-liner rule worked. Thanks Ramsey.

T

On Jan 28, 2013, at 3:29 PM, Ramsey Gurley rgur...@smarthealth.com wrote:

 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 GSEIS
 
 PastedGraphic-1.tiff
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com