I managed to achieve this with a differenct approach, the same as 
dropdownlist in ui-examples. I put related configs in different 
dropdownlistblocks, each related to a descriptor. I inject all possible 
descriptors into jenkins, and in the dropdownlist's getDescriptors method, 
I return the descriptors selectively.

On Sunday, December 3, 2017 at 6:15:23 PM UTC+8, 司芳源 wrote:
>
> I'm developing a builder plugin. In my config.jelly, I have en entry which 
> depends on the value selected in other entry, for example: 
>
> <f:entry title="Select" field="select">
>  <f:select/>
> </f:entry>
> <j:if test="${descriptor.testMethod(--the parameter should be the value 
> selected in above entry--)}">
>  <f:entry title="Test" field="test">
>  <f:textbox/>
>  </f:entry>
> </j:if>
>
> I tried to do the same as dynamic dropdownlist in ui-examples, annotate 
> the argument of descriptor's testMethod with @QueryParameter, but it 
> doesn't work.
> Is there a way to do that?
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/1494aa9f-23f2-48fc-9e45-759e6795bf7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to