Hm. What is the UI that you're trying to generate?
If there are multiple possible values, of which only one can be
selected at once, you either want a radio group or maybe an enum for a
<select> input.
If you're just trying to specify whether the livraison is local or
client, and it can only take those two values, a boolean will probably
do it.
http://wiki.hudson-ci.org/display/HUDSON/Jelly+form+controlsIn general user interface parlance
A checkbox is an input with a single on/off state.
A radio button group is a group of several inputs, each with an on/off
state, of which exactly one must be on at all times.
In Hudson specifically, a radioBlock is defined as:
> Radio button with a label that hides additional controls. When
> checked, those additional controls are displayed. This is useful for
> presenting mutually exclusive options, where each option comes with
> a subform that provides additional configuration.
See
https://hudson.dev.java.net/nonav/maven-site/hudson-core/jelly-taglib-ref.html
#form:enum
On Oct 23, 2009, at 1:33 AM, mahdi wrote:
>
> i want to do a radioBlock this is my jelly code:
> <f:entry title="local">
> <f:radioBlock name="livraison" value="local"
> checked="${instance.livraison == 'local'}" />
> </f:entry>
>
> <f:entry title="client" >
> <f:radioBlock name="livraison" value="client"
> checked="${instance.livraison == 'client'}" />
> </f:entry>
>
> my java code:
> public String livraison;
> ....
> @DataBoundConstructor
> public HelloWorldBuilder(String livraison..){
> this.livraison = livraison;
> ....
> }
> public final String getLivraison() {
> return livraison;
> }
>
>
>
> public final boolean setLivraison(String livraison) {
> return true;
> }
> the exception is ("String is a built-in type...")
> --
> View this message in context:
http://www.nabble.com/radioBlock-usage-plugin-hudson-tp26022657p26022657.html> Sent from the Hudson dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hudson.dev.java.net
> For additional commands, e-mail: dev-help@hudson.dev.java.net
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: dev-help@hudson.dev.java.net