Hi Daniel,
I think you'll need to add css. Here is what I used (see BugTracker):
/* ERDActionButton stuff */
.ERDControllerButton {
}
.ERDControllerButtonLinkList {
display: inline;
margin: 0px;
padding: 0px;
}
.ERDControllerButtonLinkList li {
display: inline;
margin: 0px;
padding: 0px;
font-family: Arial, Geneva, sans-serif;
font-size: 11px;
}
.ERDControllerButtonLinkList li a {
padding: 0px 5px;
}
The rules I use are the following. The only tricky bit is that if you don't
have it default to the ERXEmptyComponent, it will display the controller button
in every list if I recall correctly:
50 : *true* => controllerButtonComponentName = "ERXEmptyComponent"
[com.webobjects.directtoweb.Assignment]
50 : entity.name = 'Document' => pageController =
"ca.cscw.p2p.delegates.DocumentDelegate"
[er.directtoweb.ERDDelayedObjectCreationAssignment]
100 : pageConfiguration like 'ListDocuments' => actions = {"right" =
("controllerAction"); } [com.webobjects.directtoweb.Assignment]
100 : pageConfiguration like 'ListDocuments' => controllerButtonUIStyle =
"linkList" [com.webobjects.directtoweb.Assignment]
100 : propertyKey = 'controllerAction' => componentName = "ERDControllerButton"
[com.webobjects.directtoweb.Assignment]
Hope that helps,
David
On 2010-11-17, at 11:23 AM, Daniel Mejía wrote:
> Hi all,
>
> I´m working with the D2WModernLook and I´m trying to add an
> ERControllerButton to a list component, but I can´t get to display the
> actions in my class that extends ERDBranchDelegate. Looking in the CSS from
> the ERModernDefaultSkin I found that the style for ERDBranchDelegate is set
> to display : none.
I think you mean ERDControllerButton. I removed the display: none; (see above)
but make sure you set it to display the ERXEmptyComponent instead so it doesn't
show up all over the place.
.ERDControllerButton {
}
> Is that possible to change this attribute to display the button that contains
> al the actions in my class that extends ERDBranchDelegate class?
>
> The rules that I´m using are similar that the rules explained in the wiki in
> this page:
>
> http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/directtoweb/pages/ERD2WPage.html#pageController()
>
>
> Regards,
>
> Daniel.
>
> _______________________________________________
> 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/programmingosx%40mac.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]