Re: CruiseControl widget
"Nathan Russell" <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <6E80CFEBE068F44BAD79EB89CA1FD5910188FD8B@edgemail01.uk.edgeipk.com> |
Hi
I assume you implemented your widget in dashboard-config.xml like this:
<subtabs>
<subtab
class="net.sourceforge.cruisecontrol.dashboard.widgets.ErrorsAndWarnings
MessagesWidget" />
<subtab class="yourWidget" />
</subtabs>
I don't know if this will work, but you could try using the property
element, something like this:
<subtabs>
<subtab
class="net.sourceforge.cruisecontrol.dashboard.widgets.ErrorsAndWarnings
MessagesWidget" />
<subtab class="yourWidget">
<property name="foo" value="bar"/>
<property name="anotherParam" value="value"/>
</subtab>
</subtabs>
We've successfully used the property element in config.xml to do
something similar to what you are trying. Its documented as an element
of config.xml
(http://cruisecontrol.sourceforge.net/main/configxml.html#property), but
it might work in dashboard-config.xml ??
Hope this helps
Nathan
From: Wilson, James [mailto:[email protected]]
Sent: 07 January 2010 19:33
To: [email protected]
Subject: [Cruisecontrol-user] CruiseControl widget
I have a question about CruiseControl widgets. I have created a widget
and it is working but I have some variables which I had to hard-code
within it. My question is: Is there a way to pass parameters or
properties to the widget via the dashboard-config.xml? I have not gotten
a widget to work via the widgets.cfg.
Thanks for any help that could be given,
James L. Wilson
Enterprise Imaging Development & Support
Commerce Bancshares, Inc.
[email protected]
816.760.8705
************************************************************************
**
If you wish to communicate securely with Commerce Bank and its
affiliates,
you must log into your account under Online Services at
http://www.commercebank.com or use the Commerce Bank Secure Email
Message
Center at https://securemail.commercebank.com
NOTICE: This electronic mail message and any attached files are
confidential.
The information is exclusively for the use of the individual or entity
intended
as the recipient. If you are not the intended recipient, any use,
copying, printing,
reviewing, retention, disclosure, distribution or forwarding of the
message or
any attached file is not authorized and is strictly prohibited. If you
have
received this electronic mail message in error, please advise the sender
by reply
electronic mail immediately and permanently delete the original
transmission, any
attachments and any copies of this message from your computer system.
************************************************************************
**
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.427 / Virus Database: 270.14.127/2603 - Release Date:
01/07/10 07:35:00
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user