Re: Databinding with RadioBlock into Repeatable
The 'name' attribute must be unique for each radioBlock. A solution that worked for me (in a different case, such as in JENKINS-5028 https://issues.jenkins-ci.org/browse/JENKINS-5028 ) was to add a unique generated string to the name attribute. In my case I concatenated ${instance.hashCode()} to the name and it did the trick. I guess you can do something like this: name=${t.hashCode()}.myProject.myClass.choise -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Databinding-with-RadioBlock-into-Repeatable-tp4641009p4677030.html Sent from the Jenkins dev mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups Jenkins Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Databinding with RadioBlock into Repeatable
I always just do name=${h.generateId()}.name since the data-binding only pays attention to the bit after the last `.` Also ensures that when adding repeatables you are getting unique Ids On 27 August 2013 13:01, sophpc or...@hp.com wrote: The 'name' attribute must be unique for each radioBlock. A solution that worked for me (in a different case, such as in JENKINS-5028 https://issues.jenkins-ci.org/browse/JENKINS-5028 ) was to add a unique generated string to the name attribute. In my case I concatenated ${instance.hashCode()} to the name and it did the trick. I guess you can do something like this: name=${t.hashCode()}.myProject.myClass.choise -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Databinding-with-RadioBlock-into-Repeatable-tp4641009p4677030.html Sent from the Jenkins dev mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups Jenkins Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Databinding with RadioBlock into Repeatable
Sorry, but your solution breaks the radio block. All the buttons in a block must have the same name in order to be grouped into a single selection. Since /generateId()/ creates a unique id for each radio button, you just get multiple radio blocks (each containing a single button) -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Databinding-with-RadioBlock-into-Repeatable-tp4641009p4677039.html Sent from the Jenkins dev mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups Jenkins Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Databinding with RadioBlock into Repeatable
ahh I'm just being too short-handed... Do this at the level where you start putting all the radio options j:set var=radioId value=${h.generateId}/ Then for each radio name=${radioId}.fieldname That will give you what you are after. On 27 August 2013 15:31, sophpc or...@hp.com wrote: Sorry, but your solution breaks the radio block. All the buttons in a block must have the same name in order to be grouped into a single selection. Since /generateId()/ creates a unique id for each radio button, you just get multiple radio blocks (each containing a single button) -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Databinding-with-RadioBlock-into-Repeatable-tp4641009p4677039.html Sent from the Jenkins dev mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups Jenkins Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Jenkins Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.