Re: Update one f:dropdownList when a selection is changed in another

2015-11-13 Thread Kirill Shepitko
Thanks a million, I'll start working on this. 2015-11-12 18:29 GMT+00:00 Jesse Glick : > On Thu, Nov 12, 2015 at 9:21 AM, Kirill wrote: > > I guess this sample plugin should be updated as well. > > Pull requests welcome. > > > Do you have a more interactive community, like an IRC chat? > > https

Re: Update one f:dropdownList when a selection is changed in another

2015-11-12 Thread Jesse Glick
On Thu, Nov 12, 2015 at 9:21 AM, Kirill wrote: > I guess this sample plugin should be updated as well. Pull requests welcome. > Do you have a more interactive community, like an IRC chat? https://wiki.jenkins-ci.org/display/JENKINS/IRC+Channel > I'd like to > invest into enhancing UI controls

Re: Update one f:dropdownList when a selection is changed in another

2015-11-12 Thread Kirill
Hi Jesse, Thanks for suggestion about using dropdownDescriptorSelector! However, I was using an example from ui-samples-plugin, it's almost an exact replica. So I guess this sample plugin should be updated as well. Do you have a more interactive community, like an IRC chat? I'd like to invest

Re: Update one f:dropdownList when a selection is changed in another

2015-11-10 Thread Jesse Glick
On Tue, Oct 27, 2015 at 11:34 AM, Kirill wrote: > what about case when there are two elements? First of all, you should be using `f:dropdownDescriptorSelector` for data binding, rather than a raw `f:dropdownList`. Probably what you are asking for is not possible without either patching Jenkins

Re: Update one f:dropdownList when a selection is changed in another

2015-11-10 Thread Kirill
Do you mean something like return FormValidation.respond(isFieldValid? FormValidation.Kind.ERROR : FormValidation.Kind.OK, "disableBadStuff()"); ? I tried this and it doesn't work :( The tag is injected in validation area, but the script inside it does not get executed :( And there are no err

Re: Update one f:dropdownList when a selection is changed in another

2015-11-04 Thread Stephen Connolly
The doCheckArtifact() method returns a FormValidation which gets rendered as a HTML response that gets injected into the page in the validation area... https://www.youtube.com/watch?v=tNXpnufLVkc On 4 November 2015 at 20:56, Kirill wrote: > Hi Stephen, > > Thanks for suggestion "*enable and dis

Re: Update one f:dropdownList when a selection is changed in another

2015-11-04 Thread Kirill
Hi Stephen, Thanks for suggestion "*enable and disable* some of the second descriptors via Javascript from a doCheckArtifact method's response?"! But can you please explain how to do some actions on the page on this method response? doCheckArtifact() will be run on server, how is it possible to

Re: Update one f:dropdownList when a selection is changed in another

2015-10-27 Thread Stephen Connolly
It cannot, as you have rendered the whole page before the user can select anything and the tag was not written to support list filtering. The way to handle this would be to use a "wrapper" for the first drop down and then render the second drop down within the wrapper always... that means you will

Update one f:dropdownList when a selection is changed in another

2015-10-27 Thread Kirill
Hi noble Jenkins developers! It's quite easy to update one simple select () when another is changed (see DynamicDropDownListBox from Jenkins UI Samples plugin). But what about case when there are two elements? I have used DropdownList from UI Samples as a sample to create these: